ORA-29321: too many datafiles added since the point-in-time
Cause: Too many datafiles were added to the recovery set since the point-in-time recovery.
Action: Divide the recovery set into smaller subsets and retry.
ORA-29321 错误代码指示,在指定的点时间(point-in-time)以后添加的数据文件太多,无法用备份进行恢复。
ORA-29321: too many datafiles added since the point-in-time
Cause: The number of datafiles added since the specified point-in-time is more than the number of datafiles that can be restored from the specified backup.
Action: Choose a backup from which the added datafiles can be restored, or remove the added datafiles.
异常恢复(abnormal recovery)
此报错通常在使用RMAN进行数据文件异常恢复时出现。这时,选定的恢复点和选择的备份时间节点之间已经添加了新的数据文件,超出了此时能从此备份进行恢复的数据文件的最大数量,导致ORA-29321错误。
(1)使用更新的备份集进行恢复。可以使用RMAN新建command> backup database plus archivelog,以包括新添加的数据文件。
(2)如果能从当前备份中获取新添加的数据文件,则可以使用RMAN restore database command来恢复它们。
(3)如果新添加的数据文件是用于新的Schema对象,例如tables、indexes和tablespaces,则可以将其移至其他表空间并禁用ORA-29321错误。
(4)可以对数据库附上更多的临时表空间,然后将新添加的数据文件移到该表空间,以解决ORA-29321错误。
(5)如果这些数据文件不再需要,则可以使用Drop database command将其从数据库彻底删除,从而避免ORA-29321错误。