oracle闪回命令列表

闪回必须在归档模式下才能使用
闪回的命令
例:执行Flashback Database命令格式。
SQL>flashback database to time to_timestamp(xxx);
SQL>flashback database to scn xxx

例:执行将test表闪回到2005年5月7日下午3点。
SQL>flashback table test to timestamp to_timestamp(’2005-05-07 15:00:00’,’yyyy-mm-dd hh24:mi:ss’);

例:表被drop后恢复
SQL>select * from recyclebin;
SQL>flashback table "BIN$b+XkkO1RS5K10uKo9BfmuA==$0" to before drop; --回收站表名

SQL>flashback table test_drop to before drop --真实表名
例:闪回查询
SQL>select * from t as of timestamp to_timestamp('2006-09-06 12:47:12','yyyy-mm-dd hh24:mi:ss');
启用行移动
SQL> alter table table1 enable row movement;
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章