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

¼Ó¿ìOracleµÄ»Ø¹öËÙ¶È

ÎÊÌâÃèÊö
1¡¢Ó¦ÓÃÁ¬½ÓÊý¾ÝÒì³£»ºÂý£¬°üÀ¨¿Í»§¶ËʹÓÃplsqlÁ¬½Ó£»
2¡¢Êý¾Ý¿âÖ÷»úcpuÕ¼ÓÃÂʾӸ߲»Ï£¬IOдÈë¾Ó¸ß²»Ï¡£
3¡¢Ö÷»úÈÕ³£Î¬»¤²Ù×÷ÏìÓ¦Âý£¬Èçman»òw£»
·ÖÎöÎÊÌâ
Øϵͳ¼°oracleÓ¦ÓÃΪʲôÏìÓ¦Âý
1¡¢ÎªÊ²Ã´ÏµÍ³Á¬wÕâô¼òµ¥µÄ²Ù×÷¶¼»á¾õµÃ¿¨ÄØ£¿
2¡¢ÎªÊ²Ã´Ã»ÓÐÈκÎÓ¦ÓýÓÈëµÄÇé¿öÏ£¬Êý¾Ý¿â»áÓдóÁ¿µÄдÈë²Ù×÷ÄØ£¿
Top //²é¿´cpuʹÓÃÇé¿ö£¬·¢ÏÖiowait%Õ¼ÓÃÁË´óÁ¿µÄcpuʱ¼ä£»
Iostat –mx 2 100 ²é¿´diskʹÓÃÇé¿ö£¬·¢ÏÖ´ÅÅÌÀûÓÃÂʳ¤Ê±¼ä´¦ÓÚ100%״̬£»½«ÏµÍ³ÏìÓ¦Âý¶¨Î»ÔÚioÇëÇó¹ý¶àµ¼Ö¡££¨¹ØÓÚiostatµÄʹÓòμûman£©¡£
Øʲôµ¼Ö³öÏÖÈç´ËÖ®¶àµÄIOÇëÇóÄØ?
ÔÚ¹Û²ìºǫ́µÄ½ø³Ì£¬·¢ÏÖÓÐora_p000...ora_p015. ¹²16¸ö½ø³ÌÔÚÔËÐС£
ÎÒ»úÆ÷ÎïÀíÉÏ2¿ÅCPU£¬¹²ÓÐ8¸öcore £¨Cat /proc/cpuinfo¿ÉÒÔ¿´µ½»úÆ÷cpuÐÅÏ¢£©¡£ ÔËÐÐSqlplus “/as sysdba”½øÈësqlÃüÁîÐв鿴rollbackÏà¹Ø²ÎÊý£¬Show parameter rollback ¿´µ½FAST_START_PARALLEL_ROLLBACK = LOW£¬´Ë²ÎÊýΪĬÈÏÉèÖÃΪLOW£¬±íÃ÷²¢ÐÐÔËÐеĻعö½ø³ÌÓÐ2*number of cpu£¬ÔÚÎÒµÄϵͳ¸ÕºÃ±íÏÖΪ16¸ö½ø³Ì¡£ÓëÎÒʹÓÃps –ef | grep ora_p  ¿´µ½µÄora_p000_*0**µ½ora_p015_***½ø³Ì¶ÔÓ¦¡£
ØΪʲô»áÓÐÈç´Ë¶àµÄ»Ø¹ö½ø³Ì³öÏÖÄØ£¿
¾­¹ýѯÎÊÏîÄ¿×éÏà¹ØÈËÔ±£¬·¢ÏÖÓÐÈËÔÚÖ´ÐÐimpµ¼Èëʱ£¬ÊÖ¶¯ÖÕÖ¹ÁË¡£Äõ½¸ÃͬʵÄimpÓï¾äÒ»¿´Çå³þÁË£¬ÓÉÓÚµ¼ÈëµÄÊý¾ÝÁ¿½Ï´ó£¬ÓÖûÓÐÖðÐÐÌá½»£¨commit=y£©£¬Òì³£ÖÕÖ¹ºó²úÉú´óÁ¿µÄ»Ø¹ö¶¯×÷¡£
ػعöÂý²Ù×÷ΪʲôÂý£º
View $ORACLE_BASE/admin/$ORACLE_SID/bdump/alter_<ORACLE_SID>.log²é¿´oracle alertÈÕÖ¾£¬·¢ÏÖ´óÁ¿µÄCheckpoint not completed£¬±íÃ÷redoÎļþ×éÌ«ÉÙ£¬µ¼ÖÂLGWR½ø³ÌÔÚÇл»µ½ÐÂredo fileʱ£¬µÈ´ý¾ÉÊý¾ÝдÈë(dbwn)Êý¾ÝÎļþ£»
½â¾ö°ì·¨¾ÍÊÇÔö¼Óredo file ×飻
Alert database add logfile group 4(‘/u01/app/oracle/oradata/oracl/redo04.log’) size 100M;
Alert database add logfile group 5(‘/u01/app/oracle/oradata/oracl/redo05.log’) size 100M;
Alert database add logfile group 6(‘/u01/app/oracle/oradata/oracl/redo06.log’) size 100M;
¸ù¾ÝÐèÒª¿ÉÌí¼Ó¸ü¶àµÄredoÎļþ×é¡£
Select group#,members,status from v$log;·¢ÏÖÓÐinactive³öÏ־ͿÉÒÔÁË¡£Redo Îļþ´¦ÔÚactive״̬˵Ã÷redoÎļþ»¹Ã»Ð´ÈëÔÚÊý¾ÝÎļþÖУ¬Èô´ËʱLGWR switchÇл»µ½activeÎļþ£


