1.使用top命令查看oracle数据库,哪个oracle的pid占用cpu最高
2.例如我查到的pid4952占用cpu最高
select a.sql_text
from v$sqltext a, v$session b
where a.hash_value = b.sql_hash_value and b.sid = (select s.sid
from v$session s,v$process p
where s.paddr=p.addr and p.spid = ‘4952‘)
时间: 2024-10-30 21:22:16