RE: How to find current value of bind variables

  • From: "Hameed, Amir" <Amir.Hameed@xxxxxxxxx>
  • To: <Brandon.Allen@xxxxxxxxxxx>, "Ian Cary (C)" <Ian.Cary@xxxxxxxxxxxxxxxxxxxx>, <oracle-l@xxxxxxxxxxxxx>
  • Date: Fri, 2 Sep 2005 12:18:53 -0400

Can an enhancement request be filed with Oracle that this functionality
be back ported to 9i2?

-----Original Message-----
From: oracle-l-bounce@xxxxxxxxxxxxx
[mailto:oracle-l-bounce@xxxxxxxxxxxxx] On Behalf Of Allen, Brandon
Sent: Friday, September 02, 2005 12:14 PM
To: Ian Cary (C); oracle-l@xxxxxxxxxxxxx
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
----------------------------------------------------------------
Oracle Database 10g Enterprise Edition Release 10.1.0.2.0 - Prod

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
----------------------------------------------------------------
Oracle9i Enterprise Edition Release 9.2.0.6.0 - Production

SQL> select * from v_$fixed_table where name = 'X$KQLFBC';

no rows selected


-----Original Message-----
From: Ian Cary (C) [mailto:Ian.Cary@xxxxxxxxxxxxxxxxxxxx]
Sent: Friday, September 02, 2005 4:40 AM
To: Allen, Brandon; oracle-l@xxxxxxxxxxxxx
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.

--
//www.freelists.org/webpage/oracle-l
--
//www.freelists.org/webpage/oracle-l

Other related posts: