OCP-IZO-053_QUESTION390_ Flashback Database recovery point parameters

DB_SUN發表於2014-02-02

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

 

【小結】

所以閃回過去的時間點可以有SCNTimestampNamed 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/,如需轉載,請註明出處,否則將追究法律責任。

相關文章