更新 '数据库/oracle/oracle锁表问题.md'

This commit is contained in:
iProbe 2023-04-19 18:10:05 +08:00
parent cedd03d142
commit 1fc9024be1

View file

@ -14,6 +14,7 @@ alter system kill session 'SID,SERIAL#';
```
# 查询处于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];
kill -9 SPID
```
## 查询导致锁表的sql