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;
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章