oracle GoldenGate Veridata配置

GoldenGate VeridataGoldenGate中用于比较数据库间数据同步效果的一个工具。

官方说明如下:

Oracle GoldenGate Veridata is a high-speed data comparison solution that identifies and reports data discrepancies between databases without interrupting ongoing business processes. Using Oracle GoldenGate Veridata, companies can audit and verify large volumes of data across a variety of business applications with certainty,and maintain reliable data synchronization.

 

我本次配置Veridata使用了由于如下组件:

GoldenGate Veridata Server

GoldenGate Veridata Web

GoldenGate Veridata Repository

GoldenGate Veridata Agent

 

两台db server安装软件说明

Db server1

Db server2

Veridata组件

GoldenGate Veridata Server

GoldenGate Veridata Web

GoldenGate Veridata Repository

GoldenGate Veridata Java Agent

GoldenGate Veridata Java Agent

Oracle db

Oracle 10.2.0.3 for win x86

Oracle 11.2.0.1 for linux x64

IP

192.168.126.1

192.168.126.128

 

GoldenGate Veridata相关软件包:

http://edelivery.oracle.com下载:

GoldenGate_Veridata_win_x86_v3004_003.exe

GoldenGate_Veridata_Agent_win_x86_v3004_003.exe

V19618-01.zip (linux agent)

 

GoldenGate Veridata Server安装:

server1上安装GoldenGate Veridata Server,使用GoldenGate_Veridata_win_x86_v3004_003.exe包(windows的安装,一路next),过程中需要注意的地方是:配置web server admin(记住自己配的用户名、口令、port)、指定Repository(相关tnsschematablespace要先准备好)、是否安装到windows serice等。

启动相关服务:GoldenGate Veridata ServerGoldenGate Veridata Web

 

GoldenGate Veridata Java Agent安装:

1.db server1

Veridata Server中没有包含agent,需要单独安装,点击GoldenGate_Veridata_Agent_win_x86_v3004_003.exe包进行安装。

需要注意的是:

Agent port的设置,默认端口是7850

JDBC URL设置指向本地数据库,之后最好输入用户和口令进行test connect

2.db server2

liunx系统中解压V19618-01.zip包,进入agent目录,找到agent.properties.sample文件,将它cpagent.properties,然后进行vi,修改如下内容:

server.port=7850 agent端口)

database.url=jdbc:oracle:thin:@192.168.126.128:1521:orcl

server.driversLocation = drivers

server.jdbcDriver=ojdbc5.jar

 

运行agent:

1.db server1

进入agent安装目录C:\Program Files\Goldengate_Veridata_Agent,执行agent.bat start,确认7850端口打开

2.db server2

agent解压目录/agent中,执行./agent.sh start,确认7850端口打开

 

使用WEB进行配置管理Veridata

db server1上使用浏览器访问http://localhost:8830,输入之前配置的用户名和口令;

点击“Connection Configuration”,新建connection,分别配置指向server1server2oracle数据库;

点击“Group Configuration”,新建group,指定source connectiontarget connection,配置“Compare Pair Configuration”指定对象对,并保存(可通过“preview”查看对象对);

点击“Job Configuration”,新建job,并保存;

点击“Run...”按钮,运行job

我指定的是两个库的scott用户的对比,其中EMPDEPT表对比完成一致,而BONUSSALGRADE表一直是Abended状态,之后才发现原因是这两个表中没有key

2010-06-23 15:10:16. Abended with errors. Group (scott), Compare Pair (BONUS=BONUS). (3) Remaining

2010-06-23 15:10:16. Abended with errors. Group (scott), Compare Pair (SALGRADE=SALGRADE). (2) Remaining

2010-06-23 15:10:17. Completed in-sync. Group (scott), Compare Pair (EMP=EMP). (1) Remaining

2010-06-23 15:10:17. Completed in-sync. Group (scott), Compare Pair (DEPT=DEPT). (0) Remaining

               Compare Pairs with Errors: 2

          Compare Pairs with Out-Of-Sync: 0

       Compare Pairs without Out-Of-Sync: 2

                 Compare Pairs Cancelled: 0

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/17997/viewspace-665990/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/17997/viewspace-665990/

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值