oracle锁表解锁

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了oracle锁表解锁相关的知识,希望对你有一定的参考价值。

select substr(object_name,1,30),substr(os_user_name,1,20) from v$locked_object,user_objects
where v$locked_object.object_id = user_objects.object_id

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 t2.username,t2.sid,t2.serial#,t2.logon_time,t3.sql_text
from v$locked_object t1,v$session t2,v$sqltext t3
where t1.session_id=t2.sid
and t2.sql_address=t3.address
order by t2.logon_time


  SELECT OBJECT_ID,SESSION_ID,SERIAL#,
ORACLE_USERNAME,OS_USER_NAME,S.PROCESS
FROM V$LOCKED_OBJECT A,
V$SESSION S WHERE A.SESSION_ID=S.SID






















以上是关于oracle锁表解锁的主要内容,如果未能解决你的问题,请参考以下文章

oracle锁表解锁

1.Oracle数据库查看用户锁表和对表解锁的sql语句

查询Oracle锁表语句以及解锁语句

oracle 锁表、解锁的语句

Oracle 锁表查询 和解锁表

MySQL锁表和解锁操作