查询执行中的存储过程
来源:互联网 发布:起爆点指标公式源码 编辑:程序博客网 时间:2024/05/15 10:19
--查询执行中的存储过程select
b.logon_time,
decode(a.program_id,0,to_char(null),
(select obj.object_type || ' ' || obj.owner || '.' || obj.object_name
from dba_objects obj where obj.object_id = a.program_id and rownum = 1 )) as program,
a.program_line#,
b.osuser,
c.spid,
b.sid,
b.USERNAME,
a.sql_id,
a.SQL_TEXT,
a.SQL_FULLTEXT,
a.EXECUTIONS ex,
a.ROWS_PROCESSED,
trunc( a.ROWS_PROCESSED/case when a.EXECUTIONS =0 then 1 else a.EXECUTIONS end) as "rows/exe" ,
round(buffer_gets/decode(a.executions,0,1,a.executions)) "buffer/exe" ,
round(disk_reads/decode(a.executions,0,1,a.executions)) "disk/exe" ,
a.FIRST_LOAD_TIME,
a.LAST_ACTIVE_TIME,
b.MACHINE,
b.MODULE,
AUDSID,
b.EVENT,
b.STATE,
b.WAIT_TIME,
b.SECONDS_IN_WAIT,
c.PGA_ALLOC_MEM,
b.service_name,
'alter system kill session ''' || to_char(b.SID) || ',' ||
to_char(b.SERIAL#) || ''';' killse,
'select * from table(dbms_xplan.display_cursor(''' || a.SQL_ID || ''',' || a.CHILD_NUMBER || ',''ALL'')); --IOSTATS MEMSTATS ALLSTATS LAST RUNSTATS_TOT RUNSTATS_LAST outline ' as scan_sql_plan_sql
from v$sql a, v$session b, v$process c
where a.SQL_ID = b.SQL_ID
and b.PADDR = c.ADDR
and b.STATUS='ACTIVE'
AND B.SID<>(SELECT SID FROM V$MYSTAT WHERE ROWNUM<2)
order by b.username, a.SQL_TEXT;
0 0
- 查询执行中的存储过程
- 执行存储过程与单独执行存储过程中的SQL查询速度不一致
- 查询指定库中的用户存储过程
- 查询数据库中的所有存储过程语句
- mssql查询存储过程中的文本
- mysql查询数据库中的存储过程
- 查询存储过程中的特定字符
- 查询数据库中的存储过程和函数
- 查询mysql数据库中的存储过程
- 程序执行存储过程比查询分析器慢的解决方法
- 教你sql查询分析器执行存储过程
- mysql 存储过程 动态参数 查询执行结果
- 如何解决一次执行多文件中的存储过程
- 通过系统存储过程手动执行SQL Server中的Job
- VC执行存储过程
- SqlCommand执行存储过程
- VC执行存储过程
- VC执行存储过程
- 刷新物化视图脚本
- 1006. 求和游戏--最大子数列求和(子数列长度大于1)
- sqlserver 锁
- Apple
- 给技术人上的管理课:激励与授权
- 查询执行中的存储过程
- Kaldi学习笔记——The Kaldi Speech Recognition Toolkit(Kaldi语音识别工具箱)(下)
- 使用jquery插件实现图片延迟加载技术
- MFC 剪贴板使用完全攻略
- 性能测试方案简述
- 安装libpng出现configure: error: ZLib not installed
- Web渗透测试攻略 [一]
- Linux 下Oracle 开机自启动 与 oratab, dbstart 脚本 说明
- Jquery实现DIV垂直方向上展开