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客戶端
- CentOS安裝git客戶端CentOSGit客戶端
- linux安裝mysql客戶端LinuxMySql客戶端
- aix安裝oracle客戶端AIOracle客戶端
- Windows下安裝redis客戶端WindowsRedis客戶端
- Skywalking PHP客戶端編譯安裝PHP客戶端編譯
- linux簡易 Oracle客戶端安裝LinuxOracle客戶端
- 「Oracle」客戶端 PL/SQL DEVELOPER 安裝使用Oracle客戶端SQLDeveloper
- 客戶端自動配置安裝(expect工具)客戶端
- Kubernetes安裝之五:配置kubectl客戶端客戶端
- Ubuntu16.04 percona MySQL客戶端安裝UbuntuMySql客戶端
- win10系統maven客戶端安裝教程_win10系統maven客戶端安裝步驟Win10Maven客戶端
- centos7系統msyqldump 客戶端安裝CentOS客戶端
- 二 GBase 8a MPP Cluster客戶端安裝客戶端
- NBU 8.0客戶端安裝和備份配置客戶端
- oracle11g客戶端靜默安裝Oracle客戶端
- linux zabbix-6.0.1-Agent客戶端的安裝配置Linux客戶端
- Ubuntu 16.04下安裝資料庫Oracle客戶端Ubuntu資料庫Oracle客戶端
- 客戶端安裝虛擬機器問題解答?客戶端虛擬機
- 如何安裝和配置 Chrony 作為 NTP 客戶端?客戶端
- SmartSVN for Mac 破解版安裝 mac好用SVN客戶端Mac客戶端
- rsync客戶端一鍵安裝rsync指令碼(原始碼)客戶端指令碼原始碼
- DB2 安裝DB2
- 在Ubuntu 18.04上編譯安裝pppoe客戶端軟體Ubuntu編譯客戶端
- CentOS7.1安裝Oracle 12.1客戶端以及cx_OracleCentOSOracle客戶端
- DB2 匯入和匯出 命令列和客戶端匯出DB2命令列客戶端
- Win10正式版系統如何安裝SSH客戶端Win10客戶端
- 如何在 Linux 上安裝、配置 NTP 伺服器和客戶端?Linux伺服器客戶端
- Windows下同時安裝執行多個版本的jmeter客戶端WindowsJMeter客戶端
- ubuntu17.4安裝git伺服器,window使用sourcetree客戶端UbuntuGit伺服器客戶端
- Youtube客戶端:Minitube for Mac 直裝版客戶端Mac
- Linux環境安裝Splunk Enterprise服務端和Windows客戶端Splunk Universal ForwarderLinux服務端Windows客戶端Forward
- FishRedux完成一個玩安卓客戶端Redux安卓客戶端
- Telegram原始碼之安卓客戶端配置原始碼安卓客戶端
- ssh客戶端:Termius for Mac最新啟用 +安裝教程 支援M1客戶端Mac
- 以太坊連載(六):以太坊客戶端的選擇與安裝客戶端
- mqtt 客戶端MQQT客戶端