Está en la página 1de 5

1.

[root@xuhz ~]# uname -a


Linux xuhz 2.6.32-431.el6.x86_64 #1 SMP Sun Nov 10 22:19:54 EST 2013 x86_64 x86_
64 x86_64 GNU/Linux
[root@xuhz ~]# uname -r
2.6.32-431.el6.x86_64
[root@xuhz ~]# cat /etc/redhat-release
Red Hat Enterprise Linux Server release 6.5 (Santiago)
2.
[root@xuhz ~]# cd /software/
[root@xuhz software]# ls -l
total 1359328
drwxrwxrwx. 6 honcho honcho
4096 Jun 9 05:05 aese_c
-rwxrwxrwx. 1 honcho honcho 1391940725 Jun 9 05:05 DB2_Svr_10.5.0.3_Linux_x86-6
4PVU.tar.gz
3.
[root@xuhz software]# gunzip DB2_Svr_10.5.0.3_Linux_x86-64PVU.tar.gz
[root@xuhz software]# tar -xvf DB2_Svr_10.5.0.3_Linux_x86-64PVU.tar
4.
[root@xuhz software]# ls -l
drwxrwxrwx. 6 honcho honcho
4096 Jun 9 05:05 aese_c
-rwxrwxrwx. 1 honcho honcho 1560576000 Jun 9 05:05 DB2_Svr_10.5.0.3_Linux_x86-6
4PVU.tar
drwxr-xr-x. 5 root root
4096 Feb 7 08:33 server
[root@xuhz software]# cd server/
[root@xuhz server]# ls
db2 db2checkCOL_readme.txt db2checkCOL.tar.gz db2ckupgrade db2_deinstall db
2_install db2ls db2prereqcheck db2setup ibm_im installFixPack nlpack
[root@xuhz server]# ./db2prereqcheck -v 10.5.0.3 -s -o /tmp/db_check.log
Requirement not matched for DB2 database "Server" . Version: "10.5.0.3".
Summary of prerequisites that are not met on the current system:
DBT3514W Th
e 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".
Requirement not matched for DB2 database "Server" with pureScale feature. Versio
n: "10.5.0.3".
Summary of prerequisites that are not met on the current system:
DBT3514W Th
e db2prereqcheck utility failed to find the following 32-bit library file: "/lib
/libpam.so*".
DBT3588W The db2prereqcheck utility was unable to validate the configuration of
the log_mtts_per_seg parameter on the following host machine: "xuhz". Reason co
de: "1".
DBT3566E The db2prereqcheck utility detected that the service named "rdma" is n
ot enabled on host "xuhz".
DBT3514W The db2prereqcheck utility failed to find the following 32-bit library
file: "libstdc++.so.6".
DBT3563E The db2prereqcheck utility determined that SELinux is enabled, which i
s not supported with GPFS.
5.

[root@xuhz server]# ./db2_install


Requirement not matched for DB2 database "Server" . Version: "10.5.0.3".
Summary of prerequisites that are not met on the current system:
DBT3514W The db2prereqcheck utility failed to find the following 32-bit libr
ary 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. For
more information, see the DB2 Information Center.

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


***********************************************************
Install into default directory (/opt/ibm/db2/V10.5) ? [yes/no] ------------------- ????????,????????
yes
Specify one of the following keywords to install DB2 products.
SERVER
CONSV
EXP
CLIENT
RTCL
Enter "help" to redisplay product names.
???,????SERVER

--------------- ?????

Enter "quit" to exit.


***********************************************************
SERVER
***********************************************************
Do you want to install the DB2 pureScale Feature? [yes/no] ---------------- ??
????pureScale??,???????
no
Requirement not matched for DB2 database "Server" . Version: "10.5.0.3".
Summary of prerequisites that are not met on the current system:
DBT3514W The db2prereqcheck utility failed to find the following 32-bit libr
ary 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: 48
Total estimated time for all tasks to be performed: 1873 second(s)
Task #1 start
Description: Checking license agreement acceptance

Estimated time 1 second(s)


