Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> RE: How to find current value of bind variables

RE: How to find current value of bind variables

From: Hameed, Amir <Amir.Hameed_at_xerox.com>
Date: Fri, 2 Sep 2005 12:18:53 -0400
Message-ID: <77A4D80DB2ADD74EB5D7F1D31626F0C0023A140D@usa0300ms03.na.xerox.net>


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



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_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-l
Received on Fri Sep 02 2005 - 11:21:10 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US