Data Guard相关参数学习介绍(二)

2014-11-24 15:03:33 · 作者: · 浏览: 2
oradata/payroll/arch/'
LOG_ARCHIVE_DEST_STATE_2=ENABLE
Example 2 Specifying the SERVICE Attribute
LOG_ARCHIVE_DEST_3='SERVICE=stby1'
LOG_ARCHIVE_DEST_STATE_3=ENABLE
MANDATORY
指定联机在线重做日志文件必须成功被归档到目的地在它被重用前。
LOG_ARCHIVE_DEST_1='LOCATION=/arch/dest MANDATORY'
LOG_ARCHIVE_DEST_STATE_1=ENABLE
LOG_ARCHIVE_DEST_3='SERVICE=denver MANDATORY'
LOG_ARCHIVE_DEST_STATE_3=ENABLE
MAX_CONNECTIONS
当一个归档日志文件被应用到一个传输目的地,使多个网络连接可用。使用多重的网络连接可以改善重做传输的性能在高延时的网络连接。
如果MAX_CONNECTIONS没有被指定,默认为1.重做传输服务将用一个ARCn进程去传输重做数据到远程目的地。
如果这个参数被制定大于1,重做传输服务用多个ARC你进程并行的区归档重做日志文件到远程。每个ARCn进程用到一个单独隔离的网络连接。
LOG_ARCHIVE_DEST_1='LOCATION=/arch/dest'
LOG_ARCHIVE_DEST_STATE_1=ENABLE
LOG_ARCHIVE_DEST_3='SERVICE=denver MAX_CONNECTIONS=3'
LOG_ARCHIVE_DEST_STATE_3=ENABLE
MAX_FAILURE
在主数据库放弃目标地之前,控制连续的失败尝试次数在连接到一个失败的重做传输日志之后。
LOG_ARCHIVE_DEST_1='LOCATION=/arc_dest REOPEN=5 MAX_FAILURE=3'
LOG_ARCHIVE_DEST_STATE_1=ENABLE
NOREGISTER
Indicates that the location of the archived redo log file should not be recorded at the corresponding destination.
LOG_ARCHIVE_DEST_5='NOREGISTER'
REOPEN
指定一个最小的秒数间隔在重做传输服务尝试开启一个失败的目的地。
LOG_ARCHIVE_DEST_3='SERVICE=stby1 MANDATORY REOPEN=60'
LOG_ARCHIVE_DEST_STATE_3=ENABLE
SYNC and ASYNC
指定使用同步还是异步传输模式。
TEMPLATE
定义一个文件格式的模版为归档的redo log。这个模版名不同于LOG_ARCHIVE_FORMAT初始化参数指定的文件名格式。
它是一个可选项,如果没有被制定,将会使用LOG_ARCHIVE_FORMAT的初始化参数。
它只对远程目标是可用的。
所制定的模版文件名必须包含%s, %t, and %r 指示描述
able 15-1 Directives for the TEMPLATE Attribute
Directive
Description
%t
Substitute the instance thread number.
%T
Substitute the instance thread number, zero filled.
%s
Substitute the log file sequence number.
%S
Substitute the log file sequence number, zero filled.
%r
Substitute the resetlogs ID.
%R
Substitute the resetlogs ID, zero filled.
VALID_FOR
指定数据库运行在主还是从数据库的角色。
是否online redo log files, standby redo log files 或是他们都将归档到该目的地
The redo_log_type keyword identifies the destination as valid for archiving one of the following:
ONLINE_LOGFILE—This destination is valid only when archiving online redo log files.
STANDBY_LOGFILE—This destination is valid only when archiving standby redo log files.
ALL_LOGFILES— This destination is valid when archiving either online redo log files or standby redo log files.
The database_role keyword identifies the role in which this destination is valid for archiving:
PRIMARY_ROLE—This destination is valid only when the database is running in the primary role.
STANDBY_ROLE—This destination is valid only when the database is running in the standby role.
ALL_ROLES—This destination is valid when the database is running in either the primary or the standby role.
LOG_ARCHIVE_DEST_1='LOCATION=/disk1/oracle/oradata VALID_FOR=(ALL_LOGFILES, ALL_ROLES)'
其他相关参数介绍:
1.DB_NAME,数据库名字,需要保持同一个Data Guard 中所有数据库DB_NAME相同
2.LOG_ARCHIVE_CONFIG,该参数通过DG_CONFIG 属性罗列同一个Data Guard 中所有DB_UNIQUE_NAME(含primary db 及standby db),以逗号分隔
3.CONTROL_FILES,控制文件位置说明,注意要修改到具体的控制文件位置
4.LOG_ARCHIVE_DEST_STATE_n,指定参数值为ENABLE,激活定义的归档日志目录,允许redo 传输服务传输redo数据到指定的路径
5.REMOTE_LOGIN_PASSWORDFILE,推荐设置参数值