LGWR
ARCH
¡½ Specifies whether redo transport services use archiver processes (ARCn) or the log
writer process (LGWR) to collect transaction redo data and transmit it to standby
destinations. If neither the ARCH or LGWR attributes are specified, the default is ARCH.
ASYNC
¡½ Specifies that network I/O is to be done synchronously (SYNC) or asynchronously
(ASYNC) when archival is performed using the log writer process (LGWR).
OPTIONAL
Specifies the policy for reusing online redo log files:
¡½ MANDATORY¡Xspecifies that filled online log files must be successfully archived to
the destination before they can be reused.
¡½ OPTIONAL¡Xspecifies that successful archival to the destination is not required
before the online redo log file can be made available for reuse.
NOAFFIRM
¡½ AFFIRM¡Xspecifies that all disk I/O to archived redo log files and standby redo
log files is performed synchronously and completes successfully before the log
writer process continues.
¡½ NOAFFIRM¡Xspecifies that all disk I/O to archived redo log files and standby redo
log files is performed asynchronously; the log writer process on the primary
database does not wait until the disk I/O completes before continuing.
MAX_FAILURE
¡½ REOPEN Specifies the minimum number of seconds before redo transport services should try to
reopen a failed destination.
¡½ MAX_FAILURE Controls the consecutive number of times redo transport services attempt to
reestablish communication and transmit redo data to a failed destination before the
primary database gives up on the destination.
SERVICE
¡½ Each destination must specify either the LOCATION or the SERVICE attribute to
identify either a local disk directory or a remote database destination where redo
transport services can transmit redo data.
¡½ Specifies a unique name for the database at this destination.
VALID_FOR
Specifies when redo transport services transmit redo data to a destination, based on
the following factors:
¡½ Whether the database is currently running in the primary or the standby role
¡½ Whether online redo log files, standby redo log files, or both are currently being
archived on the database at this destination
Minimum Requirements for Data Protection Modes
Maximum Protection Maximum Availability Maximum PerformanceRedo archival process LGWR LGWR LGWR or ARCHNetwork transmissionmode SYNC SYNC SYNC or ASYNC when using
LGWR process. SYNC if using
ARCH processDisk write option AFFIRM AFFIRM AFFIRM or NOAFFIRMStandby redo log required? Yes Yes No, but it is recommended
CHANGING THE PROTECTION MODE
PERFORM. THE FOLLOW STEP ON PRIMARY DATABASE
STEP 1:
SQL> SHUTDOWN IMMEDIATE;
SQL> STARTUP MOUNT;
STEP 2:
ALTER DATABASE SET STANDBY
DATABASE TO MAXIMIZE {PROTECTION | AVAILABILITY | PERFORMANCE}
SQL> ALTER DATABASE SET STANDBY DATABASE TO MAXIMIZE AVAILABILITY;
STEP 3:
ALTER DATABASE OPEN;
STEP 4:
Configure the LOG_ARCHIVE_DEST_n parameters
STEP 5:
CONFIRM THE CONFIGURATION
SQL> SELECT PROTECTION_MODE, PROTECTION_LEVEL FROM V$DATABASE;
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/308563/viewspace-496147/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/308563/viewspace-496147/
本文详细解析了Oracle数据库中LOG_ARCHIVE_DEST_n参数的各种属性及其配置方法。这些属性包括指定使用LGWR还是ARCn进程进行归档、同步或异步网络I/O、归档文件的确认选项、重试间隔及最大重试次数等。此外还介绍了如何根据不同的数据保护模式(如最大保护、最大可用性和最大性能)来调整归档设置。
7万+

被折叠的 条评论
为什么被折叠?



