DB2
| Perform the following steps to create a DB2 database:
- Install DB2.
- Open a DB2 command
window and type db2 create database db_name using
codeset UTF-8 territory US.
- Enter the following database tuning commands:
- db2 update database configuration for db_name using
applheapsz 1024
- db2 update database configuration for db_name using
stmtheap 4096
- db2 update database configuration for db_name using
app_ctl_heap_sz 2048
- db2 update database configuration for db_name using
locklist 1024
- db2 update database configuration for db_name using
indexrec RESTART
- db2 update database configuration for db_name using
logfilsiz 1000
- db2 update database configuration for db_name using
logprimary 12
- db2 update database configuration for db_name using
logsecond 10
- db2 update database configuration for db_name using
sortheap 2048
- db2set DB2_RR_TO_RS=yes
Warning: If you receive the following
errors after running the tuning commands, you can ignore them because the
system will correct itself after running the configuration task; check with
your database vendor for additional information:
db2 => update database configuration for lside using locklist 1024
SQL5146W "MAXLOCKS" must be set to "MANUAL" when "LOCKLIST" is "MANUAL".
"MAXLOCKS" has been set to "MANUAL".
db2 => update database configuration for lside using sortheap 2048
SQL5147N "sortheap" cannot be set to MANUAL if "sheapthres_shr" is AUTOMATIC.
|