基本閃回查詢和閃回表
參考:
http://blog.csdn.net/leshami/article/details/6112607
基本閃回查詢
select * from t1
as of timestamp to_timestamp('2015-05-26 22:04:08','yyyy-mm-dd hh24:mi:ss');
或者
select * from t1
as of timestamp current_timestamp - interval '15' minute;
查詢誤刪除的資料
select * from t1
as of timestamp to_timestamp('2015-05-26 22:04:08','yyyy-mm-dd hh24:mi:ss')minus
select * from t1;
將會話設定在固定的時間
execute dbms_flashback.enable_at_time(to_timestamp('2015-05-26 22:04:08','yyyy-mm-dd hh24:mi:ss'));
execute dbms_flashback.disable;
閃回表
alter table t1 enable row movement;
alter table t2 enable row movement;
flashback table t1,t2 to timestamp to_timestamp('2015-05-26 22:35:08','yyyy-mm-dd hh24:mi:ss');
flashback table t1,t2 to timestamp current_timestamp- interval '10' minute;
http://blog.csdn.net/leshami/article/details/6112607
基本閃回查詢
select * from t1
as of timestamp to_timestamp('2015-05-26 22:04:08','yyyy-mm-dd hh24:mi:ss');
或者
select * from t1
as of timestamp current_timestamp - interval '15' minute;
查詢誤刪除的資料
select * from t1
as of timestamp to_timestamp('2015-05-26 22:04:08','yyyy-mm-dd hh24:mi:ss')minus
select * from t1;
將會話設定在固定的時間
execute dbms_flashback.enable_at_time(to_timestamp('2015-05-26 22:04:08','yyyy-mm-dd hh24:mi:ss'));
execute dbms_flashback.disable;
閃回表
alter table t1 enable row movement;
alter table t2 enable row movement;
flashback table t1,t2 to timestamp to_timestamp('2015-05-26 22:35:08','yyyy-mm-dd hh24:mi:ss');
flashback table t1,t2 to timestamp current_timestamp- interval '10' minute;
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/29254281/viewspace-1673034/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 閃回表、閃回查詢
- 閃回查詢之閃回表查詢
- 閃回查詢之閃回版本查詢
- 【閃回特性之閃回查詢】使用閃回查詢(select as of)
- 閃回(關於閃回查詢)
- 閃回刪除、閃回查詢
- 閃回技術一:閃回查詢
- 閃回查詢
- Oracle 11G 閃回技術 閃回版本查詢和閃回事務查詢Oracle
- DM7閃回與閃回查詢
- (f)--閃回恢復區---實踐2---閃回表(閃回DML部分資料會用到閃回查詢)
- oracle閃回查詢Oracle
- 閃回查詢(轉)
- 閃回查詢(1)
- oracle 閃回查詢Oracle
- 閃回版本查詢與閃回事務查詢
- [閃回特性之閃回版本查詢]Flashback Version Query
- Oracle閃回查詢,閃回版本查詢與閃回事務查詢的使用區別總結Oracle
- Flashback Query閃回查詢
- oracle的閃回查詢Oracle
- oracle的回閃查詢Oracle
- 閃回查詢(undo sql)SQL
- 閃回版本查詢操作
- 閃回技術二:閃回表
- oralce恢復誤刪除的表中的資料(閃回、閃回查詢)
- 【備份恢復】閃回技術之閃回版本查詢
- Oracle 11G 閃回技術 使用Oracle閃回查詢Oracle
- Oracle 11G 閃回技術 使用閃回版本查詢Oracle
- DM8 閃回查詢
- 閃回版本查詢技術:
- oracle閃回版本查詢學習Oracle
- 閃回技術查詢資料
- Oracle 11g 閃回查詢Oracle
- 閃回版本查詢(Flashback Version Query)
- 閃回查詢恢復過程
- 【閃回特性之閃回事務查詢】Flashback Transaction Query
- 回閃查詢查詢刪除的資料
- Oracle 11g 閃回版本查詢Oracle