select sql_text from v$sql where hash_value in (
select sql_hash_value from v$session where sid in (select session_id from v$locked_object)
)
用这个语句可以查询造成死锁的sql语句
时间: 2024-10-05 06:40:13
select sql_text from v$sql where hash_value in (
select sql_hash_value from v$session where sid in (select session_id from v$locked_object)
)
用这个语句可以查询造成死锁的sql语句