DB2 LUW 11.5.9 dbprereqcheck:'db2prereqcheck 实用程序找不到以下包或文件:“”'

问题描述 投票:0回答:1

我正在尝试将最初在 CentOS 7 Linux x86_64 主机上创建的 DB-2 LUW 11.5.6 社区版(免费许可证)安装升级到最新的 11.5.9 版本。

说明要求 cd 到从 tarfile 中解压的“server_dec”目录,然后运行“./db2setup”,我正在这样做。

我已经下载了 v11.5.9_linuxx64_server_dec.tar.gz 文件,并且正在 尝试按照说明进行操作,使用正在运行的 DB-2 11.5.6 实例以及我的 $PATH 中的 /opt/ibm/db2/V11.5/{bin,adm,instance} 目录,作为“root”(用户我按照原来的方式安装了)。旧的 v11.5.6 安装程序确实可以识别 Centos-7,但现在新安装程序在识别我安装的新 Rocky RHEL8 操作系统时遇到问题,并且生成了安装程序的核心转储。

运行“db2/linuxamd/install/db2prereqcheck”会生成一条带有 NO 的日志 启用安装的功能,以及诸如以下的消息:

==========================================================================

Thu Nov 30 17:40:30 2023
Checking prerequisites for DB2 installation. Version "11.5.9.0". Operating system "Linux" 

Validating "kernel level " ... 
   Required minimum operating system kernel level: "3.10.0". 
   Actual operating system kernel level: "4.18.0". 
   Requirement matched. 

Validating "Linux distribution " ... 
   Required minimum operating system distribution: "CENTOS"; Version: "7"; Service pack: "9". 
   Actual operating system distribution Version: "8"; Service pack: "9". 
   Requirement matched. 

Validating "Bin user" ... 
   Requirement matched. 

Validating "C++ Library version " ... 
   Required minimum C++ library: "libstdc++.so.6" 
   Standard C++ library is located in the following directory: "/usr/lib64/libstdc++.so.6.0.25". 
   Actual C++ library: "CXXABI_1.3.1" 
   Requirement matched. 


Validating "32 bit version of "libstdc++.so.6" " ... 
   Found the 32 bit "/lib/libstdc++.so.6" in the following directory "/lib". 
   Requirement matched. 

Validating "libaio.so version " ... 
DBT3553I  The db2prereqcheck utility successfully loaded the libaio.so.1 file. 
   Requirement matched. 

Validating "libnuma.so version " ... 
DBT3610I  The db2prereqcheck utility successfully loaded the libnuma.so.1 file. 
   Requirement matched. 

Validating "/lib/libpam.so*" ... 
   Requirement matched. 
DBT3533I  The db2prereqcheck utility has confirmed that all installation prerequisites were met. 

==========================================================================

Thu Nov 30 17:40:30 2023
Checking prerequisites for DB2 installation with the DB2 pureScale Feature.  Version: "11.5.9.0".  Operating system: "Linux". 

Validating "kernel level " ... 
   Required minimum operating system kernel level: "3.10.0". 
   Actual operating system kernel level: "4.18.0". 
   Requirement matched. 

Validating "Linux distribution " ... 
   Required minimum operating system distribution: "CENTOS"; Version: "7"; Service pack: "9". 
   Actual operating system distribution Version: "8"; Service pack: "9". 
   Requirement matched. 

Validating "ksh symbolic link" ... 
   Requirement matched. 

Validating "Bin user" ... 
   Requirement matched. 

Validating "SELinux status " ... 
   SELinux is "disabled ". 
   Requirement matched. 

Validating "libc.so version " ... 
   glibc library is located in the following directory "/usr/lib64/libc-2.28.so". 
   Required minimum glibc library version: "2.4.0" 
   Actual glibc library version: "2.28.0" 
   Requirement matched. 

Validating "gcc" ... 
   Package (or file) found: "gcc" 
   Requirement matched. 

Validating "binutils" ... 
   Package (or file) found: "binutils" 
   Requirement matched. 

Validating "cpp" ... 
   Package (or file) found: "cpp" 
   Requirement matched. 

Validating "gcc-c++" ... 
   Package (or file) found: "gcc-c++" 
   Requirement matched. 

Validating "" ... 
DBT3507E  The db2prereqcheck utility failed to find the following package or file: "". 
   ERROR : Requirement not matched. 

Validating "" ... 
DBT3507E  The db2prereqcheck utility failed to find the following package or file: "". 
   ERROR : Requirement not matched. 

