查看oracle是否有表被锁===================================
select sid,serial#,program,terminal,username,b.object_id,c.object_name
from v$session a, v$locked_object b, dba_objects c
where a.sid = b.session_id
and b.object_id = c.object_id;
时间: 2024-11-11 07:58:38