View Oracle stored procedure is executed

A stored procedure is executed

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

 

sql is being executed

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

Guess you like

Origin www.cnblogs.com/JIKes/p/11688437.html