db2 安裝過程小結

靜以致遠√團團發表於2015-01-21

工作需要,想了解一下IBM的DB2,今天安裝了一個DB2,發現DB2安裝要比ORACLE簡單的多

下載地址給出:

1、檢測安裝三個安裝包:

libaio

libstdc

compat-libstdc

2、如果需要的話,配置一下核心引數:

[root@xttdb ~]# cat /etc/sysctl.conf | grep -v '#'

net.ipv4.ip_forward = 0

net.ipv4.conf.default.rp_filter = 1

net.ipv4.conf.default.accept_source_route = 0

kernel.sysrq = 0

kernel.core_uses_pid = 1

net.ipv4.tcp_syncookies = 1

net.bridge.bridge-nf-call-ip6tables = 0

net.bridge.bridge-nf-call-iptables = 0

net.bridge.bridge-nf-call-arptables = 0

kernel.msgmnb = 65536

kernel.msgmax = 65536

kernel.shmmax = 4294967295

kernel.shmall = 268435456

kernel.shmall = 2097152

kernel.shmmax = 2147483648

kernel.shmmni = 4096

kernel.sem = 250 32000 100 128

fs.file-max = 65536

net.ipv4.ip_local_port_range = 1024 65000

net.core.rmem_default=262144

net.core.rmem_max=262144

net.core.wmem_default=262144

net.core.wmem_max=262144

3、如果想手動新增使用者,可以提前建立db2的使用者,個人比較懶,就在圖形介面裡直接預設配置了

[root@xttdb ~]# tail -3 /etc/passwd

dasusr1:x:505:101::/home/dasusr1:/bin/bash

db2inst1:x:506:102::/home/db2inst1:/bin/bash

db2fenc1:x:507:103::/home/db2fenc1:/bin/bash

4、解壓壓縮包,執行db2setup即可

[root@xttdb ~]# cd /opt/

[root@xttdb opt]# tar zxvf db2_v101_linuxia32_expc.tar.gz

[root@xttdb opt]# cd expc/

[root@xttdb expc]# ./db2setup

關鍵步驟貼圖如下

wps8078.tmp

wps80B7.tmp

wps80E7.tmp

wps8126.tmp

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/29320885/viewspace-1409043/,如需轉載,請註明出處,否則將追究法律責任。

相關文章