1 | 问题: ORA-55610: Invalid DDL statement on history-tracked table 我在scott用户下面创建了一张表,但是最后不想要这张表了,想把它删除了,但是发现最后删除不了,报出了ORA-55610的错误; |
2 | 原因: 我在scott用户下面创建了一张表t1,然后对这张表进行了设置,如下: SCOTT@enmoedu1>create table tt as select * from emp;
Table created.
SCOTT@enmoedu1>alter table tt flashback archive sh;
Table altered.
然后我不想要了,删除时结果删除不了,如下: SCOTT@enmoedu1>drop table tt; drop table tt * ERROR at line 1: ORA-55610: Invalid DDL statement on history-tracked table |
3 | 解决方案: 取消该表的flashback archive功能即可,如下: SCOTT@enmoedu1>alter table tt no flashback archive;
Table altered.
|
4 | 验证 SCOTT@enmoedu1>drop table tt;
Table dropped.
|
|
|
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/30606702/viewspace-2123020/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/30606702/viewspace-2123020/