db2 客戶端安裝
[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.
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/26224914/viewspace-2218138/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- Oracle 客戶端安裝Oracle客戶端
- MySQL 客戶端安裝MySql客戶端
- zabbix 客戶端安裝客戶端
- oracle客戶端安裝Oracle客戶端
- aix安裝oracle客戶端AIOracle客戶端
- Ceph的客戶端安裝客戶端
- Git-客戶端安裝Git客戶端
- centos安裝oracle客戶端CentOSOracle客戶端
- CentOS安裝git客戶端CentOSGit客戶端
- DB2___安裝db2客戶端並連線到db2資料庫DB2客戶端資料庫
- Windows下安裝redis客戶端WindowsRedis客戶端
- linux安裝mysql客戶端LinuxMySql客戶端
- zabbix監控客戶端安裝客戶端
- 安裝 Oracle 即時客戶端Oracle客戶端
- 配置安裝版Oracle客戶端Oracle客戶端
- 免安裝Oracle客戶端使用Oracle客戶端
- 在Linux 上安裝DB2 8.1 並配置windows 客戶端連線LinuxDB2Windows客戶端
- graylog 客戶端的安裝配置客戶端
- centos下安裝openvpn———客戶端CentOS客戶端
- kickstart之批量安裝puppet客戶端客戶端
- 配置免安裝版Oracle客戶端Oracle客戶端
- git SourceTree 客戶端 安裝/使用教程Git客戶端
- linux_ganglia客戶端安裝Linux客戶端
- oracle客戶端無人值守安裝 靜默安裝Oracle客戶端
- linux簡易 Oracle客戶端安裝LinuxOracle客戶端
- 「Oracle」客戶端 PL/SQL DEVELOPER 安裝使用Oracle客戶端SQLDeveloper
- 客戶端自動配置安裝(expect工具)客戶端
- OpenStack collectd的從零安裝客戶端客戶端
- SegWit2x客戶端安裝教程客戶端
- Ubuntu 16.04安裝FTP客戶端filezillaUbuntuFTP客戶端
- 如何在 Ubuntu 中安裝 QGit 客戶端UbuntuGit客戶端
- windows7下安裝oracle客戶端WindowsOracle客戶端
- win10系統maven客戶端安裝教程_win10系統maven客戶端安裝步驟Win10Maven客戶端
- DB2客戶端大家用什麼?DB2客戶端
- Skywalking PHP客戶端編譯安裝PHP客戶端編譯
- NBU 8.0客戶端安裝和備份配置客戶端
- oracle11g客戶端靜默安裝Oracle客戶端
- git安裝及客戶端常用命令Git客戶端