If you are trying to debug error ORA-01436: CONNECT BY loop in user data in
the CONNECT BY sql statements, the following might help you:
ALTER SESSION SET "_dump_connect_by_loop_data"=TRUE; -- execute the CONNECT BY here
Now look in the UDUMP destination for the trace file,
it will contain the problematic IDs which are causing the
infinite loop in the hierarchy.
-OR-
Simply if you want to ignore it, use ‘nocycle’ keyword:
select ... from ... start with somecol = 12345 connect by nocycle prior nodeto_col = nodefrom_col;
2 Responses
Max
26|May|2010 1Hello, is there any keyword in Oracle 9i to ignore the loop ? Using the nocycle gives de error “invalid relational operator” .
Thanks a lot.
gato
26|May|2010 2hi max, i think the nocycle keyword is available only in 10g and upward
Leave a reply