Thanks for the question, Ashif.
Asked: November 14, 2016 - 1:59 pm UTC
Last updated: November 17, 2016 - 2:20 am UTC
Version: 12c
Viewed 10K+ times! This question is
You Asked
Hi ,
I enabled tracing on the particular session in oracle database by using "dbms_system.set_sql_trace_in_session" and i am not enabled to trace back the binding variables associated with insert statements .
Below is the sample statement:
insert into "DATA".TRX (KSP_RSID, KSP_INTERNID, KSP_CONTAINER, POS_DSORUNCONFIG, POS_SOURCETABLE, POS_TYPESYSTEM, KSP_DISCRIMINATOR, KSP_OPID)
values ( :v0 , :v1 , :v2 , :v3 , :v4 , :v5 , 'TABLESOURCESPEC', :v6 )
Can anyone help on this?
I tried with v$sql_bind_capture but the value is null for the column Value_string
and Connor said...
dbms_monitor.session_trace_enable([sid], [serial], waits=>true, binds=>true)
will let you capture binds as well.
Rating
(2 ratings)
Is this answer out of date? If it is, please let us know via a Comment