ocp-043 Flashback Drop feature

14. Which two statements are correct regarding the Oracle Flashback Drop feature? (Choose two.)

A.Recycle bin exists for the tables only in non-SYSTEM, locally managed tablespaces.

B.You can flash back a dropped table provided row movement has been enabled on the table.

C.If you drop an index before dropping its associated table, then the recovery of the index is not supported when you flash back the dropped table.

D.When you execute the DROP TABLESPACE INCLUDING CONTENTS command, the objects in the tablespace are placed in the recycle bin.

E.When a dropped table is moved to the recycle bin, only the table is renamed to a system-generated name; its associated objects and constraints are not renamed.

F.If you drop a table that is protected by the recycle bin, then associated bitmap-joined indexes and materialized view logs are also stored in the recycle bin.

答案:AC

解析:

基于Recycle Bin 的表恢复

(1)Flashback Drop 不能恢复参照完整性,这很容易理解,毕竟在该表删除之

后,被参照表是否有修改,它已经无法控制了,因此如果该表有主外键约束的话,

恢复之后,该约束是DISABLE 状态,需要DBA 手工处理。

(2)所操作的表必须是存在于本地管理表空间中。Flashback Drop 不能恢复字典管理表空间中被删除的表。

(3)被恢复的表的关联对象,如其索引、约束的名称不会自动恢复成删除前的名称,而是系统自动生成的名称,如果你对表的索引、约束有相应命名规范,那在恢复表之后,需要DBA 手工将索引、约束等改名。另外位图索引不能被恢复,因为删除表时位图索引信息并不会被放入Recycle Bin 中。

(4)当删除表时,依赖于该表的物化视图也会同时删除,但是由于物化视图并不会被放入Recycle Bin,因此当你执行FLASHBACK TABLE TO BEFORE DROP时,也不能恢复依赖其的物化视图,需要DBA 手工介入重新创建。

(5)相对于被删除的表而言,当数据文件空间不足时,Oracle 会首先清理被删除表的索引,因此假如你执行FLASHBACK TABLE TO BEFORE DROP 后发现恢复出来的数据缺少索引可能是正常的,说明你显然错过了最佳的恢复时机。

(6)Flashback Drop 支持同时操作多个表,表名中间以逗号分隔,如果你执行一条Flashback Table 命令时同时指定了多个表,要记住单个Flashback Table是在同一个事务中,因此这些表的恢复操作要么都成功,要么都失败。

(7)Flashback Drop 只能恢复DROP 命令删除的表,如果你通过TRUNCATE 命令清空表中数据,然后又希望恢复,对于这种情况不管是Flashback Table 还是Flashback Query 都无能为力,唯一能恢复TRUNCATE 操作的Flashback 特性是Flashback Database,不过代价也比较大。

Flashback table table_name to scn(恢复被删除的记录)才需要启动row movement;故B 错


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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值