【OGG】OGG的下载和安装篇
一.1 BLOG文档结构图
一.2 前言部分
一.2.1 导读
各位技术爱好者,看完本文后,你可以掌握如下的技能,也可以学到一些其它你所不知道的知识,~O(∩_∩)O~:
① OGG的下载和安装
本文如有错误或不完善的地方请大家多多指正,ITPUB留言或QQ皆可,您的批评指正是我写作的最大动力。
一.2.2 实验环境介绍
11.2.0.3 RHEL6.5
一.2.3 本文简介
有个同事喊我解决OGG不能同步的问题,汗颜啊,我也就之前学过安装和简单的配置,当时是成功的,结果帮同事搭建的时候数据死活不能同步。于是下决心这几天好好再研究一下OGG的内容。
一.3 gg安装
在Linux上安装OGG很简单,总体分为以下几个部分:
1. Downloading Oracle GoldenGate software.
2. Setting ORACLE_HOME and ORACLE_SID
3. Setting library paths for dynamic builds
4. Installing the Oracle GoldenGate software
一.3.1 Downloading Oracle GoldenGate software.
第一步,下载gg软件,可以有2种途径直接下载
1. On a browser, go to http://edelivery.oracle.com
2. Welcome page:
l Select language
l Continue
3. Export Validation:
n Enter your name, company, email, country
n Accept Trial License (even if you have permanent license)
n Accept Export Restrictions
n Continue
4. Media Pack Search:
Select a Product Pack: Oracle Fusion Middleware
Select a platform from the drop-down list
Go
5. Results:
Select the Oracle GoldenGate Media Pack you want
Continue
6. View Readme
7. Download software
8. Download documentation
1. 登录www.oracle.com ,选择Middleware下的See All
2. 选择GoldenGate
注意选择好对应的版本及平台:
不用详细说明了吧,所以最终的下载地址:
一.3.2 Setting ORACLE_HOME and ORACLE_SID
Set the environment variables in your .bash_profile (Bash)
ORACLE_BASE=/u01
ORACLE_HOME=$ORACLE_BASE/oracle
ORACLE_SID=ggsource
PATH=$ORACLE_BASE/gg11:$ORACLE_HOME/bin:$PATH
LD_LIBRARY_PATH=$ORACLE_BASE/gg11:$ORACLE_HOME/lib:$LD_LIBRARYPATH
export ORACLE_BASE ORACLE_HOME ORACLE_SID
export PATH LD_LIBRARY_PATH
自己:
export ORACLE_BASE=/u01/app/oracle
export ORACLE_HOME=$ORACLE_BASE/product/11.2.0/dbhome_1
export OGG_HOME=/u01/gg11
export PATH=$OGG_HOME:$ORACLE_HOME/bin:$PATH
export LD_LIBRARY_PATH=$OGG_HOME:$ORACLE_HOME/lib:$LD_LIBRARYPATH
stty erase ^h
alias ggsci='rlwrap ggsci'
一.3.3 Setting library paths for dynamic builds
Platform
Environment variables
IBM AIX
LIBPATH
IBM z/OS
HP-UX
SHLIB_PATH
Solaris
LD_LIBRARY_PATH
HP Tru64
Linux
一.3.4 Installing the Oracle GoldenGate software
Use the gzip and tar options appropriate for your system. If you are installing GoldenGate into a cluster environment, make certain that the GoldenGate binaries and files are installed on a file system that is available to all cluster nodes. After installing GoldenGate, make certain to configure the GoldenGate Manager process within the cluster application, as directed by the vendor’s documentation, so that GoldenGate will fail over properly with the other applications. The Manager process is the master control program for all GoldenGate operations.
A GoldenGate instance is a single installation of GoldenGate.
l Unzip the Oracle GoldenGate media pack .zip file on a Windows system. This produces a .tar file.
l FTP the .tar file in binary mode to the system and directory where you want GoldenGate to be installed.
l Extract the .tar file into the current directory:
tar -xvof .tar
l Run the command shell and change directories to the new GoldenGate directory.
GGSCI> CREATE SUBDIRS
一.3.5 GoldenGate Directories
Directory
Contents
dirchk
GoldenGate checkpoint files
dirdat<