LOG_ARCHIVE_DEST_n 中的各屬性 (包括valid_for等)
VALID_FOR
Specifies whether redo data will be written 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
Category | VALID_FOR=(redo_log_type, database_role) |
---|---|
Data Type | String value |
Valid values | Not applicable |
Default Value | VALID_FOR=(ALL_LOGFILES, ALL_ROLES) |
Requires attributes | None |
Conflicts with attributes | None |
Corresponds to | VALID_NOW, VALID_TYPE, and VALID_ROLE columns in the V$ARCHIVE_DEST view |
Usage Notes
-
The VALID_FOR attribute is optional. However, Oracle recommends that the VALID_FOR attribute be specified for each redo transport destination at each database in a Data Guard configuration so that redo transport continues after a role transition to any standby database in the configuration.
-
To configure these factors for each LOG_ARCHIVE_DEST_n destination, you specify this attribute with a pair of keywords: VALID_FOR=(redo_log_type,database_role):
-
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.
-
-
-
If you do not specify the VALID_FOR attribute for a destination, by default, archiving online redo log files and standby redo log files is enabled at the destination, regardless of whether the database is running in the primary or the standby role. This default behavior. is equivalent to setting the (ALL_LOGFILES,ALL_ROLES) keyword pair on the VALID_FOR attribute.
-
The VALID_FOR attribute enables you to use the same initialization parameter file for both the primary and standby roles.
Example
The following example shows the default VALID_FOR keyword pair:
LOG_ARCHIVE_DEST_1='LOCATION=/disk1/oracle/oradata VALID_FOR=(ALL_LOGFILES, ALL_ROLES)'
When this database is running in either the primary or standby role, destination 1 archives all log files to the /disk1/oracle/oradata local directory location.
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/35489/viewspace-672306/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- DG學習筆記(6)_LOG_ARCHIVE_DEST_N引數的各個屬性筆記Hive
- javascript中各類的prototype屬性JavaScript
- 17 LOG_ARCHIVE_DEST_n 引數屬性Hive
- log_archive_dest_n裡的alternate屬性使用須知Hive
- javascript相容火狐等各瀏覽器的innerText屬性程式碼JavaScript瀏覽器
- Oracle Data Guard LOG_ARCHIVE_DEST_n引數的可選屬性OracleHive
- 如何遍歷物件直接量中的各個屬性物件
- Android中RelativeLayout各個屬性的含義Android
- AutoMapper在MVC中的運用04-string對映各種型別、一個屬性對映多個屬性等APPMVC型別
- LOG_ARCHIVE_DEST_n引數屬性——DATA GUARD概念和管理Hive
- Swift 中的屬性Swift
- 以太坊中的全域性屬性
- http-equiv的各個屬性及意義HTTPUI
- Java JDK各個版本的新特性、屬性(JVM)JavaJDKJVM
- mongoDB中的冪等性MongoDB
- Css 中的position屬性CSS
- css中的display屬性CSS
- CSS中的margin屬性CSS
- ITEM中的屬性控制
- Python中的屬性Python
- log_archive_dest_n引數中reopen、max_failure、net_timeout三個屬性的組合效果測試HiveAI
- 正則方法和屬性的使用---包括你沒有見過的哦
- 為QT程式增加版本等屬性資訊QT
- css3中的zoom屬性以及jquery中css()方法操作元素的屬性CSSS3OOMjQuery
- java POI 操作EXCEL小例子+各種屬性JavaExcel
- 各個瀏覽器對CSS標準各屬性支援的情況列表瀏覽器CSS
- javascript獲取物件直接量中的屬性和屬性值JavaScript物件
- css屬性與js中style物件的屬性對應表CSSJS物件
- 協議中的私有屬性協議
- C#中屬性的解析C#
- vue中的computed屬性Vue
- 富文字中的段落屬性
- Python 中的 property 屬性Python
- Spring的BeanFactoryPostProcessor中屬性SpringBean
- Vue-5個進階屬性(指令等)Vue
- 理解 Kotlin 中的屬性(property)Kotlin
- 淺談 Swift 中的屬性(PropertySwift
- SQL Server 中的 ACID 屬性SQLServer