关于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/
,如需转载,请注明出处,否则将追究法律责任。