Home » Server Options » Data Guard » New to Oracle Data Guard !!
New to Oracle Data Guard !! [message #154920] Wed, 11 January 2006 06:04 Go to next message
AlinaC
Messages: 45
Registered: November 2005
Location: India
Member

Hi, I'm very new to implement Physical Standby Implementation.
Please help me on the followings-

1. When I'll install Oracle 9i , should I put seperate SID for both primary and standby database?

2. Do I need to copy all datafiles from primary to standby including SYSTEM01.DBF? where should I copy, in the directory where all data files resides at standby site?

3. Do I need to copy password file from primary to sandby? if password file already exists at standby site, should I delete it?

4. Finally if you share initialiazation files for primary and standby , it will be true help for me.

Alina.
Re: New to Oracle Data Guard !! [message #155370 is a reply to message #154920] Sun, 15 January 2006 04:53 Go to previous message
waseem_aijaz
Messages: 16
Registered: December 2005
Location: Kingdom of Saudi Arabia
Junior Member
Hi,


Answer 1:

If your data guard configuration (primary and standby databases) is on the same box, then you need to use the different SID.

Answer 2:

Yes you need to copy all datafiles from primary to standby including SYSTEM01.DBF. You can select what ever directory you want. There will not be any problem. But, you need to map the directories for redo logs and data files. See let me explain with example. Suppose you have redo logs and data files in the location '/disk1/oracle/oradata/payroll/' @ primary site. You can copy all these to location '/disk1/oracle/oradata/payroll/standby' @ standby site and map these paths by using the following init.ora parameters.

db_file_name_convert=('/disk1/oracle/oradata/payroll/',
'/disk1/oracle/oradata/payroll/standby/')

log_file_name_convert=('/disk1/oracle/oradata/payroll/',
'/disk1/oracle/oradata/payroll/standby/')

Answer 3:

I think it depends on remote_login_passwordfile init.ora parameter. If you set it as remote_login_passwordfile=EXCLUSIVE then you need to copy password file as well. Please experiment on this.

Answer 4:
@@@@@@@@@@@@@@@@@@@@@
primary site init.ora
@@@@@@@@@@@@@@@@@@@@@

##############################################################################
# Copyright (c) 1991, 2001, 2002 by Oracle Corporation
##############################################################################

###########################################
# Cache and I/O
###########################################
db_block_size=8192
db_cache_size=18874368
db_file_multiblock_read_count=16

###########################################
# Cursors and Library Cache
###########################################
open_cursors=300

###########################################
# Database Identification
###########################################
db_domain=""
db_name=PRC

###########################################
# Diagnostics and Statistics
###########################################
background_dump_dest=C:\oracle\admin\PRC\bdump
core_dump_dest=C:\oracle\admin\PRC\cdump
timed_statistics=TRUE
user_dump_dest=C:\oracle\admin\PRC\udump

###########################################
# File Configuration
###########################################
control_files=("C:\oracle\oradata\PRC\control01.ctl", "C:\oracle\oradata\PRC\control02.ctl", "C:\oracle\oradata\PRC\control03.ctl")

###########################################
# Instance Identification
###########################################
instance_name=PRC

###########################################
# MTS
###########################################
dispatchers="(PROTOCOL=TCP)"

###########################################
# Miscellaneous
###########################################
compatible=9.2.0.0.0

###########################################
# Optimizer
###########################################
hash_join_enabled=TRUE
query_rewrite_enabled=FALSE
star_transformation_enabled=FALSE

###########################################
# Pools
###########################################
java_pool_size=0
large_pool_size=0
shared_pool_size=36700160

###########################################
# Processes and Sessions
###########################################
processes=150

###########################################
# Redo Log and Recovery
###########################################
fast_start_mttr_target=300

###########################################
# Security and Auditing
###########################################
#remote_login_passwordfile=EXCLUSIVE

###########################################
# Sort, Hash Joins, Bitmap Indexes
###########################################
pga_aggregate_target=25165824
sort_area_size=524288

###########################################
# System Managed Undo and Rollback Segments
###########################################
undo_management=AUTO
undo_retention=10800
undo_tablespace=UNDOTBS1

###########################################
# Log management
###########################################

log_archive_start = true
log_archive_dest_1 = 'location=c:\oracle\oradata\prc\archive'
log_archive_dest_state_1 = enable
log_archive_dest_2 = 'service=prcaux'
log_archive_dest_state_2 = enable
log_archive_format = %t_%s.arc

@@@@@@@@@@@@@@@@@@@@@
standby site init.ora
@@@@@@@@@@@@@@@@@@@@@

##############################################################################
# Copyright (c) 1991, 2001, 2002 by Oracle Corporation
##############################################################################

###########################################
# Cache and I/O
###########################################
db_block_size=8192
db_cache_size=18874368
db_file_multiblock_read_count=16

###########################################
# Cursors and Library Cache
###########################################
open_cursors=300

###########################################
# Database Identification
###########################################
db_domain=""
db_name=PRC

###########################################
# Diagnostics and Statistics
###########################################
background_dump_dest=C:\oracle\admin\PRCSTANDBY\bdump
core_dump_dest=C:\oracle\admin\PRCSTANDBY\cdump
timed_statistics=TRUE
user_dump_dest=C:\oracle\admin\PRCSTANDBY\udump

###########################################
# File Configuration
###########################################
control_files="C:\oracle\oradata\PRC\STANDBY\controlstandby.ctl"

###########################################
# Instance Identification
###########################################
instance_name=PRC2

###########################################
# MTS
###########################################
dispatchers="(PROTOCOL=TCP)"

###########################################
# Miscellaneous
###########################################
compatible=9.2.0.0.0

###########################################
# Optimizer
###########################################
hash_join_enabled=TRUE
query_rewrite_enabled=FALSE
star_transformation_enabled=FALSE

###########################################
# Pools
###########################################
java_pool_size=0
large_pool_size=0
shared_pool_size=36700160

###########################################
# Processes and Sessions
###########################################
processes=150

###########################################
# Redo Log and Recovery
###########################################
fast_start_mttr_target=300

###########################################
# Security and Auditing
###########################################
#remote_login_passwordfile=EXCLUSIVE

###########################################
# Sort, Hash Joins, Bitmap Indexes
###########################################
pga_aggregate_target=25165824
sort_area_size=524288

###########################################
# System Managed Undo and Rollback Segments
###########################################
undo_management=AUTO
undo_retention=10800
undo_tablespace=UNDOTBS1

###########################################
# Log management
###########################################

log_archive_start = true
log_archive_dest_1 = 'location=c:\oracle\oradata\prc\standby\archive'
log_archive_format = %t_%s.arc
standby_archive_dest= 'c:\oracle\oradata\prc\standby\archive'

############################################
# Data guard
############################################
log_file_name_convert=('c:\oracle\oradata\prc','c:\oracle\oradata\prc\standby')
db_file_name_convert=('c:\oracle\oradata\prc','c:\oracle\oradata\prc\standby')
standby_file_management = auto
remote_archive_enable = true
lock_name_space=PRC2


Hope this helps you.


Previous Topic: Standby Db doesn't apply logs
Next Topic: Problem in create tablespace statement ( logical standby database) 9i version 2
Goto Forum:
  


Current Time: Fri Apr 19 06:14:51 CDT 2024