測試flashback database
閃回資料庫:
1、設定db_recovery_file_dest、db_recovery_file_dest_size
Show parameter db_recover;
Alter system set db_recovery_file_dest='/u01/app/oracle/flash_recovery_area';
Alter system set db_recovery_file_dest_size=1g;
2、啟動歸檔模式
3、啟動flashback database資料庫(在mount下啟動)
Select flashback_on from v$database;
Alter database flashback on;
4、設定db_flashback_retention_target;
Alter system set db_flashback_retention_target=1440;
5、啟動強制日誌模式
Select force_logging from v$database;
alter database force logging;
6、查詢當前SCN號
SQL> col current_scn for 9999999999999999
SQL> select current_scn from v$database;
CURRENT_SCN
-----------------
1217740
7、刪除一個表test12
Drop table test12;
8、啟動資料庫到mount下面
Startup mount;
9、flashbackup資料庫
Flashback database to scn 1217740
10、開啟資料庫
Alter database open read only;
11、恢復資料庫到當前狀態
Recover database;
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/27571661/viewspace-751942/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- oracle 10g flashback databaseOracle 10gDatabase
- 【Flashback】Flashback Database閃回資料庫功能實驗Database資料庫
- [20210722]ORA-38760與flashback database.txtDatabase
- Flashback database必須要有之前的archivelog嗎?DatabaseHive
- 在Oracle DG Standby庫上啟用flashback database功能OracleDatabase
- ORACLE 閃回檢視v$flashback_database_log/statOracleDatabase
- 【FLASHBACK】Oracle flashback data archive 介紹OracleHive
- Oracle ORION模擬Database負載測試儲存效能OracleDatabase負載
- 【Flashback】Flashback Drop閃回刪除功能實驗
- Computer programming and database - 考試整理Database
- Flashback Query(轉)
- 測試測試測試測試測試測試
- 2.6.2 Overview of Flashback PDB in a CDBView
- ORACLE Flashback Query偽列Oracle
- flashback query閃回資料
- Flashback Data Archive原理詳解Hive
- The database owner SID recorded in the master database differs from the database owner SID recorded in database 'DB_NAME'DatabaseAST
- Oracle 備份恢復之 FlashbackOracle
- Error querying database. XXXXXXXXXXXXX, No database selected。ErrorDatabase
- Convert a Physical Standby Database into a Snapshot Standby DatabaseDatabase
- Oracle Database Cloud - Database as a Service Quick StartOracleDatabaseCloudUI
- 測試—測試方法
- 測試測試用
- flashback實現資料快速復原
- 用flashback恢復儲存過程儲存過程
- guarantee restore points-Flashback after RMAN restoreREST
- [20181002]DBMS_FLASHBACK與函式.txt函式
- Oracle閃回技術--Flashback Version QueryOracle
- [20180424]開啟表空flashback on.txt
- App測試、Web測試和介面測試一般測試流程APPWeb
- Flutter 學習之路 - 測試(單元測試,Widget 測試,整合測試)Flutter
- 測試面試-測試用例面試
- 介面測試測試流程
- Database TimeoutDatabase
- database no shardingDatabase
- Database OverallDatabase
- 介面測試,負載測試,併發測試,壓力測試區別負載
- 測試CMS同步測試CMS同步測試CMS同步
- (一)效能測試(壓力測試、負載測試)負載