Preventing Emergency Logical-Log Backup
Use
When the logical log in your Informix database is full, you must do an emergency logical-log backup, which is time-consuming and difficult. Therefore, SAP recommends that you take the preventive measures discussed in this section to avoid a full logical log.

The measures in this section ought to be part of your general approach to logical-log backup, so that you avoid the problem of a full logical log. Refer to:
Procedure
This is the most important prevention against emergency logical-log backups. If other measures fail, this parameter always prevents the logical log filling completely. It specifies how many logical-log files the database server always preserves (that is, avoids writing logging data to). Set it as follows:
LBU_PRESERVE 1

Another name for this parameter is the "Logs-Full High-Water Mark." It works as follows (note that its default value is 0).
If
LBU_PRESERVE is set to 1 , all sessions performing update, delete, and insert operations stop when the last but one logical-log file has filled up. You see the following in the message log:Logical log files are almost full - backup is needed
Once the logical log has been backed up, processing can continue.
You can view the message log with SAPDBA. Refer to
System Information. To find the location of the Informix message log on your system, see the MSGPATH parameter in the ONCONFIG file.You can use this parameter to specify the path to an event-handling program, such as
logevent.sh (for ON-Archive ) or log_full.sh ( ON-Bar ). The scripts automatically back up the logical log. You set ALARMPROGRAM in the ONCONFIG file.For more information, see:
-
Choosing Automatic Logical-Log Backup (ON-Archive)-
Choosing Continuous or Manual Logical-Log Backup (ON-Bar)You can use these scripts to automate the backup of your logical log. For an overview of the scripts, see
These scripts can only be used with automatic backup of the logical log. Refer to
Choosing Automatic Logical-Log Backup (ON-Archive).Result
You can be sure that your logical log does not fill up, which means that the database stops processing and you have to perform an
emergency logical-log backup.
See also:
Informix documentation