oracle Êý¾Ý¿âÀïÃæ¿é´óСµÄÓÅȱµã
´ó¿é£¬Óŵ㣺
1¡¢Ë³Ðò¶Á¡¢Ë÷Òý¶ÁÐÔÄܺÃ
ÒòΪ´ó¿éÈÝÄɵÄÐÐÏà¶ÔС¿éÊý¾Ý
¶à£¬ÔÚ½øÐÐÈ«±íɨÃèµÄʱºò£¬»òÕßË÷ÒýɨÃèµÄʱºò£¬ËùÐèÒªµÄÎïÀí¶Á¡¢Âß¼¶Á¶¼ÒªÉÙ¡£
ËüÒ²ÄܼõСË÷ÒýµÄÊ÷¸ß¡£¶ÔÓÚË÷Òý·ÃÎÊ
µÄÐÔÄÜÓÐËùÌá¸ß¡£
2¡¢´ó¿éÄÜÈÝÄɱȽϴóµÄÐÐ
ÈÝÄÉ´óÐиöÈËÀí½â£¬Ò»¶¨³Ì¶ÈÉÏ¿ÉÒÔ±ÜÃâÐÐǨÒÆ¡¢ÐÐÁ´½Ó¡£¼õС´óÐеĶÁÈ¡¿éµÄ¶àÉÙ¡£
´ó¿é ȱµã£º
1¡¢ÒòΪ´óÐÐÈÝÄɵÄÊý¾Ý¶à£¬²»Í¬µÄÐпÉÄܻᱻ²»Í¬µÄsession Ëù·ÃÎÊ£¬Ôì³É¿éÕùÓá£
2¡¢Õ¼ÓÃÁËÄÚ´æÀïÃæÌ«¶àµÄÄÚ´æ¿Õ¼ä¡£
ÒòΪ´óÐжÁÈëÄÚ´æÖ®ºó£¬Õ¼ÓõÄÄÚ´æ±ÈС¿é¶à£¬¶øʹÓõÄʱºò¿ÉÄÜÖ»ÊÇʹÓúÜÉÙµÄÒ»²¿·ÖÊý¾Ý£¬½µµÍÁËÄÚ´æµÄЧÂÊ¡£
С¿é£¬Óŵ㣺
1¡¢¼õСDMLÓï¾ä
µÄ¿éÕùÓá£
2¡¢Õ¼ÓÃÄÚ´æ½ÏÉÙ¡£Ìá¸ßÁËÄÚ´æËæ»ú·ÃÎʵÄЧÂÊ¡£
С¿éȱµã£º
Ôö¼ÓË÷ÒýÊ÷¸ß£¬²»ÀûÓÚË÷Òý·ÃÎÊ£¬·ÃÎÊͬÑùµÄ¿é£¬I/O¶ÁÈ¡½Ï¶à¡£
С¿éÊÊÓÃÓÚOLTPϵͳ
£¬ÒòΪOLTPϵͳDMLÓï¾ä½Ï¶à£¬Ëæ»ú·ÃÎʱȽ϶ࡣ
´ó¿éÊÊÓÃÓÚOLAPϵͳ£¬ÒòΪOLAPϵͳµÄDML½ÏÉÙ£¬´óÁ¿¡¢Á¬Ðø¡¢È«É¨Ãè½Ï¶à£¬´ó¿éµÄÐÔÄÜÓÅÊƵõ½·¢»Ó¡£
Ïà¹ØÎĵµ£º
DB2 תOracle
ijÌìÊÇÐÇÆÚ¼¸µÄº¯Êý
DB2:
select a.yyxe,a.zblb,a.ysdm,a.daynum,b.zjxm from zy_yspb a ,zy_zjlb b where a.ysdm=b.id and a.ksdm=10000 order by abs( a.daynum -DAYOFWEEK(current date)+1) desc,a.daynum,a.zblb
sql.executeQuery:ORA-00936: ȱʧ±í´ïʽ
Oracle :
......
·ÖÇø±íά»¤µÄ³£ÓÃÃüÁ
ALTER TABLE
-- DROP -- PARTITION
-- ADD |
-- RENAME |
-- MODIFITY |
-- TRUNCATE |
-- SPILT |
-- MOVE |
-- EXCHANGE |
·ÖÇøË÷ÒýµÄ³£ÓÃά»¤ÃüÁ
ALTER INDEX
-- DROP -- PARTITION
-- REBUILD |
-- RENAME |
-- MODIFITY |
-- SPILT |
-- PARALLEL
-- UNUSABLE
1¡¢ALTER ......
ËäȻѧϰJavaºÜ¾ÃÁË£¬×Ô¼ºÒ²Á¬½Ó¹ýһЩÊý¾Ý¿â£¬±ÈÈçmysqlÖ®ÀàµÄ£¬Èç½ñÄØ£¬Ò²Ñ§Ï°ÁËÒ»¶Îʱ¼äµÄOracle£¬È»¶øÄØ£¬½ñÌìÊÇÎÒµÚÒ»´ÎÁ¬½ÓOracle£¬ºÙºÙ£¬Ó¦¸Ã»¹²»ËãÌ«³Ù°É¡£
½ñÌìÄØ£¬Óе㱿׾£¬´ó¼ÒĪЦ£¡
ÎÒÕâÊÇÒ»¸ö²éѯÀý×Ó
Ê×ÏÈ£¬Ô ......
--±äÁ¿¸³Öµ
declare
identity :=0;
a varchar2(59,0);
b varchar2(50):='abc';
a :='cba';
-- ¿ØÖÆÓï¾ä
----------------------------------
if a>b then
  ......
ORACLEµÄËø»úÖÆ
×òÌìÈ¥Ò»¸ö¹«Ë¾ÃæÊÔ£¬Îʵ½OracleµÄ·âËø»úÖÆ£¬ºÇºÇ£¬ÀíÂÛÉϵÄÎÊÌâºÃ¾Ã¶¼Ã»ÓÐѧϰÁË£¬Êé±¾µÄ¶«Î÷Ò²²î²»¶à¶¼»¹¸øÁË´óѧµÄÀÏʦ¡£»ØÀ´·ÁËÒ»ÏÂÊé±¾£¬ÕÒµ½Á˹ØÓÚÕⲿ·Ö֪ʶµÄ˵Ã÷£¬Ìù³öÀ´¹©´óѧ²Î¿¼¡££¨ÏÖÔڵĹ«Ë¾£¬ ......