Links
Home
Oracle DBA Forum
Frequent Oracle Errors
TNS:could not resolve the connect identifier specified
Backtrace message unwound by exceptions
invalid identifier
PL/SQL compilation error
internal error
missing expression
table or view does not exist
end-of-file on communication channel
TNS:listener unknown in connect descriptor
insufficient privileges
PL/SQL: numeric or value error string
TNS:protocol adapter error
ORACLE not available
target host or object does not exist
invalid number
unable to allocate string bytes of shared memory
resource busy and acquire with NOWAIT specified
error occurred at recursive SQL level string
ORACLE initialization or shutdown in progress
archiver error. Connect internal only, until freed
snapshot too old
unable to extend temp segment by string in tablespace
Credential retrieval failed
missing or invalid option
invalid username/password; logon denied
unable to create INITIAL extent for segment
out of process memory when trying to allocate string bytes
shared memory realm does not exist
cannot insert NULL
TNS:unable to connect to destination
remote database not found'>ora-02019
exception encountered: core dump
inconsistent datatypes
no data found
TNS:operation timed out
PL/SQL: could not find program
existing state of packages has been discarded
maximum number of processes exceeded
error signaled in parallel query server
ORACLE instance terminated. Disconnection forced
TNS:packet writer failure
see ORA-12699
missing right parenthesis
name is already used by an existing object
cannot identify/lock data file
invalid file operation
quoted string not properly terminated
How to find out the original SQL resulted the ERROR message?

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

2005-10-05       - By Goulet, Dick

Reply:     1     2     3     4     5     6  

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.

 __ __  

From: oracle-l-bounce@(protected)
[mailto:oracle-l-bounce@(protected)] On Behalf Of zhu chao
Sent: Wednesday, October 05, 2005 7:00 AM
To: Oracle-L
Subject: Re: How to find out the original SQL resulted the ERROR
message?


Sorry, pressed enter before finish the email.

Sometimes we see some error message in alert, saying some SQL report
ORA-1555 (See ORA-1555.ora-code.com). For example, the following SQL is logged in alert.
Obviously it is not from normal application. I am wondering how I can
find out the original SQL, so I contact with developer for this.

