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/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 【GoldenGate】Oracle GoldenGate Veridata 安裝配置與應用GoOracle
- oracle GoldenGate Veridata配置OracleGo
- Oracle GoldenGate Veridata 12.2.1.4安裝配置使用全手冊OracleGo
- 在linux下實施goldengate11.2for oracle 11gR2安裝配置文件LinuxGoOracle
- 11. Oracle for Linux安裝和配置——11.2. Linux安裝和配置——11.2.5. Linux配置OracleLinux
- 11. Oracle for Linux安裝和配置——11.2. Linux安裝和配置——11.2.2.Linux安裝(2)OracleLinux
- 11. Oracle for Linux安裝和配置——11.2. Linux安裝和配置——11.2.2.Linux安裝(1)OracleLinux
- 轉:Oracle GoldenGate VeridataOracleGo
- Oracle goldengate 安裝配置OracleGo
- 安裝並配置goldengateGo
- GoldenGate for win安裝配置Go
- Oracle GoldenGate Veridata 12.1.3OracleGo
- 11. Oracle for Linux安裝和配置——11.2. Linux安裝和配置——11.2.1. 簡介OracleLinux
- 11. Oracle for Linux安裝和配置——11.2. Linux安裝和配置——11.2.3. Linux登入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.4. Linux命令(3)OracleLinux
- Linux下安裝GoldenGateLinuxGo
- GOLDENGATE安裝和配置手冊Go
- aix 7.1安裝oracle 11.2相關配置AIOracle
- Linux下解除安裝GoldenGateLinuxGo
- GoldenGate的安裝、配置與測試Go
- 解除安裝goldengate相關配置資訊Go
- 【GoldenGate】Oracle GoldenGate(一) 安裝與DML單向同步配置GoOracle
- goldengate在linux上的安裝GoLinux
- GOLDENGATE安裝和配置手冊總結Go
- 安裝GoldenGateGo
- GoldenGate抽取Informix資料庫安裝及配置GoORM資料庫
- 安裝配置Oracle GoldenGate for DB2(單向)OracleGoDB2
- 解除安裝goldengateGo
- linux安裝配置kickstartLinux
- Linux安裝配置vncLinuxVNC
- Linux Nginx 安裝配置LinuxNginx
- 11 g rac 安裝 11.2步
- Oracle GoldenGate安裝(一)OracleGo
- Oracle GoldenGate安裝(二)OracleGo
- Oracle GoldenGate安裝(三)OracleGo
- GoldenGate安裝簡記Go