安装包下载网址
https://www.oracle.com/technetwork/middleware/goldengate/downloads/index.html
1、OGG12版本安装
(源端和目标端安装方法相同,安装在对应的文件夹中即可)
1.1、进入解压文件夹,解压安装包
[oracle@localhost ~]$ cd ogg
[oracle@localhost ogg]$ unzip /home/oracle/soft/123012_fbo_ggs_Linux_x64_shiphome.zip
1.2、使用静默安装方法安装
修改安装文件,指定安装位置和数据库版本
[oracle@localhost ~]$ cd /home/oracle/ogg/fbo_ggs_Linux_x64_shiphome/Disk1/response
[oracle@localhost response]$ vim oggcore.rsp
更改对应项为一下内容(指定数据库版本,制定安装路径)
INSTALL_OPTION=ORA11g
SOFTWARE_LOCATION=/back/oggt
[oracle@localhost response]$ cd /home/oracle/ogg/fbo_ggs_Linux_x64_shiphome/Disk1
[oracle@localhost Disk1]$ ./runInstaller -silent -responseFile /home/oracle/ogg/fbo_ggs_Linux_x64_shiphome/Disk1/response/oggcore.rsp
1.3、验证GoldenGate依赖包
,执行如下命令,如果有not fount的包,则需先安装相关的包(可以跳过 ./ggsci能够进去就表示依赖包完整)
[oracle@localhost oggt]$ ldd ggsci
1.4、运行./ggsci,进入ogg管理控制台
说明:进入安装文件夹,运行./ggsci,进入ogg管理控制台,能够进入则说明安装完成
[oracle@localhost ~]$ cd /back/oggt
[oracle@localhost oggt]$ ./ggsci
1.5、create subdirs
在ogg控制台输入命令: create subdirs ,让ogg创建其需要用到的目录
GGSCI (localhost ) 1> create subdirs
Creating subdirectories under current directory /home/oracle/app/oggt
Parameter file /back/oggt/dirprm: created.
Report file /back/oggt/dirrpt: created.
Checkpoint file /back/oggt/dirchk: created.
Process status files /back/oggt/dirpcs: created.
SQL script files /back/oggt/dirsql: created.
Database definitions files /back/oggt/dirdef: created.
Extract data files /back/oggt/dirdat: created.
Temporary files /back/oggt/dirtmp: created.
Credential store files /back/oggt/dircrd: created.
Masterkey wallet files /back/oggt/dirwlt: created.
Dump files /back/oggt/dirdmp: created.
2、OGG11版本安装
(源端和目标端安装方法相同,安装在对应的文件夹中即可)
2.1、进入解压文件夹,解压安装包
[oracle@localhost ogg]$ unzip /mis_databak/bak/soft/ogg112101_fbo_ggs_Linux_x64_ora11g_64bit.zip
2.2、安装
[oracle@localhost oggs]$ tar -xvof /mis_databak/bak/ogg/fbo_ggs_Linux_x64_ora11g_64bit.tar
2.3、验证GoldenGate依赖包
执行如下命令,如果有not fount的包,则需先安装相关的包(可以跳过 ./ggsci能够进去就表示依赖包完整)
[oracle@sqpt2 oggt]$ ldd ggsci
2.4、运行./ggsci,进入ogg管理控制台
说明:进入安装文件夹,运行./ggsci,进入ogg管理控制台,能够进入则说明安装完成
[oracle@localhost ~]$ cd /mis_databak/bak/oggs/
[oracle@localhost oggs]$ ./ggsci
2.5、create subdirs
在ogg控制台输入命令: create subdirs ,让ogg创建其需要用到的目录
GGSCI (localhost) 1> create subdirs
Creating subdirectories under current directory /home/oracle/app/oggt
Parameter file /back/oggt/dirprm: created.
Report file /back/oggt/dirrpt: created.
Checkpoint file /back/oggt/dirchk: created.
Process status files /back/oggt/dirpcs: created.
SQL script files /back/oggt/dirsql: created.
Database definitions files /back/oggt/dirdef: created.
Extract data files /back/oggt/dirdat: created.
Temporary files /back/oggt/dirtmp: created.
Credential store files /back/oggt/dircrd: created.
Masterkey wallet files /back/oggt/dirwlt: created.
Dump files /back/oggt/dirdmp: created.