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±¸·Ý²ßÂÔ(ORACLE BACKUP STRATEGY)
2007Äê11ÔÂ02ÈÕ ÐÇÆÚÎå 16:03
¸ÅÒª
1¡¢Á˽âʲôÊDZ¸·Ý
2¡¢Á˽ⱸ·ÝµÄÖØÒªÐÔ
3¡¢Àí½âÊý¾Ý¿âµÄÁ½ÖÖÔËÐз½Ê½
4¡¢Àí½â²»Í¬µÄ±¸·Ý·½Ê½¼°ÆäÇø±ð
5¡¢Á˽âÕýÈ·µÄ±¸·Ý²ßÂÔ¼°ÆäºÃ´¦
Ò»¡¢Á˽ⱸ·ÝµÄÖØÒªÐÔ
¿ÉÒÔ˵£¬´Ó¼ÆËã»úϵͳ³öÊÀµÄÄÇÌìÆ𣬾ÍÓÐÁ˱¸·ÝÕâ¸ö¸ÅÄ ......
Íâ±í(external table)¾ÍÏñÆÕͨµÄ±í¶ÔÏñÒ»Ñù£¬¿ÉÒÔselectµÈ£¬Ö»ÊÇËüÊÇÖ»¶ÁµÄ£¬Êý¾Ý¿âÖÐÖ»±£´æÁ˱í½á¹¹µÄÃèÊö£¬±íÊý¾ÝȴûÓдæ·ÅÔÚÊý¾Ý¿âÄÚ£¬¶øÊÇ´æ·ÅÔÚÁËÎļþϵͳÉÏ¡£µ±Óû§Ï뿶ûʹÓÃÊý¾Ý¿âÍâµÄ½á¹¹»¯Êý¾Ýʱ£¬ÓÃÆðÍâ±íÀ´¾Í·Ç³£·½±ã£¬ÉõÖÁ±Èsqlldr¶¼Òª·½±ãµÄ¶à¡£ÔÚÕâƪÎÄÕÂÀÎÒÃÇΪ´ó¼ÒÑÝʾÁË
¡¡¡¡Èý²½¾ÍÕÆÎÕoracleÍâ±í¹ý ......
SqlServer,Oracle ³£Óú¯Êý±È½Ï
Êýѧº¯Êý£º
1.¾ø¶ÔÖµ
¡¡¡¡ Sql Server: SELECT abs(-1) value
¡¡¡¡ Oracle: SELECT abs(-1) value from dual
2.È¡Õû(´ó)
¡¡¡¡ Sql Server: SELECT ceiling(-1.001) value
¡¡¡¡ Oracle: SELECT ceil(-1.001) value from dual
3.È¡Õû£¨Ð¡£©
¡¡¡¡ Sql Server: SELECT f ......
Ò»¡¢Oracle PackageµÄ×÷ÓÃ
1¡¢¶¨ÒåÓë˵Ã÷
a. Ïà¹Ø¶ÔÏó£¨×Ô¶¨ÒåÀàÐÍ¡¢º¯Êý¡¢´æ´¢¹ý³ÌµÈ£©µÄ·â×°
b. ³ÌÐò°üµÄ¸÷²¿·Ö
- ³ÌÐò°ü¹æ¸ñ˵Ã÷
ÉùÃ÷×Ó³ÌÐò
- ³ÌÐò°üÖ÷Ìå
&n ......
Òì»ú»Ö¸´¹ý³Ì£º
ÔÚrman>run
{
allocate channel ch00 type 'sbt_tape' parms="ENV=(NB_ORA_CLIENT=zjddms1)";
set newname for datafile 1 to '/oradata/zjdms/1.dbf';
......
set newname for datafile 23 to '/oradata/test/23.dbf';
set newname for datafile 24 to '/oradata/test/24.dbf';
restore databas ......