javaoracleoracle11gdrop-table

How to solve : SQL Error: ORA-00604: error occurred at recursive SQL level 1


When I'm trying to drop table then I'm getting error

SQL Error: ORA-00604: error occurred at recursive SQL level 2
ORA-01422: exact fetch returns more than requested number of rows
00604. 00000 -  "error occurred at recursive SQL level %s"
*Cause:    An error occurred while processing a recursive SQL statement
           (a statement applying to internal dictionary tables).
*Action:   If the situation described in the next error on the stack
           can be corrected, do so; otherwise contact Oracle Support.

Solution

  • I noticed following line from error.

    exact fetch returns more than requested number of rows
    

    That means Oracle was expecting one row but It was getting multiple rows. And, only dual table has that characteristic, which returns only one row.

    Later I recall, I have done few changes in dual table and when I executed dual table. Then found multiple rows.

    So, I truncated dual table and inserted only row which X value. And, everything working fine.