After standby database rebuilt, then trying to copy database password file from primary to standby ASM disk, the below errors occurred:
ASMCMD> pwcopy --dbuniquename RACTEST '/tmp/orapwractest' '+DATA/RACTEST/orapwractest' copying /tmp/orapwractest -> +DATA/RACTEST/orapwractest PRCD-1163 : Failed to modify database RACTEST PRCR-1071 : Failed to register or update resource ora.ractest.db CRS-0245: User doesn't have enough privilege to perform the operation ASMCMD-9453: failed to register password file as a CRS resource
The password file was copied to ASM diskgroup ‘+DATA’ successfully, but the configuring of database failed .
WORKAROUND
Rerun the same command without “–dbuniquename RACTEST” option.
ASMCMD> pwcopy /tmp/orapwractest +DATA/RACTEST/orapwractest copying /tmp/orapwractest -> +DATA/RACTEST/orapwractest
Then use ‘srvctl’ to re-configure database as user ‘oracle’ if needed:
$srvctl modify database -d RACTEST -pwfile '+DATA/RACTEST/orapwractest'; $srvctl config database -d RACTEST