Tuesday, May 24, 2016

script to find sql text with sid of a session

#######################
 FIND SQL TEXT FROM SID
#######################



select a.sid,a.program,b.sql_text

from v$session a, v$sqltext b

where a.sql_hash_value = b.hash_value

and a.sid=429

order by a.sid,hash_value,piece;

No comments:

Post a Comment