Pavan DBA's Blog

The DBA Knowledge Store

Posts Tagged ‘how to find sql’

script to find sql text with sid of a session

Posted by Pavan DBA on March 30, 2012


#######################

TO 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;

Posted in Performance Tuning, Scripts | Tagged: , , , , , , , , | Leave a Comment »

 
%d bloggers like this: