v$locked_object&v$session&v$sqltext
通过 v$locked_object 找到 session_id
通过 v$session 找到以下的值,尝试在v$sqltext 中查找lock table 的sql:
SQL_ADDRESS
RAW(4)
Used with SQL_HASH_VALUE to identify the SQL statement that is currently being executed
SQL_HASH_VALUE
NUMBER
Used with SQL_ADDRESS to identify the SQL statement that is currently being executed
PREV_SQL_ADDR
RAW(4)
Used with PREV_HASH_VALUE to identify the last SQL statement executed
PREV_HASH_VALUE
NUMBER
Used with SQL_HASH_VALUE to identify the last SQL statement executed
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/45259/viewspace-134845/
,如需转载,请注明出处,否则将追究法律责任。