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

Moving a Logical-Log File to Another Dbspace

You might want to move a logical-log file for performance reasons or to make more space in the dbspace, as explained in Location of Logical-Log Files. To find the location of logical-log files, see Monitoring Logging Activity. Although moving the logical-log files is not difficult, it can be time-consuming.

Moving logical-log files is a combination of two simpler actions:

The following procedure provides an example of how to move six logical-log files from the root dbspace to another dbspace, dbspace_1.

Warning:
You cannot move logical and physical log files in dbspaces that have non-default page sizes.
To move the logical-log files out of the root dbspace (example)
  1. Ensure that the database server is in online, single-user, quiescent, or fast-recovery mode.
  2. Add six new logical-log files to dbspace_1.

    See Adding Logical-Log Files Manually.

  3. Take a level-0 backup of all storage spaces to free all log files except the current log file.

    (If you use onbar -l -b -c, you back up all log files including the current log file.) See Freeing a Logical-Log File.

  4. Use onmode -l to switch to a new current log file.

    See Switching to the Next Logical-Log File.

  5. Drop all six logical-log files in the root dbspace.

    You cannot drop the current logical-log file.

    See Dropping Logical-Log Files.

  6. Create a level-0 backup of the root dbspace and dbspace_1.

    For more information, see the IBM Informix Backup and Restore Guide.

Home | [ Top of Page | Previous Page | Next Page | Contents | Index ]