Disaster recovery from SAN [message #663812] |
Wed, 21 June 2017 01:35  |
 |
greencurry
Messages: 13 Registered: June 2017
|
Junior Member |
|
|
Hi all,
I have a question on switching to a DR server.
I have a production server (PROD) running Windows 2012 with Oracle 12c installed. The DB_CREATE_FILE_DEST and DB_RECOVERY_FILE_DEST are set to a Storage Area Network (D:\u01\oracle\oradata) and (E:\u01\oracle\fast_recovery_area) respectively.
Then I clone this setup to a standby server (STANDBY) and shut down all oracle database services.
After PROD server has been running for a few hours, I shut down all oracle database services, disconnect the mapped drives on SAN.
Then, on the STANDBY server, I start all oracle database services and map corresponding drives on SAN.
I tried:
$ : sqlplus / as sysdba
SQL> show parameter control_files;
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
control_files string D:\U01\ORADATA\DBTEST\CONTROLF
ILE\O1_MF_DGOXT93C_.CTL, E:\U0
2\FAST_RECOVERY_AREA\DBTEST\CO
NTROLFILE\O1_MF_DGOXT94H_.CTL
SQL> host rman target /
Recovery Manager: Release 12.1.0.2.0 - Production on Wed Jun 21 14:28:10 2017
Copyright (c) 1982, 2015, Oracle and/or its affiliates. All rights reserved.
connected to target database: DBTEST (not mounted)
RMAN> SET DBID=3845233333;
executing command: SET DBID
RMAN> alter database mount;
using target database control file instead of recovery catalog
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of sql statement command at 06/21/2017 14:30:33
ORA-00205: error in identifying controlfile
From the alert log, it reads:
ORA-00210: cannot open the specified control file
ORA-00202: control file: 'E:\U02\FAST_RECOVERY_AREA\DBTEST\CONTROLFILE\O1_MF_DGOXT94H_.CTL'
ORA-27041: unable to open file
OSD-04002: unable to open file
O/S-Error: (OS 5) Access is denied.
ORA-00210: cannot open the specified control file
ORA-00202: control file: 'D:\U01\ORADATA\DBTEST\CONTROLFILE\O1_MF_DGOXT93C_.CTL'
ORA-27041: unable to open file
OSD-04002: unable to open file
O/S-Error: (OS 5) Access is denied.
Please help.
|
|
|
|
|
|
Re: Disaster recovery from SAN [message #663820 is a reply to message #663818] |
Wed, 21 June 2017 02:07   |
 |
greencurry
Messages: 13 Registered: June 2017
|
Junior Member |
|
|
Checked all oracle services on both servers, all are 'log on' by oracle instance.
OS-wise, I consider both servers are identical as the STANDBY is a direct clone of the PROD.
If I shutdown all services on STANDBY, disconnect the SAN drives, and on PROD, mount the SAN drives and start all services, the database runs well.
[Updated on: Wed, 21 June 2017 02:16] Report message to a moderator
|
|
|
|
|
|
|
Re: Disaster recovery from SAN [message #663827 is a reply to message #663824] |
Wed, 21 June 2017 03:15   |
gazzag
Messages: 1119 Registered: November 2010 Location: Bedwas, UK
|
Senior Member |
|
|
Whichever user starts the Oracle Windows service on the standby server must have permissions on the SAN share. Remember: share permissions and file system permissions are two separate things.
|
|
|
|
|
|
|
Re: Disaster recovery from SAN [message #663836 is a reply to message #663834] |
Wed, 21 June 2017 04:23   |
gazzag
Messages: 1119 Registered: November 2010 Location: Bedwas, UK
|
Senior Member |
|
|
That looks like you have a local "oracle" user on PROD. Why is this? Why not user SYSTEM, as Michel stated? This is not Unix. That PROD\oracle user will need read/write to the SYSTEM\NAS_Share.
|
|
|
Re: Disaster recovery from SAN [message #663838 is a reply to message #663836] |
Wed, 21 June 2017 04:33   |
 |
greencurry
Messages: 13 Registered: June 2017
|
Junior Member |
|
|
This 'oracle' user was created during the 12c installation, and it belongs to the Administrator group on both servers.
I don't specifically assign full access rights for 'oracle' user, as it's already granted to Administrator group. Access right settings for SAN are identical on both servers and it's mysterious the STANDBY server does not work.
[Updated on: Wed, 21 June 2017 04:35] Report message to a moderator
|
|
|
|
|
|
|
|
|