OracleGoldengate安装配置
首先要下载ogg的安装包。下载地址如下
成都创新互联提供做网站、网站制作、网页设计,成都品牌网站建设,广告投放平台等致力于企业网站建设与公司网站制作,十载的网站开发和建站经验,助力企业信息化建设,成功案例突破近千家,是您实现网站建设的好选择.
http://www.oracle.com/technetwork/middleware/goldengate/downloads/index.html
将安装包上传至服务器
解压压缩包
[oracle@localhost app]$ mkdir /u01/app/ogg [oracle@localhost app]$ unzip -d /u01/app/ogg ogg112101_fbo_ggs_Linux_x64_ora11g_64bit.zip Archive: ogg112101_fbo_ggs_Linux_x64_ora11g_64bit.zip inflating: /u01/app/ogg/fbo_ggs_Linux_x64_ora11g_64bit.tar inflating: /u01/app/ogg/OGG_WinUnix_Rel_Notes_11.2.1.0.1.pdf inflating: /u01/app/ogg/Oracle GoldenGate 11.2.1.0.1 README.txt inflating: /u01/app/ogg/Oracle GoldenGate 11.2.1.0.1 README.doc [oracle@localhost app]$ cd ogg/ [oracle@localhost ogg]$ tar -xvf fbo_ggs_Linux_x64_ora11g_64bit.tar
修改环境变量,添加PATH、LD_LIBARY_PATH
[oracle@localhost ~]$ vi .bash_profile export PATH=/u01/app/ogg/:$ORACLE_HOME/bin:$PATH export LD_LIBRARY_PATH=/u01/app/ogg:$ORACLE_HOME/lib:/lib:/usr/lib
进入ogg的安装目录,运行ggsci命令
[oracle@localhost ogg]$ ./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 (localhost.localdomain) 1>
创建OGG的工作目录
GGSCI (localhost.localdomain) 1> create subdirs Creating subdirectories under current directory /u01/app/ogg Parameter files /u01/app/ogg/dirprm: already exists Report files /u01/app/ogg/dirrpt: created Checkpoint files /u01/app/ogg/dirchk: created Process status files /u01/app/ogg/dirpcs: created SQL script files /u01/app/ogg/dirsql: created Database definitions files /u01/app/ogg/dirdef: created Extract data files /u01/app/ogg/dirdat: created Temporary files /u01/app/ogg/dirtmp: created Stdout files /u01/app/ogg/dirout: created
配置Manager进程的参数
GGSCI (localhost.localdomain) 6> EDIT PARAMS MGR
添加如下内容,定义Manger进程的通信端口
-- This is the minimal configuration of Manager PORT 7809
-- 后面是注释
启动Manager进程
GGSCI (localhost.localdomain) 14> start mgr Manager started.
查看Manager进程
GGSCI (localhost.localdomain) 17> info mgr Manager is running (IP port localhost.localdomain.7809).
停止Manager进程
GGSCI (localhost.localdomain) 18> stop mgr Manager process is required by other GGS processes. Are you sure you want to stop it (y/n)? y Sending STOP request to MANAGER ... Request processed. Manager stopped.
如果忽略确认信息
GGSCI (localhost.localdomain) 20> stop mgr ! Sending STOP request to MANAGER ... Request processed. Manager stopped.
本文标题:OracleGoldengate安装配置
转载注明:http://pwwzsj.com/article/ihsegp.html