GoldenGate配置(四)之veridata配置

GoldenGate配置(四)之veridata配置

环境:


Item


Source System


Target System


Platform


Red Hat Enterprise

Linux Server release 5.4


Red Hat Enterprise

Linux Server release 5.4


Hostname


gc1


gc2


Database


Oracle 10.2.0.1


Oracle 11.2.0.1


Character Set


ZHS16GBK


ZHS16GBK


ORACLE_SID


PROD


EMREP


Listener Name/Port


LISTENER/1521


LISTENER/1521


Goldengate User


ogg


ogg

gc1:创建目录

[[email protected]~]#
cd /u01/app

[[email protected]]#
ls

ogg  oracle

[[email protected]]#
mkdir veridata

[[email protected]]# ls

ogg oracle  veridata

[[email protected]]#
chown -R oracle:oinstall /u01/app/veridata

[[email protected]]# ls -ll

total 12

drwxrwxr-x 13 oracle oinstall 4096 Jun 18 21:55ogg

drwxr-xr-x 7 oracle oinstall 4096 Jun 13 01:04 oracle

drwxr-xr-x  2 oracle oinstall 4096Jun 18 23:10 veridata

gc2:创建目录

[[email protected]~]#
cd /u01/app

[[email protected]]#
ls

ogg oracle  oraInventory

[[email protected]]# mkdir veridata

[[email protected]]#
chown -R oracle:oinstall /u01/app/veridata

[[email protected]]#
ls -ll

total 16

drwxr-xr-x 13 oracle oinstall 4096 Jun 18 22:06ogg

drwxr-xr-x 8 oracle oinstall 4096 Jan 23 19:14 oracle

drwxrwx--- 5 oracle oinstall 4096 Jan 23 19:12 oraInventory

drwxr-xr-x  2 oracle oinstall 4096Jun 18 23:12 veridata

gc1:MGR配置

[[email protected]~]$
cd /u01/app/veridata

[[email protected]]$ ls

veridata-cagent.zip

[[email protected]]$
unzip veridata-cagent.zip

Archive: veridata-cagent.zip

inflating:ggs_veridataAgent_redhatAS40_x86_ora10g_32bit_v3.0.0.2_001.tar

[[email protected]]$ 
tar-xvf ggs_veridataAgent_redhatAS40_x86_ora10g_32bit_v3.0.0.2_001.tar

veridata/

veridata/agent/

veridata/agent/bcrypt.txt

veridata/agent/freeBSD.txt

veridata/agent/ggMessage.dat

veridata/agent/ggsci

veridata/agent/help.txt

veridata/agent/libicudata.so.38

veridata/agent/libicui18n.so.38

veridata/agent/libicuuc.so.38

veridata/agent/libxml2.txt

veridata/agent/mgr

veridata/agent/notices.txt

veridata/agent/veriagt

veridata/agent/zlib.txt

[[email protected]]$
ls

ggs_veridataAgent_redhatAS40_x86_ora10g_32bit_v3.0.0.2_001.tar  veridata veridata-cagent.zip

[[email protected]]$
cd veridata

[[email protected]]$
ls

agent

[[email protected]]$
cd agent

[[email protected]]$ ls

bcrypt.txt  ggMessage.dat  help.txt          libicui18n.so.38  libxml2.txt notices.txt  zlib.txt

freeBSD.txt  ggsci         libicudata.so.38 libicuuc.so.38    mgr          veriagt

[[email protected]]$
./ggsci

Oracle GoldenGate Command Interpreter for Oracle

Version 10.4.0.19 Build 003

Linux, x86, 32bit (optimized), Oracle 10 on Sep20 2009 20:57:49

Copyright (C) 1995, 2009, Oracle and/or itsaffiliates.  All rights reserved.

SCI(gc1) 1>
create subdirs

Creating subdirectories under current directory/u01/app/veridata/veridata/agent

Parameter files               /u01/app/veridata/veridata/agent/dirprm: created

Report files                  /u01/app/veridata/veridata/agent/dirrpt: created

Checkpoint files              /u01/app/veridata/veridata/agent/dirchk: created

Process status files          /u01/app/veridata/veridata/agent/dirpcs: created

SQL script files              /u01/app/veridata/veridata/agent/dirsql: created

Database definitions files     /u01/app/veridata/veridata/agent/dirdef:created

Extract data files            /u01/app/veridata/veridata/agent/dirdat: created

Temporary files                /u01/app/veridata/veridata/agent/dirtmp:created

Veridata files                /u01/app/veridata/veridata/agent/dirver: created

Veridata Lock files           /u01/app/veridata/veridata/agent/dirver/lock: created

Veridata Out-Of-Sync files     /u01/app/veridata/veridata/agent/dirver/oos:created

