Chinaunix首页 | 论坛 | 博客
  • 博客访问: 214051
  • 博文数量: 78
  • 博客积分: 582
  • 博客等级: 下士
  • 技术积分: 560
  • 用 户 组: 普通用户
  • 注册时间: 2010-05-15 09:06
文章分类

全部博文(78)

文章存档

2012年(50)

2011年(1)

2010年(27)

分类:

2010-09-14 11:11:45

select t.USERNAME,t.sid,t.SERIAL#,trunc((sysdate - t.LOGON_TIME) * 24 * 60) time,t.PROGRAM,s.SQL_TEXT,t.sql_id
  from v$session t,v$sqlarea s
 where t.STATUS = 'ACTIVE'
   and (sysdate - t.LOGON_TIME) * 24 * 60 > 10
   and t.sql_id is not null
   and t.USERNAME is not null
   and t.USERname not in ('SYS','SYSTEM')
   and t.sql_id = s.SQL_ID
 order by time desc ;
阅读(3073) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~