收到開發人員的變更郵件申請,需要在某個表增加字段,由於我們的環境ddl是沒有開啟的。用的訊息中介軟體kafka做傳輸消費,應用到目標庫。由於緊急變更,先做字段變更吧。
變更完成後,檢視ogg狀態;
[oracle@bapdb1 ggs12]$ ./ggsci
oracle goldengate command interpreter for oracle
version 12.1.2.1.0 oggcore_12.1.2.1.0_platforms_140727.2135.1_fbo
linux, x64, 64bit (optimized), oracle 11g on aug 7 2014 09:14:25
operating system character set identified as utf-8.
ggsci (bapdb1) 2> info all
program status group lag at chkpt time since chkpt
manager running
jagent running
extract running extdmq 00:00:03 00:00:07
extract running extnewp 00:00:04 00:00:09
extract running ext_kaf 00:00:03 00:00:00
extract running ext_kaf2 00:00:03 00:00:03
extract running ext_kaf4 00:00:03 00:00:03
extract running ext_kaf5 00:00:01 00:00:04
extract running ext_kaf6 00:00:02 00:00:01
extract running ext_kaf7 00:00:03 00:00:08
extract running ext_kaf8 00:00:03 00:00:06
extract running pmp_kaf 00:00:00 00:00:04
extract running pmp_kaf2 00:00:00 00:00:08
extract running pmp_kaf4 00:00:00 00:00:10
extract running pmp_kaf5 00:00:03 00:00:06
extract running pmp_kaf6 00:00:04 00:00:02
extract running pmp_kaf7 00:00:03 00:00:03
extract running pmp_kaf8 00:00:04 00:00:05
extract running pudmq 00:00:00 00:00:04
extract running pumpnewp 00:00:00 00:00:01
replicat running repzw1 00:00:00 00:00:01
手工停止該錶用到的程序,抽取和投遞均停止後,等待郵件報錯,找到對應的目標端機器;
找到kafka位址為10.1.x.9的位址,登陸機器
oracle goldengate command interpreter
version 12.3.0.1.0 oggcore_oggadp.12.3.0.1.0ga_platforms_170828.1608
linux, x64, 64bit (optimized), generic on aug 28 2017 17:13:45
operating system character set identified as utf-8.
ggsci (pbsdataskafkagroup2-1) 1> info all
program status group lag at chkpt time since chkpt
manager running
replicat running rep_75 00:00:00 00:00:06
replicat running rep_75_2 00:00:03 00:00:04
replicat abending rep_75_3 00:00:03 00:00:02
replicat running rep_90 00:00:00 00:00:00
replicat running rep_90_1 00:00:05 00:00:08
replicat running rep_90_2 00:00:00 00:00:00
replicat running rep_90_3 00:00:00 00:00:01
2018-05-31 17:04:28 error ogg-01161 bad column index (31) specified for table cfs.t_cfs_acct_item, max columns = 31.
2018-05-31 17:04:28 error ogg-01668 process abending.
源端進行操作,先將原來的defgen檔案轉存乙份加時間日期。
[oracle@bapdb1 ggs12]$cd dirdef/
[oracle@bapdb1 ggs12]$mv defgen75_3.def defgen75_3.def_0531
[oracle@bapdb1 ggs12]$ pwd
/ggs/ggs12
[oracle@bapdb1 ggs12]$defgen paramfile ./dirprm/defgen75_3.prm
生成新的defgen75_3.def檔案,傳送到目標kafka伺服器中,
然後在目標庫中新增字段操作!
最後kafka目標機中ogg程序啟動即可,
ggsci (pbsdataskafkagroup2-1) 1> info all
program status group lag at chkpt time since chkpt
manager running
replicat running rep_75 00:00:05 00:00:01
replicat running rep_75_2 00:00:03 00:00:02
replicat running rep_75_3 00:00:04 00:00:05
replicat running rep_90 00:00:00 00:00:00
replicat running rep_90_1 00:00:05 00:00:05
replicat running rep_90_2 00:00:00 00:00:05
replicat running rep_90_3 00:00:00 00:00:07
普通專案改造成Dubbo專案
一.重新建立三個專案分別為a 使用者服務介面專案 b 使用者服務實現專案 c 服務消費者專案 二.將原始專案中的實體類移動到a專案中,並建立dubbo服務介面 三.1.將原始專案中的basedao,dao,service移動到b專案中,並建立dubbo服務介面實現 3.將spring mybatis...
Oracle之索引改造成主鍵
解析 主鍵就是索引裡面加乙個約束 改造一條語句即可,不需要先刪除索引,然後重新建立主鍵。drop table t p cascade constraints purge create table t p order id number 3 item id number 2 comments varc...
看我把firefox改造成chrome的樣子
一直很喜歡chrome的主題,美觀,而且足夠簡介實用,標題欄和選單欄,狀態列都乾掉了,節省了很大的空間,尤其是對我這種小螢幕的電腦來說太棒了 昨天把firefox折騰成很想chrome的樣子了,跟大家分享一下,先看圖吧。如果你覺得好的花就下面看看我的做法吧 主題 乙個國人寫的firefox擴充套件,...