Database restoration Failed with ORA-15001,ORA-17502
Symptoms :
channel ORA_DISK_1: starting datafile backup set restore
channel ORA_DISK_1: specifying datafile(s) to restore from backup set
channel ORA_DISK_1: restoring datafile 00001 to +DATA/TEST1/DATAFILE/system.280.938093005
channel ORA_DISK_1: restoring datafile 00002 to +DATA/TEST1/DATAFILE/sysaux.274.938092969
channel ORA_DISK_1: restoring datafile 00003 to +DATA/TEST1/DATAFILE/undotbs1.273.938092969
channel ORA_DISK_1: restoring datafile 00004 to +DATA/TEST1/DATAFILE/users.279.938093029
channel ORA_DISK_1: restoring datafile 00005 to +DATA/mgmt_depot.dbf
channel ORA_DISK_1: restoring datafile 00006 to +DATA/mgmt.dbf
channel ORA_DISK_1: restoring datafile 00007 to +DATA/mgmt_ad4j.dbf
channel ORA_DISK_1: reading from backup piece /u01/TEST1/DB_FULL_REVPROEM_20171001_956268007_15247
channel ORA_DISK_1: ORA-19870: error while restoring backup piece /u01/TEST1/DB_FULL_REVPROEM_20171001_956268007_15247
ORA-19504: failed to create file "+DATA/mgmt.dbf"
ORA-17502: ksfdcre:3 Failed to create file +DATA/mgmt.dbf
ORA-15001: diskgroup "DATA" does not exist or is not mounted
ORA-15040: diskgroup is incomplete
SQL> select status from v$instance;
STATUS
------------
STARTED
SQL> select name, state from v$asm_diskgroup;
NAME STATE
------------------------------ -----------
RECO MOUNTED
DATA MOUNTED
Cause:
Permission issue.
Solution :
-- Change the permission.
ls -lrt /u01/app/oracle/product/12.1.0.2/dbhome_1/bin/oracle
-rwsr-s--x 1 oracle oinstall 327811823 Oct 2 16:50
/u01/app/oracle/product/12.1.0.2/dbhome_2/bin/oracle
The asm disks would be owned by grid:asmadmin so if the database needs to access those disks then the oracle binaries have to be oracle:asmadmin.
--Change the group to asmadmin :-
chgrp asmadmin /u01/app/oracle/product/12.1.0.2/dbhome_1/bin/oracle
ls -lrt /u01/app/oracle/product/12.1.0.2/dbhome_1/bin/oracle
-rwsr-s–x 1 oracle asmadmin 327811823 Oct 5 16:50/u01/app/oracle/product/12.1.0.2/dbhome_2/bin/oracle
Symptoms :
channel ORA_DISK_1: starting datafile backup set restore
channel ORA_DISK_1: specifying datafile(s) to restore from backup set
channel ORA_DISK_1: restoring datafile 00001 to +DATA/TEST1/DATAFILE/system.280.938093005
channel ORA_DISK_1: restoring datafile 00002 to +DATA/TEST1/DATAFILE/sysaux.274.938092969
channel ORA_DISK_1: restoring datafile 00003 to +DATA/TEST1/DATAFILE/undotbs1.273.938092969
channel ORA_DISK_1: restoring datafile 00004 to +DATA/TEST1/DATAFILE/users.279.938093029
channel ORA_DISK_1: restoring datafile 00005 to +DATA/mgmt_depot.dbf
channel ORA_DISK_1: restoring datafile 00006 to +DATA/mgmt.dbf
channel ORA_DISK_1: restoring datafile 00007 to +DATA/mgmt_ad4j.dbf
channel ORA_DISK_1: reading from backup piece /u01/TEST1/DB_FULL_REVPROEM_20171001_956268007_15247
channel ORA_DISK_1: ORA-19870: error while restoring backup piece /u01/TEST1/DB_FULL_REVPROEM_20171001_956268007_15247
ORA-19504: failed to create file "+DATA/mgmt.dbf"
ORA-17502: ksfdcre:3 Failed to create file +DATA/mgmt.dbf
ORA-15001: diskgroup "DATA" does not exist or is not mounted
ORA-15040: diskgroup is incomplete
SQL> select status from v$instance;
STATUS
------------
STARTED
SQL> select name, state from v$asm_diskgroup;
NAME STATE
------------------------------ -----------
RECO MOUNTED
DATA MOUNTED
Cause:
Permission issue.
Solution :
-- Change the permission.
ls -lrt /u01/app/oracle/product/12.1.0.2/dbhome_1/bin/oracle
-rwsr-s--x 1 oracle oinstall 327811823 Oct 2 16:50
/u01/app/oracle/product/12.1.0.2/dbhome_2/bin/oracle
The asm disks would be owned by grid:asmadmin so if the database needs to access those disks then the oracle binaries have to be oracle:asmadmin.
--Change the group to asmadmin :-
chgrp asmadmin /u01/app/oracle/product/12.1.0.2/dbhome_1/bin/oracle
ls -lrt /u01/app/oracle/product/12.1.0.2/dbhome_1/bin/oracle
-rwsr-s–x 1 oracle asmadmin 327811823 Oct 5 16:50/u01/app/oracle/product/12.1.0.2/dbhome_2/bin/oracle