Goldengate Veridata 11.2 for linux安裝配置
goldengate除了monitor可以監控程式狀態外,還有一套對比源端和目標端資料一致性的工具,也就是Veridata,下面是測試環境下安裝配置過程:
下載server和jagent
安裝jagent
安裝server
[oracle@localhost oggveridata]$ unzip GoldenGate_Veridata_redhatAS40_x86.zip
切換到圖形介面
[oracle@localhost oggveridata]$ ./GoldenGate_Veridata_redhatAS40_x86.sh
選擇安裝目錄 /u01/ogg/oggveridata
data目錄 /u01/ogg/oggveridata/shared/data
create users 下一步
管理員使用者 oggveridata/
資料庫型別
確認目錄
現在TNS ORASQL
現在建立新使用者
填寫一個dba許可權的使用者及密碼,用於建立使用者
使用者名稱和密碼 oggdata/
表空間,根據自己的環境來設定
開始安裝
安裝完成。
http://192.168.3.142:8830/veridata/
登入後,左側,connection configuration,右側,new
輸入connection name下一步
輸入資訊,並驗證。下一步
完成後,安裝同樣的方式新建另一個connection
再回到右側的group configuration,new
現在目標端和源端
完成後進入右側的edit,點選右邊的Go to Compare Pair Configuration …,選擇手工mapping
左右2側選擇對應的表後,右下角Generate Compare Pair.
全部選擇完後,點選右上角preview
sava
儲存後即可再 existing compare pairs中看到
再回到右側的job configuration,new
輸入job名下一步
然後回到job,run起來
2個表好像必須有唯一索引,不然會報錯。
alter table ogg_obj add constraint ogg_obj_pr primary key(object_id);
alter table ogg_seg add constraint ogg_seg_pr primary key(SEGMENT_NAME,PARTITION_NAME);
下次啟動Veridata過程如下:
下載server和jagent
安裝jagent
[oracle@localhost oggveridata]$ ls -l
total 147780
-rw-r--r-- 1 dba 143131697 Aug 21 17:53 GoldenGate_Veridata_redhatAS40_x86.zip
-rw-r--r-- 1 dba 8031559 Aug 24 09:27 V35569-01.zip
[oracle@localhost oggveridata]$ unzip V35569-01.zip
[oracle@localhost V35569-01]$ mv agent/ ../
[oracle@localhost oggveridata]$ ls -l
total 147788
drwxr-xr-x 6 dba 4096 Aug 24 09:28 agent
-rw-r--r-- 1 dba 143131697 Aug 21 17:53 GoldenGate_Veridata_redhatAS40_x86.zip
drwx------ 2 dba 4096 Aug 24 09:28 V35569-01
-rw-r--r-- 1 dba 8031559 Aug 24 09:27 V35569-01.zip
[oracle@localhost oggveridata]$ cd agent/
[oracle@localhost agent]$ cp agent.properties.sample agent.properties
[oracle@localhost agent]$ vim agent.properties
[oracle@localhost agent]$ cat agent.properties |grep -v ^#|grep -v ^$
server.port=5577
database.url=jdbc:oracle:thin:@localhost:1521:orasql
server.driversLocation = drivers
server.jdbcDriver=ojdbc6.jar
database.transaction.isolation=READ_COMMITTED
[oracle@localhost agent]$ ./agent.sh start
[oracle@localhost agent]$ tail -100 veridata-agent.log
INFO:2013-08-24 09:36:58,745 (main) - Veridata Agent Version 11.2.1.0 OGGVDT_11.2.1.0.0_PLATFORMS_121108.1625 built on Thu, 8 Nov 2012 21:21:26 -0800 [VeriAgentVersion:logVersion, line 33]
INFO:2013-08-24 09:36:59,069 (main) - Veridata Agent starting on localhost.localdomain port 5577 [VeridataAgent:serve, line 141]
INFO:2013-08-24 09:38:38,968 () - Starting session 1 [VeridataAgent$Handler:run, line 313]
INFO:2013-08-24 09:38:38,981 (Session: 1) - Received command: STOP A [VeridataAgent$Handler:getRequest, line 455]
INFO:2013-08-24 09:38:43,689 (main) - Veridata Agent stopped on port 5577 [VeridataAgent:serve, line 175]
INFO:2013-08-24 09:38:43,692 (main) - Shutdown request complete [VeridataAgent:processAgentResponse, line 194]
ERROR:2013-08-24 09:38:43,720 (Session: 1) - IO Error encountered: null [VeridataAgent$Handler:run, line 362]
java.nio.channels.ClosedByInterruptException
at java.nio.channels.spi.AbstractInterruptibleChannel.end(AbstractInterruptibleChannel.java:202)
at sun.nio.ch.SocketChannelImpl.write(SocketChannelImpl.java:473)
at com.goldengate.veridata.agent.VeridataAgent$Handler.getRequest(VeridataAgent.java:511)
at com.goldengate.veridata.agent.VeridataAgent$Handler.run(VeridataAgent.java:326)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:724)
INFO:2013-08-24 09:38:43,721 (Session: 1) - Session 1 stopped [VeridataAgent$Handler:run, line 371]
INFO:2013-08-24 09:38:51,707 (main) - Veridata Agent Version 11.2.1.0 OGGVDT_11.2.1.0.0_PLATFORMS_121108.1625 built on Thu, 8 Nov 2012 21:21:26 -0800 [VeriAgentVersion:logVersion, line 33]
INFO:2013-08-24 09:38:51,740 (main) - Veridata Agent starting on localhost.localdomain port 5577 [VeridataAgent:serve, line 141]
total 147780
-rw-r--r-- 1 dba 143131697 Aug 21 17:53 GoldenGate_Veridata_redhatAS40_x86.zip
-rw-r--r-- 1 dba 8031559 Aug 24 09:27 V35569-01.zip
[oracle@localhost oggveridata]$ unzip V35569-01.zip
[oracle@localhost V35569-01]$ mv agent/ ../
[oracle@localhost oggveridata]$ ls -l
total 147788
drwxr-xr-x 6 dba 4096 Aug 24 09:28 agent
-rw-r--r-- 1 dba 143131697 Aug 21 17:53 GoldenGate_Veridata_redhatAS40_x86.zip
drwx------ 2 dba 4096 Aug 24 09:28 V35569-01
-rw-r--r-- 1 dba 8031559 Aug 24 09:27 V35569-01.zip
[oracle@localhost oggveridata]$ cd agent/
[oracle@localhost agent]$ cp agent.properties.sample agent.properties
[oracle@localhost agent]$ vim agent.properties
[oracle@localhost agent]$ cat agent.properties |grep -v ^#|grep -v ^$
server.port=5577
database.url=jdbc:oracle:thin:@localhost:1521:orasql
server.driversLocation = drivers
server.jdbcDriver=ojdbc6.jar
database.transaction.isolation=READ_COMMITTED
[oracle@localhost agent]$ ./agent.sh start
[oracle@localhost agent]$ tail -100 veridata-agent.log
INFO:2013-08-24 09:36:58,745 (main) - Veridata Agent Version 11.2.1.0 OGGVDT_11.2.1.0.0_PLATFORMS_121108.1625 built on Thu, 8 Nov 2012 21:21:26 -0800 [VeriAgentVersion:logVersion, line 33]
INFO:2013-08-24 09:36:59,069 (main) - Veridata Agent starting on localhost.localdomain port 5577 [VeridataAgent:serve, line 141]
INFO:2013-08-24 09:38:38,968 () - Starting session 1 [VeridataAgent$Handler:run, line 313]
INFO:2013-08-24 09:38:38,981 (Session: 1) - Received command: STOP A [VeridataAgent$Handler:getRequest, line 455]
INFO:2013-08-24 09:38:43,689 (main) - Veridata Agent stopped on port 5577 [VeridataAgent:serve, line 175]
INFO:2013-08-24 09:38:43,692 (main) - Shutdown request complete [VeridataAgent:processAgentResponse, line 194]
ERROR:2013-08-24 09:38:43,720 (Session: 1) - IO Error encountered: null [VeridataAgent$Handler:run, line 362]
java.nio.channels.ClosedByInterruptException
at java.nio.channels.spi.AbstractInterruptibleChannel.end(AbstractInterruptibleChannel.java:202)
at sun.nio.ch.SocketChannelImpl.write(SocketChannelImpl.java:473)
at com.goldengate.veridata.agent.VeridataAgent$Handler.getRequest(VeridataAgent.java:511)
at com.goldengate.veridata.agent.VeridataAgent$Handler.run(VeridataAgent.java:326)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:724)
INFO:2013-08-24 09:38:43,721 (Session: 1) - Session 1 stopped [VeridataAgent$Handler:run, line 371]
INFO:2013-08-24 09:38:51,707 (main) - Veridata Agent Version 11.2.1.0 OGGVDT_11.2.1.0.0_PLATFORMS_121108.1625 built on Thu, 8 Nov 2012 21:21:26 -0800 [VeriAgentVersion:logVersion, line 33]
INFO:2013-08-24 09:38:51,740 (main) - Veridata Agent starting on localhost.localdomain port 5577 [VeridataAgent:serve, line 141]
安裝server
[oracle@localhost oggveridata]$ unzip GoldenGate_Veridata_redhatAS40_x86.zip
切換到圖形介面
[oracle@localhost oggveridata]$ ./GoldenGate_Veridata_redhatAS40_x86.sh
選擇安裝目錄 /u01/ogg/oggveridata
data目錄 /u01/ogg/oggveridata/shared/data
create users 下一步
管理員使用者 oggveridata/
資料庫型別
確認目錄
現在TNS ORASQL
現在建立新使用者
填寫一個dba許可權的使用者及密碼,用於建立使用者
使用者名稱和密碼 oggdata/
表空間,根據自己的環境來設定
開始安裝
安裝完成。
http://192.168.3.142:8830/veridata/
登入後,左側,connection configuration,右側,new
輸入connection name下一步
輸入資訊,並驗證。下一步
完成後,安裝同樣的方式新建另一個connection
再回到右側的group configuration,new
現在目標端和源端
完成後進入右側的edit,點選右邊的Go to Compare Pair Configuration …,選擇手工mapping
左右2側選擇對應的表後,右下角Generate Compare Pair.
全部選擇完後,點選右上角preview
sava
儲存後即可再 existing compare pairs中看到
再回到右側的job configuration,new
輸入job名下一步
然後回到job,run起來
2個表好像必須有唯一索引,不然會報錯。
alter table ogg_obj add constraint ogg_obj_pr primary key(object_id);
alter table ogg_seg add constraint ogg_seg_pr primary key(SEGMENT_NAME,PARTITION_NAME);
下次啟動Veridata過程如下:
][oracle@localhost bin]$ pwd
/u01/ogg/oggveridata/web/bin
[oracle@localhost bin]$ ./veridata_web.sh start
CATALINA_HOME: /u01/ogg/oggveridata/web
JRE_HOME: /u01/ogg/oggveridata/jre
JAVA_OPTS: -Xms1024m -Xmx1024m -Djava.awt.headless=true -Dveridata.home=/u01/ogg/oggveridata -Dveridata.log.dir=/u01/ogg/oggveridata/shared/logs -Dveridata.log.file=veridataweb.log
Using CATALINA_BASE: /u01/ogg/oggveridata/web
Using CATALINA_HOME: /u01/ogg/oggveridata/web
Using CATALINA_TMPDIR: /u01/ogg/oggveridata/web/temp
Using JRE_HOME: /u01/ogg/oggveridata/jre
[oracle@localhost agent]$ ./agent.sh start
[oracle@localhost agent]$ pwd
/u01/ogg/oggveridata/agent
/u01/ogg/oggveridata/web/bin
[oracle@localhost bin]$ ./veridata_web.sh start
CATALINA_HOME: /u01/ogg/oggveridata/web
JRE_HOME: /u01/ogg/oggveridata/jre
JAVA_OPTS: -Xms1024m -Xmx1024m -Djava.awt.headless=true -Dveridata.home=/u01/ogg/oggveridata -Dveridata.log.dir=/u01/ogg/oggveridata/shared/logs -Dveridata.log.file=veridataweb.log
Using CATALINA_BASE: /u01/ogg/oggveridata/web
Using CATALINA_HOME: /u01/ogg/oggveridata/web
Using CATALINA_TMPDIR: /u01/ogg/oggveridata/web/temp
Using JRE_HOME: /u01/ogg/oggveridata/jre
[oracle@localhost agent]$ ./agent.sh start
[oracle@localhost agent]$ pwd
/u01/ogg/oggveridata/agent
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/28211342/viewspace-2049662/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- Oracle GoldenGate Veridata 12.2.1.4安裝配置使用全手冊OracleGo
- 11. Oracle for Linux安裝和配置——11.2. Linux安裝和配置——11.2.5. Linux配置OracleLinux
- 11. Oracle for Linux安裝和配置——11.2. Linux安裝和配置——11.2.2.Linux安裝(1)OracleLinux
- 11. Oracle for Linux安裝和配置——11.2. Linux安裝和配置——11.2.2.Linux安裝(2)OracleLinux
- 11. Oracle for Linux安裝和配置——11.2. Linux安裝和配置——11.2.4. Linux命令(1)OracleLinux
- 11. Oracle for Linux安裝和配置——11.2. Linux安裝和配置——11.2.4. Linux命令(2)OracleLinux
- 11. Oracle for Linux安裝和配置——11.2. Linux安裝和配置——11.2.3. Linux登入OracleLinux
- 11. Oracle for Linux安裝和配置——11.2. Linux安裝和配置——11.2.4. Linux命令(3)OracleLinux
- 11. Oracle for Linux安裝和配置——11.2. Linux安裝和配置——11.2.1. 簡介OracleLinux
- GoldenGate抽取Informix資料庫安裝及配置GoORM資料庫
- Oracle GoldenGate安裝(一)OracleGo
- Oracle GoldenGate安裝(二)OracleGo
- Oracle GoldenGate安裝(三)OracleGo
- Tiny Core Linux 安裝配置Linux
- linux-ELK安裝配置Linux
- Linux安裝Apollo配置中心Linux
- Linux Ubuntu安裝配置教程LinuxUbuntu
- Linux下ODBC安裝配置Linux
- linux maven安裝與配置LinuxMaven
- Mysql for Linux安裝配置之—— rpm(bundle)安裝MySqlLinux
- Mysql for Linux安裝配置之—— 原始碼安裝MySqlLinux原始碼
- Linux下安裝java及配置(yum安裝)LinuxJava
- Linux下rsync安裝與配置Linux
- Linux(jdk+tomcat配置安裝)LinuxJDKTomcat
- Linux 安裝配置應用- GitLinuxGit
- linux安裝nginx及配置(一)LinuxNginx
- Linux環境HBase安裝配置Linux
- Linux環境Azkaban安裝配置Linux
- Linux 7安裝和配置phpmyadminLinuxPHP
- openSUSE 11.2 中文輸入法 SCIM 安裝
- Mysql for Linux安裝配置之——二進位制安裝MySqlLinux
- centos7 (阿里雲、linux) 單機spark的安裝與配置詳解(jdk安裝與配置,scala安裝與配置,hadoop安裝與配置,spark安裝與配置)CentOS阿里LinuxSparkJDKHadoop
- 快速搭建 Linux(LNMP + Linux 安裝 + 環境配置)LinuxLNMP
- MySQL - 下載與安裝配置(Linux)MySqlLinux
- Linux系統Tomcat安裝與配置。LinuxTomcat
- linux安裝配置與基本命令Linux
- Linux Ubuntu18.04 安裝配置 clashLinuxUbuntu
- Linux環境下nginx安裝配置LinuxNginx
- linux apf 防火牆安裝與配置Linux防火牆