标签:测试 complete origin com ror $0 show name sel
Oracle Flashback Technologies - 闪回被drop的表
在oracle10g中,drop一个表后,表没有真正被删除,支持被rename后放在recyclebin中。
#新建一个表y2,用来测试
SQL> create table y2 as select * from all_tables; Table created. SQL> select count(*) from y2; COUNT(*) ---------- 3598
#删除表
SQL> show recyclebin SQL> drop table y2; Table dropped. SQL> show recyclebin ORIGINAL NAME RECYCLEBIN NAME OBJECT TYPE DROP TIME ---------------- ------------------------------ ------------ ------------------- Y2 BIN$GSUg65H6LKDgU7wMCgqm8g==$0 TABLE 2015-06-23:08:04:05 SQL> select count(*) from y2; select count(*) from y2 * ERROR at line 1: ORA-00942: table or view does not exist
#闪回被drop的表
SQL> flashback table y2 to before drop; Flashback complete. SQL> select count(*) from y2; COUNT(*) ---------- 3598 SQL> show recyclebin SQL>
Oracle Flashback Technologies - 闪回被drop的表
标签:测试 complete origin com ror $0 show name sel
原文地址:http://www.cnblogs.com/wangchaoyuana/p/7531999.html