Validating "kernel-source" ... 
DBT3507E  The db2prereqcheck utility failed to find the following package or file: "kernel-source". 
   ERROR : Requirement not matched. 

Validating "prereqSAM" ... 
DBT3613E  The db2prereqcheck utility failed to verify the prerequisites for TSA. Ensure your machine meets all the TSA installation prerequisites. 
   ERROR : Requirement not matched. 

Validating "free space" ... 
The directory "/tmp" has enough space on host "devbox01.ptti.co.uk". 
   Requirement matched. 

Validating "free space" ... 
The directory "/var" has enough space on host "devbox01.ptti.co.uk". 
   Requirement matched. 

Validating "free space" ... 
The directory "/usr" has enough space on host "devbox01.ptti.co.uk". 
   Requirement matched. 
Requirement not matched for DB2 dash: -c: line 0: syntax error near unexpected token `('
sh: -c: line 0: `rpm -q --qf "%{NAME}\n%{VERSION}\n%{RELEASE}\n" -l (null) 2>&1 > /tmp/db2prereqcheck.240655'
sh: -c: line 0: syntax error near unexpected token `('
sh: -c: line 0: `rpm -q --qf "%{NAME}\n%{VERSION}\n%{RELEASE}\n" -l (null) 2>&1 > /tmp/db2prereqcheck.240655'
tabase "Server" with pureScale feature . Version: "11.5.9.0". 
Summary of prerequisites that are not met on the current system: 
DBT3613E  The db2prereqcheck utility failed to verify the prerequisites for TSA. Ensure your machine meets all the TSA installation prerequisites. 


DBT3507E  The db2prereqcheck utility failed to find the following package or file: "kernel-source". 


DBT3507E  The db2prereqcheck utility failed to find the following package or file: "". 


DBT3507E  The db2prereqcheck utility failed to find the following package or file: "". 



==========================================================================

db2setup 核心转储:

[root@devbox01 server_dec]# ./db2setup
DBI1190I  db2setup is preparing the DB2 Setup wizard which will guide
  you through the program setup process. Please wait.


