using flashback 应对表删除误操作

上一篇 / 下一篇  2008-05-16 18:12:18 / 个人分类:ORACLE

1.drop 表

drop table test.table1

表已删除

flashback table test.table1 before drop

闪回完成。

2.删除行

select * from test.table1
where stu_id=50 and class_id=4

delete  from test.table1
where stu_id=50 and class_id=4

flashback table yaotf.tf2000 to timestamp systimestamp - interval '15' minute

第 1 行出现错误:
ORA-08189: 因为未启用行移动功能, 不能闪回表

alter table  test.table1enable row movement

flashback table yaotf.tf2000 to timestamp systimestamp - interval '15' minute

闪回完成。


TAG:

 

评分:0

我来说两句

显示全部

:loveliness: :handshake :victory: :funk: :time: :kiss: :call: :hug: :lol :'( :Q :L ;P :$ :P :o :@ :D :( :)

我的栏目

日历

« 2008-08-22  
     12
3456789
10111213141516
17181920212223
24252627282930
31      

数据统计

  • 访问量: 270
  • 日志数: 10
  • 建立时间: 2008-03-27
  • 更新时间: 2008-05-19

RSS订阅

Open Toolbar