Enqueue waits events usually causes problems in busy Oracle
databases. But oracle online document only have some of them until
11gR2, not sure why.
In Oracle Database 10g Release 1, each enqueue type is represented by its own wait event, making it much easier to understand exactly what type of enqueue the session is waiting for. You do not need to decipher the values from the P1, P2, P3, P1RAW, P2RAW, and P3RAW columns in the V$SESSION_WAIT or the V$SESSION view.
The following table lists all the enqueue waits in Oracle Database 10g Release 1 and describes what the enqueue is for. This information is available in the X$KSQST structure. The aggregated statistics for each of these enqueue types is displayed by the view V$ENQUEUE_STAT.
types is displayed by the view V$ENQUEUE_STAT.
We can get the description of p1, p2 and p3 at v$event_name. You can also get them from p1text, p2text and p3text from v$session if the event is happening right now.
For the P1 values which is “name|mode”, we can decode it like this:
Reference : Oracle Wait Interface: A Practical Guide to Performance Diagnostics & Tuning
https://alexzeng.wordpress.com/2013/07/16/enqueue-waits-in-oracle-database-10g/
In Oracle Database 10g Release 1, each enqueue type is represented by its own wait event, making it much easier to understand exactly what type of enqueue the session is waiting for. You do not need to decipher the values from the P1, P2, P3, P1RAW, P2RAW, and P3RAW columns in the V$SESSION_WAIT or the V$SESSION view.
The following table lists all the enqueue waits in Oracle Database 10g Release 1 and describes what the enqueue is for. This information is available in the X$KSQST structure. The aggregated statistics for each of these enqueue types is displayed by the view V$ENQUEUE_STAT.
types is displayed by the view V$ENQUEUE_STAT.
We can get the description of p1, p2 and p3 at v$event_name. You can also get them from p1text, p2text and p3text from v$session if the event is happening right now.
NAME | PARAMETER1 | PARAMETER2 | PARAMETER3 |
enq: AD – allocate AU | name|mode | group and disk number | AU number |
enq: AD – deallocate AU | name|mode | group and disk number | AU number |
enq: AF – task serialization | name|mode | task id | 0 |
enq: AG – contention | name|mode | workspace # | generation |
enq: AM – client registration | name|mode | id1 | id2 |
enq: AM – rollback COD reservation | name|mode | id1 | id2 |
enq: AM – shutdown | name|mode | id1 | id2 |
enq: AO – contention | name|mode | workspace # | object # |
enq: AS – modify service | name|mode | 0 | 0 |
enq: AS – service activation | name|mode | 0 | 0 |
enq: AT – contention | name|mode | 0 | 0 |
enq: AU – audit index file | name|mode | XML audit index file | 0 |
enq: AW – AW generation lock | name|mode | operation | workspace # |
enq: AW – AW state lock | name|mode | operation | workspace # |
enq: AW – AW$ table lock | name|mode | operation | workspace # |
enq: AW – user access for AW | name|mode | operation | workspace # |
enq: BF – PMON Join Filter cleanup | name|mode | node#/parallelizer# | bloom# |
enq: BF – allocation contention | name|mode | node#/parallelizer# | bloom# |
enq: BR – file shrink | name|mode | operation | file # |
enq: BR – proxy-copy | name|mode | operation | file # |
enq: CF – contention | name|mode | 0 | operation |
enq: CI – contention | name|mode | opcode | type |
enq: CL – compare labels | name|mode | object # | 0 |
enq: CL – drop label | name|mode | object # | 0 |
enq: CM – gate | name|mode | disk group # | type |
enq: CM – instance | name|mode | disk group # | type |
enq: CN – race with init | name|mode | reg id | 0 |
enq: CN – race with reg | name|mode | reg id | 0 |
enq: CN – race with txn | name|mode | reg id | 0 |
enq: CT – CTWR process start/stop | name|mode | operation | operation parm |
enq: CT – change stream ownership | name|mode | operation | operation parm |
enq: CT – global space management | name|mode | operation | operation parm |
enq: CT – local space management | name|mode | operation | operation parm |
enq: CT – reading | name|mode | operation | operation parm |
enq: CT – state | name|mode | operation | operation parm |
enq: CT – state change gate 1 | name|mode | operation | operation parm |
enq: CT – state change gate 2 | name|mode | operation | operation parm |
enq: CU – contention | name|mode | handle | handle |
enq: DB – contention | name|mode | EnqMode | 0 |
enq: DD – contention | name|mode | disk group | type |
enq: DF – contention | name|mode | 0 | file # |
enq: DG – contention | name|mode | disk group | type |
enq: DL – contention | name|mode | object # | 0 |
enq: DM – contention | name|mode | type | type |
enq: DN – contention | name|mode | 0 | 0 |
enq: DP – contention | name|mode | 0 | 0 |
enq: DR – contention | name|mode | 0 | 0 |
enq: DS – contention | name|mode | 0 | 0 |
enq: DT – contention | name|mode | 0 | 0 |
enq: DV – contention | name|mode | object # | 0 |
enq: DX – contention | name|mode | transaction entry # | 0 |
enq: FA – access file | name|mode | disk group number | file number |
enq: FB – contention | name|mode | tablespace # | dba |
enq: FC – open an ACD thread | name|mode | disk group | thread |
enq: FC – recover an ACD thread | name|mode | disk group | thread |
enq: FD – Flashback coordinator | name|mode | Internal | Internal |
enq: FD – Flashback on/off | name|mode | Internal | Internal |
enq: FD – Marker generation | name|mode | Internal | Internal |
enq: FD – Restore point create/drop | name|mode | Internal | Internal |
enq: FD – Tablespace flashback on/off | name|mode | Internal | Internal |
enq: FG – FG redo generation enq race | name|mode | disk group | type |
enq: FG – LGWR redo generation enq race | name|mode | disk group | type |
enq: FG – serialize ACD relocate | name|mode | disk group | type |
enq: FL – Flashback database log | name|mode | Log # | zero |
enq: FL – Flashback db command | name|mode | Log # | zero |
enq: FM – contention | name|mode | 0 | 0 |
enq: FP – global fob contention | name|mode | low file obj add | high file obj add |
enq: FR – contention | name|mode | disk group | unused |
enq: FS – contention | name|mode | 0 | type |
enq: FT – allow LGWR writes | name|mode | disk group | thread |
enq: FT – disable LGWR writes | name|mode | disk group | thread |
enq: FU – contention | name|mode | 0 | 0 |
enq: HD – contention | name|mode | disk group | 0 |
enq: HP – contention | name|mode | tablespace # | dba |
enq: HQ – contention | name|mode | object # | hash value |
enq: HV – contention | name|mode | object # | 0 |
enq: HW – contention | name|mode | table space # | block |
enq: IA – contention | name|mode | 0 | 0 |
enq: ID – contention | name|mode | 0 | 0 |
enq: IL – contention | name|mode | object # | 0 |
enq: IM – contention for blr | name|mode | pool # | 0 |
enq: IR – contention | name|mode | 0 | 0/1 |
enq: IR – contention2 | name|mode | 0 | 0/1 |
enq: IS – contention | name|mode | 0 | type |
enq: IT – contention | name|mode | object # | 0 |
enq: JD – contention | name|mode | 0 | 0 |
enq: JI – contention | name|mode | view object # | 0 |
enq: JQ – contention | name|mode | 0 | 0 |
enq: JS – contention | name|mode | service ID | queue type |
enq: JS – evt notify | name|mode | service ID | queue type |
enq: JS – evtsub add | name|mode | service ID | queue type |
enq: JS – evtsub drop | name|mode | service ID | queue type |
enq: JS – job recov lock | name|mode | service ID | queue type |
enq: JS – job run lock – synchronize | name|mode | service ID | queue type |
enq: JS – q mem clnup lck | name|mode | service ID | queue type |
enq: JS – queue lock | name|mode | service ID | queue type |
enq: JS – sch locl enqs | name|mode | service ID | queue type |
enq: JS – wdw op | name|mode | service ID | queue type |
enq: KK – context | name|mode | 0 | redo thread |
enq: KM – contention | name|mode | type | type |
enq: KO – fast object checkpoint | name|mode | 2 | 0 |
enq: KP – contention | name|mode | 0 | 0 |
enq: KT – contention | name|mode | plan # | 0 |
enq: MD – contention | name|mode | master object # | 0 |
enq: MH – contention | name|mode | 0 | 0 |
enq: MK – contention | name|mode | 0 | 0 |
enq: ML – contention | name|mode | 0 | 0 |
enq: MN – contention | name|mode | session ID | 0 |
enq: MO – contention | name|mode | 0 | 0 |
enq: MR – contention | name|mode | 0 or file # | type |
enq: MS – contention | name|mode | master object # | 0 |
enq: MW – contention | name|mode | Schedule Id | 0 |
enq: OC – contention | name|mode | 1 | 2 |
enq: OL – contention | name|mode | hash value | 0 |
enq: OQ – xsoq*histrecb | name|mode | resource id | 0 |
enq: OQ – xsoqhiAlloc | name|mode | resource id | 0 |
enq: OQ – xsoqhiClose | name|mode | resource id | 0 |
enq: OQ – xsoqhiFlush | name|mode | resource id | 0 |
enq: OQ – xsoqhistrecb | name|mode | resource id | 0 |
enq: OW – initialization | name|mode | 0 | 0 |
enq: OW – termination | name|mode | 0 | 0 |
enq: PD – contention | name|mode | property name | key hash |
enq: PE – contention | name|mode | parno | 0 |
enq: PF – contention | name|mode | 0 | 0 |
enq: PG – contention | name|mode | 0 | 0 |
enq: PH – contention | name|mode | 0 | 0 |
enq: PI – contention | name|mode | operation | serial # |
enq: PL – contention | name|mode | 0 | 0 |
enq: PR – contention | name|mode | 0 | 0 |
enq: PS – contention | name|mode | instance | slave ID |
enq: PT – contention | name|mode | disk group # | type |
enq: PV – syncshut | name|mode | 0 | 0 |
enq: PV – syncstart | name|mode | 0 | 0 |
enq: PW – flush prewarm buffers | name|mode | 0 | 0 |
enq: PW – perwarm status in dbw0 | name|mode | 0 | 0 |
enq: RB – contention | name|mode | disk group | 0 |
enq: RF – RF – Database Automatic Disable | name|mode | lock operation | lock value |
enq: RF – RF – FSFO Observed | name|mode | lock operation | lock value |
enq: RF – RF – FSFO connectivity | name|mode | lock operation | lock value |
enq: RF – RF – FSFO state | name|mode | lock operation | lock value |
enq: RF – RF – FSFO synchronization | name|mode | lock operation | lock value |
enq: RF – RF – FSFO wait | name|mode | lock operation | lock value |
enq: RF – atomicity | name|mode | lock operation | lock value |
enq: RF – new AI | name|mode | lock operation | lock value |
enq: RF – synch: DG Broker metadata | name|mode | lock operation | lock value |
enq: RF – synchronization: HC master | name|mode | lock operation | lock value |
enq: RF – synchronization: aifo master | name|mode | lock operation | lock value |
enq: RF – synchronization: chief | name|mode | lock operation | lock value |
enq: RF – synchronization: critical ai | name|mode | lock operation | lock value |
enq: RN – contention | name|mode | thread number | log number |
enq: RO – contention | name|mode | 2 | 0 |
enq: RO – fast object reuse | name|mode | 2 | 0 |
enq: RP – contention | name|mode | file # | 1 or block |
enq: RR – contention | name|mode | lock# | not used |
enq: RS – file delete | name|mode | record type | record id |
enq: RS – persist alert level | name|mode | record type | record id |
enq: RS – prevent aging list update | name|mode | record type | record id |
enq: RS – prevent file delete | name|mode | record type | record id |
enq: RS – read alert level | name|mode | record type | record id |
enq: RS – record reuse | name|mode | record type | record id |
enq: RS – write alert level | name|mode | record type | record id |
enq: RT – contention | name|mode | redo thread | type |
enq: RU – contention | name|mode | 0 | 0 |
enq: RU – waiting | name|mode | 0 | 0 |
enq: RW – MV metadata contention | name|mode | table obj# | 0 |
enq: SB – contention | name|mode | 0 | 0 |
enq: SE – contention | name|mode | Session-id | Serial# |
enq: SF – contention | name|mode | 0 | 0 |
enq: SH – contention | name|mode | 0 | 0 |
enq: SI – contention | name|mode | object # | 0 |
enq: SK – contention | name|mode | tablespace # | dba |
enq: SQ – contention | name|mode | object # | 0 |
enq: SR – contention | name|mode | operation | sequence # / apply # |
enq: SS – contention | name|mode | tablespace # | dba |
enq: ST – contention | name|mode | 0 | 0 |
enq: SU – contention | name|mode | table space # | 0 |
enq: SW – contention | name|mode | 0 | 0 |
enq: TA – contention | name|mode | operation | undo segment # / other |
enq: TB – SQL Tuning Base Cache Load | name|mode | 1 | 2 |
enq: TB – SQL Tuning Base Cache Update | name|mode | 1 | 2 |
enq: TC – contention | name|mode | checkpoint ID | 0 |
enq: TC – contention2 | name|mode | checkpoint ID | 0 |
enq: TD – KTF dump entries | name|mode | 0 | 0 |
enq: TE – KTF broadcast | name|mode | 0 | 0 |
enq: TF – contention | name|mode | tablespace # | relative file # |
enq: TL – contention | name|mode | 0 | 0 |
enq: TM – contention | name|mode | object # | table/partition |
enq: TO – contention | name|mode | object # | 1 |
enq: TQ – DDL contention | name|mode | QT_OBJ# | 0 |
enq: TQ – INI contention | name|mode | QT_OBJ# | 0 |
enq: TQ – TM contention | name|mode | QT_OBJ# | 0 |
enq: TS – contention | name|mode | tablespace ID | dba |
enq: TT – contention | name|mode | tablespace ID | operation |
enq: TW – contention | name|mode | 0 | operation |
enq: TX – allocate ITL entry | name|mode | usn<<16 | slot | sequence |
enq: TX – contention | name|mode | usn<<16 | slot | sequence |
enq: TX – index contention | name|mode | usn<<16 | slot | sequence |
enq: TX – row lock contention | name|mode | usn<<16 | slot | sequence |
enq: UL – contention | name|mode | id | 0 |
enq: US – contention | name|mode | undo segment # | 0 |
enq: WA – contention | name|mode | 0 | 0 |
enq: WF – contention | name|mode | 0 | 0 |
enq: WL – contention | name|mode | log # / thread id # | sequence # |
enq: WP – contention | name|mode | 0 | 0 |
enq: WR – contention | name|mode | thread id # | sequence # |
enq: XH – contention | name|mode | 0 | 0 |
enq: XQ – recovery | name|mode | disk group # | unused |
enq: XQ – relocation | name|mode | disk group # | unused |
enq: XR – database force logging | name|mode | operation | 0 |
enq: XR – quiesce database | name|mode | operation | 0 |
enq: XY – contention | name|mode | id1 | id2 |
enq: ZG – contention | name|mode | file group id | version id |
For the P1 values which is “name|mode”, we can decode it like this:
select chr(bitand(p1,-16777216)/16777215)||chr(bitand(p1, 16711680)/65535) "Name" , bitand(p1, 65535) "Mode" from v$session; |
Reference : Oracle Wait Interface: A Practical Guide to Performance Diagnostics & Tuning
https://alexzeng.wordpress.com/2013/07/16/enqueue-waits-in-oracle-database-10g/
No comments:
Post a Comment