首页 > 其他 > 详细

闪回表

时间:2016-01-11 11:39:17      阅读:298      评论:0      收藏:0      [点我收藏+]

查询需要闪回的时间的scn:

select timestamp_to_scn(to_timestamp(‘2016-01-11 10:00:00‘,‘yyyy-mm-dd hh24:mi:ss‘)) as scn from dual;

 

如下为执行

SQL> flashback table yky.website to scn 4432168706;
flashback table yky.website to scn 4432168706
                        *
ERROR at line 1:
ORA-08189: 因为未启用行移动功能, 不能闪回表?

 

SQL> alter table yky.website enable row movement;

Table altered.

SQL> flashback table yky.website to scn 4432168706;

Flashback complete.

SQL>

闪回表

原文:http://www.cnblogs.com/krisy/p/5120456.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!