Veridata Out-Of-Sync XML files/u01/app/veridata/veridata/agent/dirver/oosxml: created

Veridata Parameter files      /u01/app/veridata/veridata/agent/dirver/params: created

Veridata Report files          /u01/app/veridata/veridata/agent/dirver/report:created

Veridata Status files         /u01/app/veridata/veridata/agent/dirver/status: created

Veridata Trace files          /u01/app/veridata/veridata/agent/dirver/trace: created

Stdout files                   /u01/app/veridata/veridata/agent/dirout:created

GGSCI(gc1) 2>
EDIT PARAMS MGR   --添加红色部分

PORT 7788

~

"dirprm/mgr.prm" [New] 1L, 10C written

GGSCI(gc1) 3> 
STARTMANAGER

Manager started.

GGSCI(gc1) 4>
info all

Program    Status      Group       Lag          Time Since Chkpt

MANAGER    RUNNING

gc2:MGR配置

[[email protected]]$
cd veridata/

[[email protected]]$
ls

veridata-cagent.zip

[[email protected]]$
unzip veridata-cagent.zip

Archive: veridata-cagent.zip

inflating: ggs_veridataAgent_redhatAS40_x86_ora10g_32bit_v3.0.0.2_001.tar

[[email protected]]$
tar -xvfggs_veridataAgent_redhatAS40_x86_ora10g_32bit_v3.0.0.2_001.tar

veridata/

veridata/agent/

veridata/agent/bcrypt.txt

veridata/agent/freeBSD.txt

veridata/agent/ggMessage.dat

veridata/agent/ggsci

veridata/agent/help.txt

veridata/agent/libicudata.so.38

veridata/agent/libicui18n.so.38

veridata/agent/libicuuc.so.38

veridata/agent/libxml2.txt

veridata/agent/mgr

veridata/agent/notices.txt

veridata/agent/veriagt

veridata/agent/zlib.txt

[[email protected]]$
cd veridata/agent/

[[email protected]]$
ls

bcrypt.txt  ggMessage.dat  help.txt          libicui18n.so.38  libxml2.txt notices.txt  zlib.txt

freeBSD.txt ggsci         libicudata.so.38 libicuuc.so.38    mgr          veriagt

[[email protected]]$
./ggsci

Oracle GoldenGate Command Interpreter for Oracle

Version 10.4.0.19 Build 003

Linux, x86, 32bit (optimized), Oracle 10 on Sep20 2009 20:57:49

Copyright (C) 1995, 2009, Oracle and/or itsaffiliates.  All rights reserved.

GGSCI(gc2) 1>
create subdirs

Creating subdirectories under current directory/u01/app/veridata/veridata/agent

Parameter files               /u01/app/veridata/veridata/agent/dirprm: created

Report files                  /u01/app/veridata/veridata/agent/dirrpt: created

Checkpoint files              /u01/app/veridata/veridata/agent/dirchk:created

Process status files          /u01/app/veridata/veridata/agent/dirpcs: created

SQL script files              /u01/app/veridata/veridata/agent/dirsql: created

Database definitions files     /u01/app/veridata/veridata/agent/dirdef:created

Extract data files            /u01/app/veridata/veridata/agent/dirdat: created

Temporary files               /u01/app/veridata/veridata/agent/dirtmp: created

Veridata files                 /u01/app/veridata/veridata/agent/dirver:created

Veridata Lock files           /u01/app/veridata/veridata/agent/dirver/lock: created

Veridata Out-Of-Sync files    /u01/app/veridata/veridata/agent/dirver/oos: created

Veridata Out-Of-Sync XML files/u01/app/veridata/veridata/agent/dirver/oosxml: created

Veridata Parameter files      /u01/app/veridata/veridata/agent/dirver/params: created

Veridata Report files         /u01/app/veridata/veridata/agent/dirver/report: created

Veridata Status files          /u01/app/veridata/veridata/agent/dirver/status:created

Veridata Trace files          /u01/app/veridata/veridata/agent/dirver/trace: created

Stdout files                  /u01/app/veridata/veridata/agent/dirout: created

GGSCI(gc2) 2>
EDIT PARAMS MGR    --添加红色内容

PORT 7788

~

"dirprm/mgr.prm" [New] 1L, 10C written

GGSCI(gc2) 3>
START MANAGER

Manager started.

GGSCI(gc2) 4>
info all

Program    Status      Group       Lag           Time Since Chkpt

MANAGER    RUNNING

gc1:server安装与配置

[[email protected]]$
ls

ggs_veridataAgent_redhatAS40_x86_ora10g_32bit_v3.0.0.2_001.tar  veridata veridata-cagent.zip veridata-server.zip

