duplicate报ORA-17502、ORA-15001、ORA-15040

在duplicate过程中报错

Starting backup at 11-JAN-20
using channel ORA_DISK_1
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of Duplicate Db command at 01/11/2020 16:32:37
RMAN-05501: aborting duplication of target database
RMAN-03015: error occurred in stored script Memory Script
RMAN-03009: failure of backup command on ORA_DISK_1 channel at 01/11/2020 16:32:36
ORA-17629: Cannot connect to the remote database server
ORA-17627: ORA-12537: TNS:connection closed
ORA-17629: Cannot connect to the remote database server

备库alert日志报

SUCCESS: diskgroup DATADG was dismounted
ERROR: diskgroup DATADG was not mounted
Errors in file /u01/app/oracle/diag/rdbms/racdg/racdg1/trace/racdg1_ora_25516.trc:
ORA-19505: failed to identify file "+DATADG/racdg/controlfile/stby.ctl"
ORA-17502: ksfdcre:3 Failed to create file +DATADG/racdg/controlfile/stby.ctl
ORA-15001: diskgroup "DATADG" does not exist or is not mounted
ORA-15040: diskgroup is incomplete

问题原因

asm盘绑盘时设定为grid:asmadmin,但是在创建oracle用户时没给asmadmin组。

解决办法

root用户更改属组
chgrp asmadmin /u01/app/oracle/product/11.2.0/dbhome_1/bin/oracle

grid执行setasmgidwrap
setasmgidwrap o=/u01/app/oracle/product/11.2.0/dbhome_1/bin/oracle

ls -l /u01/app/oracle/product/11.2.0/dbhome_1/bin/oracle
-rwxr-s--x. 1 oracle asmadmin 239626689 Jan 11 13:45 /u01/app/oracle/product/11.2.0/dbhome_1/bin/oracle

在主库重新执行rman连接备库
顺利duplicate

发布了47 篇原创文章 · 获赞 5 · 访问量 6894

猜你喜欢

转载自blog.csdn.net/whb234174124/article/details/103938775