Oracle 9I FlashBack 測試
Oracle 9I FlashBack 測試[@more@]
15:08:22 SQL> execute DBMS_flashback.ENABLE_AT_TIME(to_date('2003-05-16 15:00:00'));
PL/SQL procedure successfully completed.
15:09:02 SQL> select * from t;
A
----------
gototop
15:16:43 SQL> execute DBMS_flashback.DISABLE;
PL/SQL procedure successfully completed.
-----------------------------------------------------------------------
PL/SQL procedure successfully completed.
15:09:02 SQL> select * from t;
A
----------
gototop
15:16:43 SQL> execute DBMS_flashback.DISABLE;
PL/SQL procedure successfully completed.
-----------------------------------------------------------------------
15:38:57 SQL> declare
15:39:28 2 cursor flash_recover is
15:39:28 3 select * from t;
15:39:28 4 t_recode t%rowtype;
15:39:28 5 begin
15:39:28 6 DBMS_flashback.ENABLE_AT_TIME(to_date('2003-05-16 15:37:23'));
15:39:28 7 open FLASH_RECOVER;
15:39:28 8 DBMS_flashback.DISABLE;
15:39:28 9 loop
15:39:28 10 FETCH FLASH_RECOVER INTO t_recode;
15:39:28 11 EXIT WHEN FLASH_RECOVER%NOTFOUND;
15:39:28 12 insert into t values (t_recode.a);
15:39:28 13 end loop;
15:39:28 14 CLOSE FLASH_RECOVER;
15:39:28 15 commit;
15:39:28 16 end;
15:39:28 17 /
PL/SQL procedure successfully completed.
15:39:28 2 cursor flash_recover is
15:39:28 3 select * from t;
15:39:28 4 t_recode t%rowtype;
15:39:28 5 begin
15:39:28 6 DBMS_flashback.ENABLE_AT_TIME(to_date('2003-05-16 15:37:23'));
15:39:28 7 open FLASH_RECOVER;
15:39:28 8 DBMS_flashback.DISABLE;
15:39:28 9 loop
15:39:28 10 FETCH FLASH_RECOVER INTO t_recode;
15:39:28 11 EXIT WHEN FLASH_RECOVER%NOTFOUND;
15:39:28 12 insert into t values (t_recode.a);
15:39:28 13 end loop;
15:39:28 14 CLOSE FLASH_RECOVER;
15:39:28 15 commit;
15:39:28 16 end;
15:39:28 17 /
PL/SQL procedure successfully completed.
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/66634/viewspace-847214/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 【FLASHBACK】Oracle flashback data archive 介紹OracleHive
- ORACLE Flashback Query偽列Oracle
- oracle 10g flashback databaseOracle 10gDatabase
- Oracle 備份恢復之 FlashbackOracle
- Oracle閃回技術--Flashback Version QueryOracle
- oracle 9i資料庫做spaOracle資料庫
- Oracle replayc測試Oracle
- Installing Oracle 9i on OELRHEL 4.8 64bitOracle
- ORACLE壓力測試Oracle
- Oracle TDE加密測試Oracle加密
- 在Oracle DG Standby庫上啟用flashback database功能OracleDatabase
- ORACLE 閃回檢視v$flashback_database_log/statOracleDatabase
- 在oracle 9i下線上重定義表Oracle
- oracle 9i臨時表產生過多redoOracle
- Oracle RMAN恢復測試Oracle
- Oracle logmnr簡單測試Oracle
- Oracle sqlldr工具功能測試OracleSQL
- Oracle RAC序列效能測試Oracle
- Oracle 11gRac 測試案例(三)系統測試Oracle
- Oracle 11gRac 測試案例(五)ASM功能測試OracleASM
- Oracle 9i統計資訊備份與恢復Oracle
- Oracle rman duplicate遷移測試Oracle
- oracle壓力測試之orastress!OracleAST
- Oracle JDBC ResultSet引數測試OracleJDBC
- 【FLASHBACK】Oracle閃回及回收站相關語句參考Oracle
- Oracle 12.2新特性: PDB級閃回資料庫(Flashback PDB)Oracle資料庫
- Oracle 11gRac 測試案例(二)系統測試(一)Oracle
- 【Flashback】Flashback Drop閃回刪除功能實驗
- oracle測試資料庫啟用Oracle資料庫
- oracle鎖級別相關測試Oracle
- 使用profiler測試Oracle PL/SQL效能OracleSQL
- oracle壓力測試之orabm(三)Oracle
- Oracle 閃回資料庫測試Oracle資料庫
- oracle壓力測試之orabm(一)Oracle
- oracle壓力測試之orabm(二)Oracle
- Flashback Query(轉)
- 【Flashback】Flashback Database閃回資料庫功能實驗Database資料庫
- 2.5.4. 測試Oracle net——2.5.4.3. 測試網路服務名Oracle
- Oracle 12C Sharding部署和測試Oracle