AppSync:当源 Oracle 实例 init 文件包含两个 log_archive_dest_1 条目时,Oracle 恢复失败

Summary: 当目标主机上的 initORADEV.ora 中有两个数据库参数条目时,Oracle 恢复失败。

This article applies to This article does not apply to This article is not tied to any specific product. Not all product versions are identified in this article.

Symptoms

ASM 正在用于报告的问题。

AppSync 服务计划事件(事件日志)显示:
2021-11-09 18:48:41.335,Recover copy,6c70267c-0e32-4eb0-8d52-64682e5a2451,ORCL_000048,MountHost,AppSync 无法修改 ASM 实例上的 asm_diskstring 参数 — 恢复可能会失败。检查代理程序日志以了解详细信息。在尝试装载作之前,请确保 asm_diskstring 参数具有非空值。
2021-11-09 18:48:56.785,Recover copy,6c70267c-0e32-4eb0-8d52-64682e5a2451,ORCL_000040,AS-Server,主机 MountHost 上的恢复作失败。Oracle 数据库 MountDB 在装载模式下无法启动。
2021-11-09 18:49:11.37,Recover copy,6c70267c-0e32-4eb0-8d52-64682e5a2451,ORCL_000042,AS-Server,一个或多个数据库无法恢复。检查服务器和代理程序日志以了解详细信息。
2021-11-09 18:49:13.12,Recover copy,6c70267c-0e32-4eb0-8d52-64682e5a2451,MILE_000005,AS-Server,PRODDB 的恢复复制阶段已完成,但有错误

装载主机 AppSync 代理日志显示:
2021-11-09 18:48:26.603 oracle.py[5018]:_execSql() SQLresult:连接到:
2021-11-09 18:48:26.603 oracle.py[5018]:_execSql() SQLresult:Oracle Database 12c 企业版 12.1.0.2.0 - 64 位 Production
2021-11-09 18:48:26.604 oracle.py[5018]:_execSql() SQLresult:使用自动存储管理选项
2021-11-09 18:48:26.604 oracle.py[5018]:_execSql() SQLresult:
2021-11-09 18:48:26.604 oracle.py[5018]:_execSql() SQLresult:SQL> SQL> alter system set asm_diskstring='' scope=both
2021-11-09 18:48:26.604 oracle.py[5018]:_execSql() SQLresult:*
2021-11-09 18:48:26.604 oracle.py[5018]:_execSql() SQLresult:ERROR at line 1:
2021-11-09 18:48:26.604 oracle.py[5018]:_execSql() SQLresult:ORA-32001: write to SPFILE requested but no SPFILE is in use
2021-11-09 18:48:26.604 oracle.py[5018]:_execSql() SQLresult:与 Oracle Database 12c 企业版 12.1.0.2.0(64 位生产版)断开连接

但是,在之前从装载主机进行的 AppSync 代理日志中,AppSync 从查询中返回了两个 log_archive_dest_1 条目。返回两个条目是此问题的主要识别因素。

日志条目类似于:
2021-11-09 18:45:41.492 oracle.py[5097]:_sqlQuery() SQL*Plus Query: select 'AppSync_entry:'||名称||'////'||value from v$sp参数,其中 ISSPECIFIED='TRUE' 并且 name 不像 'instance_mode' 并且 name 不像 'INSTANCE_MODE';
2021-11-09 18:45:41.741 oracle.py[5125]:_sqlQuery() SQL*plus > AppSync_entry:log_archive_dest_1////location=“+FRAPROD” mandatory valid_for=(online_logfile,all_roles)
2021-11-09 18:45:41.741 oracle.py[5125]:_sqlQuery() SQL*plus >
2021-11-09 18:45:41.741 oracle.py[5125]:_sqlQuery() SQL*plus > 'APPSYNC_ENTRY:'||名称||'////'||VALUE 2021-11-09 18:45:41.742 oracle.py[5125]:_sqlQuery() SQL*plus -----------------2021-11-09 18:45:41.742 oracle.py[5125]:_sqlQuery() SQL*plus > AppSync_entry:log_archive_dest_1////location=“+FRAPROD”
2021-11-09 18:45:41.742 oracle.py[5125]:_sqlQuery() SQL*plus >
AppSync_entry:log_archive_dest_1////强制valid_for=(ALL_LOGFILES,ALL_ROLES)
>

Cause

此问题是由于生产 (SOURCE) 初始化文件中有两个“log_archive_dest_1”条目,如下所示:

*.log_archive_dest_1='location=“+FRAPROD” mandatory valid_for=(online_logfile,all_roles)'
PROD.log_archive_dest_1='location=“+FRAPROD”','MANDATORY valid_for=(ALL_LOGFILES,ALL_ROLES)'

Resolution

删除归档日志目标的冗余条目可解决此问题。

Affected Products

AppSync
Article Properties
Article Number: 000194025
Article Type: Solution
Last Modified: 28 Oct 2025
Version:  2
Find answers to your questions from other Dell users
Support Services
Check if your device is covered by Support Services.