orcal解决锁表

1.查看历史运行纪录

 select * from dba_jobs_running;

2查看锁住的sid和pid

select s.sid,s.serial# fromv$session s where s.sid in (select sid from dba_jobs_running);

3.

SELECT s.username,
decode(l.type, 'TM', 'TABLE LOCK', 'TX', 'ROW LOCK', NULL) LOCK_LEVEL,
o.owner,
o.object_name,
o.object_type,
s.sid,
s.serial#
FROM v$session s, v$lock l, dba_objects o
WHERE l.sid = s.sid
AND l.id1 = o.object_id(+)
AND s.username is NOT NULL
AND O.OWNER='HYSCM' ;

4.在后台杀死进程

 alter system kill session '781,62406'; 

posted @ 2018-09-26 16:30  逆水乘舟,不进则退  阅读(147)  评论(0编辑  收藏  举报