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 out the original SQL resulted the ERROR message?

Re: How to find out the original SQL resulted the ERROR message?

From: zhu chao <zhuchao_at_gmail.com>
Date: Wed, 5 Oct 2005 22:28:07 +0800
Message-ID: <962cf44b0510050728j3ec418f9m17414660df3ae665@mail.gmail.com>


Hi, Dick
Your theory is right and I am aware of it. But it does not help.  Unfortunately, in our case, mostly it is database very active, and one SQL execute too long. SQL is sometimes iin-efficient and it timed out with 1555. I need to find out the original SQL and contact PD for a solution.

 On 10/5/05, Goulet, Dick <DGoulet_at_vicr.com> wrote:
>
> You've found the statement that errored out in the alert log. The reason
> is one of two things that you now need to figure out. The first is the
> infamous commit across a cursor problem which can be found from a review of
> the application code. The other is a resource issue that you may or may not
> be able to solve. The query in question start out life with a particular
> SCN. Over the time of it's execution data under it was changed and those
> changes committed. Now normally your UNDO or ROLLBACK segments will retain
> the changes so that Oracle can reconstruct what those rows looked like for
> this query. The problem is that those undo or rollback segments are no
> longer available. Now commits across a cursor do this because you yourself
> have released the data and according to the ANSI Sql standard you should
> close & reopen the cursor. The other half of it is either a lack of undo or
> rollback space on your database or a query that just takes way too long to
> run.
>

--
Regards
Zhu Chao
www.cnoug.org <http://www.cnoug.org>

--
http://www.freelists.org/webpage/oracle-l
Received on Wed Oct 05 2005 - 09:30:54 CDT

Original text of this message

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