时间:2021-07-01 10:21:17 帮助过:111人阅读
select * from v$sql
select row_number() over (order by a.username, a.client_info, a.terminal) as id
, a.username, a.sid, a.serial# as serial_id, a.client_info, a.osuser, a.machine
, a.terminal, a.program, b.SQL_TEXT, logon_time, prev_exec_start
from v$session a, v$sql b
where a.username not in(‘DBSNMP‘,‘SYSMAN‘)
and a.sql_address = b.address(+)
order by a.username, a.client_info, a.terminal
oracle查询sql 执行历史和计算机
标签:add username info rev 查询 执行 ram sql rmi