Ïà¹ØÎĵµ£º

ORACLE ROWID

Ò».rowid¼ò½é
rowid¾ÍÊÇΨһ±êÖ¾¼Ç¼ÎïÀíλÖõÄÒ»¸öid£¬ÔÚoracle 8°æ±¾ÒÔÇ°£¬rowidÓÉfile#+block#+row#×é³É£¬Õ¼ÓÃ6¸öbytesµÄ¿Õ¼ä£¬10 bit µÄ file# £¬22bit µÄ block# £¬16 bit µÄ row#¡£
´Óoracle 8¿ªÊ¼rowid±ä³ÉÁËextend rowid£¬ÓÉdata_object_id#+rfile#+block#+row#×é³É£¬Õ¼ÓÃ10¸öbytesµÄ¿Õ¼ä£¬ 32bitµÄ data_object_ ......

OracleÊý¾Ýµ¼ÈëMySQL

 ## Oracle Êý¾Ýµ¼Èëµ½ Mysql ##                             
__________________________________________                                 ......

СÒéOracleÍâ¼üÔ¼ÊøÐÞ¸ÄÐÐΪ£¨Ò»£©

OracleµÄÍâ¼üÓÃÀ´ÏÞÖÆ×Ó±íÖвο¼µÄ×ֶεÄÖµ£¬±ØÐëÔÚÖ÷±íÖдæÔÚ¡£¶øÇÒÔÚÖ÷±íµÄ¼Ç¼·¢Éú±ä»¯µ¼ÖÂÍâ¼ü²Î¿¼Î¨Ò»Ô¼ÊøÖµ·¢ÉúÁ˱仯ʱ£¬¶¨ÒåÁËһϵÁеĶ¯×÷¡£ ÔÚSQL92±ê×¼Öж¨ÒåÁ˼¸ÖÖÍâ¼ü¸Ä±äºó£¬ÈçºÎ´¦Àí×Ó±í¼Ç¼µÄ¶¯×÷£¬ÆäÖаüÀ¨£º
ÏÞÖÆRestrict£ºÕâÖÖ·½Ê½²»ÔÊÐí¶Ô±»²Î¿¼µÄ¼Ç¼µÄ¼üÖµÖ´Ðиüлòɾ³ýµÄ²Ù×÷£»ÖÃΪ¿ÕSet to null ......

oracle exp/imp ×Ö·û¼¯

ʹÓÃultraedit32´ò¿ªµ¼³öµÄdmpÎļþ£¬ÎļþÄÚÈÝÒÔÊ®Áù½øÖÆÏÔʾÊý¾Ý£¬ÆäÖеڶþ¡¢Èý×Ö½ÚµÄÊý¾Ý¼Ç¼µÄÊÇ´ËÎļþµÄ×Ö·û¼¯¡£
ÀýÈ磺
03 54
½«Æäת»»Îª10½øÖÆ£¬ÖµÎª852£¬Ê¹ÓÃÃüÁî
select nls_charset_name(852) from dual
µÃµ½½á¹û
ZHS16GBK
µ±Ç°Ê¹ÓÃwinXP¼òÌåÖÐÎIJÙ×÷ϵͳ£¬Oracle¿Í»§¶ËĬÈÏ×Ö·û¼¯ÎªGBK¡£
´´½¨Êý¾Ý¿â£¬É趨 ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