Task #1 end
................................................................................
...................................
................................................................................
...................................
Task #50 start
Description: Updating global profile registry
Estimated time 3 second(s)
Task #50 end
The execution completed successfully.
For more information see the DB2 installation log at
"/tmp/db2_install.log.2881".
6.
[root@xuhz adm]# /opt/ibm/db2/V10.5/adm/db2licm -l
Product name:
"DB2 Enterprise Server Edition"
License type:
"License not registered"
Expiry date:
"License not registered"
Product identifier:
"db2ese"
Version information:
"10.5"
[root@xuhz adm]# cd /software/aese_c/db2/license
[root@xuhz license]# ls
db2aese_c.lic sam32.lic UNIX Windows
[root@xuhz license]# /opt/ibm/db2/V10.5/adm/db2licm -a db2aese_c.lic
LIC1402I License added successfully.
LIC1426I This product is now licensed for use as outlined in your License Agree
ment. USE OF THE PRODUCT CONSTITUTES ACCEPTANCE OF THE TERMS OF THE IBM LICENSE
AGREEMENT, LOCATED IN THE FOLLOWING DIRECTORY: "/opt/ibm/db2/V10.5/license/en_U
S.iso88591"
[root@xuhz license]# /opt/ibm/db2/V10.5/adm/db2licm -l
Product name:
"DB2 Advanced Enterprise Server Edition"
License type:
"CPU Option"
Expiry date:
"Permanent"
Product identifier:
"db2aese"
Version information:
"10.5"
Enforcement policy:
"Soft Stop"
7.
[root@xuhz ~]# groupadd -g 999 db2iadm1
[root@xuhz ~]# groupadd -g 998 db2fadm1
[root@xuhz ~]# groupadd -g 997 dasadm1
[root@xuhz ~]# useradd -u 600 -g db2iadm1 -m -d /home/db2inst1 db2inst1
[root@xuhz ~]# useradd -u 601 -g db2fadm1 -m -d /home/db2fenc1 db2fenc1
[root@xuhz ~]# useradd -u 602 -g dasadm1 -m -d /home/dasusr1 dasusr1
[root@xuhz ~]# passwd db2inst1
Changing password for user db2inst1.
New password:
BAD PASSWORD: it is based on a dictionary word
Retype new password:
passwd: all authentication tokens updated successfully.
[root@xuhz ~]# passwd db2fenc1
Changing password for user db2fenc1.
New password:
BAD PASSWORD: it is based on a dictionary word

Retype new password:


passwd: all authentication tokens updated successfully.
[root@xuhz ~]# passwd dasusr1
Changing password for user dasusr1.
New password:
BAD PASSWORD: it is based on a dictionary word
Retype new password:
passwd: all authentication tokens updated successfully.
8.
[root@xuhz ~]# cd /opt/ibm/db2/V10.5/instance/
[root@xuhz instance]# ./dascrt -u dasusr1
DBI1070I Program dascrt completed successfully.
9.
[root@xuhz instance]# ./db2icrt -u db2fenc1 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 #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.8120".
Required: Review the following log file also for warnings or errors:
"/tmp/db2icrt_local.log.*"
DBI1070I Program db2icrt completed successfully.
[db2inst1@xuhz ~]$ db2ilist
db2inst1
10.
root@xuhz ~]# su - db2inst1
[db2inst1@xuhz ~]$ db2set -all
[i] DB2AUTOSTART=NO
[g] DB2SYSTEM=xuhz
[g] DB2INSTDEF=db2inst1
[g] DB2ADMINSERVER=dasusr1
[db2inst1@xuhz ~]$ db2set DB2COMM=tcpip
[db2inst1@xuhz ~]$ db2set -all
[i] DB2COMM=TCPIP
[i] DB2AUTOSTART=NO
[g] DB2SYSTEM=xuhz
[g] DB2INSTDEF=db2inst1
[g] DB2ADMINSERVER=dasusr1
11.
[db2inst1@xuhz ~]$ cat /etc/services |grep DB2
ibm-db2
523/tcp
# IBM-DB2
ibm-db2
523/udp
# IBM-DB2

questdb2-lnchr 5677/tcp
questdb2-lnchr 5677/udp
DB2_db2inst1
60006/tcp
DB2_db2inst1_1 60007/tcp
DB2_db2inst1_2 60008/tcp
DB2_db2inst1_3 60009/tcp
DB2_db2inst1_4 60010/tcp
DB2_db2inst1_END
60011/tcp

# Quest Central DB2 Launchr


# Quest Central DB2 Launchr
# DB2 ??????

12.
[db2inst1@xuhz ~]$ db2 get dbm cfg |grep SVCENAME
TCP/IP Service name
(SVCENAME) =
SSL service name
(SSL_SVCENAME) =
[db2inst1@xuhz ~]$ db2 update dbm cfg using SVCENAME 60006
DB20000I The UPDATE DATABASE MANAGER CONFIGURATION command completed
successfully.
[db2inst1@xuhz ~]$ db2 get dbm cfg |grep SVCENAME
TCP/IP Service name
(SVCENAME) = 60006
SSL service name
(SSL_SVCENAME) =
13.
[db2inst1@xuhz ~]$ db2start
06/09/2014 19:38:44
0 0 SQL1063N DB2START processing was successful.
SQL1063N DB2START processing was successful.
[db2inst1@xuhz ~]$ netstat -an |grep 60006
tcp
0
0 0.0.0.0:60006
0.0.0.0:*
LIST
EN
14.
[db2inst1@xuhz ~]$ db2 create db honcho using codeset UTF-8 territory CN pagesiz
e 8192
DB20000I The CREATE DATABASE command completed successfully.
[db2inst1@xuhz ~]$ db2 connect to honcho
Database Connection Information
Database server
SQL authorization ID
Local database alias

= DB2/LINUXX8664 10.5.3
= DB2INST1
= HONCHO