Documente Academic
Documente Profesional
Documente Cultură
1 of 5
2014-09-09
Original
STOP PROD
alter
alter
alter
alter
system
system
system
system
2 of 5
<service>a % cd ~/../../etc
<service>a % vi oratab lsnrtab
put N in the oratab and lsnrtab so nothing auto starts.
N.B. As the shutdown step reconfigure the standby to be a primary.
Otherwise if they are performing cluster reconfiguration (rather than just a dns rename) the
services will automatically start.
STANDBY:
<service>a % cd ~/../../rc
<service>a % ./${SERVICE}a d (ensure you dont have multiple databases running under same
service)
Ensure all archives applied.
<service>a % sqlplus /as sysdba
SQL > select thread# "APPL_THREAD#",sequence# "APPL_SEQUENCE#" from v$archived_log
where recid in (select max(recid) from v$archived_log
where applied='YES'
and resetlogs_id = (select resetlogs_id from v$database_incarnation where
status='CURRENT')
group by thread#
)
order by thread#;
Pre requisite for snapshot standby setup is to have flashback setup.
1) Configure flash recovery area as given below
a) Set the size for recovery area, as part of the DR test app teams will do basic testing
so usage will be very less, if available assign 10g otherwise 5g should be OK.
SQL > alter system set db_recovery_file_dest_size=10g scope=both;
b) Set Flash recovery area.
Ensure you have flash recovery area else create one using below.
mkdir $ORACLE_ADMIN/flash
Use this location to create flash recovery destination example one is below.
Note modify directory structure below accordingly
SQL > alter system set db_recovery_file_dest='/app/gors004/01/admin/GORS004T/flash'
scope=both;
c) Cancel the recovery on the applying instance, Switch on flashback and create a
Guaranteed Restore Point
SQL> alter database recover managed standby database cancel;
SQL> ALTER DATABASE FLASHBACK ON;
SQL> create restore point DR_TEST guarantee flashback database;
d) Convert physical standby database to snapshot standby database.
SQL> alter database activate standby database;
SQL> startup mount force;
SQL> alter database open;
OPEN_MODE DATABASE_ROLE
---------- ---------------READ WRITE PRIMARY
f) On standby change host name in local_listener parameter
SQL> alter system set local_listener='(address=(protocol=tcp)
(host=gors004a.eu.unilever.com)(port=16572))' scope=both;
g) Finally stop standby services modify configuration files.
<service>a % ~/../../rc
<service>a % ./${SERVICE}a stop (ensure you dont have multiple databases running under
same service)
<service>a % cd ~/../../etc
<service>a % cp /app/${SERVICE}/01/etc/${SERVICE}a.definitions /app/${SERVICE}/01/etc/$
{SERVICE}a.definitions.orig
vi
3 of 5
Activate DR
Shutdown HACMP resources for prod AIX-cluster and reconfigure on DR AIX-Cluster UNIX task
Restore HACMP resources for DR AIX cluster and reconfigure on PROD AIX cluster - UNIX task
References
5 of 5