From cedd03d142a21c333ee9ac0ab13b1248b8c7f697 Mon Sep 17 00:00:00 2001 From: iProbe Date: Wed, 19 Apr 2023 18:04:15 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20'=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=E5=BA=93/oracle/oracle=E9=94=81=E8=A1=A8=E9=97=AE=E9=A2=98.md'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 数据库/oracle/oracle锁表问题.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/数据库/oracle/oracle锁表问题.md b/数据库/oracle/oracle锁表问题.md index 790fb2b..baf89c6 100644 --- a/数据库/oracle/oracle锁表问题.md +++ b/数据库/oracle/oracle锁表问题.md @@ -10,6 +10,12 @@ select b.username,b.sid,b.serial#,logon_time from v$locked_object a,v$session b ``` alter system kill session 'SID,SERIAL#'; ``` +## 结束锁表会话异常ORA-00031 +``` +# 查询处于KILLED状态的进程id +select b.spid,a.osuser,b.program from v$session a, v$process b where a.paddr=b.addr and a.sid=[SID]; +``` + ## 查询导致锁表的sql ``` SELECT