首先要下載ogg的安裝包。下載地址如下
創(chuàng)新互聯(lián)專業(yè)為企業(yè)提供羅江網站建設、羅江做網站、羅江網站設計、羅江網站制作等企業(yè)網站建設、網頁設計與制作、羅江企業(yè)網站模板建站服務,10年羅江做網站經驗,不只是建網站,更提供有價值的思路和整體網絡服務。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修改環(huán)境變量,添加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>創(chuàng)建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進程的參數(shù)
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.另外有需要云服務器可以了解下創(chuàng)新互聯(lián)cdcxhl.cn,海內外云服務器15元起步,三天無理由+7*72小時售后在線,公司持有idc許可證,提供“云服務器、裸金屬服務器、高防服務器、香港服務器、美國服務器、虛擬主機、免備案服務器”等云主機租用服務以及企業(yè)上云的綜合解決方案,具有“安全穩(wěn)定、簡單易用、服務可用性高、性價比高”等特點與優(yōu)勢,專為企業(yè)上云打造定制,能夠滿足用戶豐富、多元化的應用場景需求。