分类(Oracle)
Oracle数据还原
2008/04/26 15:33

--

delete from mt2 a where a.empno > 7788;

commit;

-------
select * from mt2 as of timestamp to_timestamp('20080426 15:14:00','yyyymmdd hh24:mi:ss') where empno>7788;

insert into mt2 select * from mt2 as of timestamp to_timestamp('20080426 15:14:00','yyyymmdd hh24:mi:ss') where empno>7788;

SQL> drop table mt2;

表已删除。

SQL> select * from user_recyclebin;

OBJECT_NAME                    ORIGINAL_NAME                    OPERATION TYPE                     TS_NAME
------------------------------ -------------------------------- --------- ------------------------- ----------
BIN$yRqJ16A6Ro+fXh+PVX4VHw==$0 MT2                              DROP      TABLE                    USERS

SQL> flashback table mt2 to before drop;

闪回完成。

==================================================
注:加参数purge 彻底删除(清[空回收站),不能回收
drop table  table_name purge;
================================================== 
Tags: Oracle
相关日志:
+引用(0) |
发表评论
昵称  密码  游客无需密码
网址  电邮  注册
验证码 请输入左侧图片中的字符
记住我