Oracle 视图 V$WAIT_CHAINS 官方解释,作用,如何使用详细说明
本站中文解释
Oracle视图V$WAIT_CHAINS被用来查看当前系统阻塞的时间段及其对应的父子等待链路信息,帮助终止一个死锁。
V$WAIT_CHAINS视图表达了SID1在SID2上的停顿,SID2在SID3上的停顿,并显示了Oracle用来表示这个过程的树状结构。它可以从第一个阻塞的SID开始慢慢追溯到最后一个阻塞的SID,以及最终的死锁SID。
使用V$WAIT_CHAINS视图,OEM可以检测和解决死锁问题。有关死锁检测和解决的详细步骤如下:
1. 在OEM中运行“死锁报告”任务来获取系统阻塞的时间段及其对应的等待链路信息。
2. 运行V$WAIT_CHAINS视图,来查看阻塞的轮次和关系。
3. 根据获取的等待链路信息来分析死锁,并对死锁SID追踪对应的线程以强制终止死锁。
4. 再运行一次“死锁报告”任务,查看死锁是否被处理。
官方英文解释
V$WAIT_CHAINS
displays information about blocked sessions. A wait chain is composed of sessions that are blocked by one another. Each row represents a blocked and blocker session pair. If a wait chain is not a cyclical wait chain, then the last row for the chain does not have a blocker.
Column | Datatype | Description |
---|---|---|
|
|
A number identifying the wait chain |
|
|
Indicates whether the final blocked session in the wait chain is blocked by the initial blocked session ( |
|
|
An Oracle-specific text signature of the wait chain. This signature can be used to identify similar wait chains. |
|
|
A numeric representation of |
|
|
Blocked session’s instance identifier |
|
|
Blocked session’s operating system process identifier |
|
|
Blocked session’s Oracle process identifier |
|
|
Blocked session’s Oracle session identifier |
|
|
Blocked session’s Oracle session serial number |
|
|
Blocked session’s PDB identifier |
|
|
Blocked session’s PDB name |
|
|
Indicates whether the blocked session has a blocker ( |
|
|
Blocker session’s instance identifier; NULL if |
|
|
Blocker session’s operating system process identifier; NULL if |
|
|
Blocker session’s Oracle process identifier; NULL if |
|
|
Blocker session’s Oracle session identifier; NULL if |
|
|
Blocker session’s Oracle session serial number; NULL if |
|
|
Blocker session’s PDB identifier |
|
|
Blocker session’s PDB name |
|
|
If not NULL, then the blocker session is a member of another chain specified by this chain identifier. For the remaining wait chain information, see the wait chain with the specified |
|
|
Indicates whether the blocked session is in a wait ( |
|
|
Number of seconds since the last time the blocked session waited; NULL if |
|
|
A number identifying the wait; NULL if |
|
|
Resource or event number for which the blocked session is waiting; NULL if |
|
|
Resource or event for which the blocked session is waiting; NULL if |
|
|
First additional wait parameter; NULL if |
|
|
Description of the first additional wait parameter; NULL if |
|
|
Second additional wait parameter; NULL if |
|
|
Description of the second additional wait parameter; NULL if |
|
|
Third additional wait parameter; NULL if |
|
|
Description of the third additional wait parameter; NULL if |
|
|
Seconds the blocked session has been in the current wait; NULL if |
|
|
Seconds remaining until the blocked session ends its wait ( |
|
|
Number of sessions waiting for the blocked session |
|
|
Object ID for the table containing the row specified in |
|
|
Identifier for the data file containing the row specified in |
|
|
Identifier for the block containing the row specified in |
|
|
Current row being locked; NULL if |
|
|
The ID of the container to which the data pertains. Possible values include:
|