Another SQL like:
ARC1: Completed archiving  log 4 thread 1 sequence 9781 Tue Oct  4
22:07:31 2005
ORA-01555 (See ORA-01555.ora-code.com) caused by SQL statement below (SCN: 0x0000.e3a53f18):
Tue Oct  4 22:07:31 2005
SELECT /*+ Q109000 NO_EXPAND ROWID(A1) */ A1.ROWID FROM
"BES1"."EXCEPTION" PX_GRANULE(0, BLOCK_RANGE, DYNAMIC)  A1 WHERE
A1."CONSUMER_ID"='KenanToSiteProcessor'
AND A1."CREATION_DATE">=TO_DATE('2005-09-29 00:00:00', 'yyyy-mm-dd
hh24:mi:ss')
AND A1."CREATION_DATE"<=:B1 AND A1."EXCEPTION_STATUS"=3 AND
A1."EXCEPTION_REASON" LIKE '3501 DATA_SOURCE_DOWN%'
Tue Oct  4 22:12:34 2005
This is the spawned from some PQ query. If PQ process has exit, or not
running any more, can we still find out the original SQL?

Thanks

On 10/5/05, zhu chao <zhuchao@(protected)> wrote:

  Hi, All,

  ORA-01555 (See ORA-01555.ora-code.com) caused by SQL statement below (SCN: 0x0314.01fa70b6):
  Mon Oct  3 18:52:31 2005
  SELECT /*+NESTED_TABLE_GET_REFS+*/
"FDBK_USER"."TRANSACT_RECORD".* FROM "FDBK_USER"."TRANSACT_RECORD"
where trx_type=1
 

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




--
Regards
Zhu Chao
www.cnoug.org


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2800.1515" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><SPAN class=196014013-05102005><FONT face=Arial
color=#0000ff size=2>You've found the statement that errored out in the alert
log.&nbsp; The reason is one of two things that you now need to figure
out.&nbsp; The first is the infamous commit across a cursor problem which can
be
found from a review of the application code.&nbsp; The other is a resource
issue
that you may or may not be able to solve.&nbsp; The query in question start out
life with a particular SCN.&nbsp; Over the time of it's execution data under it
was changed and those changes committed.&nbsp; Now normally your UNDO or
ROLLBACK&nbsp;segments will retain the changes so that Oracle can reconstruct
what those rows looked like for this query.&nbsp; The problem is that those
undo
or rollback segments are no longer available.&nbsp; Now commits across a cursor
do this because you yourself have released the data and according to the ANSI
Sql standard you should close &amp; reopen the cursor.&nbsp; 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.</FONT></SPAN></DIV><BR>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> oracle-l-bounce@(protected)
[mailto:oracle-l-bounce@(protected)] <B>On Behalf Of </B>zhu
chao<BR><B>Sent:</B> Wednesday, October 05, 2005 7:00 AM<BR><B>To:</B>
Oracle-L<BR><B>Subject:</B> Re: How to find out the original SQL resulted the
ERROR message?<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV>Sorry, pressed enter before finish the email.</DIV>
<DIV>&nbsp;</DIV>
<DIV>Sometimes we see some error message in alert, saying some SQL report
ORA-1555 (See ORA-1555.ora-code.com). For example, the following SQL is logged in alert.</DIV>
<DIV>Obviously it is not from normal application. I am wondering how I can find
out the original SQL, so I contact with developer for this.<BR>&nbsp;</DIV>
<DIV>Another SQL like:</DIV>
<DIV>ARC1: Completed archiving&nbsp; log 4 thread 1 sequence 9781 Tue Oct&nbsp;
4 22:07:31 2005<BR>ORA-01555 (See ORA-01555.ora-code.com) caused by SQL statement below (SCN:
0x0000.e3a53f18):<BR>Tue Oct&nbsp; 4 22:07:31 2005<BR>SELECT /*+ Q109000
NO_EXPAND ROWID(A1) */ A1.ROWID FROM "BES1"."EXCEPTION" PX_GRANULE(0,
BLOCK_RANGE, DYNAMIC)&nbsp; A1 WHERE A1."CONSUMER_ID"='KenanToSiteProcessor'
<BR>AND A1."CREATION_DATE"&gt;=TO_DATE('2005-09-29 00:00:00', 'yyyy-mm-dd
hh24:mi:ss') <BR>AND A1."CREATION_DATE"&lt;=:B1 AND A1."EXCEPTION_STATUS"=3 AND
A1."EXCEPTION_REASON" LIKE '3501 DATA_SOURCE_DOWN%'<BR>Tue Oct&nbsp; 4 22:12:34
2005<BR>This is the spawned from some PQ query. If PQ process has exit, or not
running any more, can we still find out the original SQL? </DIV>
<DIV>&nbsp;</DIV>
<DIV>Thanks<BR>&nbsp;</DIV>
<DIV><SPAN class=gmail_quote>On 10/5/05, <B class=gmail_sendername>zhu chao</B>
&lt;<A href="mailto:zhuchao@(protected)">zhuchao@(protected)</A>&gt; wrote:</SPAN>
<BLOCKQUOTE class=gmail_quote
style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px
solid">
 <DIV>Hi, All,</DIV>
 <DIV><BR clear=all>ORA-01555 (See ORA-01555.ora-code.com) caused by SQL statement below (SCN:
 0x0314.01fa70b6):<BR>Mon Oct&nbsp; 3 18:52:31 2005<BR>SELECT
 /*+NESTED_TABLE_GET_REFS+*/ "FDBK_USER"."TRANSACT_RECORD".* FROM
 "FDBK_USER"."TRANSACT_RECORD"&nbsp; where trx_type=1 <BR>&nbsp;</DIV>
 <DIV><BR>-- <BR>Regards<BR>Zhu Chao<BR><A
 onclick="return top.js.OpenExtLink(window,event,this)"
 href="http://www.cnoug.org/"
target=_blank>www.cnoug.org</A><BR>&nbsp;</DIV></BLOCKQUOTE></DIV><BR><BR
clear=all><BR>-- <BR>Regards<BR>Zhu Chao<BR><A
href="http://www.cnoug.org">www.cnoug.org</A><BR></BODY></HTML>