Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: Merge statement throws ORA-00600 error when USING query returns no rows

Re: Merge statement throws ORA-00600 error when USING query returns no rows

From: DA Morgan <damorgan_at_psoug.org>
Date: Thu, 08 Feb 2007 12:44:13 -0800
Message-ID: <1170967453.177318@bubbleator.drizzle.com>


Walt wrote:
>
> I have a MERGE statement that works fine when the USING query returns
> rows. But there are some circumstances where the query doesn't return
> any rows - this is normal and expected - and when the query comes back
> empty, I get the following error:
>
> ORA-02002: error while writing to audit trail
> ORA-00600: internal error code, arguments: [kzasps1], [4], [47], [], [],
> [], [], []
>
> along with a 4Meg trace file.
>
> This only happens when the USING query returns no rows. As long as the
> query returns at least one record, all is good.
>
> The expected behavior for a MERGE statement when the USING query returns
> no rows would be that nothing gets updated or inserted. This is what
> happens with a simple test case.
>
> Anybody ever seen this? Should I open a tar?

ORA-00600 = Open an SR at metalink.

Provided you have the latest patch. If not ... patch first and retest.

-- 
Daniel A. Morgan
University of Washington
damorgan_at_x.washington.edu
(replace x with u to respond)
Puget Sound Oracle Users Group
www.psoug.org
Received on Thu Feb 08 2007 - 14:44:13 CST

Original text of this message

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