Home | Previous Page | Next Page   Logging and Log Administration > Managing Logical-Log Files >

Dropping Logical-Log Files

To drop a logical-log file and increase the amount of the disk space available within a dbspace, you can use onparams or ISA. The database server requires a minimum of three logical-log files at all times. You cannot drop a log if your logical log is composed of only three log files.

The rules for dropping log files have changed:

To drop a logical-log file with onparams
  1. Ensure that the database server is in online, single-user, or quiescent mode.
  2. Execute the following command to drop a logical-log file whose log file number is 21:
    onparams -d -l 21

    Drop log files one at a time. You must know the log file number of each logical log that you intend to drop.

  3. If the log file has a status of newly Added (A), it is dropped immediately.

    If the log file has a status of Used (U), it is marked as Deleted (D).

  4. To drop a used log file, take a level-0 backup of all the dbspaces.

    This backup prevents the database server from using the dropped log files during a restore and ensures that the reserved pages contain information about the current number of log files.

For information on using onparams to drop a logical-log file, see the IBM Informix Administrator's Reference.

For information on using onlog to display the logical-log files and unique ID numbers, see Displaying Logical-Log Records.

To drop a logical-log file with ON_Monitor (UNIX)
  1. Ensure that the database server is in online, single-user, or quiescent mode.
  2. To drop a logical-log file, select Parameters > Drop-Log.
  3. If the log file has a status of newly Added (A), it is dropped immediately.

    If the log file has a status of Used (U), it is marked as Deleted (D).

  4. To drop a used log file, take a level-0 backup of all the dbspaces.
Tip:
If the root dbspace has never been backed up, you can drop a used log file immediately.
Home | [ Top of Page | Previous Page | Next Page | Contents | Index ]