Chinaunix首页 | 论坛 | 博客
  • 博客访问: 3550259
  • 博文数量: 715
  • 博客积分: 1860
  • 博客等级: 上尉
  • 技术积分: 7745
  • 用 户 组: 普通用户
  • 注册时间: 2008-04-07 08:51
个人简介

偶尔有空上来看看

文章分类

全部博文(715)

文章存档

2023年(75)

2022年(134)

2021年(238)

2020年(115)

2019年(11)

2018年(9)

2017年(9)

2016年(17)

2015年(7)

2014年(4)

2013年(1)

2012年(11)

2011年(27)

2010年(35)

2009年(11)

2008年(11)

最近访客

分类: Oracle

2021-01-01 18:48:09



select sql_text from v$session a,v$sqltext_with_newlines b
  where DECODE(a.sql_hash_value, 0, prev_hash_value, sql_hash_value)=b.hash_value
  and a.sid=&sid order by piece;

col start_time for a20
select sid, a.username, b.start_time, b.start_scnb, b.xidusn,
       b.used_urec, b.used_ublk, a.status ses_stat, a.sql_id
  from v$session a, v$transaction b
 where a.saddr = b.ses_addr and a.sid=&sid;

col spid for a24
select spid from v$process where addr =(select paddr from v$session where sid=&sid);

--可能查不到,就用下面的

select spid, program from v$process 
    where program!= 'PSEUDO'
    and addr not in (select paddr from v$session)
    and addr not in (select paddr from v$bgprocess)
    and addr not in (select paddr from v$shared_server);


select spid,addr from v$process where addr=(select creator_addr from v$session where sid=&sid);

kill -9 SPID


阅读(940) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~