Oracle GoldenGate Veridata 23c静默安装(二)

来源:这里教程网 时间:2026-03-03 23:21:03 作者:

接续上篇文章,下面主要安装veridta服务和客户端。

四、  安装 Veridata 23c

4.1 解压 Veridata 23c 安装包

# su - veridata23

$ cd /tmp/veridata23_medias

$ unzip "Oracle GoldenGate Veridata 23.1.0.0.0 for (Linux x86-64).zip"

4.2 创建安装目录

# mkdir -p /vdt23c/oraInventory

# chown -R veridata23:veridata23 /vdt23c

4.3 静默安装 Veridata 23c

$ vi /tmp/veridata23_medias/fbo_oggvdt_linux_services_shiphome/Disk1/response/vdt.rsp

 

######################################################################

## Copyright(c) Oracle Corporation 2016, 2022. All rights reserved. ##

##                                                                  ##

## Specify values for the variables listed below to customize       ##

## your installation.                                               ##

##                                                                  ##

## Each variable is associated with a comment. The comment          ##

## can help to populate the variables with the appropriate          ##

## values.                                                          ##

##                                                                  ##

## IMPORTANT NOTE: This file should be secured to have read         ##

## permission only by the Oracle user or an administrator who       ##

## owns this installation to protect any sensitive input values.    ##

##                                                                  ##

######################################################################

 

#-------------------------------------------------------------------------------

# Do not change the following system generated value.

#-------------------------------------------------------------------------------

oracle.install.responseFileVersion=/oracle/install/rspfmt_ogginstall_response_schema_v23_1_0

 

################################################################################

##                                                                            ##

## Oracle GoldenGate installation option and details                          ##

##                                                                            ##

################################################################################

 

#-------------------------------------------------------------------------------

# Specify the installation option.

# Specify ORA23c for installing Oracle GoldenGate for Oracle Database 23c and lower supported versions

#-------------------------------------------------------------------------------

INSTALL_OPTION=SERVERAGENT

 

IS_NEWREPO=false

 

#-------------------------------------------------------------------------------

# Specify a location to install Oracle GoldenGate

#-------------------------------------------------------------------------------

SOFTWARE_LOCATION=/vdt23c

 

 

################################################################################

##                                                                            ##

## Specify details to Create inventory for Oracle installs                    ##

## Required only for the first Oracle product install on a system.            ##

##                                                                            ##

################################################################################

 

#-------------------------------------------------------------------------------

# Specify the location which holds the install inventory files.

# This is an optional parameter if installing on

# Windows based Operating System.

#-------------------------------------------------------------------------------

INVENTORY_LOCATION=/vdt23c/oraInventory

 

#-------------------------------------------------------------------------------

# Unix group to be set for the inventory directory.

# This parameter is not applicable if installing on

# Windows based Operating System.

#-------------------------------------------------------------------------------

UNIX_GROUP_NAME=veridata23

 

$ cd /tmp/veridata23_medias/fbo_oggvdt_linux_services_shiphome/Disk1

$ ./runInstaller -silent -responseFile /tmp/veridata23_medias/fbo_oggvdt_linux_services_shiphome/Disk1/response/vdt.rsp

 

最后输出

The installation of Oracle Veridata Services was successful.

Please check '/home/veridata23/oraInventory/logs/silentInstall2025-11-19_04-12-41PM.log' for more details.

Successfully Setup Software.

The log of this install session can be found at:

 /home/veridata23/oraInventory/logs/installActions2025-11-19_04-12-41PM.log

4.4 静默运行配置向导

注意修改红色参数值

$ vi /tmp/veridata23_medias/fbo_oggvdt_linux_services_shiphome/Disk1/response/vdt ca .rsp

 

################################################################################

## Copyright(c) Oracle Corporation 2016, 2022. All rights reserved.           ##

##                                                                            ##

## Specify values for the variables listed below to customize your            ##

## installation.                                                              ##

##                                                                            ##

## Each variable is associated with a comment. The comments can help to       ##

## populate the variables with the appropriate values.                        ##

##                                                                            ##

## IMPORTANT NOTE: This file should be secured to have read permission only   ##

## by the Oracle user or an administrator who owns this configuration to      ##

## protect any sensitive input values.                                        ##

##                                                                            ##

################################################################################

 

#-------------------------------------------------------------------------------

# Do not change the following system generated value.

#-------------------------------------------------------------------------------

oracle.install.responseFileVersion=/oracle/install/rspfmt_oggca_response_schema_v23_1_0

 

 

################################################################################

##                                                                            ##

## Oracle GoldenGate deployment configuration options and details             ##

##                                                                            ##

