GoldenGate 的软件的部署

   最近公司有个需求,需要使用GoldenGate来同步两边的数据,我原来也没有接触过,下文是我一边学习小布老师的视频一边做的一些笔记。

 1.从Oracle官网根据自己的Oracle版本下载相应的GoldenGate软件。我的系统RHEL 5.8 X64,Oracle软件版本为11.2.0.1   下载的GoldenGate版本为:ogg112101_fbo_ggs_Linux_x64_ora11g_64bit.zip


   2.将下载的文件上传到服务器上/soft目录并解压文件,得到以下几个文件;

wKiom1NBMc_xrF3NAAB2_4wcQE8426.jpg


   3.用Oracle用户新建GG目录,并解压缩。这里GG软件我使用Oracle用户,也可以新建其他用户来管理GG软件,所属oinstall软件就行了。


[oracle@node2 app]$ chown -R oracle:oinstall /soft
[oracle@node2 ~]$ cd /paic/app/
[oracle@node2 app]$ mkdir gg
[oracle@node2 app]$ cd gg
[oracle@node2 gg]$ tar -xvf /soft/fbo_ggs_Linux_x64_ora11g_64bit.tar


   4.在修改Oracle的配置文件


[oracle@node2 gg]$ cd
[oracle@node2 ~]$ vi .bash_profie
##添加如下内容:
export PATH=/paic/app/gg:$PATH
export LD_LIBRARY_PATH=$ORACLE_HOME/lib:$LD_LIBRARY_PATH
[oracle@node2 ~]$ source ~/.bash_profile


   其中LD_LIBRARY_PATH根据平台不同可能变量名也不一样,例如AIX下面为:LIBPATH


   5.进入GG目录,运行ggsci命令,并创建相关目录


[oracle@node2 ~]$ cd /paic/app/gg
[oracle@node2 gg]$ ggsci
Oracle GoldenGate Command Interpreter for Oracle
Version 11.2.1.0.1 OGGCORE_11.2.1.0.1_PLATFORMS_120423.0230_FBO
Linux, x64, 64bit (optimized), Oracle 11g on Apr 23 2012 08:32:14
Copyright (C) 1995, 2012, Oracle and/or its affiliates. All rights reserved.
GGSCI (node2) 1> create subdirs    
Creating subdirectories under current directory /paic/app/gg
Parameter files                /paic/app/gg/dirprm: already exists
Report files                   /paic/app/gg/dirrpt: already exists
Checkpoint files               /paic/app/gg/dirchk: already exists
Process status files           /paic/app/gg/dirpcs: already exists
SQL script files               /paic/app/gg/dirsql: already exists
Database definitions files     /paic/app/gg/dirdef: already exists
Extract data files             /paic/app/gg/dirdat: already exists
Temporary files                /paic/app/gg/dirtmp: already exists
Stdout files                   /paic/app/gg/dirout: already exists
GGSCI (node2) 2> exit
[oracle@node2 gg]$ ls -lF |grep /
drwxr-x--- 2 oracle oinstall     4096 Apr 23  2012 cfg/
drwxrwxr-x 2 oracle oinstall     4096 Apr  6 16:55 dirchk/
drwxrwxr-x 2 oracle oinstall     4096 Apr  6 16:55 dirdat/
drwxrwxr-x 2 oracle oinstall     4096 Apr  6 16:55 dirdef/
drwxr-x--- 2 oracle oinstall     4096 Apr 23  2012 dirjar/
drwxrwxr-x 2 oracle oinstall     4096 Apr  6 16:55 dirout/
drwxrwxr-x 2 oracle oinstall     4096 Apr  6 16:55 dirpcs/
drwxr-x--- 2 oracle oinstall     4096 Apr 23  2012 dirprm/
drwxrwxr-x 2 oracle oinstall     4096 Apr  6 16:55 dirrpt/
drwxrwxr-x 2 oracle oinstall     4096 Apr  6 16:55 dirsql/
drwxrwxr-x 2 oracle oinstall     4096 Apr  6 16:55 dirtmp/
drwxr-x--- 7 oracle oinstall     4096 Apr 23  2012 UserExitExamples/


至此GoldenGate软件算是部署完成了。


你可能感兴趣的:(goldengate)