Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

Oracle IOÎÊÌâ½âÎö

Oracle IOÎÊÌâ½âÎö
Êý¾Ý¿âµÄ×÷ÓþÍÊÇʵÏÖ¶ÔÊý¾ÝµÄ¹ÜÀíºÍ²éѯ¡£ÈκÎÒ»¸öÊý¾Ý¿âϵͳ£¬±ØÈ»´æÔÚ¶ÔÊý¾ÝµÄ´óÁ¿¶Á»òÕßд»òÕßÁ½ÖвÙ×÷¶¼´óÁ¿´æÔÚ¡£IOÎÊÌâÒ²ÍùÍùÊǵ¼ÖÂÊý¾Ý¿âÐÔÄÜÎÊÌâµÄÖØÒªÔ­Òò¡£ÔÚÕâƪÎÄÕÂÖУ¬Ö÷Òª°ïÖú´ó¼ÒÔÚÀí½âOracleµÄ¶Áд²Ù×÷»úÖƵĻù´¡ÉÏ£¬Áé»î½â¾öÓöµ½µÄ¸÷ÖÖ³£¼ûµÄIOÎÊÌâ¡£
1 OracleÖÐIOµÄ²úÉú
IOµ±È»°üÀ¨Á˶Á¡¢Ð´Á½²¿·Ö£¬ÏȽéÉÜOracleÖÐд²Ù×÷µÄ²úÉú¡£
1.1 д
½éÉÜд²Ù×÷֮ǰ£¬Ïȼòµ¥µÄ¿´ÏÂOracleµÄÎïÀí½á¹¹£ºoracleµÄÎïÀíÎļþ°üÀ¨ÒÔÏÂÈýÖÖÎļþ£º¿ØÖÆÎļþ£¨Control Files£©¡¢ÖØ×öÈÕÖ¾Îļþ£¨Redo Log Files£©¡¢Êý¾ÝÎļþ£¨datafiles£©¡£¶øÊý¾ÝÎļþÖУ¬¸ù¾Ý¹¦ÄܵIJ»Í¬£¬»¹¿ÉÒÔ·ÖΪϵͳÊý¾ÝÎļþ¡¢ÁÙʱ¿Õ¼äÎļþ¡¢»Ø¹ö¶ÎÎļþºÍÓû§Êý¾ÝÎļþ¡£ÁíÍ⣬Èç¹ûÊý¾Ý¿âµÄArchive Logģʽ±»¼¤»î£¬»¹´æÔڹ鵵ÈÕÖ¾Îļþ¡£OracleµÄIO²úÉú£¬¾ÍÊǶÔÕâЩÎļþµÄÊý¾Ý¶Á¡¢Ð´²Ù×÷¡£ÏÂÃæÔÙÏêϸ¿´Ï¼¸ÖÖÖ÷Ҫд²Ù×÷µÄ²úÉú¼°Æä¹ý³Ì¡£
1.1.1 ¿ØÖÆÎļþ
¿ØÖÆÎļþÖмǼÁËÕû¸öÊý¾Ý¿âµÄÎïÀí½á¹¹ÐÅÏ¢£¬ÈçÊý¾Ý¿âÃû×Ö¡¢Êý¾ÝÎļþ¼°ÈÕÖ¾ÎļþÃû×ÖºÍλÖá¢Ê¼þ´ÁÐÅÏ¢µÈµÈ¡£ÈκÎÊý¾Ý¿âµÄ½á¹¹±ä»¯£¨Èç¹û´´½¨ÐµÄÊý¾ÝÎļþ£©¶¼»áÒýÆðOracleÐ޸ĿØÖÆÎļþ¡£Í¬Ê±¿ØÖÆÎļþ»¹¼Ç¼ϵͳºÍ¸÷¸öÊý¾ÝÎļþµÄSCN£¨System Change Number£¬¹ØÓÚSCN¿ÉÒԲμûÎÄÕ¡¶Oracle SCN»úÖÆÏê½â¡·£©ÐÅÏ¢£¬ÒÔÓÃÓÚÊý¾Ý»Ö¸´£¬Òò´ËÊý¾ÝÎļþÉϵÄSCN±ä»¯ºó£¬OracleÒ²»áÏàÓ¦Ð޸ĿØÖÆÎļþÉϵÄSCNÐÅÏ¢¡£
1.1.2 Óû§Êý¾ÝÐÞ¸Ä
ÓÉÓÚÄÚ´æµÄ¶ÁдЧÂʱȴÅÅ̵ĶÁдЧÂʸßÍò±¶£¬Òò´Ë£¬ÎªÁ˽µµÍIO wait£¬oracle»á½«Êý¾ÝcacheÔÚÄڴ棨Buffer Cache£¬¶ÔBuffer CacheµÄÏêϸ½éÉÜ¿ÉÒԲμû¡¶OracleÄÚ´æÈ«Ãæ·ÖÎö¡·£©ÖУ¬¶ÔÊý¾ÝµÄ¶Áд¾¡Á¿ÔÚÄÚ´æÖÐÍê³É¡£µ±Buffer CacheÖеÄÊý¾Ý»º´æ¿é±»Ð޸ĹýÁË£¬Ëü¾Í±»±ê¼ÇΪ¡°ÔࡱÊý¾Ý¡£¸ù¾ÝLRU£¨Least Recently Used£©Ëã·¨£¬Èç¹ûÒ»¸öÊý¾Ý¿é×î½üºÜÉÙ±»Ê¹Óã¬Ëü¾Í³ÆΪ¡°À䡱Êý¾Ý¿é¡£½ø³ÌDBWn£¨ÏµÍ³ÖпÉÒÔ´æÔÚ¶à¸öDBW½ø³Ì£¬nΪÐòºÅ£©¸ºÔ𽫡°À䡱µÄ¡°ÔࡱÊý¾ÝдÈëÊý¾ÝÎļþÖÐÈ¥¡£DBWn½ø³Ì»áÔÚÒÔÏÂÁ½ÖÖÇé¿öϽ«¡°ÔࡱÊý¾ÝдÈë´ÅÅÌÖÐÈ¥£º
 µ±·þÎñ½ø³ÌɨÃèÒ»¶¨ÊýÁ¿£¨·§Öµ£©µÄBuffer Cacheºó»¹Ã»ÓÐÕÒµ½¸É¾»¡¢¿ÉÖØÓõĻº´æ¿éºó£¬Ëü»á֪ͨDBWn½ø³Ì½«¡°ÔࡱÊý¾ÝдÈëÎļþÖÐÈ¥£¬ÒÔÊͷųö¿ÕÏлº´æ£»µ±·¢Éú¼ì²éµã£¨Checkpoint£©Ê±¡£
