eygle.com   eygle.com
eygle.com eygle
eygle.com  
 

« Oracle Mutex 等待事件之: cursor pin S | Blog首页 | Oracle Mutex 等待事件之: cursor: mutex S »

Oracle Mutex 等待事件之: cursor pin X
modb.pro

在 Oracle 官方文档,关于 cursor pin X 等待事件的说明是:

A session waits on this event when it is requesting an exclusive mutex pin for a cursor object and it must wait because the resource is busy. The mutex pin for a cursor object can be busy either because a session is already holding it exclusive, or there are one or more sessions which are holding shared mutex pin(s). The exclusive waiter must wait until all holders of the pin for that cursor object have released it, before it can be granted. Wait Time: Microseconds

翻译过来就是:

当一个会话对一个 cursor 对象请求 排他模式的 Mutex pin 时,因为该对象已有 X 或者 S 模式的 Mutex pin 存在,所以必须处于等待。直至所有 X 或 S 模式的 pin 被释放后,才能够获得 X pin。

cursor pin X 等待有三个参数,第一个参数就是 cursor 的 hash value。

ParameterDescription

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


需要对 Cursor 执行 Pin X 的操作包括:

  • 会话在某些串行化操作时需要获得 X 模式的 Pin,例如构建一个子游标;
  • 在Cursor 上执行排他操作,如 dbms_shared_pool.purge, keep/unkeep 等;
  • 一个或多个进程正在reference 该Mutex (shared mutex pin)


历史上的今天...
    >> 2013-07-05文章:
    >> 2009-07-05文章:
    >> 2007-07-05文章:
    >> 2006-07-05文章:

By eygle on 2017-07-05 22:29 | Comments (0) | FAQ | 3256 |


CopyRight © 2004~2020 云和恩墨,成就未来!, All rights reserved.
数据恢复·紧急救援·性能优化 云和恩墨 24x7 热线电话:400-600-8755 业务咨询:010-59007017-7040 or 7037 业务合作: marketing@enmotech.com