安装DB2 9.5.10,
操作系统是:redhat 6.9
安装的过程中报错。安装到最后几步的时候。这个时候数据库可以创建实例。但是db2ls命令不能使用。
db2precheck 执行没有报错。
收集了trace文件。没有发现什么问题。
后来经同事提示,把root用户的shell 从bash 切换到ksh。重新安装问题解决了。 不知道什么原因。
具体报错的位置是:
Description: Updating the db2ls link
Estimated time 1 second(s)
/tmp/db2.tmp.13786/db2/linuxamd64/install//db2setup_exec: line 559: 14429 Segmentation fault (core dumped) ${RUNLOCATION?}/${DB2INSTALLER?} ${DB2OPTS?}
完整的安装日志:安装到第38步失败。正常需要安装42步。
/db2_install -b /opt/ibm/db2/V9.5 -l db2_install_2019_1_24.log
Specify one of the following keywords to install DB2 products.
ESE
CONSV
WSE
EXP
PE
CLIENT
RTCL
Enter "help" to redisplay product names.
Enter "quit" to exit.
***********************************************************
WSE
cp: cannot stat `/tmp/9510/server/db2/linuxamd64/install/../../spec': No such file or directory
cp: cannot stat `/tmp/9510/server/db2/linuxamd64/install/.fsinfo': No such file or directory
DB2 installation is being initialized.
Total number of tasks to be performed: 42
Total estimated time for all tasks to be performed: 976
Task #1 start
Description: Checking license agreement acceptance
Estimated time 1 second(s)
Task #1 end
Task #2 start
Description: Base Client Support for installation with root privileges
Estimated time 3 second(s)
Task #2 end
Task #3 start
Description: Product Messages - English
Estimated time 3 second(s)
Task #3 end
Task #4 start
Description: Base client support
Estimated time 3 second(s)
Task #4 end
Task #5 start
Description: The DB2 required component.
Estimated time 3 second(s)
Task #5 end
Task #6 start
Description: Java Help (HTML) - English
Estimated time 3 second(s)
Task #6 end
Task #7 start
Description: Base server support for installation with root privileges
Estimated time 3 second(s)
Task #7 end
Task #8 start
Description: Global Secure ToolKit
Estimated time 3 second(s)
Task #8 end
Task #9 start
Description: Java support
Estimated time 3 second(s)
Task #9 end
Task #10 start
Description: SQL procedures
Estimated time 3 second(s)
Task #10 end
Task #11 start
Description: ICU Utilities
Estimated time 3 second(s)
Task #11 end
Task #12 start
Description: Java Common files
Estimated time 3 second(s)
Task #12 end
Task #13 start
Description: Base server support
Estimated time 3 second(s)
Task #13 end
Task #14 start
Description: IBM Software Development Kit (SDK) for Java(TM)
Estimated time 3 second(s)
Task #14 end
Task #15 start
Description: Control Center Help (HTML) - English
Estimated time 3 second(s)
Task #15 end
Task #16 start
Description: Communication support - TCP/IP
Estimated time 3 second(s)
Task #16 end
Task #17 start
Description: Replication tools
Estimated time 3 second(s)
Task #17 end
Task #18 start
Description: Relational wrappers common
Estimated time 3 second(s)
Task #18 end
Task #19 start
Description: Control Center
Estimated time 3 second(s)
Task #19 end
Task #20 start
Description: DB2 data source support
Estimated time 3 second(s)
Task #20 end
Task #21 start
Description: DB2 LDAP support
Estimated time 3 second(s)
Task #21 end
Task #22 start
Description: DB2 Instance Setup wizard
Estimated time 3 second(s)
Task #22 end
Task #23 start
Description: Integrated Flash Copy Support
Estimated time 3 second(s)
Task #23 end
Task #24 start
Description: Spatial Extender client
Estimated time 3 second(s)
Task #24 end
Task #25 start
Description: XML Extender
Estimated time 3 second(s)
Task #25 end
Task #26 start
Description: Base application development tools
Estimated time 3 second(s)
Task #26 end
Task #27 start
Description: Product Signature for DB2 Workgroup Server Edition
Estimated time 3 second(s)
Task #27 end
Task #28 start
Description: First Steps
Estimated time 3 second(s)
Task #28 end
Task #29 start
Description: Sample database source
Estimated time 3 second(s)
Task #29 end
Task #30 start
Description: DB2 Text Search
Estimated time 3 second(s)
Task #30 end
Task #31 start
Description: Informix data source support
Estimated time 3 second(s)
Task #31 end
Task #32 start
Description: Setting DB2 library path
Estimated time 180 second(s)
Task #32 end
Task #33 start
Description: Installing or updating SA MP Base Component
Estimated time 40 second(s)
Task #33 end
Task #34 start
Description: Executing control tasks
Estimated time 20 second(s)
Task #34 end
Task #35 start
Description: Updating global registry
Estimated time 20 second(s)
Task #35 end
Task #36 start
Description: Installing IBM Tivoli Monitoring for Databases
Estimated time 600 second(s)
Task #36 end
Task #37 start
Description: Starting DB2 Fault Monitor
Estimated time 10 second(s)
Task #37 end
Task #38 start
Description: Updating the db2ls link
Estimated time 1 second(s)
/tmp/db2.tmp.13786/db2/linuxamd64/install//db2setup_exec: line 559: 14429 Segmentation fault (core dumped) ${RUNLOCATION?}/${DB2INSTALLER?} ${DB2OPTS?}