二
Oracle Standby Database 的建立過程並不復雜
在這篇文章裡面
我們承諾客戶的條件
in case of failure on primary:
我們為了完成以上各項
在這裡
(
SQL> archive log list;
Database log mode Archive Mode
Automatic archival Enabled
Archive destination /oradba/sisi/arch
Oldest online log sequence
Next log sequence to archive
Current log sequence
(
采用雙機形式
(
standby database一般是用primary database的cold backup建立的
(
(
primary database:
db_name = sisi
instance_name = sisi
service_names = sisi
control_files = (/oradba/sisi/ctrl/stctl
db_files =
compatible =
rollback_segments = (rbs
db_file_multiblock_read_count =
optimizer_mode = rule #application required
db_block_size =
db_block_buffers =
shared_pool_size =
sort_area_size =
sort_area_retained_size =
log_checkpoint_interval =
sessions =
transactions =
transactions_per_rollback_segment =
processes =
open_cursors =
dml_locks =
log_buffer =
log_checkpoint_timeout =
cursor_space_for_time = true
utl_file_dir=/tmp
timed_statistics = false # if you want timed statistics
max_dump_file_size =
core_dump_dest = /oradba/sisi/cdump
background_dump_dest= /oradba/sisi/bdump
user_dump_dest = /oradba/sisi/udump
remote_login_passwordfile = none
parallel_max_servers =
#The following parameters are the HA parameters needed for Standby Database on primary side
LOG_ARCHIVE_START=TRUE
LOG_ARCHIVE_FORMAT =
LOG_ARCHIVE_DEST_
LOG_ARCHIVE_DEST_STATE_
STANDBY_ARCHIVE_DEST=
LOG_ARCHIVE_DEST_
LOG_ARCHIVE_DEST_STATE_
LOG_ARCHIVE_MIN_SUCCEED_DEST=
復制到Standby database side相對的directory下面
db_name = sisi
instance_name = sisi
service_names = sisi
control_files = (/oradba/sisi/ctrl/stctl
db_files =
compatible =
rollback_segments = (rbs
db_file_multiblock_read_count =
optimizer_mode = rule
db_block_size =
db_block_buffers =
shared_pool_size =
sort_area_size =
sort_area_retained_size =
log_checkpoint_interval =
sessions =
transactions =
transactions_per_rollback_segment =
processes =
open_cursors =
dml_locks =
log_buffer =
log_checkpoint_timeout =
cursor_space_for_time = true
utl_file_dir=/tmp
timed_statistics = false # if you want timed statistics
max_dump_file_size =
core_dump_dest = /oradba/sisi/cdump
background_dump_dest= /oradba/sisi/bdump
user_dump_dest = /oradba/sisi/udump
remote_login_passwordfile = none
parallel_max_servers =
#The following parameter are the HA parameters needed for Standby Database on standby side
LOG_ARCHIVE_START=FALSE
LOG_ARCHIVE_FORMAT =
LOG_ARCHIVE_DEST_
LOG_ARCHIVE_DEST_STATE_
STANDBY_ARCHIVE_DEST=
LOG_ARCHIVE_DEST_
LOG_ARCHIVE_DEST_STATE_
LOG_ARCHIVE_MIN_SUCCEED_DEST=
(
files/online redo log files到在standby node已經建好的對應 directory下面
(
Alter database create standby controlfile as
用 rcp或 ftp到standby node對應的directory
(
STANDBY_SISI =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST =
)
(CONNECT_DATA =
(SID = sisi)
)
)
(
ST_LISTENER =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = prtltest)(PORT =
)
SID_LIST_ST_LISTENER =
(SID_LIST =
(SID_DESC =
(GLOBAL_DBNAME = sisi)
(ORACLE_HOME = /oracle/
(SID_NAME = sisi)
)
)
(
From:http://tw.wingwit.com/Article/program/Oracle/201311/18478.html