查看oracle当前连接的情况
来源:互联网 发布:淘宝店铺分享到朋友圈 编辑:程序博客网 时间:2024/06/09 17:33
SELECT /* use_hash(sess,proc,undo,tmp) use_nl(s)*/ distinct sess.inst_id, sess.sid, sess.serial#, sess.username, substr(osuser,1,10) osuser, status, sess.process, proc.spid, sess.machine, sess.program, regexp_substr(NUMTODSINTERVAL(nvl((SYSDATE-SQL_EXEC_START)*24*60*60,last_call_et), 'SECOND'),'+\d{2} \d{2}:\d{2}:\d{2}') running_sec, TEMP_MB, UNDO_MB, s.sql_id , TSPS.NAME TSPS, decode(sess.action,null,'',sess.action||', ')||replace(s.sql_text,chr(13),' ') sqlFROM gv$session sess, gv$process proc, gv$sql s, (select ses_addr as saddr,sum(used_ublk/128) UNDO_MB from v$transaction group by ses_addr) undo, (select session_addr as saddr, SESSION_NUM serial#, sum((blocks/128)) TEMP_MB from gv$sort_usage group by session_addr, SESSION_NUM) tmp, (select inst_id,sid,serial#,event,t.name from gv$session ls, sys.file$ f, sys.ts$ t where status='ACTIVE' and ls.p1text in ('file number','file#') and ls.p1=f.file# and f.ts#=t.ts#) tspsWHERE sess.inst_id=proc.inst_id (+) and sess.saddr=tmp.saddr (+) and sess.serial#=tmp.serial# (+)AND sess.status='ACTIVE' and sess.username is not nulland sess.sid=tsps.sid (+) and sess.inst_id=tsps.inst_id(+) and sess.serial#=tsps.serial#(+)AND sess.paddr=proc.addr (+)and sess.sql_id = s.sql_id (+)and sess.saddr=undo.saddr (+)ORDER BY running_sec desc,4,1,2,3;
0 0
- 查看oracle当前连接的情况
- Oracle 查看当前连接数与会话数情况
- oracle查询当前用户的连接情况
- 查看oracle数据库的连接情况
- 查看Oracle数据库的连接情况
- 查看Oracle当前的连接数
- 怎样查看oracle当前的连接数
- 怎样查看oracle当前的连接数
- 怎样查看oracle当前的连接数
- 怎样查看oracle当前的连接数
- 怎样查看oracle当前的连接数
- 怎样查看oracle当前的连接数
- 怎样查看oracle当前的连接数
- 简单查看oracle的连接情况和内存使用情况.
- 简单查看oracle的连接情况和内存使用情况.
- oracle 连接数情况查看
- 查看oracle当前连接数
- oracle查看当前连接用户
- Android系统Intent调用大全
- java语言基础(一)——java抽象基类和接口
- shell 获取数组长度
- [Golang]Map的一个绝妙特性
- oracle的文件类型
- 查看oracle当前连接的情况
- 《人月神话》经典观点整理(之一):哪些过时了,哪些还有效?
- spring 中使用Quartz 定时器
- 奇幻到andoid studio 的DUANG 蛮捄一
- 旅居日本的ios 大神的博客
- 读软件工程经典《人月神话》观点摘抄和我的理解之二
- 人&机器
- 产品和项目的区别
- Oracle编码