db2客户端的安装步骤-成都创新互联网站建设

关于创新互联

多方位宣传企业产品与服务 突出企业形象

公司简介 公司的服务 荣誉资质 新闻动态 联系我们

db2客户端的安装步骤

这篇文章主要讲解了“db2客户端的安装步骤”,文中的讲解内容简单清晰,易于学习与理解,下面请大家跟着小编的思路慢慢深入,一起来研究和学习“db2客户端的安装步骤”吧!

创新互联公司2013年成立,先为阜南等服务建站,阜南等地企业,进行企业商务咨询服务。为阜南企业网站制作PC+手机+微官网三网同步一站式服务解决您的所有建站问题。

[root@ps1 ~]# cd /soft/

[root@ps1 soft]# ll

total 583484

-rw-r--r-- 1 root root 597487185 Oct 26 10:34 v10.5fp8_linuxx64_client.tar.gz

1 解压

[root@ps1 soft]# tar -zxvf v10.5fp8_linuxx64_client.tar.gz

client/

client/db2setup

...

client/db2/.client

[root@ps1 soft]# ll

total 583484

drwxr-xr-x 4 root root       144 Sep  3  2016 client

-rw-r--r-- 1 root root 597487185 Oct 26 10:34 v10.5fp8_linuxx64_client.tar.gz

2 安装

[root@ps1 soft]# cd client/

[root@ps1 client]# ls

db2  db2_deinstall  db2_install  db2ls  db2prereqcheck  db2setup  ibm_im  installFixPack

[root@ps1 client]#

[root@ps1 client]#

[root@ps1 client]#

[root@ps1 client]# ./db2_install

Requirement not matched for DB2 database "Server" . Version: "10.5.0.8".

Summary of prerequisites that are not met on the current system:

   DBT3514W  The db2prereqcheck utility failed to find the following 32-bit library file: "/lib/libpam.so*".

DBT3514W  The db2prereqcheck utility failed to find the following 32-bit library file: "libstdc++.so.6".

DBI1324W  Support of the db2_install command is deprecated.

Default directory for installation of products - /opt/ibm/db2/V10.5

***********************************************************

Install into default directory (/opt/ibm/db2/V10.5) ? [yes/no]

yes

Requirement not matched for DB2 database "Server" . Version: "10.5.0.8".

Summary of prerequisites that are not met on the current system:

   DBT3514W  The db2prereqcheck utility failed to find the following 32-bit library file: "/lib/libpam.so*".

DBT3514W  The db2prereqcheck utility failed to find the following 32-bit library file: "libstdc++.so.6".

DB2 installation is being initialized.

 Total number of tasks to be performed: 29

Total estimated time for all tasks to be performed: 829 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 14 second(s)

Task #3 end

Task #4 start

Description: Base client support

Estimated time 323 second(s)

Task #4 end

Task #5 start

Description: Java Runtime Support

Estimated time 158 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: Java support

Estimated time 12 second(s)

Task #7 end

Task #8 start

Description: SQL procedures

Estimated time 3 second(s)

Task #8 end

Task #9 start

Description: Java Common files

Estimated time 18 second(s)

Task #9 end

Task #10 start

Description: Control Center Help (HTML) - English

Estimated time 13 second(s)

Task #10 end

Task #11 start

Description: IBM Software Development Kit (SDK) for Java(TM)

Estimated time 50 second(s)

Task #11 end

Task #12 start

Description: DB2 LDAP support

Estimated time 4 second(s)

Task #12 end

Task #13 start

Description: DB2 Instance Setup wizard

Estimated time 20 second(s)

Task #13 end

Task #14 start

Description: Spatial Extender client

Estimated time 3 second(s)

Task #14 end

Task #15 start

Description: Base application development tools

Estimated time 35 second(s)

Task #15 end

Task #16 start

Description: DB2 Update Service

Estimated time 4 second(s)

Task #16 end

Task #17 start

Description: Replication tools

Estimated time 61 second(s)

Task #17 end

Task #18 start

Description: Global Secure ToolKit Crypto

Estimated time 28 second(s)

Task #18 end

Task #19 start

Description: itlm

Estimated time 3 second(s)

Task #19 end

Task #20 start

Description: Command Line Processor Plus

Estimated time 6 second(s)

Task #20 end

Task #21 start

Description: First Steps

