0% found this document useful (0 votes)
218 views2 pages

Asm To Asm Standby

This document provides instructions for setting up a standby database. It describes configuring the standby database by setting initialization parameters, starting it in nomount mode, and copying a compressed backup set from the primary database to the standby database location. It then explains duplicating the primary database to initialize the standby database using RMAN. The tns entries are also configured to point the primary to the standby and vice versa.

Uploaded by

milist ujang
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
218 views2 pages

Asm To Asm Standby

This document provides instructions for setting up a standby database. It describes configuring the standby database by setting initialization parameters, starting it in nomount mode, and copying a compressed backup set from the primary database to the standby database location. It then explains duplicating the primary database to initialize the standby database using RMAN. The tns entries are also configured to point the primary to the standby and vice versa.

Uploaded by

milist ujang
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 2

useful docs: C:\DOCS\Oradocs\102\backup.102\b14191\rcmdupdb006.

htm

on standby database:
--------------------
create spfile from pfile=....;

alter system set db_create_file_dest=+DGDATA scope=both;


alter system set DB_UNIQUE_NAME=hqracdg scope=both;
alter system set SERVICES_NAME='HQRAC,HQRACDB' scope=both;
alter system set STANDBY_FILE_MANAGEMENT=auto scope=both;
alter system set log_archive_dest_1='LOCATION=/archive' scope=both;
alter system set log_archive_format=log%t_%s_%r.trc scope=both;
alter system set standby_archive_dest='LOCATION=/archive/stdby' scope=both;
alter system set control_files=+DGDATA/hqrac/controlfile/current.256.622920327
scope=both;
alter system set remote_login_passwordfile='exclusive' scope=both;

startup nomount;

orapwd file=......

on primary database:
--------------------

backup full database by rman (compressed backupset - example)


-------------------------------------------------------------

cat rman.sh
#!/bin/sh
nohup rman target / nocatalog cmdfile /dumpfile/rman_stdby/rman.txt log
/dumpfile/rman_stdby/rman.log &

cat rman.txt
CONFIGURE BACKUP OPTIMIZATION ON;
CONFIGURE CHANNEL 1 DEVICE TYPE DISK CONNECT '/';
CONFIGURE CHANNEL 2 DEVICE TYPE DISK CONNECT '/';
CONFIGURE DEVICE TYPE DISK BACKUP TYPE TO COMPRESSED BACKUPSET PARALLELISM 96;
BACKUP AS COMPRESSED BACKUPSET DEVICE TYPE DISK DATABASE format
'/dumpfile/rman_stdby/hqrac_%T_%U.bck' tag=stdby;

copy the backupset to standby with the same location as in the primary
----------------------------------------------------------------------

scp * .............

duplicate database for standby


------------------------------

cat rman_stdby.sh
#!/bin/sh
nohup rman target / nocatalog cmdfile /dumpfile/rman_stdby.1/rman_stdby.txt log
/dumpfile/rman_stdby.1/rman_stdby.log &

cat /dumpfile/rman_stdby.1/rman_stdby.txt
CONFIGURE DEVICE TYPE DISK BACKUP TYPE TO COMPRESSED BACKUPSET PARALLELISM 4;
CONNECT AUXILIARY SYS/oracle123@HQRACDG;
DUPLICATE TARGET DATABASE FOR STANDBY;

tns on primary point to standby db


----------------------------------
HQRACDG =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = 128.20.10.110)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SID = hqrac1)
)
)

tns on standby point to primary db


----------------------------------

HQRAC =
(DESCRIPTION =
(LOAD_BALANCE = YES)
(ADDRESS = (PROTOCOL = TCP)(HOST = 128.20.10.67)(PORT = 1521))
(ADDRESS = (PROTOCOL = TCP)(HOST = 128.20.10.68)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = hqrac)
)
)

Errors in file /u01/app/oracle/admin/hqrac/udump/hqrac2_ora_19818.trc:


ORA-00600: internal error code, arguments: [17059], [0x40238ED29E0], [], [], [],
[], [], []
Wed Nov 7 08:47:16 2007
Errors in file /u01/app/oracle/admin/hqrac/udump/hqrac2_ora_11137.trc:
ORA-07445: exception encountered: core dump [opidsa()+736] [SIGSEGV] [unknown code]
[0x000000000] [] []
Wed Nov 7 08:47:36 2007

You might also like