Quantcast
Channel: Doyensys Allappsdba Blog..
Viewing all articles
Browse latest Browse all 1640

Script to get the bind Variable for a given sql statement

$
0
0
SETPAUSEON
SETPAUSE'Press Return to Continue'
SETPAGESIZE60
SETLINESIZE300

COLUMNsql_textFORMATA120
COLUMNsql_idFORMATA13
COLUMNbind_nameFORMATA10
COLUMNbind_valueFORMATA26

SELECT
sql_id,
t.sql_textsql_text,
b.namebind_name,
b.value_stringbind_value
FROM
v$sqlt
JOIN
v$sql_bind_capturebusing(sql_id)
WHERE
b.value_stringisnotnull
AND
sql_id='&sqlid'
/

Viewing all articles
Browse latest Browse all 1640

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>