Creating ASM physical standby from non ASM primary (Doc ID 752360.1)
Creating ASM physical standby from non ASM primary (Doc ID 752360.1)
1 23/10/2018 10(42
Creating ASM physical standby from non ASM primary (Doc ID 752360.1)
In this Document
Goal
Solution
APPLIES TO:
Oracle Database - Enterprise Edition - Version 10.2.0.1 to 11.2.0.4 [Release 10.2 to 11.2]
Information in this document applies to any platform.
***Checked for relevance on 08-Aug-2014***
GOAL
This Document offers a step by step procedure to create ASM single instance physical standby from non ASM single
instance primary database.
SOLUTION
PROCEDURE:
==========
https://support.oracle.com/epmos/faces/DocumentDisplay?_adf.ctrl-state=yadakps39_387&id=752360.1 Página 1 de 5
Document 752360.1 23/10/2018 10(42
c. Verify the standby redo log file groups were created(do this after the creation of stanby database;
RMAN> run
{
allocate channel t1 type disk;
allocate channel t2 type disk;
allocate channel t3 type disk;
allocate channel t4 type disk;
backup database format '/databases/backup/%U';
backup archivelog all format '/databases/backup/%U';
backup current controlfile for standby format '/databases/backup/%U';
}
https://support.oracle.com/epmos/faces/DocumentDisplay?_adf.ctrl-state=yadakps39_387&id=752360.1 Página 2 de 5
Document 752360.1 23/10/2018 10(42
$ export ORACLE_SID=+ASM1
$ sqlplus "/ as sysdba"
SQL> alter diskgroup DATA_1 add directory '+DATA_1/stdby';
SQL> alter diskgroup FRA_1 add directory '+FRA_1/stdby';
db_name=pri
db_unique_name=stdby
log_archive_config='DG_CONFIG=(pri,stdby)'
log_archive_dest_1='LOCATION=+FRA_1/stdby/ VALID_FOR=(ALL_LOGFILES,ALL_ROLES)
DB_UNIQUE_NAME=stdby'
log_archive_dest_2='SERVICE=pri LGWR ASYNC VALID_FOR=(ONLINE_LOGFILES,PRIMARY_ROLE)
DB_UNIQUE_NAME=prim'
log_archive_dest_state_1=ENABLE
db_file_name_convert='/arch1/data/pri/','+DATA_1/stdby'
log_file_name_convert='/arch1/redo/pri/','+FRA_1/stdby/'
REMOTE_LOGIN_PASSWORDFILE=EXCLUSIVE
standby_archive_dest='+FRA_1/stdby/'
standby_file_management=AUTO
fal_client=stdby
fal_server=pri
d. Create the same password as that of primary. Alternatively we can copy the password file from primary and rename
it on standby.
on standby,
https://support.oracle.com/epmos/faces/DocumentDisplay?_adf.ctrl-state=yadakps39_387&id=752360.1 Página 3 de 5
Document 752360.1 23/10/2018 10(42
a. in UNIX,
$export ORACLE_SID
$orapwd file='$ORACLE_HOME/dbs/orapwstdby' password=sys entries=10;
in Windows,
d:>set ORACLE_SID=stdby
d:>oradim -new -sid stdby -intpwd sys
stdby =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.9.200.108)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = stdby.server.com)
)
)
pri =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.9.200.107)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = pri.server.com)
)
)
$export ORACLE_SID=stdby
SQL>create spfile from pfile='<specify the newly created parameter location>'
SQL>startup nomount
10. Use RMAN Duplicate on standby command to create the standby database,
NOTE: Before this step check the network connectivy from primary to standby and vice versa via TNSPING and
SQL_PROMPT.
https://support.oracle.com/epmos/faces/DocumentDisplay?_adf.ctrl-state=yadakps39_387&id=752360.1 Página 4 de 5
Document 752360.1 23/10/2018 10(42
RMAN>list backup;
RMAN> RUN {
allocate auxiliary channel C1 device type disk;
duplicate target database for standby;
}
12: Verify whether the log are shipped and applied properly @the standby
Verify the new redo data was archived on the standby database.On the standby database, query the V$ARCHIVED_LOG
view to verify the redo data was received and archived on the standby database:
NOTE: Verify new archived redo log files were applied. At the standby database, query the V$ARCHIVED_LOG view
to verify the archived redo log files were applied.
NOTE : From 11g onwards we can use new feature called DUPLICATE from ACTIVE database.
<<http://download.oracle.com/docs/cd/E11882_01/server.112/e17022/scenarios.htm#i1067236>>
https://support.oracle.com/epmos/faces/DocumentDisplay?_adf.ctrl-state=yadakps39_387&id=752360.1 Página 5 de 5