################################################################################

 

################################################################################

##                                                                            ##

## Instructions to fill out this response file                                ##

## -------------------------------------------                                ##

## Fill out section A, B, and C for general deployment information            ##

## Additionally:                                                              ##  

## Fill out sections D, E, F, G, H, I, and J for adding a deployment          ##

## Fill out section K for removing a deployment                               ##

##                                                                            ##

################################################################################

 

################################################################################

#                                                                              #

#                          SECTION A - GENERAL                                 #

#                                                                              #

################################################################################

 

IS_NEW_MYSQL=false

 

EXISTING_MYSQL_HOST= 192.168.14.21

 

EXISTING_MYSQL_PORT=3306

 

EXISTING_MYSQL_USERNAME=vdt23

 

EXISTING_MYSQL_PASSWORD=Test321#

 

NEW_MYSQL_ROOT_USERNAME=

 

NEW_MYSQL_ROOT_PASSWORD=

 

NEW_MYSQL_VERIDATA_USERNAME=veridata

 

NEW_MYSQL_VERIDATA_PASSWORD=Test321#

 

SCHEMA_PREFIX=vdt23c

 

MIN_HEAP_SIZE= 1g (25%)

 

MAX_HEAP_SIZE= 3 g (75%)

 

ADMINISTRATOR_USER=veridata

 

ADMINISTRATOR_PASSWORD=Test321#

 

#-------------------------------------------------------------------------------

# Specify if the admin user should enforce a strong password policy.

# Specify true to enable strong password policy management.

#-------------------------------------------------------------------------------

STRONG_PWD_POLICY_ENABLED=true

 

IS_SSL_ENABLED=true

 

IS_SELF_SIGNED_CERTIFICATE=true

 

IS_PEM_FILES=false

 

CERTIFICATE_LOCATION=

 

PRIVATE_KEY_LOCATION=

 

CA_CERTIFICATE_LOCATION=

 

VERIDATA_PORT=8831

 

$ cd /vdt23c/bin

$ ./vdtca.sh -silent -responseFile /tmp/veridata23_medias/fbo_oggvdt_linux_services_shiphome/Disk1/response/vdt ca .rsp

 

Successfully Setup Software.

五、  Agent 配置

5.1 创建 agent1/2

$ cd /vdt23c/agent/

$ ./agent_config.sh /vdt23c/agent1

$ ./agent_config.sh /vdt23c/agent2

5.2 配置 agent1/2 参数

$ cd /vdt23c/agent1/

$ cp agent.properties.sample agent.properties

$ vi agent.properties

server.port=<server.port>

#server.jdbcDriver=ojdbc11-23.2.0.0.jar

database.url=<database.url>

server.driversLocation=/vdt23c/agent/drivers

改为

server.port=7861

server.jdbcDriver=ojdbc11-23.2.0.0.jar

database.url=jdbc:oracle:thin:@192.168.238.56:1521/xjm

server.driversLocation=/vdt23c/agent/drivers

5.3 启动 agent1/2

$ ./agent . sh start agent.properties

5.4 确认 agent1/2 状态

$ ./agent.sh reloadLog

[VERIAGT-BOOT] INFO Looking for home directory.

[VERIAGT-BOOT] INFO Found bootstrap class in file:/vdt23c/agent/JavaAgent.jar!/com/goldengate/veridata/agent/BootstrapNextGen.class.

[VERIAGT-BOOT] INFO Home directory: /vdt23c/agent

[VERIAGT-BOOT] INFO Preparing classpath.

[VERIAGT-BOOT] INFO Driver location: /vdt23c/agent/drivers

[VERIAGT-BOOT] INFO Drivers to load: ojdbc11-23.2.0.0.jar

[VERIAGT-BOOT] INFO Classpath:

[VERIAGT-BOOT] INFO /vdt23c/agent/JavaAgent.jar

[VERIAGT-BOOT] INFO /vdt23c/agent/drivers/ojdbc11-23.2.0.0.jar

[VERIAGT-BOOT] INFO /vdt23c/agent/agent-manifest.jar

[VERIAGT-BOOT] INFO Initializing.

[VERIAGT-BOOT] INFO Invoking startup method: public static void com.goldengate.veridata.agent.VeridataAgentNextGen.main(java.lang.String[])

2025-01-09 21:24:59.039 NOTIFICATION OGGV-60150 Configuring logging.

2025-01-09 21:24:59.081 NOTIFICATION OGGV-60151 Config file for logger is /vdt23c/agent1/config/odl.xml

2025-01-09 21:24:59.167 NOTIFICATION OGGV-60162 Reset log request complete: OK

相关推荐

热文推荐