Oracle 视图 V$HANG_INFO 官方解释,作用,如何使用详细说明
本站中文解释
本视图V$HANG_INFO由V$INSTANCE和V$BHANG两个子视图组成,主要的用途是报告挂起的会话的信息。V$HANG_INFO基于内部X$KGLH0和X$KGLH1两个表,用于保存和报告实例内正在挂起的会话信息。
使用V$HANG_INFO:
1.查询挂起的会话数量:select count(*) from v$hang_info;
2.查询挂起会话的唯一标识符:select distinct sid from v$hang_info;
3.查看挂起会话的诊断详细信息:select * from v$hang_info where sid=;
4.获得如何处理挂起会话的建议:select hang_advice from v$hang_info;
官方英文解释
V$HANG_INFO
displays information about hangs found on the cluster.
A hang can be an open wait chain or closed wait chain (cycle or deadlock). A wait chain is a series of sessions that are blocking one another. Each row represents a hang and describes how severe the hang is. This view also includes the victim or final blocker of the hang.
Column | Datatype | Description |
---|---|---|
|
| A number identifying the hang |
|
| Indicates how many sessions are in the main wait chain of the hang |
|
| Indicates how many total sessions are affected by the hang, including the main wait chain and any wait chains branching off of the main wait chain |
|
| Is set to |
|
| Status of the hang. Possible values:
|
|
| Date and time that the hang was detected |
|
| Time that the hang may be automatically resolved |
|
|
|
|
|
|
|
|
|
|
|
|
|
| Contains the reason why the hang was resolved or ignored |
|
| Instance number of the instance on which the victim or final blocker session resides |
|
| Victim or final blocker’s Oracle session ID |
|
| Victim or final blocker’s Oracle session serial number |
|
| Victim or final blocker’s operating system process ID |
|
|
|
|
| Name of the victim or final blocker process |
|
| Victim or final blocker’s container ID or PDB ID |
|
| Resource or event for which the victim or final blocker is waiting; set to |
|
| Oracle Database Quality of Service (QoS) Management Performance Class rank of the victim or final blocker of the hang. |
|
| Oracle Database QoS Management Performance Class In-Trouble Threshold of the victim or final blocker of the hang |
|
| Oracle Database QoS Management Performance Class Root Termination allowed Threshold of the victim or final blocker of the hang |
|
| Oracle Database QoS Management Performance Class Key of the victim or final blocker of the hang |
|
| The ID of the container to which the data pertains. Possible values include:
|
Footnote 1 This column is available starting with Oracle Database 21c.
See Also:
“V$HANG_SESSION_INFO”
“V$HANG_STATISTICS”
“DBA_HANG_MANAGER_PARAMETERS”