DB2 setting in linux

简介: Install db2 in linux, you can use a GUI mode or cmd mode.GUI mode always needs a jre.CMD mode do not need it.This article will tell mainly about CMD mode install.1.Run the install.sh to install.
Install db2 in linux, you can use a GUI mode or cmd mode.
GUI mode always needs a jre.
CMD mode do not need it.
This article will tell mainly about CMD mode install.

1.Run the install.sh to install.
2.Copy license file
    //adm/db2licm -a /mnt/cd/db2/license/db2ese.lic
3.Enable SMS
    /opt/IBM/db2/V8.1/cfg/db2ln
4.Add group:
    groupadd db2iadm1
    groupadd db2fadm1
    groupadd db2usrgp
    
    the first one is for instance user, second one is for fence user, third one is for normal user.
5.Add user:
    useradd -g db2iadm1 -d /home/db2inst1 -m db2inst1
    useradd -g db2fadm1 -d /home/db2fenc1 -m db2fenc1

    the first user is for instance, second one is for fence. The option -d -m is to create its home folder.


6.Create instance
    //instance/db2icrt -a server -u db2fenc1 db2inst1

    that means create a instance using fence user as db2fenc1 instance user as db2inst1
7.Config db2setting
    su db2inst1

    First to switch to instance user to run db2 commands.

    db2set
    For example:
        db2set DB2_EXTENDED_OPTIMIZATION=ON
        db2set DB2_DISABLE_FLUSH_LOG=ON
        db2set AUTOSTART=YES
        db2set DB2_STRIPED_CONTAINERS=ON
        db2set DB2_HASH_JOIN=Y
        db2set DB2COMM=tcpip
        db2set DB2_PARALLEL_IO=*
        db2set DB2CODEPAGE=819
8.Update dbm cfg
    db2 update dbm cfg using SVCENAME db2inst1
    db2 update dbm cfg using INDEXREC ACCESS
    
    Pay attention that the SVCENAME will be the name using in /etc/services
9.Add service port
    echo "db2inst1         50000/tcp">>/etc/services

    You can also edit the /etc/services to add the words.
    Pay attention that the db2inst1 is SVCENAME db2inst1
10.Start db2
    db2start

相关文章
|
关系型数据库 Linux 网络安全
db2在linux下安装
db2在linux下安装
db2在linux下安装
|
关系型数据库 Linux 网络安全
Linux环境下 对db2进行数据备份
Linux环境下 对db2进行数据备份
|
关系型数据库 Linux 数据库
Linux环境下 对db2进行分区迁移
Linux环境下 对db2进行分区迁移
|
关系型数据库 Linux 数据库
Linux命令下操作db2数据库
Linux命令下操作db2数据库
|
关系型数据库 Linux 数据库
|
网络协议 关系型数据库 Linux
|
关系型数据库 Linux 数据库
关于linux下DB2创建数据库报错问题
公司业务需要,把服务搭在中标下,在中标下装了DB2 Express-C v9.7.1,之前用着没有问题,隔了一段时间没用,最近又需要用到它,出了一些菜鸟问题,记录下来以免有人和我犯同样的错误。。。进入正题。
905 0
|
存储 关系型数据库 Linux
Linux下安装DB2_v9.7详细教程
一:平台 1:HP服务器 cpu:Inter (R) Xeon (R) E5606 2.13G 磁盘:本地磁盘外加存储 2:操作系统 RedHet 5.4 64位 内核:2.6.18-194.1.AX53 3:数据库 Db2_v9.7     X86_64 二:安装操作系统 把RedHat 5.4  64位光盘放入光驱,如果有存储,先把存储线拔掉,再装系统。
1262 0
|
关系型数据库
db2 for linux
https://www6.software.ibm.com/sdfdl/v2/regs2/db2pmopn/db2_v101/expc/Xa.2/Xb.aA_60_-idYiSFeSuWlF5-w4vKi8qAX5nY0-1hvNugA/Xc.
583 0