linux验证db2安装成功_DB2(Linux 64位)安装教程

本文详细记录了在Red Hat 6.5系统上安装DB2 Express-C数据库的过程,包括下载安装包、解压、执行安装脚本等步骤,并在安装过程中遇到的路径非空问题进行了错误排查和解决方法的说明。
摘要由CSDN通过智能技术生成

数据库版本:db2 Express-C

操作系统版本:Red Hat 6.5

1.首先下载并解压安装包:[root@dbserver tmp]# tar -xzvf db2_v101_linuxx64_expc.tar.gz

2.安装:

[root@dbserver v101]#cd /tmp/expc/

[root@dbserver expc]# ./db2_install -b /opt/ibm/db2/v101

DBI1324W  Support of the db2_install command is deprecated. For

more information, see the DB2 Information Center.

DB2 installation is being initialized.                     --------安装开始啦,接下来需要等待一段时间。

Total number of tasks to be performed: 35

Total estimated time for all tasks to be performed: 1198 second(s)

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 13 second(s)

Task #3 end

Task #4 start

Description: Base client support

Estimated time 231 second(s)

Task #4 end

Task #5 start

Description: Java Runtime Support

Estimated time 153 second(s)

Task #5 end

Task #6 start

Description: Java Help (HTML) - English

Estimated time 7 second(s)

Task #6 end

Task #7 start

Description: Base server support for installation with root privileges

Estimated time 7 second(s)

Task #7 end

Task #8 start

Description: Global Secure ToolKit

Estimated time 60 second(s)

Task #8 end

Task #9 start

Description: Java support

Estimated time 12 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 59 second(s)

Task #11 end

Task #12 start

Description: Java Common files

Estimated time 18 second(s)

Task #12 end

Task #13 start

Description: Base server support

Estimated time 366 second(s)

Task #13 end

Task #14 start

Description: DB2 data source support

Estimated time 6 second(s)

Task #14 end

Task #15 start

Description: Spatial Extender server support

Estimated time 16 second(s)

Task #15 end

Task #16 start

Description: DB2 LDAP support

Estimated time 4 second(s)

Task #16 end

Task #17 start

Description: DB2 Instance Setup wizard

Estimated time 19 second(s)

Task #17 end

Task #18 start

Description: Integrated Flash Copy Support

Estimated time 3 second(s)

Task #18 end

Task #19 start

Description: Communication support - TCP/IP

Estimated time 3 second(s)

Task #19 end

Task #20 start

Description: Base application development tools

Estimated time 35 second(s)

Task #20 end

Task #21 start

Description: DB2 Update Service

Estimated time 4 second(s)

Task #21 end

Task #22 start

Description: EnterpriseDB code

Estimated time 4 second(s)

Task #22 end

Task #23 start

Description: Sample database source

Estimated time 4 second(s)

Task #23 end

Task #24 start

Description: DB2 Text Search

Estimated time 90 second(s)

Task #24 end

Task #25 start

Description: Command Line Processor Plus

Estimated time 6 second(s)

Task #25 end

Task #26 start

Description: First Steps

Estimated time 3 second(s)

Task #26 end

Task #27 start

Description: Product Signature for DB2 Express-C

Estimated time 3 second(s)

Task #27 end

Task #28 start

Description: Setting DB2 library path

Estimated time 180 second(s)

Task #28 end

Task #29 start

Description: Executing control tasks

Estimated time 20 second(s)

Task #29 end

Task #30 start

Description: Updating global registry

Estimated time 20 second(s)

Task #30 end

Task #31 start

Description: Starting DB2 Fault Monitor

Estimated time 10 second(s)

Task #31 end

Task #32 start

Description: Updating the db2ls link

Estimated time 1 second(s)

Task #32 end

Task #33 start

Description: Registering DB2 licenses

Estimated time 5 second(s)

Task #33 end

Task #34 start

Description: Setting default global profile registry variables

Estimated time 1 second(s)

Task #34 end

Task #35 start

Description: Initializing instance list

Estimated time 5 second(s)

Task #35 end

Task #36 start

Description: Registering DB2 Update Service

Estimated time 30 second(s)

Task #36 end

Task #37 start

Description: Updating global profile registry

Estimated time 3 second(s)

Task #37 end

The execution completed successfully.         --------安装成功!~~~  ^___^

For more information see the DB2 installation log at

"/tmp/db2_install.log.9329".             ----------相关的安装信息可以在该提示中的日志文件中查看。

[root@dbserver expc]#db2ls          -----------查看一下已经安装的版本

Install Path                       Level   Fix Pack   Special Install Number   Install Date                  Installer UID

---------------------------------------------------------------------------------------------------------------------

/opt/ibm/db2/v101                10.1.0.0        0                            Mon Jun  9 01:31:00 2014 CST             0

3.安装过程中报错处理

[root@dbserver expc]# ./db2_install -b /opt/ibm/db2/v101

DBI1324W  Support of the db2_install command is deprecated. For

more information, see the DB2 Information Center.

DB2 installation is being initialized.

The value provided for the installation path is not valid. The location

specified "/opt/ibm/db2/v101" exists and is not empty. Specify a new or empty

location.                       --------提示说安装路径存在,并且里面不是空的。

A major error occurred while installing "DB2 Express-C " on this computer. The

installation cannot continue. If the problem persists contact your technical

service representative.

For more information see the DB2 installation log at

"/tmp/db2_install.log.8003".

[root@dbserver expc]#cat /tmp/db2_install.log.8003 --------根据提示查看相关的日志

DB2 Setup log file started at:  Mon Jun  9 01:16:14 2014 CST

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

Operating system information: Linux 2.6.18-274.el5xen.#1 SMP Fri Jul 8 17:45:44 EDT 2011 x86_64

ERROR: The value provided for the installation path is not valid. The location

specified "/opt/ibm/db2/v101" exists and is not empty. Specify a new or empty

location.                     ---------操作系统的提示,跟刚才的提示一样。

ERROR: The "db2_install" command failed. Ensure the command parameters are

valid, that errors reported in the log file are fixed, then rerun the command.

Post Install Recommendations

-----------------------------

Required steps:

There were some errors detected during DB2 installation. To collect the information files from the system, run the "db2support -install" command with the proper options before reporting the problem to IBM service. For information regarding the usage of the db2support tool, check the DB2 Information Center.

DB2 Setup log file finished at:  Mon Jun  9 01:16:16 2014 CST

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

最后将提示中路径下的内容清空即可正常安装啦!~~~

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值