Manually Configuring DB2 9
Manually Configuring DB2 9
x
Procedure
1. Log in to the system as a user that has administrative permissions on the system.
2. Create system users if they do not exist on the system.
Windows
db2admin
maximo
3. Open a console window and set up the DB2 environment:
Windows
db2cmd
1. Create the DB2 instance:
Windows
db2icrt -s ese -u db2admin,db2admin -r 50005,50005 ctginst1
set db2instance=ctginst1
db2start
db2 update dbm config using SVCENAME 50005 DEFERRED
db2stop
db2set DB2COMM=tcpip
db2start
update
update
update
update
update
update
update
update
update
update
update
update
update
update
update
update
update
db
db
db
db
db
db
db
db
db
db
db
db
db
db
db
db
db
cfg
cfg
cfg
cfg
cfg
cfg
cfg
cfg
cfg
cfg
cfg
cfg
cfg
cfg
cfg
cfg
cfg
for
for
for
for
for
for
for
for
for
for
for
for
for
for
for
for
for
maxdb75
maxdb75
maxdb75
maxdb75
maxdb75
maxdb75
maxdb75
maxdb75
maxdb75
maxdb75
maxdb75
maxdb75
maxdb75
maxdb75
maxdb75
maxdb75
maxdb75
using
using
using
using
using
using
using
using
using
using
using
using
using
using
using
using
using
SELF_TUNING_MEM ON
APP_CTL_HEAP_SZ 16384 DEFERRED
APPLHEAPSZ 2048 AUTOMATIC DEFERRED
AUTO_MAINT ON DEFERRED
AUTO_TBL_MAINT ON DEFERRED
AUTO_RUNSTATS ON DEFERRED
AUTO_REORG ON DEFERRED
AUTO_DB_BACKUP ON DEFERRED
CATALOGCACHE_SZ 800 DEFERRED
CHNGPGS_THRESH 40 DEFERRED
DBHEAP AUTOMATIC
LOCKLIST AUTOMATIC DEFERRED
LOGBUFSZ 1024 DEFERRED
LOCKTIMEOUT 300 DEFERRED
LOGPRIMARY 20 DEFERRED
LOGSECOND 100 DEFERRED
LOGFILSIZ 8192 DEFERRED
6. Restart DB2.
db2stop force
db2start
10.
db2 GRANT
DBADM,CREATETAB,BINDADD,CONNECT,CREATE_NOT_FENCED_ROUTINE,IMPLICIT_SCHEM
A,LOAD,CREATE_EXTERNAL_ROUTINE,QUIESCE_CONNECT,SECADM ON DATABASE TO
USER MAXIMO
db2 GRANT USE OF TABLESPACE MAXDATA TO USER MAXIMO
db2 GRANT
11.