ITPub博客

首页 > Linux操作系统 > Linux操作系统 > 关于flashback 持续更新日记

关于flashback 持续更新日记

原创 Linux操作系统 作者:ad007520 时间:2010-09-23 22:48:03 0 删除 编辑
关于flashback
SQL> flashback table products to before drop;
flashback table products to before drop
*
ERROR at line 1:
ORA-38305: object not in RECYCLE BIN
cause by :
SQL> show parameter recyclebin;
NAME                                 TYPE        VALUE
------------------------------------ ----------- ------------------------------
recyclebin                           string      OFF
sql>startup force mount
SQL> flashback database to timestamp to_timestamp('23-09-10 23:00:0','dd-mm-yy hh24:mi:ss');
flashback database to timestamp to_timestamp('23-09-10 23:00:0','dd-mm-yy hh24:mi:ss')
*
ERROR at line 1:
ORA-38726: Flashback database logging is not on.
cause by:
SQL> select flashback_on from v$database;
FLASHBACK_ON
------------------
NO
-----------------flashback table
ORA-08189: cannot flashback the table because row movement is not enabled

SQL> alter table tab enable row movement;
Table altered.
SQL> flashback table tab to timestamp to_timestamp('20100924 21:18:36','yyyymmdd hh24:mi:ss');
Flashback complete.
SQL> select * from tab;
        ID
----------
         1

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/21993926/viewspace-674732/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2009-06-28

  • 博文量
    137
  • 访问量
    287966