Message Log File Management

By default, the message log file grows to an unlimited size, and exists until you drop the database. To control the size of the message log file, you can set a limit on the size of the file and enable either message log wrapping or log archiving.

You can delete, rename, or copy the message file at any time after stopping the database.

Message log management is controlled by either the server properties IQMsgMaxSize and IQMsgNumFiles, or the server startup switches -iqmsgsz and -iqmsgnum:

The value of the server property takes precedence over the corresponding server startup switch. When the server starts, the values of the -iqmsgsz and -iqmsgnum server switches are written in the server log file.

For information on setting the IQMsgMaxSize and the IQMsgNumFiles server properties, see Reference: Building Blocks, Procedures > System Procedures > sa_server_option system procedure.

For information on setting the -iqmsgsz and -iqmsgnum server startup switches, see Utility Guide > start_iq Database Server Startup Utility.

Note: The IQMSG_LENGTH_MB database option has been deprecated; remove it from existing scripts and code. Attempts to use IQMSG_LENGTH_MB return an error.