Oracle_CDC整理3-參考及錯誤處理
1. 參考文件
http://blog.csdn.net/chentaocba/article/details/7435131
http://www.cnblogs.com/myrunning/p/5329139.html
Oracle 10.2 CDC:
Oracle 11g CDC:
DBMS_CDC_PUBLISH:http://docs.oracle.com/cd/E11882_01/appdev.112/e40758/d_cdcpub.htm#ARPLS023
DBMS_CDC_SUBSCRIBE:http://docs.oracle.com/cd/E11882_01/appdev.112/e40758/d_cdcsub.htm#ARPLS024
Oracle 11.2 CDC:
2. 錯誤處理
2.1. ORA-31466: 未找到釋出內容
執行訂閱表資訊時,提示ORA-31466:未找到釋出內容,排查發現是沒有將變更表cdc_employee_info的查詢許可權賦予訂閱者使用者cdc_subscriber導致。
解決方法:
SQL> conn cdc_publisher/cdc_publisher
Connected.
SQL> grant select on cdc_employee_info to cdc_subscriber;
Grant succeeded.
2.2. 啟用訂閱之後,對源表進行操作,捕獲不到資料
監控SYS使用者的employee_info表,沒有出現任何異常,就是捕獲不到資料,後來我替換給backupuser使用者的employee_info表,按照以上步驟操作,就能正常捕獲到資料了,官網也沒查到相關的文件說明,很奇怪,還需要進一步研究。
2.3. ORA-26723 建立變更集報錯
報錯內容:
ORA-26723: 使用者 "SYS" 要求角色 "DV_STREAMS_ADMIN/DV_XSTREAM_ADMIN/DV_GOLDENGATE_ADMIN"
ORA-06512: 在 "SYS.DBMS_LOGREP_UTIL", line 197
ORA-06512: 在 "SYS.DBMS_LOGREP_UTIL", line 240
ORA-06512: 在 "SYS.DBMS_CAPTURE_ADM_INTERNAL", line 391
ORA-06512: 在 line 1
ORA-06512: 在 "SYS.DBMS_CDC_PUBLISH", line 719
ORA-06512: 在 "SYS.DBMS_CDC_PUBLISH", line 927
ORA-06512: 在 line 2
處理辦法就是關閉dba vault。
1) 關閉資料庫;
2) 在所有節點上以oracle使用者執行:oracle> chopt disable dv
Writing to /oracle/app/oracle/product/11.2.0/install/disable_dv.log...
/usr/bin/make -f /oracle/app/oracle/product/11.2.0/rdbms/lib/ins_rdbms.mk dv_off ORACLE_HOME=/oracle/app/oracle/product/11.2.0
/usr/bin/make -f /oracle/app/oracle/product/11.2.0/rdbms/lib/ins_rdbms.mk ioracle ORACLE_HOME=/oracle/app/oracle/product/11.2.0
2.4. ORA-31489: DDL_MARKERS 值無效
同步模式中,建立變更記錄表,執行報錯:
ORA-31489: DDL_MARKERS 值無效
ORA-06512: 在 "SYS.DBMS_CDC_PUBLISH", line 1002
ORA-06512: 在 line 2
處理:
ddl_markers預設是y,但同步得用n;
2.5. 啟動釋出訂閱日誌顯示
資料庫alert日誌
Logminer Bld: Done
Streams Capture: CDC$C_CDC_SCOTT_TEST CAPTURE Created
CAPTURE CDC$C_CDC_SCOTT_TEST: Start SCN: 1924579 (0x1d5de3.00000000)
CAPTURE CDC$C_CDC_SCOTT_TEST: First SCN: 1924579 (0x1d5de3.00000000)
CAPTURE CDC$C_CDC_SCOTT_TEST: Required Checkpoint SCN: 0 (0x0000.00000000)
CAPTURE CDC$C_CDC_SCOTT_TEST: Captured SCN: 0 (0x0000.00000000)
CAPTURE CDC$C_CDC_SCOTT_TEST: Applied SCN: 0 (0x0000.00000000)
CAPTURE CDC$C_CDC_SCOTT_TEST: Capture Type: LOCAL
CAPTURE CDC$C_CDC_SCOTT_TEST: Logminer Id: 1
CAPTURE CDC$C_CDC_SCOTT_TEST: Source Database: ORCL.SITE
knlciAlterCapture: start scn is changed to 1925382 (0x1d6106.00000000) for CAP CDC$C_CDC_SCOTT_TEST.
Thu Feb 08 20:03:32 2018
Streams APPLY AP01 for CDC$A_CDC_SCOTT_TEST started with pid=31, OS id=13370
APPLY CDC$A_CDC_SCOTT_TEST: Apply User: CDC_PUBLISHER
APPLY CDC$A_CDC_SCOTT_TEST: Apply Tag: 0
APPLY CDC$A_CDC_SCOTT_TEST: Parameter Set by User: COMMIT_SERIALIZATION Value: NONE
APPLY CDC$A_CDC_SCOTT_TEST: Parameter Set by User: DISABLE_ON_ERROR Value: Y
APPLY CDC$A_CDC_SCOTT_TEST: Parameter Set by User: DISABLE_ON_LIMIT Value: Y
Thu Feb 08 20:03:32 2018
Streams CAPTURE CP01 for CDC$C_CDC_SCOTT_TEST started with pid=32, OS id=13372
CAPTURE CDC$C_CDC_SCOTT_TEST: Start SCN: 1925382 (0x1d6106.00000000)
CAPTURE CDC$C_CDC_SCOTT_TEST: First SCN: 1924579 (0x1d5de3.00000000)
CAPTURE CDC$C_CDC_SCOTT_TEST: Required Checkpoint SCN: 0 (0x0000.00000000)
CAPTURE CDC$C_CDC_SCOTT_TEST: Captured SCN: 0 (0x0000.00000000)
CAPTURE CDC$C_CDC_SCOTT_TEST: Applied SCN: 0 (0x0000.00000000)
CAPTURE CDC$C_CDC_SCOTT_TEST: Capture Type: LOCAL
CAPTURE CDC$C_CDC_SCOTT_TEST: Logminer Id: 1
CAPTURE CDC$C_CDC_SCOTT_TEST: Source Database: ORCL.SITE
CAPTURE CDC$C_CDC_SCOTT_TEST: Parameter Set by User: DISABLE_ON_LIMIT Value: Y
CAPTURE CDC$C_CDC_SCOTT_TEST: Parameter Set by User: MAXIMUM_SCN Value: INFINITE
Thu Feb 08 20:03:32 2018
Streams Apply Reader for CDC$A_CDC_SCOTT_TEST started AS01 with pid=41 OS id=13374
Thu Feb 08 20:03:32 2018
Streams Apply Server for CDC$A_CDC_SCOTT_TEST started AS02 with pid=42 OS id=13376
Thu Feb 08 20:03:32 2018
Propagation Sender/Receiver (CCA) for Streams Capture and Apply CDC$A_CDC_SCOTT_TEST with pid=43, OS id=13378 started.
APPLY CDC$A_CDC_SCOTT_TEST: Source Database: NA
APPLY CDC$A_CDC_SCOTT_TEST: Applied Message Number: NA
APPLY CDC$A_CDC_SCOTT_TEST: Message Create Time: NA
First applied SCN for apply w/ object number 91923 and subscriber sequence number 1 is updated to SCN: 0 (0x0000.00000000)
First applied SCN of the Streams path from capture (CDC$C_CDC_SCOTT_TEST) to propagation () to apply (CDC$A_CDC_SCOTT_TEST) is set to SCN: 1924579 (0x1d5de3.00000000)
Streams CAPTURE CP01 for CDC$C_CDC_SCOTT_TEST with pid=32, OS id=13372 is in combined capture and apply mode.
Capture CDC$C_CDC_SCOTT_TEST is handling 1 applies.
Starting persistent Logminer Session with sid = 1 for Streams Capture CDC$C_CDC_SCOTT_TEST
LOGMINER: Parameters summary for session# = 1
LOGMINER: Number of processes = 3, Transaction Chunk Size = 1
LOGMINER: Memory Size = 30M, Checkpoint interval = 1000M
LOGMINER: SpillScn 0, ResetLogScn 1286002
LOGMINER: summary for session# = 1
LOGMINER: StartScn: 1925373 (0x0000.001d60fd)
LOGMINER: EndScn: 0
LOGMINER: HighConsumedScn: 1925382 (0x0000.001d6106)
LOGMINER: session_flag: 0x0
LOGMINER: Read buffers: 16
LOGMINER: Memory LWM: limit 10M, LWM 24M, 80%
LOGMINER: Memory Release Limit: 1M
LOGMINER: LowCkptScn: 0 (0x0000.00000000)
LOGMINER: HighCkptScn: 0 (0x0000.00000000)
LOGMINER: SkipScn: 1924579 (0x0000.001d5de3)
Thu Feb 08 20:03:39 2018
LOGMINER: session#=1 (CDC$C_CDC_SCOTT_TEST), reader MS00 pid=46 OS id=13385 sid=138 started
Thu Feb 08 20:03:39 2018
LOGMINER: session#=1 (CDC$C_CDC_SCOTT_TEST), builder MS01 pid=47 OS id=13387 sid=202 started
Thu Feb 08 20:03:39 2018
LOGMINER: session#=1 (CDC$C_CDC_SCOTT_TEST), preparer MS02 pid=48 OS id=13389 sid=15 started
LOGMINER: Begin mining logfile during dictionary load for session 1 thread 1 sequence 63, /oracle/app/oracle/fast_recovery_area/ORCL/archivelog/2018_02_08/o1_mf_1_63_f7rh1v7s_.arc
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/29519108/viewspace-2150975/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 總結:整理 oracle異常錯誤處理 .Oracle
- InnoDB 中文參考手冊 --- 13 出錯處理 (轉)
- npm 安裝錯誤及處理方法NPM
- 錯誤處理
- hadoop常見錯誤及處理方法Hadoop
- 【BLOCK】Oracle壞塊處理命令參考BloCOracle
- PHP 錯誤處理PHP
- php錯誤處理PHP
- Go 錯誤處理Go
- Swift錯誤處理Swift
- Zabbix錯誤處理
- mysqldump錯誤處理MySql
- Oracle_CDC整理2-部署Oracle
- 遠端連線錯誤程式碼及處理
- ArcGIS參考資料整理
- 處理wording的一些參考
- 錯誤處理:如何通過 error、deferred、panic 等處理錯誤?Error
- PHP錯誤處理和異常處理PHP
- go的錯誤處理Go
- Python錯誤處理Python
- ORA-32701錯誤原因分析及處理方法
- ORA-600[kqlnrc_1]錯誤分析及處理
- DOM參考手冊及事件參考手冊事件
- thinkphp原始碼分析(四)—錯誤及異常處理篇PHP原始碼
- Ora-01555錯誤的模擬及處理
- 異常錯誤資訊處理
- PHP 核心特性 - 錯誤處理PHP
- 常用模組 PHP 錯誤處理PHP
- laravel9 錯誤處理Laravel
- 淺談前端錯誤處理前端
- Oracle異常錯誤處理Oracle
- ORACLE 異常錯誤處理Oracle
- 15-錯誤處理(Error)Error
- 學習Rust 錯誤處理Rust
- axios 的錯誤處理iOS
- Go語言之錯誤處理Go
- GOLANG錯誤處理最佳方案Golang
- Objective-C:錯誤處理Object