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

ÉîÈëÁ˽âoracleµÄ¸ßˮ루HWM£©

˵µ½HWM,ÎÒÃÇÊ×ÏÈÒª¼òÒªµÄ̸̸ORACLEµÄÂß¼­´æ´¢¹ÜÀí.ÎÒÃÇÖªµÀ,ORACLEÔÚÂß¼­´æ´¢ÉÏ·Ö4¸öÁ£¶È:±í¿Õ¼ä,¶Î,ÇøºÍ¿é.
(1)¿é:ÊÇÁ£¶È×îСµÄ´æ´¢µ¥Î»,ÏÖÔÚ±ê×¼µÄ¿é´óСÊÇ8K,ORACLEÿһ´ÎI/O²Ù×÷Ò²ÊÇ°´¿éÀ´²Ù×÷µÄ,Ò²¾ÍÊÇ˵µ±ORACLE´ÓÊý¾ÝÎļþ¶ÁÊý¾Ýʱ,ÊǶÁÈ¡¶àÉÙ¸ö¿é,¶ø²»ÊǶàÉÙÐÐ.
(2)Çø:ÓÉһϵÁÐÏàÁڵĿé¶ø×é³É,ÕâÒ²ÊÇORACLE¿Õ¼ä·ÖÅäµÄ»ù±¾µ¥Î»,¾Ù¸öÀý×ÓÀ´Ëµ,µ±ÎÒÃÇ´´½¨Ò»¸ö±íPM_USERʱ,Ê×ÏÈ ORACLE»á·ÖÅäÒ»ÇøµÄ¿Õ¼ä¸øÕâ¸ö±í,Ëæ×Ų»¶ÏµÄINSERTÊý¾Ýµ½PM_USER,Ô­À´µÄÕâ¸öÇøÈݲ»Ï²åÈëµÄÊý¾Ýʱ,ORACLEÊÇÒÔÇøΪµ¥Î»½øÐÐÀ©Õ¹µÄ,Ò²¾ÍÊÇ˵ÔÙ·ÖÅä¶àÉÙ¸öÇø¸øPM_USER,¶ø²»ÊǶàÉÙ¸ö¿é.
(3)¶Î:ÊÇÓÉһϵÁеÄÇøËù×é³É,Ò»°ãÀ´Ëµ,µ±´´½¨Ò»¸ö¶ÔÏóʱ(±í,Ë÷Òý),¾Í»á·ÖÅäÒ»¸ö¶Î¸øÕâ¸ö¶ÔÏó.ËùÒÔ´ÓijÖÖÒâÒåÉÏÀ´Ëµ,¶Î¾ÍÊÇijÖÖÌض¨µÄÊý¾Ý.ÈçCREATE TABLE PM_USER,Õâ¸ö¶Î¾ÍÊÇÊý¾Ý¶Î,¶øCREATE INDEX ON PM_USER(NAME),ORACLEͬÑù»á·ÖÅäÒ»¸ö¶Î¸øÕâ¸öË÷Òý,µ«ÕâÊÇÒ»¸öË÷Òý¶ÎÁË.²éѯ¶ÎµÄÐÅÏ¢¿ÉÒÔͨ¹ýÊý¾Ý×Öµä: SELECT * from USER_SEGMENTSÀ´»ñµÃ,
(4)±í¿Õ¼ä:°üº¬¶Î,Çø¼°¿é.±í¿Õ¼äµÄÊý¾ÝÎïÀíÉÏ´¢´æÔÚÆäËùÔÚµÄÊý¾ÝÎļþÖÐ.Ò»¸öÊý¾Ý¿âÖÁÉÙÒªÓÐÒ»¸ö±í¿Õ¼ä.
OK,ÎÒÃÇÏÖÔڻص½HWMÉÏÀ´,ÄÇô,ʲôÊǸßˮλ±ê¼ÇÄØ?Õâ¾Í¸úORACLEµÄ¶Î¿Õ¼ä¹ÜÀíÏà¹ØÁË.
(Ò»)ORACLEÓÃHWMÀ´½ç¶¨Ò»¸ö¶ÎÖÐʹÓõĿéºÍδʹÓõĿé.
¾Ù¸öÀý×ÓÀ´Ëµ,µ±ÎÒÃÇ´´½¨Ò»¸ö±í:PT_SCHE_DETAILʱ,ORACLE¾Í»áΪÕâ¸ö¶ÔÏó·ÖÅäÒ»¸ö¶Î.ÔÚÕâ¸ö¶ÎÖÐ,¼´Ê¹ÎÒÃÇδ²åÈëÈκμǼ,Ò²ÖÁÉÙÓÐÒ»¸öÇø±»·ÖÅä,µÚÒ»¸öÇøµÄµÚÒ»¸ö¿é¾Í³ÆΪ¶ÎÍ·(SEGMENT HEADE),¶ÎÍ·Öоʹ¢´æÁËһЩÐÅÏ¢,»ùÖÐHWMµÄÐÅÏ¢¾Í´æ´¢ÔÚ´Ë.´Ëʱ,ÒòΪµÚÒ»¸öÇøµÄµÚÒ»¿éÓÃÓÚ´æ´¢¶ÎÍ·µÄһЩÐÅÏ¢,ËäȻûÓд洢ÈκÎʵ¼ÊµÄ¼Ç¼, µ«Ò²ËãÊDZ»Ê¹ÓÃ,´ËʱHWMÊÇλÓÚµÚ2¸ö¿é.µ±ÎÒÃDz»¶Ï²åÈëÊý¾Ýµ½PM_USERºó,µÚ1¸ö¿éÒѾ­·Å²»ÏºóÃæвåÈëµÄÊý¾Ý,´Ëʱ,ORACLE½«¸ßˮλ֮ÉϵĿéÓÃÓÚ´æ´¢ÐÂÔöÊý¾Ý,ͬʱ,HWM±¾ÉíÒ²ÏòÉÏÒÆ.Ò²¾ÍÊÇ˵,µ±ÎÒÃDz»¶Ï²åÈëÊý¾Ýʱ,HWM»áÍù²»¶ÏÉÏÒÆ,ÕâÑù,ÔÚHWM֮ϵÄ,¾Í±íʾʹÓùýµÄ¿é,HWMÖ®ÉϵľͱíʾÒÑ·ÖÅ䵫´ÓδʹÓùýµÄ¿é.
(¶þ)HWMÔÚ²åÈëÊý¾Ýʱ,µ±ÏÖÓпռ䲻×ã¶ø½øÐпռäµÄÀ©Õ¹Ê±»áÏòÉÏÒÆ,µ«É¾³ýÊý¾Ýʱ²»»áÍùÏÂÒÆ.
Õâ¾ÍºÃ±ÈÊÇË®¿âµÄˮλ,µ±ÕÇˮʱ,ˮλÍùÉÏÒÆ,µ±Ë®Í˳öºó,×î¸ßˮλµÄºÛ¼£»¹ÊÇÇåäÀ¿É¼û.
¿¼ÂÇÈÃÎÒÃÇ¿´Ò»¸ö¶Î£¬ÈçÒ»ÕÅ±í£¬ÆäÖÐÌîÂúÁ˿飬Èçͼ 1 Ëùʾ¡£ÔÚÕý³£²Ù×÷¹ý³ÌÖУ¬É¾³ýÁËһЩÐУ¬Èçͼ 2 Ëùʾ¡£ÏÖÓоÍÓÐÁËÐí¶àÀ˷ѵĿռ䣺(I) ÔÚ±íµÄÉÏÒ»¸öÄ©¶ËºÍÏÖÓеĿéÖ®¼


