

1.在oracle中,可以利用SELECT语句查询被锁的表,该语句用于简单查询数据信息,语法“select*from v$locked_object a,dba_objects b where b.object_id=a.object_id”。
小编还为您整理了以下内容,可能对您也有帮助:
怎么查看oracle是否锁表?
若多人同时对一条记录进行操作则会引起死锁x0dx0aselect b.owner,b.object_name,a.session_id,a.locked_mode x0dx0afrom v$locked_object a,dba_objects bx0dx0awhere b.object_id = a.object_id x0dx0ax0dx0aselect b.username,b.sid,b.serial#x0dx0afrom v$locked_object a,v$session bx0dx0awhere a.session_id = b.sid order by b.logon_timex0dx0ax0dx0aalter system kill session '950,13760';
