Database Heap (dbheap)

Configuration Type
Database

Parameter Type
Configurable

Default [Range]

UNIX
1200 [ 32 - 524 288 ]

OS/2 and Windows NT Database server with local and remote clients
600 [ 32 - 524 288 ]

OS/2 and Windows NT Database server with local clients
300 [ 32 - 524 288 ]

Unit of Measure
Pages (4 KB)

When Allocated
First connection to the database

When Freed
When last application disconnects from the database

Related Parameters

There is one database heap per database, and the database manager uses it on behalf of all applications connected to the database. It contains control block information for tables, indexes, table spaces, and buffer pools. It also contains space for the log buffer (logbufsz), and the catalog cache (catalogcache_sz). Therefore, the size of the heap will be dependent on the number of control blocks stored in the heap at a given time. The control block information is kept in the heap until all applications disconnect from the database.

The minimum amount the database manager needs to get started is allocated at the first connection. The data area is expanded as needed up to the maximum specified by dbheap.

Recommendation: This value will need to be increased when an application receives an error indicating that there is not enough storage available in the database heap to process the statement.

You may use the database system monitor to track the highest amount of memory that was used for the database heap. See Maximum Database Heap Allocated for more information.

When setting this parameter, you should consider: