INSTALL

./db2prereqcheck -v 10.1.0.0

yum -y install libstdc++
yum -y install libstdc++.i686
yum -y install dapl
yum -y install sg3_utils
yum -y install sg_persist
yum -y install gnome-session
yum -y install xterm
yum -y install xhost
yum -y install tigervnc-server
yum -y install ksh
yum -y install pam-devel.i686
yum install libstdc++.so.5

yum install gtk2.i686
yum install dejavu-lgc-sans-fonts

 

License

su db2inst1

db2licm -a db2ese_o.lic

PORT issues 

netstat -an | grep LISTEN

db2 get dbm config
db2 get dbm cfg | grep “(SVCENAME)”
db2 update dbm cfg using svcename db2c_db2inst1

vi /etc/services
db2c_db2inst1  50000/tcp

db2set -all
db2set DB2COMM=tcpip

 

AUTOSTART issues

for V10.1, 10.5

http://www-01.ibm.com/support/docview.wss?uid=swg21209001

 

./db2fm -s -S returns:
Gcf module ‘fault monitor’ is INSTALLED PROPERLY but NOT ALIVE
Gcf module ‘/opt/ibm/db2/V10.1/lib64/libdb2gcf.so’ is INSTALLED PROPERLY but NOT ALIVE

 

http://www-01.ibm.com/support/docview.wss?uid=swg21964393

vi /etc/systemd/system/db2fmcd.service

[Unit]
 Description=DB2V105
[Service]
 ExecStart=/opt/ibm/db2/V10.5/bin/db2fmcd
 Restart=always
[Install]
 WantedBy=default.target

Next execute:
systemctl enable db2fmcd
systemctl start db2fmcd

 

FIXPACK INSTALL

db2 installfixpack
su db2inst1
db2 force applications all
db2 terminate
db2stop
db2licd -end
exit

su dasusr1
db2admin stop
exit

stop Fault Monitor
/opt/ibm/db2/V10.1/bin/db2fm -i db2inst1 -D
FMCU started ?
/opt/ibm/db2/V10.1/bin/db2fmcu
prevent instance from autostart

cd /opt/ibm/db2/V10.1/instance/
./db2iauto -off db2inst1
restart

./installFixPack -b /opt/ibm/db2/V10.1/
./instance/db2iupdt db2inst1
./instance/dasupdt
enable autostart
cd /instance ./db2iauto -on db2inst1

 

UNINSTALL
su db2inst1
db2stop
su dasusr1
db2admin stop
as root
cd /opt/ibm/db2/10.1/instance/
./db2idrop db2inst1
./dasdrop
cd ../install/
./db2_deinstall -a

userdel
userdel -r db2inst1 dasusr1 db2fenc1 /without deleting existing users new installation will create new users like db2inst2 …