更新 '数据库/oracle/oracle锁表问题.md'
This commit is contained in:
parent
695d180b92
commit
cedd03d142
1 changed files with 6 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue