Oracle中查看正在运行的SQL进程脚本分享

前端之家收集整理的这篇文章主要介绍了Oracle中查看正在运行的SQL进程脚本分享前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

Oracle的show processlist

代码如下:
set linesize 400;
set pagesize 400;
col sql_text format a100;
col machine format a25;
col username format a15;
SELECT a.username,a.machine,b.sql_id,b.sql_TEXT
FROM v$session a,v$sqlarea b
WHERE a.sql_address = b.address
AND a.sql_HASH_VALUE = b.HASH_VALUE;

Oracle show full processlist

代码如下:
set linesize 400;
set pagesize 400;
set long 4000;
col sql_FULLTEXT format a100;
col machine format a25;
col username format a15;
SELECT a.username,b.sql_FULLTEXT
FROM v$session a,v$sqlarea b
WHERE a.sql_address = b.address
AND a.sql_HASH_VALUE = b.HASH_VALUE;

原文链接:https://www.f2er.com/oracle/65226.html

猜你在找的Oracle相关文章