错误描述:
在使用duplicate from active database 创建物理ADG后,启动备库时提示如下信息:
idle> startup pfile=initora11g.ora
ORACLE instance started.alter 日志中的信息如下:
ARC1: Becoming the heartbeat ARCH
Signalling error 1152 for datafile 1!
Beginning standby crash recovery.
Serial Media Recovery started
Managed Standby Recovery starting Real Time Apply
Media Recovery Waiting for thread 1 sequence 9
Thu Feb 21 13:44:31 2013
FAL[client]: Failed to request gap sequence
GAP - SCN range: 0x0000.000d2255 - 0x0000.000d2255
DBID 4173278619 branch 777078497
FAL[client]: All defined FAL servers have been attempted.
-------------------------------------------------------------
Check that the CONTROL_FILE_RECORD_KEEP_TIME initialization
parameter is defined to a value that is sufficiently large
enough to maintain adequate log switch information to resolve
archivelog gaps.
-------------------------------------------------------------
错误分析:
原来standby 数据库的 FAL_SERVER 和 FAL_CLIENT 的 参数值是 net service name ,不是db_unique_name 。
这两个值只对 standby 角色的数据库起作用,是解决 archive gap的重要参数,因此不能写错了。
The FAL client and server are configured using the FAL_CLIENT and FAL_SERVER initialization parameters that are set on the standby database
FAL_SERVER:Specifies the network service name that the standby database should use to connect to the FAL server. It can consist of multiple values in a list.
FAL_CLIENT:Specifies the network service name that the FAL server should use to connect to the standby database.
另外:
primary 角色数据库的 LOG_ARCHIVE_DEST_2='SERVICE=....... 也是net_service_name
SERVICE=net_service_name
Specifies a valid Oracle Net service name (SERVICE=net_service_name) that identifies the remote Oracle database instance to which redo data will be sent. Each destination must specify either the LOCATION or the SERVICE attribute. There is no default net service name.
解决方法:
根据备库中tnsname.ora文件中的网络名修改以下两个参数,再重启库。
FAL_SERVER=‘’ --引号内的值写备库tnsname.ora文件中连接主库的连接标识符。
FAL_CLIENT=‘’ --引号内的值写备库tnsname.ora文件中连接备库的连接标识符。