GoldenGate “單連通” 實施日誌
以下是Golden Gate的單連通方式的配置資訊,GG安裝相對簡單,這裡不進行詳述。
1、源端配置
ggsci> DBLOGIN USERID ggs, password oracle
ggsci>add trandata owner.object_name
ggsci>edit param mgr
port 7809 ----連線埠
dynamicportlist 7800-7820
autorestart er *, retries 5, waitminutes 1
purgeoldextracts *
ggsci>edit param ext1
EXTRACT ext1
USERID ggs, PASSWORD "oracle"
THREADOPTIONS MAXCOMMITPROPAGATIONDELAY 30000
FETCHOPTIONS NOUSESNAPSHOT
exttrail /home/gg10gs/dirdat/ds, megabytes 100
dynamicresolution
nocompressdeletes
nocompressupdates
table owner.object_name;
ggsci>edit param dpt1
EXTRACT dpt1
RMTHOST 130.130.0.1, MGRPORT 7810
RMTTRAIL /home/gg10gt/dirdat/ds
PASSTHRU
dynamicresolution
table owner.object_name;
2、目標端配置
ggsci>edit param mgr
port 7810 ----連線埠
dynamicportlist 7800-7820
autorestart er *, retries 5, waitminutes 1
purgeoldextracts *
ggsci>edit param rep1
REPLICAT rep1
---解決中文亂碼問題
SETENV (NLS_LANG = "AMERICAN_AMERICA.ZHS16GBK")
GETENV (NLS_LANG)
USERID ggs, PASSWORD oracle
--sqlexec "Alter session set constraints=deferred"
reperror default,discard
discardfile /home/gg10gt/dirrpt/rep1.dsc,append, megabytes 100, purge
discardrollover
assumetargetdefs
allownoopupdates
dynamicresolution
map xxxx.object_name, target xxxx.object_name;
3、資料的初始載入
源資料庫:
SQL>SELECT dbms_flashback.get_system_change_number FROM DUAL;
exp user/passwd wner=XXXXX file=./20110904.dmp flashback_scn=267116592
目標資料庫
imp user/passwd file=./20110904.dmp full=y
如果是單表初始載入
exp user/passwd tables=test file=./test.dmp flashback_scn=267108525
impuser/passwd file=./test.dmp tables=test
4、源端
ggsci>delete extract ext1
ggsci>delete exttrail /home/gg10gs/dirdat/ds
ggsci>add ext ext1, tranlog, begin now
ggsci>add exttrail /home/gg10gs/dirdat/ds, ext ext1, megabytes 100
ggsci>delete extract dpt1
ggsci>delete rmttrail /home/gg10gt/dirdat/ds
ggsci>add extract dpt1, exttrailsource /home/gg10gs/dirdat/ds
ggsci>add rmttrail /home/gg10gt/dirdat/ds, ext dpt1, megabytes 100
ggsci>start mgr
ggsci>start ext ext1
ggsci>start ext dpt1
5、目標端
ggsci>delete replicat rep1
ggsci>delete exttrail /home/gg10gt/dirdat/ds
ggsci>add replicat rep1, exttrail /home/gg10gt/dirdat/ds, nodbcheckpoint
ggsci>start mgr
ggsci>start rep rep1
6、測試略
1、源端配置
ggsci> DBLOGIN USERID ggs, password oracle
ggsci>add trandata owner.object_name
ggsci>edit param mgr
port 7809 ----連線埠
dynamicportlist 7800-7820
autorestart er *, retries 5, waitminutes 1
purgeoldextracts *
ggsci>edit param ext1
EXTRACT ext1
USERID ggs, PASSWORD "oracle"
THREADOPTIONS MAXCOMMITPROPAGATIONDELAY 30000
FETCHOPTIONS NOUSESNAPSHOT
exttrail /home/gg10gs/dirdat/ds, megabytes 100
dynamicresolution
nocompressdeletes
nocompressupdates
table owner.object_name;
ggsci>edit param dpt1
EXTRACT dpt1
RMTHOST 130.130.0.1, MGRPORT 7810
RMTTRAIL /home/gg10gt/dirdat/ds
PASSTHRU
dynamicresolution
table owner.object_name;
2、目標端配置
ggsci>edit param mgr
port 7810 ----連線埠
dynamicportlist 7800-7820
autorestart er *, retries 5, waitminutes 1
purgeoldextracts *
ggsci>edit param rep1
REPLICAT rep1
---解決中文亂碼問題
SETENV (NLS_LANG = "AMERICAN_AMERICA.ZHS16GBK")
GETENV (NLS_LANG)
USERID ggs, PASSWORD oracle
--sqlexec "Alter session set constraints=deferred"
reperror default,discard
discardfile /home/gg10gt/dirrpt/rep1.dsc,append, megabytes 100, purge
discardrollover
assumetargetdefs
allownoopupdates
dynamicresolution
map xxxx.object_name, target xxxx.object_name;
3、資料的初始載入
源資料庫:
SQL>SELECT dbms_flashback.get_system_change_number FROM DUAL;
exp user/passwd wner=XXXXX file=./20110904.dmp flashback_scn=267116592
目標資料庫
imp user/passwd file=./20110904.dmp full=y
如果是單表初始載入
exp user/passwd tables=test file=./test.dmp flashback_scn=267108525
impuser/passwd file=./test.dmp tables=test
4、源端
ggsci>delete extract ext1
ggsci>delete exttrail /home/gg10gs/dirdat/ds
ggsci>add ext ext1, tranlog, begin now
ggsci>add exttrail /home/gg10gs/dirdat/ds, ext ext1, megabytes 100
ggsci>delete extract dpt1
ggsci>delete rmttrail /home/gg10gt/dirdat/ds
ggsci>add extract dpt1, exttrailsource /home/gg10gs/dirdat/ds
ggsci>add rmttrail /home/gg10gt/dirdat/ds, ext dpt1, megabytes 100
ggsci>start mgr
ggsci>start ext ext1
ggsci>start ext dpt1
5、目標端
ggsci>delete replicat rep1
ggsci>delete exttrail /home/gg10gt/dirdat/ds
ggsci>add replicat rep1, exttrail /home/gg10gt/dirdat/ds, nodbcheckpoint
ggsci>start mgr
ggsci>start rep rep1
6、測試略
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/354732/viewspace-706642/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 通過 Systemd Journal 收集日誌
- phpMyadmin通過日誌寫webshellPHPWebshell
- 實訓日誌
- Rainbond通過外掛整合ELK/EFK,實現日誌收集AI
- OGG-00446 goldengate 抽取程式找不到相應的歸檔日誌的解Go
- 通過helm部署EFK收集應用日誌,ingress-nginx日誌解析。應用日誌Nginx
- SpringBoot日誌實現Spring Boot
- 日誌最佳實踐
- qt 單獨執行緒實現日誌寫入功能QT執行緒
- 日誌服務 HarmonyOS NEXT 日誌採集最佳實踐
- 簡單的C#日誌類C#
- 日誌收集工具簡單對比
- 搭建ELK日誌平臺(單機)
- mysql日誌系統簡單使用MySql
- CDN日誌實時分析
- python 執行緒安全的 單例 實現 日誌分級Python執行緒單例
- python通過TimedRotatingFileHandler按時間切割日誌Python
- keepalived(五)設定單獨的日誌
- Cmocka 單元測試日誌記錄Mock
- 通過RMAN設定standby接收日誌後主庫歸檔日誌才可刪除
- Spring Boot日誌框架實踐Spring Boot框架
- 日誌分析-apache日誌分析Apache
- GoldenGate BR(bounded Recovery)簡單說明Go
- mariadb審計日誌通過 logstash匯入 hiveHive
- TXT文字Log日誌分割工具(附工具連結)
- [日誌分析篇]-利用ELK分析jumpserver日誌-日誌拆分篇Server
- 實施DevOps安全策略清單dev
- [20180625]簡單計算日誌生成率.txt
- 資料結構--單連結串列(通過陣列實現)資料結構陣列
- 雲渲染實施記錄(暫未跑通)
- go開發屬於自己的日誌庫-檔案日誌庫實現Go
- 使用 Serverless 實現日誌報警Server
- Rust 實現日誌記錄功能Rust
- linux-實現日誌分析--pythonLinuxPython
- Yii使用DbTarget實現日誌功能
- Docker容器日誌管理最佳實踐Docker
- .Net Core 審計日誌實現
- 11月26實驗室日誌
- 日誌