有恒ccs

导航

锁表

# 查看被锁的表ct
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 sid, serial#, username, osuser from v$session;

# 杀掉进程 sid, serial#
alter system kill session '678,983';

posted on 2022-02-07 14:29  有恒ccs  阅读(38)  评论(0编辑  收藏  举报