吾生有涯,而知无涯,适当止学.循序渐进,步步提升 Talk is cheap, show me the code.
分类: Oracle
2016-08-18 16:32:57
登录官方地址,下载安装包
上传V100692-01.zip至服务器上面,并赋予用户权限:
[root@centos6_5 opt]# mv V100692-01.zip /opt/software/
[root@centos6_5 opt]# chown -R oraarp:oinstall /opt/software
[root@centos6_5 opt]# chmod 777 /opt/software/
解压安装包
[root@centos6_5 software]# su - oraarp
[oraarp@centos6_5 ~]$ cd /opt/software/
[oraarp@centos6_5 software]$ unzip V100692-01.zip
创建OGG的安装目录,目录为/opt/ogg
[root@centos6_5 software]# mkdir -p /opt/ogg
[root@centos6_5 software]# chown -R oraarp:oinstall /opt/ogg/
[root@centos6_5 software]# chmod 755 /opt/ogg/
使用VNC的登录Linux服务器,使用OUI方式安装GolenGate
选择安装至哪个数据库版本上面,我这里选择的是Oracle 11G
操作指令如下:
[root@centos6_5 ogg]# su - oraarp
[oraarp@centos6_5 ~]$ cd /arp/ogg
[oraarp@centos6_5 ogg]$ pwd
/arp/ogg
[oraarp@centos6_5 ogg]$ ./ggsci
Oracle GoldenGate Command Interpreter for Oracle
Version 12.2.0.1.1 OGGCORE_12.2.0.1.0_PLATFORMS_151211.1401_FBO
Linux, x64, 64bit (optimized), Oracle 11g on Dec 12 2015 00:54:38
Operating system character set identified as UTF-8.
Copyright (C) 1995, 2015, Oracle and/or its affiliates. All rights reserved
GGSCI (centos6_5) 1> create subdirs
Creating subdirectories under current directory /arp/ogg
Parameter files /arp/ogg/dirprm: already exists
Report files /arp/ogg/dirrpt: already exists
Checkpoint files /arp/ogg/dirchk: already exists
Process status files /arp/ogg/dirpcs: already exists
SQL script files /arp/ogg/dirsql: already exists
Database definitions files /arp/ogg/dirdef: already exists
Extract data files /arp/ogg/dirdat: already exists
Temporary files /arp/ogg/dirtmp: already exists
Credential store files /arp/ogg/dircrd: already exists
Masterkey wallet files /arp/ogg/dirwlt: already exists
Dump files /arp/ogg/dirdmp: already exists
zhangshengdong2016-08-30 10:22:24
可能出现的错误:
./ggsci: error while loading shared libraries: libnnz11.so: cannot open shared object file: No such file or directory
解决方法:
在oracle用户下配置环境变量,在.bash_profile文件中添加如下语句:
export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib64:/usr/lib64:/usr/local/lib64:/usr/X11R6/lib64/