ORA-13772: unexpected deadlock on “SQL Tuning Set” “string” owned by user “string” ORACLE 报错 故障修复 远程处理

文档解释

ORA-13772: unexpected deadlock on “SQL Tuning Set” “string” owned by user “string”

Cause: Unexpected error from DBMS_LOCK.REQUEST

Action: This error should not normally occur. Check your system for anomalies and retry the operation. If this error persists, contact Oracle Support Services.

ORA-13772: unexpected deadlock on “SQL Tuning Set” “string” owned by user “string” 是Oracle库报出的一个错误信息。它指的是:在连接不同的会话中,两个用户试图访问或更新一个”SQL Tuning Set”(STS)时,发生了死锁。死锁就是两个或更多的线程在尝试访问同一个资源时发生了冲突,导致无法更新数据库状态。

官方解释

常见案例

正常处理方法及步骤

1.检查错误信息中显示的用户名称及SQL Tuning Set名称,以便确定是哪两个用户正在尝试更新该SQL Tuning Set。

2.关闭所有尝试更新SQL Tuning Set的会话。

3.从数据库中删除该SQL Tuning Set,可以使用下面的SQL语句:DROP SQL TUNING SET

4.重新建立SQL Tuning Set。

5.尝试重新执行要更新的SQL Tuning Set的操作,确保没有冲突的会话访问。


数据运维技术 » ORA-13772: unexpected deadlock on “SQL Tuning Set” “string” owned by user “string” ORACLE 报错 故障修复 远程处理