You must make sure the changes are effective in both disk and memory.
You may check this using the db2pd command (released with version 8.2) or using GET DATABASE CONFIGURATION command as mentioned by Ian above.
The major difference is that db2pd command does not require a connection to database, where as GET DATABASE CONFIGURATION FOR dbname SHOW DETAIL does require a connection(note the SHOW DETAIL clause, this requires a connection - not the standard GET DATABASE CONFIGURATION FOR dbname command)
db2pd -d dbname dbcfg | egrep 'LOGFILSIZ|LOGPRIMARY|LOGSECOND'
This will list the below 3 values-
Description Memory Value Disk Value
Log file size (4KB) (LOGFILSIZ) = 1024 4000
Number of primary log files (LOGPRIMARY) = 13 10
Number of secondary log files (LOGSECOND) = 20 20
You may note that the LOGSECOND changes are effective at both the disk and memory immediately, whereas the other 2 require a DB restart for the change to be effective in memory - and hence for the DB to actually have it in use.
And for restart, you may follow standard order - deactivate DB, shutdown instance, issue a clean up of resources, start the instance and then activate DB and verify the above values are same on both disk and memory.
- db2 deactivate db dbname
- db2stop
- ipclean -a
- db2start
- db2 activate db dbname