再將這些變化傳輸並應用到目標資料庫,從而實現源庫和目標庫的資料同步
解除安裝goldengate,需要停止gg相關的所有服務,刪除gg所有檔案所在的目錄,然後刪除資料庫中相關的記錄。
一,在源端,停止extract和管理服務:
ggsci (rac1) 1> info all
program status group lag time since chkpt
manager running
extract running ext1 00:00:00 00:00:09
ggsci (rac1) 2> stop ext1
sending stop request to extract ext1 …
request processed.
ggsci (rac1) 3> stop mgr
manager process is required by other ggs processes.
are you sure you want to stop it (y/n)? y
sending stop request to manager …
request processed.
manager stopped.
ggsci (rac1) 4> info all
program status group lag time since chkpt
manager stopped
extract stopped ext1 00:00:00 00:00:42
二,在目標端,停止replicat和管理服務:
gsci (redhat6) 6> info all
program status group lag time since chkpt
manager running
replicat running rep1 00:00:00 00:00:09
ggsci (redhat6) 7> stop rep1
sending stop request to replicat rep1 …
request processed.
ggsci (redhat6) 8> stop mgr
manager process is required by other ggs processes.
are you sure you want to stop it (y/n)? y
sending stop request to manager …
request processed.
manager stopped.
ggsci (redhat6) 9> info all
program status group lag time since chkpt
manager stopped
replicat stopped rep1 00:00:00 00:00:17
三,刪除源資料庫中的使用者:
sql> drop user gg cascade;
drop user gg cascade
*第 1 行出現錯誤:
ora-00604: 遞迴 sql 級別 2 出現錯誤
ora-20782: goldengate ddl replication error: code :ora-20782: cannot drop
object used in goldengate replication while trigger is enabled. consult
goldengate documentation and/or call goldengate technical support if you wish
to do so., error stack: ora-06512: 在 line 203
ora-06512: 在 line 915
sql> drop trigger ggs_ddl_trigger_before;
觸發器已刪除。
sql> drop user gg cascade;
使用者已刪除。
sql> drop user ggs cascade;
使用者已刪除。
四,刪除目標資料庫中的使用者:
sql> drop trigger ggs_ddl_trigger_before;
觸發器已刪除。
sql> drop user gg cascade;
使用者已刪除。
sql> drop user ggt cascade;
使用者已刪除。
GoldenGate 學習記錄
安裝配置 1.安裝ogg mkdir ogg chown sybase sybase ogg tar xvf ggs linux x64 sybase12 5 64bit.tar ggsci ggsci create subdirs 2.兩端環境變數 export path ogg path exp...
GoldenGate 學習記錄
安裝配置 1.安裝ogg mkdir ogg chown sybase sybase ogg tar xvf ggs linux x64 sybase12 5 64bit.tar ggsci ggsci create subdirs 2.兩端環境變數 export path ogg path exp...
goldengate合併應用程序
goldengate 應用程序自進行拆分時最好按照業務進行拆分,否則有可能造成應用讀取資料是業務錯亂,現將多個應用程序合併為乙個應用程序,以下為步驟,僅供參考 合併replicate應用程序 1.原程序 ggsci data 142 info all program status group lag...