oracle 10g中,加入了recyclebin的功能,即drop table 之后,还能用命令直接restore。
SQL> create table x (id number);
表已创建。
SQL> drop table x;
表已删除。
SQL> set serveroutput on
SQL> select * from user_tables where table_name ='X';
未选定行
SQL> flashback table x to before drop;
闪回完成。
SQL> select 1 from user_tables where table_name ='X';
1
----------
1
SQL> drop table x;
表已删除。
SQL> purge table x;
表已清除。
SQL> select 1 from user_tables where table_name ='X';
未选定行
SQL> flashback table x to before drop;
flashback table x to before drop
*
第 1 行出现错误:
ORA-38305: 对象不在回收站中
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/10037372/viewspace-663392/ ,如需转载,请注明出处,否则将追究法律责任。