Number of Secondary Log Files (logsecond)

Configuration Type
Database

Parameter Type
Configurable

Default [Range]
2 [ 0 - 126 ]

Unit of Measure
Counter

When Allocated
As needed when logprimary is insufficient (see detail below)

When Freed
Over time as the database manager determines they will no longer be required.

Related Parameters

This parameter specifies the number of secondary log files that are created and used for recovery log files (only as needed). When the primary log files become full, the secondary log files (of size logfilsiz) are allocated one at a time as needed, up to a maximum number as controlled by this parameter. An error code will be returned to the application, and the database will be shutdown, if more secondary log files are required than are allowed by this parameter.

See Number of Primary Log Files (logprimary) for more information about how secondary logs are used.

Recommendation: Use secondary log files for databases that have periodic needs for large amounts of log space. For example, an application that is run once a month may require log space beyond that provided by the primary log files. Since secondary log files do not require permanent file space they are advantageous in this type of situation.