Ïà¹ØÎĵµ£º

oracleÖзÖÒ³µÄʵÏÖ·½Ê½.rownumµÄʹÓÃ

¶ÔÓÚrownumÀ´ËµËüÊÇoracleϵͳ˳Ðò·ÖÅäΪ´Ó²éѯ·µ»ØµÄÐеıàºÅ£¬·µ»ØµÄµÚÒ»ÐзÖÅäµÄÊÇ1£¬µÚ¶þÐÐÊÇ2£¬ÒÀ´ËÀàÍÆ£¬Õâ¸öα×ֶοÉÒÔÓÃÓÚÏÞÖƲéѯ·µ»ØµÄ×ÜÐÐÊý£¬¶øÇÒrownum²»ÄÜÒÔÈκαíµÄÃû³Æ×÷Ϊǰ׺¡£
 ¾ÙÀý˵Ã÷£º
ÀýÈç±í£ºstudent(ѧÉú)±í£¬±í½á¹¹Îª£º
ID¡¡¡¡¡¡    char(6)¡¡¡¡¡¡¡¡¡¡ --ѧºÅ
name¡¡¡¡ ......

oracle uptimeµÄbug

Ö¢×´£ºoracle sqlplusû·´Ó¦
oracle10gµÄÓÐÊ®¼¸¸ö»úÆ÷¿Í»§¶Ë10.2.0.1.0£¬Ö´ÐÐsqlplusÕâ¸öÃüÁîû·´Ó³¡£´ËʱcpuʹÓÃΪ99.9%£¬¹Û²ìÁËÒ»»á£¬²»ÊÍ·Å¡£
oracleÆäËûÃüÁºÃʹ¡£
»·¾³±äÁ¿¡¢ping tnsnameµÈ¶¼Ã»ÎÊÌâ¡£¡£ÇÒÕâЩ»úÆ÷¶¼ÊÇÖÁÉÙÔËÐÐÁË200¶àÌì×óÓÒ£¬
µ«Ò»µ©ÖØÆôOS¾ÍºÃʹÁË¡£¡£
»òÕß²»ÖØÆôOS£¬»»³É9iµÄ¿Í»§¶Ë£¬sqlplus ......

