OCP-1Z0-053-V12.02-678题

678.Which are the two prerequisites before setting up Flashback Data Archive? (Choose two.)

A.Flash recovery area must be defined

B.Undo retention guarantee must be enabled.

C.Database must be running in archivelog mode.

D.Automatic undo management must be enabled.

E.The tablespace in which the Flashback Data Archive is created must have automatic segment space

Management (ASSM).

Answer: DE

 答案解析:

闪回数据归档参考:http://blog.csdn.net/rlhua/article/details/12221269

A,错误,闪回数据归档跟FRA区没有关系,闪回归档的数据是保存在闪回数据表空间的数据文件里。

B,错误,参考http://blog.csdn.net/rlhua/article/details/12222819,闪回数据归档和undo数据没关系。

C,错误,在非归档模式下也能创建闪回数据归档。

sys@TEST0924> archive log list

Database log mode              No Archive Mode

Automatic archival             Disabled

Archive destination            USE_DB_RECOVERY_FILE_DEST

Oldest online log sequence     16

Current log sequence           20

sys@TEST0924> create flashback archive fla1 tablespace users quota 10M retention 1 year;


Flashback archive created.


D,正确,必须是自动还原管理

自动管理下能创建成功,切换到手动管理后,创建失败。

sys@TEST0924> show parameter undo


NAME                                 TYPE        VALUE

------------------------------------ ----------- ------------------------------

undo_management                      string      AUTO

undo_retention                       integer     900

undo_tablespace                      string      UNDOTBS1

sys@TEST0924> create flashback archive fla1 tablespace users quota 10M retention 1 year;


Flashback archive created.


sys@TEST0924> alter system set undo_management=manual scope=spfile;


System altered.


sys@TEST0924> shutdown immediate

Database closed.

Database dismounted.

ORACLE instance shut down.

sys@TEST0924> startup

ORACLE instance started.


Total System Global Area 3340451840 bytes

Fixed Size                  2232960 bytes

Variable Size            3204451712 bytes

Database Buffers          117440512 bytes

Redo Buffers               16326656 bytes

Database mounted.

Database opened.

sys@TEST0924> show parameter undo


NAME                                 TYPE        VALUE

------------------------------------ ----------- ------------------------------

undo_management                      string      MANUAL

undo_retention                       integer     900

undo_tablespace                      string      UNDOTBS1

sys@TEST0924> create flashback archive fla2 tablespace users quota 10M retention 1 year;

create flashback archive fla2 tablespace users quota 10M retention 1 year

*

ERROR at line 1:

ORA-55628: Flashback Archive supports Oracle 11g or higher


E,正确。TESTUNDOTBS 为手动管理的,在此上面创建闪回数据归档,报错。所以必须在ASSM表空间下使用

sys@TEST0924> select tablespace_name,segment_space_management from dba_tablespaces;


TABLESPACE_NAME                SEGMEN

------------------------------ ------

SYSTEM                         MANUAL

SYSAUX                         AUTO

UNDOTBS1                       MANUAL

TEMP                           MANUAL

USERS                          AUTO

EXAMPLE                        AUTO

TESTTBS                        AUTO

TESTUNDOTBS                    MANUAL


8 rows selected.


sys@TEST0924> create flashback archive fla2 tablespace users quota 10M retention 1 year

  2  

sys@TEST0924> create flashback archive fla2 tablespace TESTUNDOTBS quota 10M retention 1 year;

create flashback archive fla2 tablespace TESTUNDOTBS quota 10M retention 1 year

                                         *

ERROR at line 1:

ORA-55627: Flashback Archive tablespace must be ASSM tablespace

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值