码迷,mamicode.com
首页 > 数据库 > 详细

进行数据库进程的杀死

时间:2017-06-28 11:52:29      阅读:223      评论:0      收藏:0      [点我收藏+]

标签:table   ssi   row   rom   desc   _id   cts   ora   user   

select /*+ rule */ 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#,
s.terminal,
s.machine,
s.program,
s.osuser
from v$session s,v$lock l,dba_objects o
where l.sid = s.sid
and l.id1 = o.object_id(+)
and s.username=‘TZYGZF‘;

select /*+ rule */ lpad(‘ ‘,decode(l.xidusn ,0,3,0))||l.oracle_username user_name,
o.owner,
o.object_name,
o.object_type,
s.sid,
s.serial#
from v$locked_object l,dba_objects o,v$session s
where l.object_id=o.object_id
and l.session_id=s.sid
order by o.object_id,xidusn desc;


alter system kill session ‘18,18285‘;

进行数据库进程的杀死

标签:table   ssi   row   rom   desc   _id   cts   ora   user   

原文地址:http://www.cnblogs.com/panchangde/p/7088867.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!