GoldenGate安裝簡記
GoldenGate這些年在資料遷移中是大放光彩,簡稱OGG,對於很多DBA來說,學會這項技能也會給自己加分不少。
Oracle在10g開始推出的GRID的概念,分為了以下四個層面。
儲存層面 ASM
資料庫服務 RAC
應用 Stream
管理 Grid Control
現在來看看這四個方面的發展,ASM如果說在10g是試水,那麼在11g中是走向成熟,12c作為標配。RAC呢,自不必說,其實已經遠遠超出了它本身的含義,資料庫的元件那麼多,唯獨這個元件是很多大企業的首選,第二個應該才是ADG,然後是資料管理方面,有著Grid Control,這些年也在不斷的改進,現在叫做EM12c了,而原本在10g單機版的EM功能在11g做了篩減,到了12c裡面,單機版的是Express版本,就是最精簡版本,而豐富的功能放到哪兒去了,都到企業版的EM12c中,而EM12c現在也像一個航母一般,承載了不只是Oracle,而是更多的功能。說法上面三個,來說說落寞的Stream,stream是10g推出的一大閃亮特性,是oracle自開發的資料同步工具,免費,功能也強大,支援非同步,但是命途多舛,一來有著資料庫平臺的限制(只能是Oracle),二來有更強大的內部競爭對手,2009年GoldenGate是什麼時候正式入主Oracle的,其效能優於stream,原理和stream差不多,更強大的是支援的不只是Oracle,支援的資料庫種類實在是太全面了,當然它是收費的,不過也絲毫掩蓋不了它本身的優點,到了12c裡面,stream幾乎不被提及,已經逐步開始棄用。
值得一提的是,GoldenGate的產品還是有個分界線的。對於10g及以下的版本支援截止到下面的安裝版本。
Alert! OGG 11.2.1.0.22 is -not- available for Oracle Database 10g. Oracle GoldenGate 11.2.1.0.20 is the Terminal Release for support of Oracle Database 10g.
而對於11g,12c的資料庫版本,則有另外的安裝版本。其實這個似乎也不難理解,GoldenGate歸入Oracle陣營,必然得按照Oracle的思路來用。所以如果你對於安裝Oracle在行,那麼OGG不用看什麼文件,也能是輕車熟路。不信我們看看。
我是打算使用靜默安裝的,Oracle中會有一個響應檔案,而GoldenGate中也是如此,官網下載安裝包之後,解壓,目錄結構和Oracle幾乎一樣,也有一個response的目錄。
不過要安裝填寫的內容倒不多,我簡單填寫的內容如下:
[oracle@newtest response]$ cat oggcore.rsp |grep \=
oracle.install.responseFileVersion=/oracle/install/rspfmt_ogginstall_response_schema_v12_1_2
INSTALL_OPTION=ORA11g
SOFTWARE_LOCATION=/home/oracle/ogg/ogg_work
START_MANAGER=true
MANAGER_PORT=1530
DATABASE_LOCATION=/U01/app/oracle/product/11.2.0.4
INVENTORY_LOCATION=/home/oracle/oraInventory
UNIX_GROUP_NAME=oinstall
資料庫版本的選項如下,這裡不存在相容性,只有11g,12c。
#-------------------------------------------------------------------------------
# Specify the installation option.
# Specify ORA12c for installing Oracle GoldenGate for Oracle Database 12c and
# ORA11g for installing Oracle GoldenGate for Oracle Database 11g
#-------------------------------------------------------------------------------
而安裝過程就是靜默方式,指定響應檔案即可。
oracle@newtest Disk1]$ ./runInstaller -responseFile /home/oracle/ogg/fbo_ggs_Linux_x64_shiphome/Disk1/response/oggcore.rsp -ignoreSysPrereqs -silent
Starting Oracle Universal Installer...
Checking Temp space: must be greater than 120 MB. Actual 5764 MB Passed
Checking swap space: must be greater than 150 MB. Actual 16499 MB Passed
Preparing to launch Oracle Universal Installer from /tmp/OraInstall2016-11-10_10-50-15PM. Please wait ...[oracle@newtest Disk1]$ You can find the log of this install session at:
整個過程非常流程,沒幾秒鐘就輸出了成功的日誌。
Please check '/home/oracle/oraInventory/logs/silentInstall2016-11-10_10-50-15PM.log' for more details.
Successfully Setup Software.
然後我們配置一下環境變數,LD_LIBRARY_PATH是需要的
一個簡單的配置樣例如下:
export PATH
export ORACLE_BASE=/U01/app/oracle
export ORACLE_HOME=$ORACLE_BASE/product/11.2.0.4
#export ORACLE_HOME=$ORACLE_BASE/product/10.2.0.5
export ORACLE_SID=newtest2
export LD_LIBRARY_PATH=$ORACLE_HOME/lib
export PATH=$ORACLE_HOME/bin:$ORACLE_HOME/OPatch:$ORACLE_HOME/jdk/bin:/home/oracle/ogg/ogg_work:$PATH
export NLS_LANG=AMERICAN_AMERICA.ZHS16GBK
export NLS_DATE_FORMAT="YYYY-MM-DD HH24:MI:SS"
export TNS_ADMIN=/U01/app/oracle/product/11.2.0.4/network/admin/
umask 022
stty erase ^h
否則,肯定使用ggsci的時候會有如下的報錯。
$ ggsci
ggsci: error while loading shared libraries: libnnz11.so: cannot open shared object file: No such file or directory
安裝過程很快就完成了,我們來簡單配置一下工作目錄。
建立OGG的工作目錄
GGSCI (newtest.oracle.com) 2> create subdirs
Creating subdirectories under current directory /home/oracle/ogg/ogg_work
Parameter files /home/oracle/ogg/ogg_work/dirprm: already exists
Report files /home/oracle/ogg/ogg_work/dirrpt: already exists
Checkpoint files /home/oracle/ogg/ogg_work/dirchk: already exists
Process status files /home/oracle/ogg/ogg_work/dirpcs: already exists
SQL script files /home/oracle/ogg/ogg_work/dirsql: already exists
Database definitions files /home/oracle/ogg/ogg_work/dirdef: already exists
Extract data files /home/oracle/ogg/ogg_work/dirdat: already exists
Temporary files /home/oracle/ogg/ogg_work/dirtmp: already exists
Credential store files /home/oracle/ogg/ogg_work/dircrd: already exists
Masterkey wallet files /home/oracle/ogg/ogg_work/dirwlt: already exists
Dump files /home/oracle/ogg/ogg_work/dirdmp: already exists
編輯MGR的資訊。
GGSCI (newtest.oracle.com) 1> EDIT PARAMS MGR
PORT 1530
簡單驗證一下埠1530是否開始工作
[oracle@newtest ogg_work]$ netstat -nltp|grep 1530
(Not all processes could be identified, non-owned process info
will not be shown, you would have to be root to see it all.)
tcp 0 0 :::1530 :::* LISTEN 47586/./mgr
檢視mgr的狀態status mgr或者info mgr都一樣
GGSCI (newtest.oracle.com) 1> status mgr
Manager is running (IP port newtest.oracle.com.1530, Process ID 47586).
後續的配置和原理我們持續來說。
Oracle在10g開始推出的GRID的概念,分為了以下四個層面。
儲存層面 ASM
資料庫服務 RAC
應用 Stream
管理 Grid Control
現在來看看這四個方面的發展,ASM如果說在10g是試水,那麼在11g中是走向成熟,12c作為標配。RAC呢,自不必說,其實已經遠遠超出了它本身的含義,資料庫的元件那麼多,唯獨這個元件是很多大企業的首選,第二個應該才是ADG,然後是資料管理方面,有著Grid Control,這些年也在不斷的改進,現在叫做EM12c了,而原本在10g單機版的EM功能在11g做了篩減,到了12c裡面,單機版的是Express版本,就是最精簡版本,而豐富的功能放到哪兒去了,都到企業版的EM12c中,而EM12c現在也像一個航母一般,承載了不只是Oracle,而是更多的功能。說法上面三個,來說說落寞的Stream,stream是10g推出的一大閃亮特性,是oracle自開發的資料同步工具,免費,功能也強大,支援非同步,但是命途多舛,一來有著資料庫平臺的限制(只能是Oracle),二來有更強大的內部競爭對手,2009年GoldenGate是什麼時候正式入主Oracle的,其效能優於stream,原理和stream差不多,更強大的是支援的不只是Oracle,支援的資料庫種類實在是太全面了,當然它是收費的,不過也絲毫掩蓋不了它本身的優點,到了12c裡面,stream幾乎不被提及,已經逐步開始棄用。
值得一提的是,GoldenGate的產品還是有個分界線的。對於10g及以下的版本支援截止到下面的安裝版本。
Alert! OGG 11.2.1.0.22 is -not- available for Oracle Database 10g. Oracle GoldenGate 11.2.1.0.20 is the Terminal Release for support of Oracle Database 10g.
而對於11g,12c的資料庫版本,則有另外的安裝版本。其實這個似乎也不難理解,GoldenGate歸入Oracle陣營,必然得按照Oracle的思路來用。所以如果你對於安裝Oracle在行,那麼OGG不用看什麼文件,也能是輕車熟路。不信我們看看。
我是打算使用靜默安裝的,Oracle中會有一個響應檔案,而GoldenGate中也是如此,官網下載安裝包之後,解壓,目錄結構和Oracle幾乎一樣,也有一個response的目錄。
不過要安裝填寫的內容倒不多,我簡單填寫的內容如下:
[oracle@newtest response]$ cat oggcore.rsp |grep \=
oracle.install.responseFileVersion=/oracle/install/rspfmt_ogginstall_response_schema_v12_1_2
INSTALL_OPTION=ORA11g
SOFTWARE_LOCATION=/home/oracle/ogg/ogg_work
START_MANAGER=true
MANAGER_PORT=1530
DATABASE_LOCATION=/U01/app/oracle/product/11.2.0.4
INVENTORY_LOCATION=/home/oracle/oraInventory
UNIX_GROUP_NAME=oinstall
資料庫版本的選項如下,這裡不存在相容性,只有11g,12c。
#-------------------------------------------------------------------------------
# Specify the installation option.
# Specify ORA12c for installing Oracle GoldenGate for Oracle Database 12c and
# ORA11g for installing Oracle GoldenGate for Oracle Database 11g
#-------------------------------------------------------------------------------
而安裝過程就是靜默方式,指定響應檔案即可。
oracle@newtest Disk1]$ ./runInstaller -responseFile /home/oracle/ogg/fbo_ggs_Linux_x64_shiphome/Disk1/response/oggcore.rsp -ignoreSysPrereqs -silent
Starting Oracle Universal Installer...
Checking Temp space: must be greater than 120 MB. Actual 5764 MB Passed
Checking swap space: must be greater than 150 MB. Actual 16499 MB Passed
Preparing to launch Oracle Universal Installer from /tmp/OraInstall2016-11-10_10-50-15PM. Please wait ...[oracle@newtest Disk1]$ You can find the log of this install session at:
整個過程非常流程,沒幾秒鐘就輸出了成功的日誌。
Please check '/home/oracle/oraInventory/logs/silentInstall2016-11-10_10-50-15PM.log' for more details.
Successfully Setup Software.
然後我們配置一下環境變數,LD_LIBRARY_PATH是需要的
一個簡單的配置樣例如下:
export PATH
export ORACLE_BASE=/U01/app/oracle
export ORACLE_HOME=$ORACLE_BASE/product/11.2.0.4
#export ORACLE_HOME=$ORACLE_BASE/product/10.2.0.5
export ORACLE_SID=newtest2
export LD_LIBRARY_PATH=$ORACLE_HOME/lib
export PATH=$ORACLE_HOME/bin:$ORACLE_HOME/OPatch:$ORACLE_HOME/jdk/bin:/home/oracle/ogg/ogg_work:$PATH
export NLS_LANG=AMERICAN_AMERICA.ZHS16GBK
export NLS_DATE_FORMAT="YYYY-MM-DD HH24:MI:SS"
export TNS_ADMIN=/U01/app/oracle/product/11.2.0.4/network/admin/
umask 022
stty erase ^h
否則,肯定使用ggsci的時候會有如下的報錯。
$ ggsci
ggsci: error while loading shared libraries: libnnz11.so: cannot open shared object file: No such file or directory
安裝過程很快就完成了,我們來簡單配置一下工作目錄。
建立OGG的工作目錄
GGSCI (newtest.oracle.com) 2> create subdirs
Creating subdirectories under current directory /home/oracle/ogg/ogg_work
Parameter files /home/oracle/ogg/ogg_work/dirprm: already exists
Report files /home/oracle/ogg/ogg_work/dirrpt: already exists
Checkpoint files /home/oracle/ogg/ogg_work/dirchk: already exists
Process status files /home/oracle/ogg/ogg_work/dirpcs: already exists
SQL script files /home/oracle/ogg/ogg_work/dirsql: already exists
Database definitions files /home/oracle/ogg/ogg_work/dirdef: already exists
Extract data files /home/oracle/ogg/ogg_work/dirdat: already exists
Temporary files /home/oracle/ogg/ogg_work/dirtmp: already exists
Credential store files /home/oracle/ogg/ogg_work/dircrd: already exists
Masterkey wallet files /home/oracle/ogg/ogg_work/dirwlt: already exists
Dump files /home/oracle/ogg/ogg_work/dirdmp: already exists
編輯MGR的資訊。
GGSCI (newtest.oracle.com) 1> EDIT PARAMS MGR
PORT 1530
簡單驗證一下埠1530是否開始工作
[oracle@newtest ogg_work]$ netstat -nltp|grep 1530
(Not all processes could be identified, non-owned process info
will not be shown, you would have to be root to see it all.)
tcp 0 0 :::1530 :::* LISTEN 47586/./mgr
檢視mgr的狀態status mgr或者info mgr都一樣
GGSCI (newtest.oracle.com) 1> status mgr
Manager is running (IP port newtest.oracle.com.1530, Process ID 47586).
後續的配置和原理我們持續來說。
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/23718752/viewspace-2128277/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 安裝GoldenGateGo
- 解除安裝goldengateGo
- Oracle GoldenGate安裝(一)OracleGo
- Oracle GoldenGate安裝(二)OracleGo
- Oracle GoldenGate安裝(三)OracleGo
- Oracle goldengate 安裝配置OracleGo
- 安裝並配置goldengateGo
- GoldenGate for win安裝配置Go
- 解除安裝Oracle GoldenGateOracleGo
- GoldenGate 學習筆記(3)_安裝與御載Go筆記
- goldengate學習-安裝篇Go
- Linux下安裝GoldenGateLinuxGo
- Jenkins 安裝簡記錄Jenkins
- 【GoldenGate】Oracle GoldenGate Veridata 安裝配置與應用GoOracle
- Linux下解除安裝GoldenGateLinuxGo
- Oracle GoldenGate安裝初體驗OracleGo
- GOLDENGATE安裝和配置手冊Go
- 【GoldenGate】Oracle GoldenGate(一) 安裝與DML單向同步配置GoOracle
- GoldenGate的安裝、配置與測試Go
- Oracle GoldenGate在RAC上部署安裝OracleGo
- 解除安裝goldengate相關配置資訊Go
- goldengate在linux上的安裝GoLinux
- rosbridge簡單的安裝記錄ROS
- Oracle GoldenGate相關講解及安裝OracleGo
- GOLDENGATE安裝和配置手冊總結Go
- Oracle GoldenGate系統之----安裝及使用OracleGo
- GoldenGate抽取Informix資料庫安裝及配置GoORM資料庫
- 在RAC環境下安裝實施GoldenGateGo
- 安裝配置Oracle GoldenGate for DB2(單向)OracleGoDB2
- Goldengate Veridata 11.2 for linux安裝配置GoLinux
- oracle goldengate for oracle rac 的安裝和切換OracleGo
- 【OGG】Oracle GoldenGate 11g (一) 安裝GoldenGate 11g on LinuxOracleGoLinux
- babel-webpack簡易安裝使用筆記(更新中)BabelWeb筆記
- GoldenGate筆記Go筆記
- mysql 簡單安裝MySql
- mysql安裝記MySql
- statspack安裝記
- GoldenGate 12.3 MA架構介紹系列(1) - 安裝Go架構