Oracle 11g °²×°


¶ÔÓÚOracle£¬±ÊÕßÒ²ÊÇÒ»¸ö³õѧÕߣ¬ÈçÎÄÕÂÖеIJ»×ãÖ®´¦»¹Çë¸÷λÍøÓÑÖ¸Õý
     ÏÂÃæÎÒÃÇ¿ªÊ¼°²×°Oracle£¬ÔÚ°²×°Ö®Ç°£¬ÎÒÃÇÏÈÀ´ÁгöһЩÔÚ°²×°OracleÊý¾Ý¿âʱÐèҪעÒâµÄÊÂÏOracle°²×°³ÌÐò£¨OUI£©²»Ö§³Ö×Ö·û½çÃæ°²×°£¬Òò´Ë°²×°·þÎñÆ÷±ØÐëÓÐX windowsÖ§³Ö ÏÂÃæÊÇÎÒ°²×°OracleÊý¾Ý¿âµÄϵͳÐÅÏ¢
²Ù×÷ϵ ......

Oracleº¯Êýmerge

°ÑÊý¾Ý´ÓÒ»¸ö±í¸´ÖƵ½ÁíÒ»¸ö±í£¬²åÈëÐÂÊý¾Ý»òÌæ»»µôÀÏÊý¾ÝÊÇÿһ¸öORACLE DBA¶¼»á¾­³£Åöµ½µÄÎÊÌâ¡£ÔÚORACLE9iÒÔÇ°µÄÄê´ú£¬ÎÒÃÇÒªÏȲéÕÒÊÇ·ñ´æÔÚÀÏÊý¾Ý£¬Èç¹ûÓÐÓÃUPDATEÌæ»»£¬·ñÔòÓÃINSERTÓï¾ä²åÈ룬Æä¼äÉÙ²»ÁË»¹ÓÐһЩ±ê¼Ç±äÁ¿µÈµÈ£¬·±ËöµÄºÜ¡£ÏÖÔÚORACLE9iרΪÕâÖÖÇé¿öÌṩÁËMERGEÓï¾ä£¬Ê¹ÕâÒ»¹¤×÷±äµÃÒì³£ÇáËÉ£¬
MERGEÓï ......

oracleʵÀýÃû¡¢Êý¾Ý¿âÃûÓë·þÎñÃûµÄÀí½â

ʵÀýÃû£¨instance_name£©£¬Ò»¸öÓÃÓÚÊý¾Ý¿âºÍ²Ù×÷ϵͳ֮¼äͨÐŵıêÖ¾£¬Êý¾Ý¿âºÍ²Ù×÷ϵͳ֮¼äÒª½øÐн»»¥ÓõľÍÊÇʵÀýÃû£¬ÊµÀýÃû¿ÉÒÔºÍÊý¾Ý¿âÃûÏàͬ£¬Ò»»áÔÙ˵Êý¾Ý¿âÃû£¬Ò»°ãÒ»¸öÊý¾Ý¿âÃû¶ÔÓ¦Ò»¸öʵÀýÃû£¬Ò»¶ÔÒ»¹Øϵ£¬µ«ÔÚoracleµÄ¼¯ÈºÓ¦ÓÃÖУ¬Êý¾Ý¿âÃûºÍʵÀýÃû¾ÍÊÇÒ»¶Ô¶àµÄ¹ØϵÁË¡£
¡¡¡¡²é¿´ÊµÀýÃû£ºselect instance_name fr ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