[20190107]12c以上版本配置dg注意.txt
[20190107]12c以上版本配置dg注意.txt
--//上午看連結裡面提到1個問題,必須引起自己注意.
When I used to do this in Oracle 11.2, the Standby Redo logs got Thread 1 by default. Always Thread 1.
From Oracle 12.1, and also in 12.2.0.1, 18C (12.2.0.2) and probably 19C (12.2.0.3), Oracle creates the Standby Redo logs
with Thread 0 by default, although sometimes it creates them on Thread 1 (although this seems to be only in 12.1 but let
me know if you know better). I don't know why.
Standby Redo log MUST belong to the SAME Thread as the Online Redo logs for them to be used. Having (in this case) 1 x
redo on Thread 1 and 3 x Redo on Thread 0, I only have 1 x Standby Redo usable for my online Redo.
The solution is stop the Apply, DROP the Standby Redo on Thread 0, and create new Standby Redo Logs explicity stating
Thread 1, and restart the Apply.
--//在單例項下建立standby redo log,一般使用如下命令
alter database add standby logfile ('/u01/app/oracle/oradata/xxxyyy/redostb01.rbo') size 50m ;
alter database add standby logfile ('/u01/app/oracle/oradata/xxxyyy/redostb02.rbo') size 50m ;
alter database add standby logfile ('/u01/app/oracle/oradata/xxxyyy/redostb03.rbo') size 50m ;
alter database add standby logfile ('/u01/app/oracle/oradata/xxxyyy/redostb04.rbo') size 50m ;
--//在11.2的版本沒有問題,建立的standby redo log指向thread 1.我看了我的測試環境:
SYS@bookdg> @ ver1
PORT_STRING VERSION BANNER
------------------- ---------- ----------------------------------------------------------------------------
x86_64/Linux 2.4.xx 11.2.0.4.0 Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production
SYS@bookdg> select group#,thread#,sequence#,bytes/1024/1024 MB,status from v$standby_log order by group#;
GROUP# THREAD# SEQUENCE# MB STATUS
------ ------- --------- --- ----------
4 1 721 50 ACTIVE
5 1 0 50 UNASSIGNED
6 1 0 50 UNASSIGNED
7 0 0 50 UNASSIGNED
--//要使用才變成0,而不是作者講的那樣預設1.
--//但是從12c開始單例項配置dg一定建立standby redo log時,必須顯示的指定thread 號.rac環境也一定要這樣.(一般rac不會出錯).
--//例子如下:
alter database add standby logfile thread 1 ('/u01/app/oracle/oradata/xxxyyy/redostb01.rbo') size 50m ;
--//否則出現僅僅寫一個standby redo log檔案.日誌切換時出現停頓的情況,如果線上日誌越大可能延遲也嚴重的情況.
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/267265/viewspace-2374644/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- [20230308]12c以上版本模糊查詢問題.txt
- [20211115]12c以上版本Last Login Time 引發的故障.txtAST
- [20210421]12c以上版本增加欄位與預設值.txt
- 【RAC】Oracle 12c以及以上版本的diagsnap是什麼? (Doc ID 2469643.1)Oracle
- oracle 12C以上 版本資料庫訪問 ORA-28040 ORA-03134Oracle資料庫
- DG搭建配置方案
- 【DG】dg中如何配置多個後臺observerServer
- Oracle DG管理Broker配置Oracle
- Ubuntu 18及以上版本配置 IP 的方法,你 get 了嗎?Ubuntu
- [20181026]12c Attribute Clustering特性.txt
- 12C SQL Translation Framework.txtSQLFramework
- [20181010]12c clone pdb.txt
- [20190524]DISABLE TABLE LOCK(12c).txt
- [20190703]12c Hybrid histogram.txtHistogram
- [20190624]12c group by優化 .txt優化
- [20210119]sqlplus 12c LOBPREFETCH.txtSQL
- [20190225]測試如何使用dg快速主庫.txt
- 12c DG新特性 - Active Data Guard Far Sync (Doc ID 2179719.1)
- Oracle 12c DG管理-分離SYS特權使用者Oracle
- [20181127]12c Advanced Index Compression.txtIndex
- [20181011]12c set FEEDBACK only.txt
- [20181009]12C FULL DATABASE CACHING.txtDatabase
- [20200120]12c Group by Elimination bug.txt
- [20200809]12c熱備份模式.txt模式
- 【DG】MAA-RAC to RAC ADG配置
- [20190107]生成bbed執行指令碼:指令碼
- Oracle 12C TDE問題引發DG不同步案例分析Oracle
- Oracle 12c DG備庫啟動報錯standby database requires recoveryOracleDatabaseUI
- [20180718]拷貝資料檔案從dg庫.txt
- [20221128]dg資料庫最佳化問題.txt資料庫
- [20181123]快速提升scn注意.txt
- [20220121]windows使用grep注意.txtWindows
- [20210408]使用linux find注意.txtLinux
- [20181026]12c Attribute Clustering特性2.txt
- [20181018]12c Pluggable Database save state.txtDatabase
- [20181018]Oracle Database 12c: Data Redaction.txtOracleDatabase
- [20181127]12c Advanced Index Compression 2.txtIndex
- [20181005]安裝12C在windows.txtWindows