OCP-IZO-053_QUESTION390_ Flashback Database recovery point parameters
QUESTION NO: 390
Which of these are valid Flashback Database recovery point parameters? (Choose all that apply.)
A. SCN
B. Timestamp
C. Named recovery point
D. Transaction ID
E. Session ID
【題目示意】
此題考查有關於Flashback Database recovery point的相關知識。
【解析】
在閃回整個資料庫的時候,指定一個過去的時間點,SCN,或者日誌序列號。
【實驗】
1)啟用資料庫閃回功能:
SYS@ENMOEDU > startup mount;
ORACLE instance started.
Total System Global Area 422670336 bytes
Fixed Size 1345380 bytes
Variable Size 306186396 bytes
Database Buffers 109051904 bytes
Redo Buffers 6086656 bytes
Database mounted.
SYS@ENMOEDU > alter database flashback on;
SYS@ENMOEDU > select FLASHBACK_ON from v$database;
FLASHBACK_ON
------------------
YES
2)基於時間點的資料庫閃回
SYS@ENMOEDU > select count(*) from t1;
COUNT(*)
----------
72152
SYS@ENMOEDU > select to_char(sysdate,'yyyy-mm-dd hh24:mi:ss') tm from dual;
TM
-------------------
2014-02-01 20:19:09
SYS@ENMOEDU > drop table t1;
Table dropped.
SYS@ENMOEDU > shutdown
Database closed.
Database dismounted.
ORACLE instance shut down.
SYS@ENMOEDU > startup mount;
ORACLE instance started.
Total System Global Area 422670336 bytes
Fixed Size 1345380 bytes
Variable Size 306186396 bytes
Database Buffers 109051904 bytes
Redo Buffers 6086656 bytes
Database mounted.
SYS@ENMOEDU > flashback database to timestamp to_timestamp('2014-02-01 20:19:09','yyyy-mm-dd hh24:mi:ss');
Flashback complete.
SYS@ENMOEDU > alter database open read only;
SYS@ENMOEDU > shutdown
SYS@ENMOEDU > startup mount;
SYS@ENMOEDU > alter database open resetlogs;
Database altered.
SYS@ENMOEDU > select count(*) from t1;
COUNT(*)
----------
72152
3)基於SCN的閃回:
SYS@ENMOEDU > select count(*) from t1;
COUNT(*)
----------
72152
SYS@ENMOEDU > select current_scn from v$database;
CURRENT_SCN
-----------
915934
SYS@ENMOEDU > drop table t1;
Table dropped.
SYS@ENMOEDU > shutdown;
Database closed.
Database dismounted.
ORACLE instance shut down.
SYS@ENMOEDU > startup mount;
ORACLE instance started.
Total System Global Area 422670336 bytes
Fixed Size 1345380 bytes
Variable Size 310380700 bytes
Database Buffers 104857600 bytes
Redo Buffers 6086656 bytes
Database mounted.
SYS@ENMOEDU > flashback database to scn 915934;
Flashback complete.
SYS@ENMOEDU > alter database open read only;
SYS@ENMOEDU > shutdown
SYS@ENMOEDU > startup mount;
SYS@ENMOEDU > alter database open resetlogs;
Database altered.
SYS@ENMOEDU > select count(*) from t1;
COUNT(*)
----------
72152
4)基於時點的閃回
SYS@ENMOEDU > select count(*) from t1;
COUNT(*)
----------
72152
SYS@ENMOEDU > create restore point before_changes;
Restore point created.
SYS@ENMOEDU > drop table t1;
Table dropped.
SYS@ENMOEDU > shutdown
Database closed.
Database dismounted.
ORACLE instance shut down.
SYS@ENMOEDU > startup mount
ORACLE instance started.
Total System Global Area 422670336 bytes
Fixed Size 1345380 bytes
Variable Size 310380700 bytes
Database Buffers 104857600 bytes
Redo Buffers 6086656 bytes
Database mounted.
SYS@ENMOEDU > flashback database to restore point before_changes;
Flashback complete.
SYS@ENMOEDU > alter database open read only;
SYS@ENMOEDU > shutdown
SYS@ENMOEDU > startup mount;
SYS@ENMOEDU > alter database open resetlogs;
Database altered.
SYS@ENMOEDU > select count(*) from t1;
COUNT(*)
----------
72152
【小結】
所以閃回過去的時間點可以有SCN,Timestamp,Named recovery point三個引數決定。因此選擇ABC
【答案】 ABC
相關參考
file:///D:/oracle/11g手冊_01/backup.112/e10642/rcmquick.htm#BABBHDFJ
The end
DB_SUN
2014.2.1
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/29435844/viewspace-1076844/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 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
- mysql point in time recovery using sql_thread SQL_Thread增量恢復binlog 要點MySqlthread
- ORA-02062: distributed recovery 引起的 ORA-02019: connection description for remote database not foundREMDatabase
- Oracle 12c DG備庫啟動報錯standby database requires recoveryOracleDatabaseUI
- 【FLASHBACK】Oracle flashback data archive 介紹OracleHive
- Oracle DataBase Recovery資料庫dbf中了勒索病毒[Ransomwaree2020@cock.li].ekingOracleDatabase資料庫
- 【Flashback】Flashback Drop閃回刪除功能實驗
- Flashback Query(轉)
- TypeError: object() takes no parametersErrorObject
- study critical point and saddle point using Hessian Matrix
- Android Audio HAL 介面介紹之 adev_set_parameters()和out_set_parameters()Androiddev
- ORACLE Flashback Query偽列Oracle
- 2.6.2 Overview of Flashback PDB in a CDBView
- flashback query閃回資料
- Flashback Data Archive原理詳解Hive
- SAP Spartacus 中的 HTTP URL parametersHTTP
- Rockchip RK3588 - Rockchip Linux Recovery recovery原始碼分析Linux原始碼
- The database owner SID recorded in the master database differs from the database owner SID recorded in database 'DB_NAME'DatabaseAST
- SampleNet: Differentiable Point Cloud SamplingCloud
- Oracle 備份恢復之 FlashbackOracle
- Oracle Database Cloud - Database as a Service Quick StartOracleDatabaseCloudUI
- Error querying database. XXXXXXXXXXXXX, No database selected。ErrorDatabase
- Convert a Physical Standby Database into a Snapshot Standby DatabaseDatabase
- guarantee restore points-Flashback after RMAN restoreREST
- [20181002]DBMS_FLASHBACK與函式.txt函式
- Oracle閃回技術--Flashback Version QueryOracle
- 用flashback恢復儲存過程儲存過程
- [20180424]開啟表空flashback on.txt
- flashback實現資料快速復原
- c++ 模板模板引數("Template Template Parameters")C++
- Dynamics CRM Xrm.Utility.openEntityForm passing lookup parametersORM
- CF685C Optimal Point
- OpenCV(logPolar()、Point2f())OpenCV
- 手機刷TWRP Recovery