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ÈëÃÅÊé¼®ÍƼö
ºÜ¶àÅóÓÑÒªÎÒ°ïæÍƼöÒ»ÏÂOracleµÄÈëÃÅÊé¼®£¬Äܹ»Á˽âOracleµÄ»ù±¾¸ÅÄî¡¢»ù±¾ÖªÊ¶µÄÄÇÖÖ¡£
ÎÒ¾ÍÃâΪÆäÄÑ£¬ÍƼö¼¸±¾¡£
Ê×ÏÈÎÒÏëÇ¿µ÷µÄÒ»µãÊÇ£¬ÈκÎÒ»±¾ÏµÍ³µÄOracleÊé¼®Ö»ÒªÈÏÕæ¶ÁÏÂÀ´£¬¶¼»áÓв»´íµÄÊÕ»ñ£¬¶ÁÊé×î¼É»äµÄÊÇ»¢Í·Éßβ£¬Ç³³¢ÔòÖ¹¡£
1.µÚÒ»±¾ÒªÍƼö¸ø´ó¼ÒµÄÊÇOracleµÄ¸ÅÄîÊֲᣬÕâ±¾ÊÖ²á ......
1¡¢µ÷ÕûĬÈϵݲȫÉèÖÃ
1.1¡¢Ä¬ÈϵÄÓû§
²é¿´Êý¾Ý¿âµÄÓû§ºÍ״̬£¬¿ÉÒÔ²éѯDBA_USERSÊÓͼ¡£
?[Copy to clipboard]View Code SQL
SQL> select username,account_status from dba_users;
1.2¡¢PUBLICȨÏÞ
OracleÖдæÔÚÒ»¸öÃûΪPUBLICµÄαÓû§¡£Ö»ÒªÓÃPUBLICÊÚÓèij¸öȨÏÞ£¬ÄÇôËùÓÐÓû§¶¼»á±»ÊÚÓèÕâ¸öȨÏÞ¡£
?[Copy ......
OracleÖÐTO_DATE¸ñʽ
url:http://www.cnblogs.com/ajian/archive/2009/03/25/1421063.html
TO_DATE¸ñʽ(ÒÔʱ¼ä:2007-11-02 13:45:25ΪÀý)
Year:
yy two digits Á½ ......
֮ǰ¸ø´ó¼Ò½éÉÜÁËÔÚWIN7ÉÏOracle 10gµÄ°²×°·½·¨£¬½ÓÏÂÀ´¾Í¸Ã¸ø´ó¼Ò½éÉÜËüµÄжÔØ·½·¨ÁË¡£ºÜ¶àÈ˲»¸Ò°²×°Oracle¾ÍÊǵ£ÐÄ°²×°ºó»áжÔز»¸É¾»£¬Æäʵµ±³õÎÒÒ²ÓйýÕâ¸ö¹ËÂÇ£¬ºÇºÇ¡£µ«ºóÀ´·¢ÏÖ£¬ÆäʵжÔØÊǺÜÈÝÒ×µÄÊ¡£¾Í¼¸²½¶øÒÑ£¬²»ÐžÍÇë¿´£º
¿ÉÒÔʹÓòúÆ·×Ô´øµÄжÔع¤¾ßȥжÔØ¡£
1£® ......
ÔÙWindows XPÉÏдºÃµÄASP.NETÓ¦ÓóÌÐò²¿Êðµ½IISÉÏ,Á¬½Ó²»ÉÏOracle10gÊý¾Ý¿â,Ìáʾ£º
System.Data.OracleClient Requires oracle client software version 8.1.7 or greater¡£
ÒòΪÔÚµ÷ÊÔ»·¾³ÊÇ¿ÉÒÔÁ¬½ÓÉϵÄ,ËùÒÔ¿¼ÂÇ¿ÉÄÜÊÇIISȨÏÞÉèÖÃÎÊÌâ¡£
ÊÔ׎«ASP.NETÓû§Ìí¼Óµ½ÁËAdministrator×éÖС£½á¹ûÁ¬½Ó³É¹¦¡£ ......