
|
[oracle-l]
||
[Date Prev]
[09-2005 Date Index]
[Date Next]
||
[Thread Prev]
[09-2005 Thread Index]
[Thread Next]
RE: How to find current value of bind variables
- From: "Allen, Brandon" <Brandon.Allen@xxxxxxxxxxx>
- To: "Ian Cary (C)" <Ian.Cary@xxxxxxxxxxxxxxxxxxxx>, <oracle-l@xxxxxxxxxxxxx>
- Date: Fri, 2 Sep 2005 09:14:21 -0700
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.
--
http://www.freelists.org/webpage/oracle-l
|

|