Home > Uncategorized > Find bind variables for a Query

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
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: