码迷,mamicode.com
首页 > 数据库 > 详细

[oracle] 闪回误删除表

时间:2020-04-13 01:02:55      阅读:83      评论:0      收藏:0      [点我收藏+]

标签:ash   ack   hba   sel   删除   oracl   back   rom   view   

删除表

SQL> drop table c##sapr3.test;

Table dropped.

SQL> select count(*) from  c##sapr3.test;
select count(*) from  c##sapr3.test
                               *
ERROR at line 1:
ORA-00942: table or view does not exist

恢复

SQL> flashback table c##sapr3.test to before drop;

Flashback complete.

SQL> select count(*) from  c##sapr3.test;

  COUNT(*)
----------
    123029

永久删除

SQL> drop table c##sapr3.test;

Table dropped.

SQL> purge table c##sapr3.test;

Table purged.

SQL> select count(*) from  c##sapr3.test;
select count(*) from  c##sapr3.test
                               *
ERROR at line 1:
ORA-00942: table or view does not exist


SQL> flashback table c##sapr3.test to before drop;
flashback table c##sapr3.test to before drop
*
ERROR at line 1:
ORA-38305: object not in RECYCLE BIN

 

[oracle] 闪回误删除表

标签:ash   ack   hba   sel   删除   oracl   back   rom   view   

原文地址:https://www.cnblogs.com/tingxin/p/12688713.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!