Nov 30 18:15:03 devbox01.ptti.co.uk org.gnome.Shell.desktop[8325]: Window manager warning: Window 0x3000020 sets an MWM hint indicating it isn't resizable, but sets min size 1 x 1 and max size 2147483647 x 2147483647; this doesn't make much sense.
Nov 30 18:15:03 devbox01.ptti.co.uk org.gnome.Shell.desktop[8325]: Window manager warning: Invalid WM_TRANSIENT_FOR window 0x3000007 specified for 0x3000020.
Nov 30 18:15:03 devbox01.ptti.co.uk org.gnome.Shell.desktop[8325]: Window manager warning: Window 0x3000020 sets an MWM hint indicating it isn't resizable, but sets min size 1 x 1 and max size 2147483647 x 2147483647; this doesn't make much sense.
Nov 30 18:15:13 devbox01.ptti.co.uk java[248622]: IBM Java[248622]: JVMDUMP039I Processing dump event "gpf", detail "" at 2023/11/30 18:15:13 - please wait.
Nov 30 18:15:13 devbox01.ptti.co.uk java[248622]: IBM Java[248622]: JVMDUMP032I JVM requested System dump using '/root/db2.tmp.245351/db2/linuxamd64/install/core.20231130.181513.248622.0001.dmp' in response to an event
Nov 30 18:15:13 devbox01.ptti.co.uk systemd[1]: Started Process Core Dump (PID 250076/UID 0).
Nov 30 18:15:14 devbox01.ptti.co.uk systemd-coredump[250077]: Process 250075 (main) of user 0 dumped core.

                              Stack trace of thread 250075:
                              #0  0x00007f29624419e5 __pthread_kill (libpthread.so.0)
                              #1  0x00007f296044cb2d omrdump_create (/root/db2.tmp.245351/db2/linuxamd64/java/jre/lib/amd64/compressedrefs/libj9prt29.so)
                              #2  0x00007f294ee0db32 doSystemDump (/root/db2.tmp.245351/db2/linuxamd64/java/jre/lib/amd64/compressedrefs/libj9dmp29.so)
                              #3  0x00007f294ee09945 protectedDumpFunction (/root/db2.tmp.245351/db2/linuxamd64/java/jre/lib/amd64/compressedrefs/libj9dmp29.so)
                              #4  0x00007f2960416a33 omrsig_protect (/root/db2.tmp.245351/db2/linuxamd64/java/jre/lib/amd64/compressedrefs/libj9prt29.so)
                              #5  0x00007f294ee0cf9b runDumpFunction (/root/db2.tmp.245351/db2/linuxamd64/java/jre/lib/amd64/compressedrefs/libj9dmp29.so)
                              #6  0x00007f294ee0d12f runDumpAgent (/root/db2.tmp.245351/db2/linuxamd64/java/jre/lib/amd64/compressedrefs/libj9dmp29.so)
                              #7  0x00007f294ee25066 triggerDumpAgents (/root/db2.tmp.245351/db2/linuxamd64/java/jre/lib/amd64/compressedrefs/libj9dmp29.so)
                              #8  0x00007f2960b6d972 generateDiagnosticFiles (/root/db2.tmp.245351/db2/linuxamd64/java/jre/lib/amd64/compressedrefs/libj9vm29.so)
                              #9  0x00007f2960416a33 omrsig_protect (/root/db2.tmp.245351/db2/linuxamd64/java/jre/lib/amd64/compressedrefs/libj9prt29.so)
                              #10 0x00007f2960b6db85 vmSignalHandler (/root/db2.tmp.245351/db2/linuxamd64/java/jre/lib/amd64/compressedrefs/libj9vm29.so)
                              #11 0x00007f2960415efa mainSynchSignalHandler (/root/db2.tmp.245351/db2/linuxamd64/java/jre/lib/amd64/compressedrefs/libj9prt29.so)
                              #12 0x00007f2962444c90 __restore_rt (libpthread.so.0)
                              #13 0x00007f28e97301c7 n/a (/home/adm-jason/Downloads/DB2/server_dec/db2/linuxamd64/install/libdb2ure.so.1)
                              #14 0x00007f28e96e4c02 n/a (/home/adm-jason/Downloads/DB2/server_dec/db2/linuxamd64/install/libdb2ure.so.1)
                              #15 0x00007f28e94c7bc1 n/a (/home/adm-jason/Downloads/DB2/server_dec/db2/linuxamd64/install/libdb2ure.so.1)
                              #16 0x00007f28e94c8705 n/a (/home/adm-jason/Downloads/DB2/server_dec/db2/linuxamd64/install/libdb2ure.so.1)
                              #17 0x00007f28e95ac063 n/a (/home/adm-jason/Downloads/DB2/server_dec/db2/linuxamd64/install/libdb2ure.so.1)
                              #18 0x00007f2960c15aaa ffi_call_unix64 (/root/db2.tmp.245351/db2/linuxamd64/java/jre/lib/amd64/compressedrefs/libj9vm29.so)
                              #19 0x00007f2960c11f3c ffi_call_int (/root/db2.tmp.245351/db2/linuxamd64/java/jre/lib/amd64/compressedrefs/libj9vm29.so)
                              #20 0x00007f2960ac3792 _ZN32VM_BytecodeInterpreterCompressed3runEP10J9VMThread (/root/db2.tmp.245351/db2/linuxamd64/java/jre/lib/amd64/compressedrefs/libj9vm29.so)
                              #21 0x00007f2960ab3cbc bytecodeLoopCompressed (/root/db2.tmp.245351/db2/linuxamd64/java/jre/lib/amd64/compressedrefs/libj9vm29.so)
                              #22 0x00007f2960ba85f2 c_cInterpreter (/root/db2.tmp.245351/db2/linuxamd64/java/jre/lib/amd64/compressedrefs/libj9vm29.so)
                              #23 0x00007f2960b5602a runCallInMethod (/root/db2.tmp.245351/db2/linuxamd64/java/jre/lib/amd64/compressedrefs/libj9vm29.so)
                              #24 0x00007f2960b712f9 gpProtectedRunCallInMethod (/root/db2.tmp.245351/db2/linuxamd64/java/jre/lib/amd64/compressedrefs/libj9vm29.so)
                              #25 0x00007f2960416a33 omrsig_protect (/root/db2.tmp.245351/db2/linuxamd64/java/jre/lib/amd64/compressedrefs/libj9prt29.so)
                              #26 0x00007f2960bb31ac gpProtectAndRun (/root/db2.tmp.245351/db2/linuxamd64/java/jre/lib/amd64/compressedrefs/libj9vm29.so)
                              #27 0x00007f2960b72ba4 gpCheckCallin (/root/db2.tmp.245351/db2/linuxamd64/java/jre/lib/amd64/compressedrefs/libj9vm29.so)
                              #28 0x00007f2960b70cca callStaticVoidMethod (/root/db2.tmp.245351/db2/linuxamd64/java/jre/lib/amd64/compressedrefs/libj9vm29.so)
                              #29 0x00007f29622203fb JavaMain (/root/db2.tmp.245351/db2/linuxamd64/java/jre/lib/amd64/jli/libjli.so)
                              #30 0x00007f296243a1ea start_thread (libpthread.so.0)
                              #31 0x00007f2961c81e33 __clone (libc.so.6)
