一、环境描述

redhat 7.0

Oracle 12.1.0.2

RAC TO RAC DG


二、报错信息

DGMGRL> add database 'orcldg' as connect identifier is orcldg;

Error: ORA-16571: Oracle Data Guard configuration file creation failure


三、查看官网

Versions 12.1Error:  ORA-16571 Oracle Data Guard configuration file creation failure 
---------------------------------------------------------------------------Cause:  The Oracle Data Guard broker was unable to create the configuration
file on permanent storage.
Action: Verify space, permissions and file name as indicated by the
DG_BROKER_CONFIG_FILE[1|2] initialization parameters and retry the
operation.


检查磁盘空间、权限、文件名,报错日志,发现后台有磁盘报错,检查

99-my-asmdevices.rules文件

KERNEL=="sd*", ENV{DEVTYPE}=="disk", SUBSYSTEM=="block", PROGRAM=="/usr/lib/udev/scsi_id -g -u -d $devnode", RESULT=="36000c29db1506865631780672ae94426", RUN+="/bin/sh -c 'mknod /dev/asmdisk1 b $major $minor; chown grid:dba /dev/asmdisk1; chmod 0660 /dev/asmdisk1'"


四、问题解决

权限修改为grid:asmdba,重启集群,解决问题。关于数据库安装的时候创建的用户和组,大家需要有进一步深入的了解才可以,有助于问题的解决。