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

oracle wait event:cursor: pin S wait on X

oracle wait event:cursor: pin S wait on X
cursor: pin S wait on XµÈ´ýʼþµÄ´¦Àí¹ý³Ì
http://database.ctocio.com.cn/tips/114/8263614_1.shtml
cursor: pin S wait on XµÈ´ý£¡
http://www.itpub.net/viewthread.php?tid=1003340
½â¾öcursor: pin S wait on X ÓÐʲôºÃ°ì·¨:
http://www.itpub.net/thread-1163543-1-8.html
cursor: pin S wait on X:
http://space.itpub.net/756652/viewspace-348176
cursor: pin S:
http://yumianfeilong.com/html/2008/11/01/254.html
OTNµÄ½âÊÍ,
cursor: pin SA session waits on this event when it wants to update a shared mutex pin and another session is currently in the process of updating a shared mutex pin for the same cursor object. This wait event should rarely be seen because a shared mutex pin update is very fast.(Wait Time: Microseconds)
Parameter Description
P1 Hash value of cursor
P2 Mutex value (top 2 bytes contains SID holding mutex in exclusive mode, and bottom two bytes usually hold the value 0)
P3 Mutex where (an internal code locator) OR’d with Mutex Sleeps
Oracle10gÖÐÒýÓõÄmutexes»úÖÆÒ»¶¨³Ì¶ÈµÄÌæ´úÁËlibrary cache pin£¬Æä½á¹¹¸ü¼òµ¥£¬get&setµÄÔ­×Ó²Ù×÷¸ü¿ì½Ý¡£
ËüÏ൱ÓÚ£¬Ã¿¸öchild cursorÏÂÃæ¶¼ÓÐÒ»¸ömutexesÕâÑùµÄ¼òµ¥ÄÚ´æ½á¹¹£¬µ±ÓÐsessionÒªÖ´ÐиÃSQL¶øÐèÒªpin cursor²Ù×÷µÄʱºò£¬sessionÖ»ÐèÒªÒÔsharedģʽsetÕâ¸öÄÚ´æÎ»+1£¬±íʾsession»ñµÃ¸ÃmutexµÄshared mode lock.¿ÉÒÔÓкܶàsessionͬʱ¾ßÓÐÕâ¸ömutexµÄshared mode lock£»µ«ÔÚͬһʱ¼ä£¬Ö»ÄÜÓÐÒ»¸ösessionÔÚ²Ù×÷Õâ¸ömutext +1»òÕß-1¡£+1 -1µÄ²Ù×÷ÊÇÅÅËüÐÔµÄÔ­×Ó²Ù×÷¡£Èç¹ûÒòΪsession²¢ÐÐÌ«¶à£¬¶øµ¼ÖÂij¸ösessionÔڵȴýÆäËûsessionµÄmutext +1/-1²Ù×÷,Ôò¸ÃsessionÒªµÈ´ýcursor: pin SµÈ´ýʼþ¡£
µ±¿´µ½ÏµÍ³ÓкܶàsessionµÈ´ýcursor: pin SʼþµÄʱºò£¬ÒªÃ´ÊÇCPU²»¹»¿ì£¬ÒªÃ´ÊÇij¸öSQLµÄ²¢ÐÐÖ´ÐдÎÊýÌ«¶àÁ˶øµ¼ÖÂÔÚchild cursorÉϵÄmutex²Ù×÷ÕùÓá£Èç¹ûÊÇCapacityµÄÎÊÌ⣬Ôò¿ÉÒÔÉý¼¶Ó²¼þ¡£Èç¹ûÊÇÒòΪSQLµÄ²¢ÐÐÌ«¶à£¬ÔòҪôÏë°ì·¨½µµÍ¸ÃSQLÖ´ÐдÎÊý£¬ÒªÃ´½«¸ÃSQL¸´ÖƳÉN¸öÆäËüµÄSQL¡£
select /*SQL 1*/object_name from t where object_id=?
select /*SQL 2*/object_name from t where object_id=?
select /*SQL …*/object_name from


