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: how to debug "ORA-01436: CONNECT BY loop in user data"

Re: how to debug "ORA-01436: CONNECT BY loop in user data"

From: Mikito Harakiri <mikharakiri_nospaum_at_yahoo.com>
Date: 18 Nov 2004 14:35:24 -0800
Message-ID: <8a529bb.0411181435.3a9878e@posting.google.com>


bbcrock_at_hotmail.com (D) wrote in message news:<22e171df.0411160718.5bd38b2e_at_posting.google.com>...
> I am doing a simple hierarchy tree with parent and child records.
> Someone entered "bad" data, but out of 400 records I can't find out
> where/how.
>
> my report query is:
> SELECT id, parentid
> FROM table
> START WITH id = 1
> CONNECT BY PRIOR id = parentid
>
> the error I get is:
> ORA-01436: CONNECT BY loop in user data
>
> I see about 300 records before that throws an error.
>
> I cleaned up a bunch of the data and mysteriously I see about a dozen
> more items in my result set, but it does NOT appear that any of those
> new dozen were actually affected by the data clean up.
>
> There is nothing as easy as running a report for all the records where
> the id and the parentid are equal. I have investigated the data by
> hand.
>
> Is there a report I can run to identify which records may be causing
> the problem?
>
> post here.
>
> thanks,
>
> Don

_dump_connect_by_loop_data Received on Thu Nov 18 2004 - 16:35:24 CST

Original text of this message

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