报错信息如下:
RMAN> restore standby controlfile from '/rman_backup/stanby_0epojv93_1_1.ctl';
Starting restore at 2014/11/29 18:31:59
using channel ORA_DISK_1
channel ORA_DISK_1: restoring control file
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of restore command at 11/29/2014 18:32:00
ORA-19870: error while restoring backup piece /rman_backup/stanby_0epojv93_1_1.ctl
ORA-19504: failed to create file "+DATA/phydb/controlfile/cont.ctl"
ORA-15012: ASM file 'phydb/controlfile/cont.ctl' does not exist
ORA-17502: ksfdcre:5 Failed to create file +DATA/phydb/controlfile/cont.ctl
ORA-15081: failed to submit an I/O operation to a disk
执行:
$GRID_HOME/bin/setasmgidwrap O=$ORACLE_HOME/bin/oracle
(注意要先把库down下来)
正确的oracle 文件权限为示例如下:
cd $ORACLE_HOME/bin/oracle
[oracle@vm05 bin]$ ls -l oracle
-rwsr-s--x 1 oracle asmadmin 210824714 Aug 15 16:09 oracle
之前错误的权限:
-rwsr-s--x 1 oracle oinstall 210824714 Dec 18 16:05 oracle