PROTECTION_MODE is UNPROTECTED at standby database 分析
PROTECTION_MODE is UNPROTECTED at standby database 分析
資料庫版本
SQL> select * from v$version;
BANNER
--------------------------------------------------------------------------------------------------------------------------------
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - 64bi
PL/SQL Release 10.2.0.1.0 - Production
CORE 10.2.0.1.0 Production
TNS for Linux: Version 10.2.0.1.0 - Production
NLSRTL Version 10.2.0.1.0 – Production
1、問題描述(data guard採用最大效能模式,但是備庫的PROTECTION_MODE 竟是UNPROTECTED?)
主庫
SQL> select DATABASE_ROLE,OPEN_MODE,PROTECTION_MODE from v$database;
DATABASE_ROLE OPEN_MODE PROTECTION_MODE
-------------------------------- -------------------- ----------------------------------------
PRIMARY READ WRITE MAXIMUM PERFORMANCE
備庫
SQL> select DATABASE_ROLE,OPEN_MODE,PROTECTION_MODE from v$database;
DATABASE_ROLE OPEN_MODE PROTECTION_MODE
-------------------------------- -------------------- ----------------------------------------
PHYSICAL STANDBY MOUNTED UNPROTECTED
2、問題補充描述
備庫日誌正常應用,主庫做DML操作,備庫read only開啟也可以看到DML的結果。說明此data guard本身是沒有問題的。但是為什麼備庫的PROTECTION_MODE 會出現 UNPROTECTED呢?萬分不解,在朋友的幫助下找到了關於這個問題的描述如下:
Use this clause to specify the level of protection for the data in your database environment. You specify this clause from the primary database, which must be mounted but not open.
Note:
The PROTECTED and UNPROTECTED keywords have been replaced for clarity but are still supported. PROTECTED is equivalent to TO MAXIMIZE PROTECTION. UNPROTECTED is equivalent to TO MAXIMIZE PERFORMANCE.
官檔連結:http://docs.oracle.com/cd/B19306_01/server.102/b14200/statements_1004.htm#SQLRF00802
3、問題分析
根據官檔的解釋:
PROTECTED= TO MAXIMIZE PROTECTION
UNPROTECTED= TO MAXIMIZE PERFORMANCE
這樣就不難看出了,我們data guard中PROTECTION_MODE =UNPROTECTED ,這根本就沒有任何問題,只不過是想當於MAXIMIZE PERFORMANCE的另一種叫法是 UNPROTECTED而已。
4、總結:
PROTECTED= TO MAXIMIZE PROTECTION
UNPROTECTED= TO MAXIMIZE PERFORMANCE
一些關鍵性引數的理解問題。最好的解決辦法就是找oracle官檔。
終於也可以安心睡覺了,每天解決一點問題就是進步
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/26442936/viewspace-750323/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- standby databaseDatabase
- Convert a Physical Standby Database into a Snapshot Standby DatabaseDatabase
- standby database to primary database.Database
- Physical Standby Database 切換到 Snapshot Standby DatabaseDatabase
- Standby Database ---09Database
- Create RAC Standby Database for RAC Primary DatabaseDatabase
- standby database No RFS 程式Database
- Rman backup standby databaseDatabase
- Standby Database for reportDatabase
- Standby Database的工作原理Database
- 建立 Logical Standby DatabaseDatabase
- manage logical standby databaseDatabase
- How a Standby Database Is Mounted (295)Database
- Setup Standby Database on One PC(轉)Database
- Oracle DG Standby Database型別OracleDatabase型別
- Oracle DG建立Physical Standby DatabaseOracleDatabase
- Creating a Physical Standby DatabaseDatabase
- rman 建 Standby Database 筆記Database筆記
- (轉)Standby Database的工作原理Database
- 監控Logical standby databaseDatabase
- 11g 新特性—— Active Database Duplication for A standby databaseDatabase
- Performing a Failover to a Physical Standby DatabaseORMAIDatabase
- Oracle DG建立Logical Standby DatabaseOracleDatabase
- Data Guard - Snapshot Standby Database配置Database
- 物理standby database的日常維護Database
- standby database -- Compatibility and Operational RequirementsDatabaseUIREM
- Oracle10G Physical Standby Database setupOracleDatabase
- Logical Standby Database的配置步驟.Database
- Performing a Switchover to a Physical Standby Database and failoverORMDatabaseAI
- Oracle DataGuard Standby database ID mismatch錯誤OracleDatabase
- 使用rman建立standby database的過程Database
- Oracle 12.2 使用Database Link優化Standby Database WorkloadOracleDatabase優化
- 11g rman新特性 duplicate target database for standby from active databaseDatabase
- Restore standby database controlfile in ASM (refreshing standby controlfile)RESTDatabaseASM
- Oracle 11g Data Guard 使用 duplicate from active database 建立 standby databaseOracleDatabase
- Oracle 11g Data Guard 使用duplicate from active database 建立 standby databaseOracleDatabase
- ORACLE10g DataGuard 配置Physical Standby DatabaseOracleDatabase
- Using RMAN Incremental Backups to Refresh a Standby DatabaseREMDatabase