Recovering Tables and Table Partitions

RMAN允许在不干扰数据库其他对象的情况下,通过备份将单个或多个表及表分区恢复到特定时间点。此操作适用于少量表的精确恢复、逻辑损坏或已删除并清除的表的恢复。恢复过程涉及创建辅助数据库、确定所需备份、恢复到指定时间点,并可能涉及Data Pump导出导入。限制条件包括不能恢复属于SYS模式、SYSTEM和SYSAUX表空间的表,以及在备用数据库上的表。
摘要由CSDN通过智能技术生成

RMAN可以通过创建auxiliary database使用备份对表进行时间点恢复而不影响其它对象

RMAN enables you to recover one or more tables or table partitions to a specified point in time without affecting the remaining database objects.

You can use previously-created RMAN backups to recover tables and table partitions to a specified point in time. RMAN creates an auxiliary database that is used to recover tables or table partitions to the specified point in time. 

Recovering tables and table partitions from RMAN backups is useful in the following scenarios:

  1. You need to recover a very small number of tables to a particular point in time.
  2. You need to recover tables that have been logically corrupted or have been dropped and purged.
  3. Flashback Table is not possible because the desired point-in-time is older than available undo.
  4. You want to recover data that is lost after a DDL operation modified the structure of tables. Using Flashback Table is not possible because a DDL was run on the tables between the desired point in time and the current time. Flashback Table cannot rewind tables through structural changes such as a truncate table operation.

(一)Limitations of Recovering Tables and Table Partitions

To recover table or table partitions, you need a full backup of undo, SYSTEM, SYSAUX, and the tablespace that contains the table or table partition.

To recover a table, all partitions that contain the dependent objects of the table must be included in the recovery set. If the indexes or partitions for a table in tablespace tbs1 are contained in tablespace tbs2, then you can recover the table only if tablepsace tbs2 is also included in the recovery set.

To recover tables in a PDB, you need backups of the following:

SYSTEM, SYSAUX, and undo tablespace of the root, CDB seed, and the PDB containing the tables

Tablespace containing the tables or partitions

When you use the RECOVER command to recover tables or table partitions contained in an RMAN backup, the following limitations exist.

  1. Tables and table partitions belonging to SYS schema cannot be recovered.
  2. Tables and table partitions from SYSTEM and SYSAUX tablespaces cannot be recovered.
  3. Tables and table partitions on standby databases cannot be recovered.
  4. Tables with named NOT NULL constraints cannot be recovered with the REMAP option.

Steps By

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值