Re: Executing wrong sql

From: GovindanK <gkatteri_at_fastmail.fm>
Date: Fri, 17 Oct 2008 04:43:16 UT
Message-Id: <1224218596.28260.1279757793@webmail.messagingengine.com>


Sandra
I am a bit late in posting. You are probably looking at some thing similar to
Subject: Bug 2273604 - CURSOR_SHARING=FORCE may not share cursors using a BETWEEN clause with CBO

      Doc ID: NOTE:2273604.8
Per Metalink this should be fixed in 10.2.0.3. You might have tried ALTER SYSTEM FLUSH SHARED_POOL instead of bouncing. Is this development or Production? I suppose this is dev environment. Also, what is the optmizer mode set to? How current are the statistics?
HTH
GovindanK

On Fri, 10 Oct 2008 10:10:49 -0600, "Sandra Becker" <sbecker6925_at_gmail.co m> said:

I have a developer trying to run an SQL script against a test database that is picking up the wrong sql instead of what is really in my PL/SQL script. What's really strange to me is that if I set echo on, I can see the code it should be executing, not what it is really executing. Could this be due to a cursor left open? I've never seen this behavior before so I'm a bit lost on where to look.

If I run the same script against another test database, it works like it's supposed to. The developer also tells me that this code worked on this database until we bounced it yesterday.

Our environment for both databases: Oracle [1]10.2.0.3, SuSE10, IBM z9 VM

Any suggestions will be appreciated.

Sandy

References

  1. http://10.2.0.3/
--
http://www.freelists.org/webpage/oracle-l
Received on Thu Oct 16 2008 - 23:43:16 CDT

Original text of this message