Re: When curosr_Sharing=force how to find the original statement



On May 30, 9:57 pm, zigzag...@xxxxxxxxx wrote:
On May 30, 9:35 pm, zigzag...@xxxxxxxxx wrote:





On May 30, 11:31 am, DA Morgan <damor...@xxxxxxxxx> wrote:

zigzag...@xxxxxxxxx wrote:
I am supporting a ERP application, do not have access to source code.
crsor_sharing is set to force so when I look in v$sql etc it shows me
the statement with various bind varaiables. Is there any way to find
the original query before Oracle replaced literals by bind variables.

Thanks.

select view_name from dba_views
where view_name like '%BIND%';
--
Daniel A. Morgan
University of Washington
damor...@xxxxxxxxxxxxxxxx
(replace x with u to respond)
Puget Sound Oracle Users Groupwww.psoug.org

I did look into these views, I still did not see the sql satements. I
am on Oracle 9.2.0.6 on Windows Server.
Really appareciate if you can provide more information.- Hide quoted text -

- Show quoted text -

I do see v$sql_bind_data which has a column value which probably
should give value of bind variable. Bust since this values is blank,
not sure what the column represents.- Hide quoted text -

- Show quoted text -

Mtealink doc 1068973.6 provides what I was looking for. Thanks for the
responses.

.



Relevant Pages

  • RE: performance problem with dbd oracle
    ... I do realize that bind varibles are important to performance and the hashing ... algorithm that Oracle uses to identify sql statement in the library cache. ... the comparison plsql code is also not using any bind variables so ...
    (perl.dbi.users)
  • Re: Bind Peeking with java application
    ... Were bind value is a number> 0. ... We hava an installation on Oracle 10.1.0.3 and 10.1.0.5 that has ... answer for me i that Oracle sometimes does not make bind peeking. ... I think that also index as that suggested by Daniel sometimes may ...
    (comp.databases.oracle.server)
  • Re: Bind Peeking with java application
    ... Were bind value is a number> 0. ... We hava an installation on Oracle 10.1.0.3 and 10.1.0.5 that has ... answer for me i that Oracle sometimes does not make bind peeking. ... I think that also index as that suggested by Daniel sometimes may ...
    (comp.databases.oracle.server)
  • Re: Bind Peeking with java application
    ... Were bind value is a number> 0. ... We hava an installation on Oracle 10.1.0.3 and 10.1.0.5 that has ... answer for me i that Oracle sometimes does not make bind peeking. ... I think that also index as that suggested by Daniel sometimes may ...
    (comp.databases.oracle.server)
  • Re: Bind Peeking with java application
    ... Were bind value is a number> 0. ... that above query returns always 0 record. ... We hava an installation on Oracle 10.1.0.3 and 10.1.0.5 that has ... answer for me i that Oracle sometimes does not make bind peeking. ...
    (comp.databases.oracle.server)