Nov 30 18:15:14 devbox01.ptti.co.uk systemd[1]: [email protected]: Succeeded.
Nov 30 18:15:15 devbox01.ptti.co.uk abrtd[877]: Size of '/var/spool/abrt' >= 5000 MB (MaxCrashReportsSize), deleting old directory 'ccpp-2023-11-30-17:29:10.275390-240194'
Nov 30 18:15:16 devbox01.ptti.co.uk abrt-server[250086]: Sending a notification email to: "root@localhost"
Nov 30 18:15:20 devbox01.ptti.co.uk java[248622]: IBM Java[248622]: JVMDUMP012E Error in System dump: /root/db2.tmp.245351/db2/linuxamd64/install/core.20231130.181513.248622.0001.dmp
Nov 30 18:15:20 devbox01.ptti.co.uk java[248622]: IBM Java[248622]: JVMDUMP032I JVM requested Java dump using '/tmp/javacore.20231130.181513.248622.0002.txt' in response to an event
Nov 30 18:15:20 devbox01.ptti.co.uk java[248622]: IBM Java[248622]: JVMDUMP032I JVM requested Snap dump using '/root/db2.tmp.245351/db2/linuxamd64/install/Snap.20231130.181513.248622.0003.trc' in response to an event
Nov 30 18:15:20 devbox01.ptti.co.uk java[248622]: IBM Java[248622]: JVMDUMP032I JVM requested JIT dump using '/root/db2.tmp.245351/db2/linuxamd64/install/jitdump.20231130.181513.248622.0004.dmp' in response to an event
[root@devbox01 server_dec]# 

如何满足这些缺失的先决条件?

DBT3507E  The db2prereqcheck utility failed to find the following package or file: "kernel-source". 

DBT3507E  The db2prereqcheck utility failed to find the following package or file: "". 

DBT3507E  The db2prereqcheck utility failed to find the following package or file: "". 

“kernel-source”不是一个包。我安装了“kernel-devel”和“kernel-debugsource”。

IBM DB-2 LUW v11.5.9 空要求“””是什么?

或者如何在 Rocky RHEL8 x86_64 主机上成功安装 DB2 LUW Server v11.5.9 over v11.5.6,并保留现有数据库?

db2 upgrade db2-luw
1个回答
0
投票

嗯,这不是一个很好的答案,但应该能够工作:

解压 tarfile 后,cd 到“server_dec/db2/linuxamd64/FILES”目录,然后运行 这个命令:

