设为首页 收藏本站
查看: 3437|回复: 0

[经验分享] oracle GoldenGate Veridata数据比对工具配置

[复制链接]
发表于 2018-9-24 15:29:29 | 显示全部楼层 |阅读模式
  GoldenGate Veridata是GoldenGate中用于比较数据库间数据同步效果的一个工具。
  官方说明如下:
  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使用了由于如下组件:
  l GoldenGate Veridata Server
  l GoldenGate Veridata Web
  l GoldenGate Veridata Repository
  l 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(相关tns、schema、tablespace要先准备好)、是否安装到windows serice等。
  启动相关服务:GoldenGate Veridata Server、GoldenGate 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文件,将它cp为agent.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
  l 在db server1上使用浏览器访问http://localhost:8830,输入之前配置的用户名和口令;
  l 点击“Connection Configuration”,新建connection,分别配置指向server1和server2的oracle数据库;
  l 点击“Group Configuration”,新建group,指定source connection和target connection,配置“Compare Pair Configuration”指定对象对,并保存(可通过“preview”查看对象对);
  l 点击“Job Configuration”,新建job,并保存;
  l 点击“Run...”按钮,运行job
  
  我指定的是两个库的scott用户的对比,其中EMP和DEPT表对比完成一致,而BONUS和SALGRADE表一直是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
  


运维网声明 1、欢迎大家加入本站运维交流群:群②:261659950 群⑤:202807635 群⑦870801961 群⑧679858003
2、本站所有主题由该帖子作者发表,该帖子作者与运维网享有帖子相关版权
3、所有作品的著作权均归原作者享有,请您和我们一样尊重他人的著作权等合法权益。如果您对作品感到满意,请购买正版
4、禁止制作、复制、发布和传播具有反动、淫秽、色情、暴力、凶杀等内容的信息,一经发现立即删除。若您因此触犯法律,一切后果自负,我们对此不承担任何责任
5、所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其内容的准确性、可靠性、正当性、安全性、合法性等负责,亦不承担任何法律责任
6、所有作品仅供您个人学习、研究或欣赏,不得用于商业或者其他用途,否则,一切后果均由您自己承担,我们对此不承担任何法律责任
7、如涉及侵犯版权等问题,请您及时通知我们,我们将立即采取措施予以解决
8、联系人Email:admin@iyunv.com 网址:www.yunweiku.com

所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其承担任何法律责任,如涉及侵犯版权等问题,请您及时通知我们,我们将立即处理,联系人Email:kefu@iyunv.com,QQ:1061981298 本贴地址:https://www.iyunv.com/thread-600706-1-1.html 上篇帖子: 解決ORACLE EM 按鈕亂碼問題 下篇帖子: Oracle PL/SQL中使用%TYPE和%ROWTYPE的方法
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

扫码加入运维网微信交流群X

扫码加入运维网微信交流群

扫描二维码加入运维网微信交流群,最新一手资源尽在官方微信交流群!快快加入我们吧...

扫描微信二维码查看详情

客服E-mail:kefu@iyunv.com 客服QQ:1061981298


QQ群⑦:运维网交流群⑦ QQ群⑧:运维网交流群⑧ k8s群:运维网kubernetes交流群


提醒:禁止发布任何违反国家法律、法规的言论与图片等内容;本站内容均来自个人观点与网络等信息,非本站认同之观点.


本站大部分资源是网友从网上搜集分享而来,其版权均归原作者及其网站所有,我们尊重他人的合法权益,如有内容侵犯您的合法权益,请及时与我们联系进行核实删除!



合作伙伴: 青云cloud

快速回复 返回顶部 返回列表