查看当前oracle中正在执行的sql语句,存储过程

论坛 期权论坛 脚本     
匿名技术用户   2021-1-2 07:26   23   0

1 正在执行的sql

select a.program, b.spid, c.sql_text,c.SQL_ID
  from v$session a, v$process b, v$sqlarea c
 where a.paddr = b.addr
   and a.sql_hash_value = c.hash_value
   and a.username is not null;

2 正在执行的存储过程

select owner,name from v$db_object_cache where type like '%PROCE%' and locks >0 and
 pins >0;

分享到 :
0 人收藏
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

积分:7942463
帖子:1588486
精华:0
期权论坛 期权论坛
发布
内容

下载期权论坛手机APP