Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> RE: How to find current value of bind variables
Can an enhancement request be filed with Oracle that this functionality
be back ported to 9i2?
-----Original Message-----
From: oracle-l-bounce_at_freelists.org
[mailto:oracle-l-bounce_at_freelists.org] On Behalf Of Allen, Brandon
Sent: Friday, September 02, 2005 12:14 PM
To: Ian Cary (C); oracle-l_at_freelists.org
Subject: RE: How to find current value of bind variables
I tested the new 10g v$sql_bind_capture view and it does exactly what I want. Unfortunately it is based on a new x$ table that doesn't exist in 9.2.0.6, so I guess there is no way (w/o hacking) to find this information until 10g.
SQL> select * from v$version;
BANNER
SQL> select view_definition from v$fixed_view_definition where view_name = 'GO$SQL_BIND_CAPTURE'; VIEW_DEFINITION
select INST_ID, KQLFBC_PADD, KQLFBC_HASH, KQLFBC_SQLID, KQLFBC_CADD, KQLFBC_CHNO, substr(KQLFBC_NAME, 1, 30), KQLFBC_POS, to_number(decode(KQLFBC_DUPPOS, 65535, NULL, KQLFBC_DUPPOS)), KQLFBC_OACDTY, s ubstr(KQLFBC_DTYSTR, 1, 15), KQLFBC_OACCSI, KQLFBC_OACPRE, KQLFBC_OACSCL , KQLFBC_OACMXL, decode(KQLFBC_WCAP, 0, 'NO', 'YES'), decode(KQLFBC_WCAP , 0, to_date(NULL), KQLFBC_LCAP), KQLFBC_STRVAL, decode(KQLFBC_WCAP, 0, NULL, sys.sys$rawtoany(KQLFBC_BINVAL, KQLFBC_OACDTY, KQLFBC _OACCSF, KQLFBC_OACCSI)) from x$kqlfbc
SQL> select * from v$version;
BANNER
SQL> select * from v_$fixed_table where name = 'X$KQLFBC';
no rows selected
-----Original Message-----
From: Ian Cary (C) [mailto:Ian.Cary_at_ordnancesurvey.co.uk]
Sent: Friday, September 02, 2005 4:40 AM
To: Allen, Brandon; oracle-l_at_freelists.org
Subject: RE: How to find current value of bind variables
Have you tried looking at
v$sql_bind_capture
Cheers,
Ian
Privileged/Confidential Information may be contained in this message or attachments hereto. Please advise immediately if you or your employer do not consent to Internet email for messages of this kind. Opinions, conclusions and other information in this message that do not relate to the official business of this company shall be understood as neither given nor endorsed by it.
-- http://www.freelists.org/webpage/oracle-l -- http://www.freelists.org/webpage/oracle-lReceived on Fri Sep 02 2005 - 11:21:10 CDT
![]() |
![]() |