1.1.3 Redo Log
ÔÚ·ÇÖ±½Óд£¨Direct Write£©µÄÇé¿öÏ£¬ÊÂÎñÖеÄд²Ù×÷¶¼»á²úÉúRedo Log£¬×÷ΪÊý¾Ý¿éÒì³£¹Ø±ÕʱµÄ»Ö¸´¼Ç¼¡£Í¬Ñù£¬ºÍдÓû§Êý¾ÝÀàËÆ£¬Redo LogÒ²²»»á±»Ö


Ïà¹ØÎĵµ£º

oracle´íÎó˵Ã÷

ORA-00001: Î¥·´Î¨Ò»Ô¼ÊøÌõ¼þ (.)
ORA-00017: ÇëÇó»á»°ÒÔÉèÖøú×Ùʼþ
ORA-00018:
³¬³ö×î´ó»á»°Êý
ORA-00019: ³¬³ö×î´ó»á»°Ðí¿ÉÊý
ORA-00020: ³¬³ö×î´ó½ø³ÌÊý ()
ORA-
00021: »á»°¸½ÊôÓÚÆäËüijЩ½ø³Ì£»ÎÞ·¨×ª»»»á»°
ORA-00022: ÎÞЧµÄ»á»° ID£»·ÃÎʱ»¾Ü¾ø
ORA-00023:
»á»°ÒýÓýø³Ì˽ÓÃÄڴ棻ÎÞ·¨·ÖÀë»á» ......

ORACLE 10G³£ÓÃÃüÁî

---´´½¨±í¿Õ¼ä
create tablespace ±í¿Õ¼äÃû×Ö datafile 'F:\oracle\product\10.2.0\oradata\wsdata\yss01.dbf' size 4096M;
alter tablespace ±í¿Õ¼äÃû×Ö add datafile 'F:\oracle\product\10.2.0\oradata\wsdata\yss02.dbf' size 4096M;
alter tablespace ±í¿Õ¼äÃû×Ö add datafile 'F:\oracle\product\10.2.0\oradata\w ......

ͨ¹ýpl/sql ½«oracle10Êý¾Ýµ¼Èëoracle9ÖÐ


1¡¢  ´ò¿ªpl/sql ÖÐtools-preferences£¬ÉèÖÃConnectionÖеÄOracle HomeΪoracle9£¬OCI libraryΪoracle9 Èçͼ
2¡¢
         ½«oralce10Ŀ¼ÏµÄtnsnames.oraÎļþÀïÃæµÄËùÒªµ¼³öµÄoralce10µÄ·þÎñÅäÖà ¸´ÖƵ½oracle9Ŀ¼ÏµÄtnsnames.oraÎļþÀïÃæ
ORCL =
  (DESCRIP ......

Oracle Sql ÐÔÄÜÓÅ»¯

1£©²»Öª´ó¼ÒÊÇ·ñϲ»¶Ê¹ÓÑNOT IN’ÕâÑùµÄ²Ù×÷£¬Èç¹ûÊÇ£¬ÄǾ¡Á¿Ê¹ÓÃ(NOT) EXISTS Ìæ´ú
2£©ÔÚº£Á¿²éѯʱ¾¡Á¿ÉÙÓøñʽת»»¡£
3£©²éѯº£Á¿Êý¾ÝÊÇ£¬¿ÉÒÔʹÓÃoptimizer['ɔptimaizə] hints£¬ÀýÈç/*+ORDERED */
¾¡Á¿ÉÙÓÃIN²Ù×÷·û£¬»ù±¾ÉÏËùÓеÄIN²Ù×÷·û¶¼¿ÉÒÔÓÃEXISTS´úÌæ¡£
²»ÓÃNOT IN²Ù×÷·û£¬¿ÉÒÔ ......

oracleЭÒéÊÊÅäÆ÷´íÎóÊÇʲôԭÒò×ܽá

Ôì³ÉORA-12560: TNS: ЭÒéÊÊÅäÆ÷´íÎóµÄÎÊÌâµÄÔ­ÒòÓÐÈý¸ö£º
1.¼àÌý·þÎñûÓÐÆðÆðÀ´¡£windowsƽ̨¸öÒ»ÈçϲÙ×÷£º¿ªÊ¼---³ÌÐò---¹ÜÀí¹¤¾ß---·þÎñ£¬´ò¿ª·þÎñÃæ°å,Æô¶¯oraclehome92TNSlistener·þÎñ¡£
2.database instanceûÓÐÆðÆðÀ´¡£windowsƽ̨ÈçϲÙ×÷£º¿ªÊ¼---³ÌÐò---¹ÜÀí¹¤¾ß---·þÎñ£¬´ò¿ª·þÎñÃæ°å£¬Æô¶¯oracleserviceXXXX ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