从回收站闪回表

查看回收站有没有开启,默认开启状态

SQL> show parameter recy

NAME TYPE VALUE


buffer_pool_recycle string
db_recycle_cache_size big integer 0
recyclebin string on

建表,插入数据,并删除

SQL> create table tmp_a (a number);

Table created.

SQL> insert into tmp_a values ('1');

1 row created.

SQL> commit;

Commit complete.

SQL> drop table tmp_a;

Table dropped.

查询回收站内容
select * from user_recyclebin;

select * from dba_recyclebin;

闪回回收站的表
SQL> flashback table tmp_a to before drop;

Flashback complete.

再次查询下,表与数据还在

SQL> select * from tmp_a;

 A

1

转载于:https://blog.51cto.com/xiaosix/2045065

你可能感兴趣的:(从回收站闪回表)