修改dual表导致的无法drop table

1797阅读 0评论2011-05-05 dbconf
分类:Oracle

无法drop table报如下错误:

SQL> drop table a; 
drop table a 

ERROR at line 1: 
ORA-00604: error occurred at recursive SQL level 1 
ORA-01422: exact fetch returns more than requested number of rows

记得曾经修改过dual表,添加了一行记录:

SQL> truncate table dual;

Table truncated.

SQL> insert into dual values(‘X’);

1 row created.

SQL> commit;

Commit complete.

虽然select dual表还是一行,但其实还是两行,truncate之后再insert一条记录之后就可以了。


上一篇:如何使用RBO
下一篇:重刷数据字典过程