Skip to Main Content

Breadcrumb

Question and Answer

Tom Kyte

Thanks for the question, thomas .

Asked: December 31, 2002 - 4:44 pm UTC

Last updated: December 31, 2002 - 5:04 pm UTC

Version: 8172

Viewed 1000+ times

You Asked

What is a recursive sql error?
Why do we get this error?
How does one avoid this error.

and Tom said...

it is an error executing recursive sql -- which is a recursive definition ;)

recursive SQL is the sql we perform on your behalf - to do your sql. For example:

select seq.nextval from dual;

might require recursive sql to:

o parse the query (query the data dictionary)
o update seq$ to get more sequence values into the cache


You get this error because an error was raised.

How to avoid? Well, first you have to diagnose. For example, the select seq.nextval might get a recursive sql error if the update to seq$ failed for some reason (space, whatever).

Recursive SQL errors should be exceedingly rare (except for self induced ones -- TRIGGERS). They are super exceptional conditions and typically centered around "i'm out of space, i'm out of memory" sort of errors...



Rating

  (1 rating)

Is this answer out of date? If it is, please let us know via a Comment

Comments

recursive sql

thomas benjamin, December 31, 2002 - 5:04 pm UTC

Thanks,got the picture.

More to Explore

PL/SQL demos

Check out more PL/SQL tutorials on our LiveSQL tool.

PL/SQL docs

PL/SQL reference manual from the Oracle documentation library