ORA-39140: dump file “string” belongs to job string
Cause: When a dump file set consists of multiple files, all files in the set must be specified for an import operation, and all files must have been produced by the same export job. One of the files provided does not belong to the original dump file set. For instance, it was created by a different export job than the other files.
Action: Remove the dump file indicated in the message and retry the import operation providing only the complete set of dump files created by a specific export job.
ORA-39140 是一个用户自定义错误,说明给定的转储文件不属于指定的job。
ORA-39140 错误表示给定的转储文件不属于指定的job。该信息是发送给 RMAN 进程的自定义新增错误,表明在转储子任务中检测到的一个不匹配。
一些客户使用 Oracle Cloud 对象存储来管理备份文件,并且使用 RMAN 来进行备份和恢复操作。如果备份的选项不正确,可能会导致这种错误。
1. 确保使用正确的 RMAN 备份和恢复选项;
2. 确保备份所有需要保留的文件,并且备份文件在传输到正确的位置;
3. 将转储文件复制到正确的位置;
4. 使用以下命令从每个正确备份文件中恢复数据:
RMAN> RECOVER BACK UPCURLILAED TO RESTOREPOINT;
5. 使用以下命令重建索引:
RMAN> RECOVER BACK UPCURLILAED TO RESTOREPOINT INDEXES;
6. 使用以下命令恢复表空间:
RMAN> RECOVER BACK UPCURLILAED TO RESTOREPOINT TABLESPACES;
7. 重新启动数据库,以确保文件中的所有数据恢复完整:
RMAN> STARTUP FORCE;