[[email protected]]$
unzip veridata-server.zip

Archive: veridata-server.zip

inflating: GoldenGate_Veridata_redhatAS40_x86_v3006_002.sh

inflating: OGG_Veridata_Rel_Notes_3_0_0_6_002.pdf

inflating: README.txt

[[email protected]]$ ls -l

total 414340

-rwxr-x--- 1 oracle oinstall  30556160 Sep 29  2009ggs_veridataAgent_redhatAS40_x86_ora10g_32bit_v3.0.0.2_001.tar

-rwxr-xr-x 1 oracle oinstall 190415253 Aug  6  2010GoldenGate_Veridata_redhatAS40_x86_v3006_002.sh

-rwxrwxr-x 1 oracle oinstall     92348 Sep 14  2010 OGG_Veridata_Rel_Notes_3_0_0_6_002.pdf

-rwxrwxr-x 1 oracle oinstall      9158 Mar 26  2010 README.txt

drwxr-x--- 3 oracle oinstall      4096 Sep 21  2009 veridata

-rw-r--r-- 1 oracle oinstall  12202562 Jun 18 23:20 veridata-cagent.zip

-rw-r--r-- 1 oracle oinstall 190549579 Jun 1823:43 veridata-server.zip

gc1:

SQL>create user veridata identified by veridata;

SQL>create role veridata_role;

SQL>grant create session,create table,create view,createprocedure,create synonym to veridata_role;

SQL>grant veridata_role to veridata;

SQL>alter user veridata quota unlimited on users;

SQL>grant dba to veridata;

    - - 打开xstart,如果提示要创建一个session name,就先给这个对话起个名,然后输入host,protocol选择sshcommand选择3 xterm(linux type 2)然后点run启动,如下图所示

#xhost +

图形化配置

--图形界面运行./GoldenGate_Veridata_redhatAS40_x86_v3006_002.sh

用户名:veridata

密码:oracle

[[email protected] admin]$ vi tnsnames.ora

PROD =

(DESCRIPTION =

(ADDRESS = (PROTOCOL = TCP)(HOST= 192.168.17.116)(PORT = 1521))

(CONNECT_DATA =

(SERVER = DEDICATED)

(SERVICE_NAME = PROD)

)

)

[[email protected] admin]$ lsnrctl start

--启动veridata服务

[[email protected] bin]$ cd /home/oracle/Oracle_GoldenGate_Veridata/server/bin

[[email protected] bin]$ ./veridata_server.shstart

[[email protected] bin]$ ps -ef|grep -iveridata

oracle    4774    1  0 Jun18 ?        00:00:00 ./mgr PARAMFILE/u01/app/veridata/veridata/agent/dirprm/mgr.prm REPORTFILE/u01/app/veridata/veridata/agent/dirrpt/MGR.rpt PROCESSID MGR PORT 7809

oracle    9793    1  0 01:04 pts/2    00:00:00/home/oracle/Oracle_GoldenGate_Veridata/server/bin/veridata

oracle    9814 4722  0 01:05 pts/2    00:00:00 grep -i veridata

--启动veridata的web服务

[[email protected] bin]$ cd/home/oracle/Oracle_GoldenGate_Veridata/web/bin

[[email protected] bin]$ ./veridata_web.shstart

CATALINA_HOME:/home/oracle/Oracle_GoldenGate_Veridata/web

JRE_HOME:/home/oracle/Oracle_GoldenGate_Veridata/jre

JAVA_OPTS:-Xmx512m -Djava.awt.headless=true-Dveridata.log.dir=/home/oracle/Oracle_GoldenGate_Veridata/shared/logs

UsingCATALINA_BASE:  /home/oracle/Oracle_GoldenGate_Veridata/web

UsingCATALINA_HOME:  /home/oracle/Oracle_GoldenGate_Veridata/web

UsingCATALINA_TMPDIR: /home/oracle/Oracle_GoldenGate_Veridata/web/temp

UsingJRE_HOME:      /home/oracle/Oracle_GoldenGate_Veridata/jre

用户名:veridata

密码:oracle

网页登陆:http://192.168.17.116:8830

gc2:

SQL>create user veridata identified by veridata;

User created.

SQL>grant dba to veridata;

Grant succeeded.

注意:此处可添加profile配置(此文未添加),可用于将结果添加到profile文件中。

--如上图点击“RunJob”后,待job运行完毕后,如下查看结果:

--至此,对于veridata的配置完成

GoldenGate配置(四)之veridata配置

时间: 2024-10-03 05:29:35

GoldenGate配置(四)之veridata配置的相关文章

十、RD 虚拟主机配置 (四)

