first commit
This commit is contained in:
commit
ba848e218d
1001 changed files with 152333 additions and 0 deletions
12
数据库/oracle/oracle锁表问题.md
Normal file
12
数据库/oracle/oracle锁表问题.md
Normal file
|
@ -0,0 +1,12 @@
|
|||
## 查询被锁定的表
|
||||
```
|
||||
select b.owner,b.object_name,a.session_id,a.locked_mode from v$locked_object a,dba_objects b where b.object_id = a.object_id;
|
||||
```
|
||||
## 查询发生锁定表的会话及序列号
|
||||
```
|
||||
select b.username,b.sid,b.serial#,logon_time from v$locked_object a,v$session b where a.session_id = b.sid order by b.logon_time;
|
||||
```
|
||||
## 结束产生锁表的会话
|
||||
```
|
||||
alter system kill session 'SID,SERIAL#';
|
||||
```
|
Loading…
Add table
Add a link
Reference in a new issue