[root@host] # for f in ACS_11.5.9.0_linuxamd64_x86_64.tar.gz APPLICATION_DEVELOPMENT_TOOLS_11.5.9.0_linuxamd64_x86_64.tar.gz BASE_CLIENT_11.5.9.0_linuxamd64_x86_64.tar.gz BASE_DB2_ENGINE_11.5.9.0_linuxamd64_x86_64.tar.gz BASE_CLIENT_R_11.5.9.0_linuxamd64_x86_64.tar.gz BASE_DB2_ENGINE_R_11.5.9.0_linuxamd64_x86_64.tar.gz CF_11.5.9.0_linuxamd64_x86_64.tar.gz CLIENT_PRODUCT_SIGNATURE_11.5.9.0_linuxamd64_x86_64.tar.gz  CLPPLUS_11.5.9.0_linuxamd64_x86_64.tar.gz  COMMUNICATION_SUPPORT_TCPIP_11.5.9.0_linuxamd64_x86_64.tar.gz CONNECT_SUPPORT_11.5.9.0_linuxamd64_x86_64.tar.gz CONSV_PRODUCT_SIGNATURE_11.5.9.0_linuxamd64_x86_64.tar.gz  DATABASE_PARTITIONING_SUPPORT_11.5.9.0_linuxamd64_x86_64.tar.gz  DB2_CONTROL_CENTER_HELP_EN_11.5.9.0_linuxamd64_x86_64.tar.gz DB2_DATA_SOURCE_SUPPORT_11.5.9.0_linuxamd64_x86_64.tar.gz DB2_JAVA_HELP_EN_11.5.9.0_linuxamd64_x86_64.tar.gz DB2_PRODUCT_MESSAGES_EN_11.5.9.0_linuxamd64_x86_64.tar.gz EDB_11.5.9.0_linuxamd64_x86_64.tar.gz ESE_PRODUCT_SIGNATURE_11.5.9.0_linuxamd64_x86_64.tar.gz FED_DATA_SOURCE_SUPPORT_11.5.9.0_linuxamd64_x86_64.tar.gz FIRST_STEPS_11.5.9.0_linuxamd64_x86_64.tar.gz GSK_11.5.9.0_linuxamd64_x86_64.tar.gz GSK_CRYPTO_11.5.9.0_linuxamd64_x86_64.tar.gz GUARDIUM_INST_MNGR_CLIENT_11.5.9.0_linuxamd64_x86_64.tar.gz ICU_SUP_11.5.9.0_linuxamd64_x86_64.tar.gz IINR_APPLICATIONS_WRAPPER_11.5.9.0_linuxamd64_x86_64.tar.gz IINR_SCIENTIFIC_WRAPPER_11.5.9.0_linuxamd64_x86_64.tar.gz IINR_STRUCTURED_FILES_WRAPPER_11.5.9.0_linuxamd64_x86_64.tar.gz INFORMIX_DATA_SOURCE_SUPPORT_11.5.9.0_linuxamd64_x86_64.tar.gz INSTANCE_SETUP_SUPPORT_11.5.9.0_linuxamd64_x86_64.tar.gz  ITLM_11.5.9.0_linuxamd64_x86_64.tar.gz JAVA_COMMON_FILES_11.5.9.0_linuxamd64_x86_64.tar.gz JAVA_RUNTIME_SUPPORT_11.5.9.0_linuxamd64_x86_64.tar.gz JAVA_SUPPORT_11.5.9.0_linuxamd64_x86_64.tar.gz JDBC_DATA_SOURCE_SUPPORT_11.5.9.0_linuxamd64_x86_64.tar.gz JDK_11.5.9.0_linuxamd64_x86_64.tar.gz LDAP_EXPLOITATION_11.5.9.0_linuxamd64_x86_64.tar.gz ODBC_DATA_SOURCE_SUPPORT_11.5.9.0_linuxamd64_x86_64.tar.gz ORACLE_DATA_SOURCE_SUPPORT_11.5.9.0_linuxamd64_x86_64.tar.gz RELATIONAL_WRAPPERS_COMMON_11.5.9.0_linuxamd64_x86_64.tar.gz REPL_CLIENT_11.5.9.0_linuxamd64_x86_64.tar.gz  RTCL_PRODUCT_SIGNATURE_11.5.9.0_linuxamd64_x86_64.tar.gz SPATIAL_EXTENDER_CLIENT_SUPPORT_11.5.9.0_linuxamd64_x86_64.tar.gz SPATIAL_EXTENDER_SERVER_SUPPORT_11.5.9.0_linuxamd64_x86_64.tar.gz SQL_PROCEDURES_11.5.9.0_linuxamd64_x86_64.tar.gz SQL_SERVER_DATA_SOURCE_SUPPORT_11.5.9.0_linuxamd64_x86_64.tar.gz  SYBASE_DATA_SOURCE_SUPPORT_11.5.9.0_linuxamd64_x86_64.tar.gz TERADATA_DATA_SOURCE_SUPPORT_11.5.9.0_linuxamd64_x86_64.tar.gz TEXT_SEARCH_11.5.9.0_linuxamd64_x86_64.tar.gz ; do echo '*** '$f;  gunzip < "$f" | (cd /opt/IBM/db2/V11.5/; tar -xpvf -); done 2>&1 | tee ~/db2-upgrade.log

好的,这会将所有文件解压到您的安装目录中。

然后,如以下所述:

https://www.ibm.com/docs/en/db2/10.1.0?topic=servers-installing-payload-files

https://www.协调技术.com/web-cloud-server/1/Software/2/RDBMS/3/IBM%20Db2/getting-started-with-ibm-db2-on-linux-part-iii-手动安装

运行:

[root@host] # $DB2DIR/install/db2chgpath 
...

然后安装应该更新并且应该可以工作 - 现在测试。

© www.soinside.com 2019 - 2024. All rights reserved.