Oracle cannot delete table ORA-00604ORA-01422 Error

Source: Internet
Author: User
[TEST1 @ orcl] SQLgt; droptablet10; droptablet10 * 1st rows error: ORA-00604: recursive SQL Level 1 error ORA-01422: actual return

[TEST1 @ orcl] SQLgt; drop table t10; drop table t10 * 1st row error: ORA-00604: recursive SQL Level 1 error ORA-01422: actual return

[TEST1 @ orcl] SQL> drop table t10;
Drop table t10
*
Row 3 has an error:
ORA-00604: recursive SQL Level 1 error
ORA-01422: the number of rows actually returned exceeds the number of requested rows

Check the dual table. It may be that the dual table has multiple rows of data. Delete all data and insert 'x '.

[SYS @ orcl] SQL> select * from dual;

DU
--
X

[SYS @ orcl] SQL> delete from dual;

One row has been deleted.

[SYS @ orcl] SQL> select * from dual;

DU
--
Y

[SYS @ orcl] SQL> delete from dual;

One row has been deleted.

[SYS @ orcl] SQL> select * from dual;

DU
--
M

[SYS @ orcl] SQL> delete from dual;

One row has been deleted.

[SYS @ orcl] SQL> select * from dual;

Unselected row

[SYS @ orcl] SQL> insert into dual values ('x ');

One row has been created.

[SYS @ orcl] SQL> COMMIT;

Submitted.

[SYS @ orcl] SQL> conn test1
Enter the password:
Connected.
[TEST1 @ orcl] SQL> drop table;

The table has been deleted.


The strange thing is why the dual table has two more rows of records and I didn't insert data. Study again when you are free.

,

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.