Hi,
In 10g, you can use data dictionary view v$sql_bind_capture or AWR view dba_hist_sqlbind (historical version of v$sql_bind_capture) to find bind variables’ values. However it has some significant limitations:
select name, position, datatype_string, value_string from v$sql_bind_capture where sql_id = '';
But there is a bug related to v$sql_bind_capture as reported in note 444551.1
V$SQL_BIND_CAPTURE Does Not Show The Value For Binds Of Type TIMESTAMP [ID 444551.1] as a workaround you can get value of TIMESTAMP bind variable by
select name, position, datatype_string, was_captured, value_string, anydata.accesstimestamp(value_anydata) from v$sql_bind_capture where sql_id = '';
it’s fixed in 11.2.
-Thanks
Geek DBA
Thanks for this wonderful post ,hope to see more like this : -).
This is a nice collection
I wish if you add http://techgoeasy.com
It contains wonderful oracle resources