十.RD 虚拟主机配置 (四) 4. 创建配置故障转移群集 创建故障转移群集 1. 在服务器管理器工具中,选择"故障转移群集管理器",如图 2.  选择"创建群集",如图 3.  选择"下一步",如图 4.  在选择服务器对话框,选择"浏览",如图 5.  输入对象名称RDVH,选择检查名称,如图 6.  选择目标RDVH01,RDVH02 ,选择确定,如图 7.  选择"确定",如图 8.  在选择服务器

Spring Cloud构建微服务架构(四)分布式配置中心

Spring Cloud Config为服务端和客户端提供了分布式系统的外部化配置支持.配置服务器为各应用的所有环境提供了一个中心化的外部配置.它实现了对服务端和客户端对Spring Environment和PropertySource抽象的映射,所以它除了适用于Spring构建的应用程序,也可以在任何其他语言运行的应用程序中使用.作为一个应用可以通过部署管道来进行测试或者投入生产,我们可以分别为这些环境创建配置,并且在需要迁移环境的时候获取对应环境的配置来运行. 配置服务器默认采用git来存储

Lync Server 2010 安装部署系列四:安装&配置证书服务器

1.打开"服务器管理器" 2.添加角色 3.单击下一步按钮 4.勾选"Active Directory证书服务" 5.单击"下一步"按钮: 6.勾选"证书颁发机构"和"证书颁发机构Web注册",单击"下一步"按钮: 7.勾选"企业",单击"下一步"按钮: 8.勾选"根CA",单击"下一步"按钮: 9.勾选&q

Tomcat反向代理+负载均衡的四种方法配置

环境拓扑 环境说明: IP地址 功能描述 nginx or httpd 172.16.4.100 代理服务器,将用户请求分发到后端的Tomcat服务器实现反向代理和负载均衡 Tomcat-01 172.16.4.101 后端实际提供服务的服务器 Tomcat-02 172.16.4.102 后端实际提供服务的服务器 系统环境都如下所示: [[email protected] ~]# cat /etc/redhat-release CentOS release 6.6 (Final) [[emai

Docker 镜像及Docker仓库配置 [四]

Docker 镜像及Docker仓库配置 [四] Docker 时间:2016年11月8日15:45:20 一.Docker 镜像介绍 Docker镜像构建分为两种,一种是手动构建,另一种是Dockerfile(自动构建) Docker镜像手动构建案例: 我们基于centos镜像进行构建,制作nginx镜像 [[email protected] ~]# docker run --name abcdocker -it centos[[email protected] /]# yum install

Sharepoint2013商务智能学习笔记之Excel Service服务配置(四)

第一步,新建Excel Service应用程序 第二步,管理中心,在应用程序管理区域点管理服务应用程序,进入应用程序管理列表, 再点击刚才新建好的ExcelServiceApplication进入excel service配置页面 第三步,确认Excel服务和web应用程序关联.进入管理中心,在应用程序管理区域点管理web应用程序. Sharepoint2013商务智能学习笔记之Excel Service服务配置(四)

Orleans学习总结(四)--集群配置篇

上篇我们讲了Orleans学习总结(三)--持久化篇,这一篇我们来说说集群配置,毕竟这个才是Orleans的看家本领 Orleans支持热起动,支持自动节点发现,能够断线重发等一系列黑科技. 我这篇是以Zookeeper为例说明. 一.开启Zookeeper Zookeeper是什么和怎么配置我就这里就不赘述,自行百度.官方推荐至少开5个,我这做测试就只开1个. 二.安装Orleans的Zookeeper的依赖库 三.Host配置 1.在上篇里提到的OrleansConfiguration.xm

11月30日 四种网卡配置,三种防火墙配置

四种方式配置网卡 1.1 [[email protected] ~]# vim /etc/sysconfig/network-scripts/ifcfg-eno16777736   查找网卡配置文件 HWADDR=00:0C:29:44:05:A7   网卡物理地址(mac地址) TYPE=Ethernet   网卡类型:以太网 BOOTPROTO=dhcp   网卡地址获取方式三种:静态,动态,默认.现在是动态获取,改为none. DEFROUTE=yes PEERDNS=yes PEERRO

在防火墙(ASA)上配置四种类型的NAT

前面已经介绍了网络地址转换(NAT)的原理和基于路由器的配置,ASA上的NAT配置相对于路由器来说要复制一些,ASA上的NAT有动态NAT.动态PAT.静态NAT.静态PAT.下面的链接是我以前写的NAT原理,在路由器上配置NAT的命令http://yangshufan.blog.51cto.com/13004230/1959448 动态NAT 动态NAT将一组IP地址转换为指定地址池中的IP地址,是动态一对一的轮询的关系:适合拥有多个公网IP.多个内网PC要访问互联网的环境使用(单向) 配置命