Oracle GoldenGate 21c for MySQL requires that OpenSSL 1.0 be installed on the Oracle GoldenGate server prior to creating a deployment.
OpenSSL 1.0 is included with the core operating system packages of OEL 7 and RHEL7 but is not included with OEL8/9 or RHEL 8/9, and therefore must be manually installed for these operating systems/versions.
Caused by: java.lang.ExceptionInInitializerError: Exception java.lang.UnsatisfiedLinkError: /tmp/OraInstall2025-04-27_01-09-12PM/oui/lib/linux64/liboraInstaller.so: libnsl.so.1: cannot open shared object file: No such file or directory [in thread "main"] at java.lang.ClassLoader$NativeLibrary.load(Native Method)
... ... ...
根据报错提示:
libnsl.so.1: cannot open shared object file: No such file or directory
Checking Temp space: must be greater than 120 MB. Actual 81868 MB Passed Checking swap space: must be greater than 150 MB. Actual 8191 MB Passed Preparing to launch Oracle Universal Installer from /tmp/OraInstall2025-04-27_01-22-14PM. Please wait ...[mysql@target Disk1]$ You can find the log of this install session at: /tmp/OraInstall2025-04-27_01-22-14PM/installActions2025-04-27_01-22-14PM.log The installation of Oracle GoldenGate Services for MySQL was successful. Please check '/ogg/oraInventory/logs/silentInstall2025-04-27_01-22-14PM.log' for more details.
As a root user, execute the following script(s): 1. /ogg/oraInventory/orainstRoot.sh
Successfully Setup Software. The log of this install session can be found at: /ogg/oraInventory/logs/installActions2025-04-27_01-22-14PM.log
执行 orainstRoot.sh 脚本:
1 2 3 4 5 6 7
[root@target ~]# /ogg/oraInventory/orainstRoot.sh Changing permissions of /ogg/oraInventory. Adding read,write permissions for group. Removing read,write,execute permissions for world.
Changing groupname of /ogg/oraInventory to mysql. The execution of the script is complete.
[mysql@target ~]$ cd /soft/mysql-connector-odbc-8.0.17-linux-glibc2.12-x86-64bit/lib [mysql@target lib]$ ln -sf libssl.so libssl.so.10 [mysql@target lib]$ ll total 36136 lrwxrwxrwx. 1 mysql mysql 18 Jun 19 2019 libcrypto.so -> libcrypto.so.1.0.0 -rw-r--r--. 1 mysql mysql 2605390 Jun 19 2019 libcrypto.so.1.0.0 -rwxr-xr-x. 1 mysql mysql 16925360 Jun 19 2019 libmyodbc8a.so -rwxr-xr-x. 1 mysql mysql 16946136 Jun 19 2019 libmyodbc8w.so lrwxrwxrwx. 1 mysql mysql 15 Jun 19 2019 libssl.so -> libssl.so.1.0.0 lrwxrwxrwx. 1 mysql mysql 9 Apr 27 12:38 libssl.so.10 -> libssl.so -rw-r--r--. 1 mysql mysql 512744 Jun 19 2019 libssl.so.1.0.0
测试一下是否还缺包:
1 2
[mysql@target lib]$ adminsrvr adminsrvr: error while loading shared libraries: libcrypto.so.10: cannot open shared object file: No such file or directory
同样的再链接一个:
1 2 3 4 5 6 7 8 9 10 11
[mysql@target lib]$ ln -sf libcrypto.so libcrypto.so.10 [mysql@target lib]$ ll total 36136 lrwxrwxrwx. 1 mysql mysql 18 Jun 19 2019 libcrypto.so -> libcrypto.so.1.0.0 lrwxrwxrwx. 1 mysql mysql 12 Apr 27 12:45 libcrypto.so.10 -> libcrypto.so -rw-r--r--. 1 mysql mysql 2605390 Jun 19 2019 libcrypto.so.1.0.0 -rwxr-xr-x. 1 mysql mysql 16925360 Jun 19 2019 libmyodbc8a.so -rwxr-xr-x. 1 mysql mysql 16946136 Jun 19 2019 libmyodbc8w.so lrwxrwxrwx. 1 mysql mysql 15 Jun 19 2019 libssl.so -> libssl.so.1.0.0 lrwxrwxrwx. 1 mysql mysql 9 Apr 27 12:42 libssl.so.10 -> libssl.so -rw-r--r--. 1 mysql mysql 512744 Jun 19 2019 libssl.so.1.0.0
再次测试一下是否还缺包:
1 2 3 4 5 6 7 8 9 10
[mysql@target lib]$ adminsrvr adminsrvr: /soft/mysql-connector-odbc-8.0.17-linux-glibc2.12-x86-64bit/lib/libcrypto.so.10: no version information available (required by /ogg/oggma/bin/../lib/libmysqlclient.so.21) adminsrvr: /soft/mysql-connector-odbc-8.0.17-linux-glibc2.12-x86-64bit/lib/libssl.so.10: no version information available (required by /ogg/oggma/bin/../lib/libmysqlclient.so.21) Oracle GoldenGate Administration Service for MySQL Version 21.17.0.0.0 OGGCORE_21.17.0.0.0OGGRU_PLATFORMS_250125.0558
Copyright (C) 1995, 2025, Oracle and/or its affiliates. All rights reserved.
Oracle Linux 7, x64, 64bit (optimized), MySQL on Jan 25 2025 10:57:34 Operating system character set identified as UTF-8.
确保正常之后,这里无法继续安装,否则还是会报错!需要删除 OGGCA 相关服务以及文件,重新配置:
1 2 3 4 5 6 7 8 9
[root@target ~]# rm -rf /etc/systemd/system/OracleGoldenGate.service [root@target ~]# rm -rf /etc/oggInst.loc [mysql@target lib]$ cd /ogg/ogginst/ [mysql@target ogginst]$ ls dep sm [mysql@target ogginst]$ rm -rf * [mysql@target ogginst]$ ps -ef|grep -v grep|grep ServiceManager mysql 33033 1 0 12:41 ? 00:00:01 /ogg/oggma/bin/ServiceManager --inventory '/ogg/ogginst/sm/etc/conf' [mysql@target ogginst]$ kill -9 33033