add -g 2002 db2asgrp
[root@L160 instance]# useradd -m -g db2asgrp -d /home/db2as db2as
[root@L160 instance]# passwd db2as //输入2次相同密码
Changing password for user db2as.
New UNIX password:Retype new UNIX password:
passwd: all authentication tokens updated successfully.
[root@L160 instance]# su - db2as
[db2as@L160 ~]$ su -
Password:
[root@L160 ~]# cd /opt/ibm/db2/V10.1/instance/
[root@L160 instance]# ./dascrt -u db2as
DBI1070I Program dascrt completed successfully.
[root@L160 instance]# su - db2as
[db2as@L160 ~]$ db2admin start
SQL4409W The DB2 Administration Server is already active.
[db2as@L160 ~]$ su - db2inst1 //确认db2inst1实例的服务名
Password:
[db2inst1@L160 ~]$ db2 get dbm cfg|grep SVCENAME
TCP/IP Service name (SVCENAME) =
SSL service name (SSL_SVCENAME) =
[db2inst1@L160 ~]$ db2 update dbm cfg using SVCENAME 50000
DB20000I The UPDATE DATABASE MANAGER CONFIGURATION command completed
successfully.
[db2inst1@L160 ~]$ db2 get dbm cfg|grep SVCENAME
TCP/IP Service name (SVCENAME) = 50000
SSL service name (SSL_SVCENAME) =
[db2inst1@L160 ~]$ db2licm -l //看一下License的情况,s
vcename在客户端连接时需要用到
Product name: "
DB2 Express-C"
License type: "Unwarranted"
Expiry date: "Permanent"
Product identifier: "db2expc"
Version information: "10.1"
Max number of CPUs: "2"
Max amount of memory (GB): "4"
Enforcement policy: "Soft Stop"