Estimated time 3 second(s)

Task #21 end

Task #22 start

Description: Product Signature for DB2 Client

Estimated time 7 second(s)

Task #22 end

Task #23 start

Description: Setting DB2 library path

Estimated time 180 second(s)

Task #23 end

Task #24 start

Description: Executing control tasks

Estimated time 20 second(s)

Task #24 end

Task #25 start

Description: Updating global registry

Estimated time 20 second(s)

Task #25 end

Task #26 start

Description: Updating the db2ls and db2greg link

Estimated time 1 second(s)

Task #26 end

Task #27 start

Description: Setting default global profile registry variables

Estimated time 1 second(s)

Task #27 end

Task #28 start

Description: Initializing instance list

Estimated time 5 second(s)

Task #28 end

Task #29 start

Description: Registering DB2 Update Service

Estimated time 30 second(s)

Task #29 end

Task #30 start

Description: Updating global profile registry

Estimated time 3 second(s)

Task #30 end

The execution completed successfully.

For more information see the DB2 installation log at

"/tmp/db2_install.log.65670".

3 创建

注意:/etc/hosts下必须有主机名和IP的对应关系,否则创建可能失败

如:

[db2inst1@ps1 ~]$ cat /etc/hosts

127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4

::1         localhost localhost.localdomain localhost6 localhost6.localdomain6

192.168.29.181  ps1

[root@ps1 client]# cd /opt/ibm/db2/V10.5/instance/

[root@ps1 instance]# ls

common    db2dbmchk  db2icrt        db2idefs        db2iexec  db2imchk    db2iset    db2iuadm        db2iupgrade        db2iver    db2uit    sdSharedFileList

db2chkf   db2icknm   db2icrt_local  db2idrop        db2iinfo  db2instcfg  db2isetup  db2iupdt        db2iupgrade_local  db2prechk  disp_msg

db2clpid  db2ickts   db2idbm        db2idrop_local  db2ilist  db2ipcld    db2isrv    db2iupdt_local  db2iutil           db2ssh     native

[root@ps1 instance]# useradd db2inst1

[root@ps1 instance]# ./db2icrt db2inst1

DBI1446I  The db2icrt command is running.

DB2 installation is being initialized.

Total number of tasks to be performed: 4

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

Task #1 start

Description: Setting default global profile registry variables

Estimated time 1 second(s)

Task #1 end

Task #2 start

Description: Initializing instance list

Estimated time 5 second(s)

Task #2 end

Task #3 start

Description: Configuring DB2 instances

Estimated time 300 second(s)

Task #3 end

Task #4 start

Description: Updating global profile registry

Estimated time 3 second(s)

Task #4 end

The execution completed successfully.

For more information see the DB2 installation log at "/tmp/db2icrt.log.94605".

DBI1070I  Program db2icrt completed successfully.

[root@ps1 instance]#

[root@ps1 instance]#

[root@ps1 instance]#

4 验证

[root@ps1 instance]# su  - db2inst1

Last login: Fri Oct 26 10:49:26 CST 2018 on pts/2

[db2inst1@ps1 ~]$ db2

(c) Copyright IBM Corporation 1993,2007

Command Line Processor for DB2 Client 10.5.8

You can issue database manager commands and SQL statements from the command

prompt. For example:

    db2 => connect to sample

    db2 => bind sample.bnd

For general help, type: ?.

For command help, type: ? command, where command can be

the first few keywords of a database manager command. For example:

 ? CATALOG DATABASE for help on the CATALOG DATABASE command

 ? CATALOG          for help on all of the CATALOG commands.

To exit db2 interactive mode, type QUIT at the command prompt. Outside

interactive mode, all commands must be prefixed with 'db2'.

To list the current command option settings, type LIST COMMAND OPTIONS.

For more detailed help, refer to the Online Reference Manual.

db2 => quit

DB20000I  The QUIT command completed successfully.

感谢各位的阅读,以上就是“db2客户端的安装步骤”的内容了,经过本文的学习后,相信大家对db2客户端的安装步骤这一问题有了更深刻的体会,具体使用情况还需要大家实践验证。这里是创新互联,小编将为大家推送更多相关知识点的文章,欢迎关注!


分享标题:db2客户端的安装步骤
浏览地址:http://kswsj.cn/article/pdhecp.html

其他资讯