Ïà¹ØÎĵµ£º

oracle µÝ¹é²éѯ


Start with...Connect By×Ó¾äµÝ¹é²éѯһ°ãÓÃÓÚÒ»¸ö±íά»¤Ê÷ÐνṹµÄÓ¦Óá£
´´½¨Ê¾Àý±í£º
CREATE TABLE TBL_TEST
(
  ID    NUMBER,
  NAME  VARCHAR2(100 BYTE),
  PID   NUMBER             &nbs ......

Oracle 10.2.0.3 Patch°²×°

      Oracle 10.2.0.1µÄPatchµµÖð½¥ÐγÉÁ˼Ò×åÌåϵÁË,ÏÖÔÚÈôó¼ÒÀ´ÈÏʶһÏÂÕâ¸öÌåϵ°É!µ½Ä¿Ç°Ëù·¢²¼µÄÖ÷ÒªµÄPatchÓÐ10.2.0.2,10.2.0.3,10.2.0.4,10.2.0.4.1,10.2.0.4.2,10.2.0.4.3,10.2.0.5.
      ֮ǰÔÚ32λºÍ64λLinuxϰ²×°Á˽ÏΪÎȶ¨µÄOracle 10G for Linux x86º ......

Oracle TRANSLATEÓ÷¨

Óï·¨£ºTRANSLATE(expr,from,to)
expr: ´ú±íÒ»´®×Ö·û£¬from Óë to ÊÇ´Ó×óµ½ÓÒÒ»Ò»¶ÔÓ¦µÄ¹ØÏµ£¬Èç¹û²»ÄܶÔÓ¦£¬ÔòÊÓΪ¿ÕÖµ¡£
¾ÙÀý£º
select translate('abcbbaadef','ba','#@') from dual¡¡£¨b½«±»££Ìæ´ú£¬a½«±»£ÀÌæ´ú£©
select translate('abcbbaadef','bad','#@') from dual¡¡£¨b½«±»££Ìæ´ú£¬a½«±»£ÀÌæ´ú£¬d¶ÔÓ¦µÄÖµÊÇ¿Õ ......

oracleʵÏÖºº×Ö°´ÕÕÆ´Òô¡¢±Ê»­ºÍ²¿Ê×ÅÅÐò

oracleʵÏÖºº×Ö°´ÕÕÆ´Òô¡¢±Ê»­ºÍ²¿Ê×ÅÅÐò
ÕÒÁËÏà¹ØµÄһЩ×ÊÁÏ£¬¶¼ËµµÄ²»ÊǺÜÇå³þ£¬×Ô¼ºÒ²Ñо¿ÁËÏ£¬ÖÕÓÚ¸ãÃ÷°×ÁË£¬Ï£Íû¶Ô´ó¼ÒÓаïÖú¡£
ÐèҪ˵Ã÷µÄÊÇÏÂÃæµÄ·½·¨ÐèÒªORACLE9iºÍÒÔÉϵİ汾²ÅÖ§³Ö¡£
Oracle9i֮ǰ£¬ÖÐÎÄÊǰ´ÕÕ¶þ½øÖƱàÂë½øÐÐÅÅÐòµÄ¡£
ÔÚoracle9iÖÐÐÂÔöÁ˰´ÕÕÆ´Òô¡¢²¿Êס¢±Ê»­ÅÅÐò¹¦ÄÜ¡£ÉèÖÃNLS_SORTÖµ
......

oracle wait event:PX Deq Credit: send blkd

Just a few days ago a got to two Oracle DBAs discussing why the have so much “PX Deq Credit : send blkd” on a system. And if that is causing their performance problems.
The are some blog on the internet claiming it has to do with qc distribution and what ever.
But in many cases, especi ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