Archive

Archive for May, 2014

Find bind variables for a Query

select s.sid,
S.USERNAME,
s.sql_hash_value,
s.sql_id,
s.sql_child_number,
spc.name,
spc.value_string,
last_captured
from V$SQL_BIND_CAPTURE SPC, V$SESSION S,V$SQL SQ
where s.sid=510 and s.sql_hash_value = spc.hash_value
and s.sql_address = spc.address
and SQ.SQL_ID=S.SQL_ID
and SPC.WAS_CAPTURED=’YES’
and S.type<>’BACKGROUND’
and s.status=’ACTIVE’;

Advertisements
Categories: Uncategorized