查询oracle中正在运行的sql语句,不包括plsql执行的查询语句
2015-11-10 11:35
495 查看
select *
from v$sqlarea
where sql_id in (select sql_id
from v$session
where username = 'GJK'
and status = 'ACTIVE'
and program != 'plsqldev.exe')
order by elapsed_time desc;
from v$sqlarea
where sql_id in (select sql_id
from v$session
where username = 'GJK'
and status = 'ACTIVE'
and program != 'plsqldev.exe')
order by elapsed_time desc;
相关文章推荐
- Oracle使用row_number()函数查询时增加序号列
- Oracle使用row_number() over (partition order by)和DISTINCT去除重复记录
- Oracle 12.1.0.2 对JSON的支持
- Oracle数据库rownum和row_number的不同点
- Oracle显示游标的使用及游标for循环
- 11.20开幕:Oracle + MySQL 嘉年华群星云集
- Oracle分析函数
- Oracle的instr函数
- oracle 内连接 左外连接 右外连接的用法,(+)符号用法
- oracle显示两个字段相除的结果
- Oracle查看锁表和解除锁表
- Oracle RMAN的备份与恢复命令详解
- oracle job定时更新表中文姓名对应拼音字段
- oracle 的锁
- Oracle数据库rownum和row_number的不同点
- Oracle 游标使用全解
- oracle11g之完全卸载
- 【Oracle】Oracle 12c DB In-Memory入门实验手册(一)
- Oracle14~23
- Oracle分页