Entering content frame

 Editing Log Files of the Database Instance 

Use

You are deleting part of the content of the log files of the database instance or complete files.

This command can be used for log files only and not for other database files. If you use the command on a file for which it is not valid, you generate the error
-24996 ERR_PARAM - wrong parameters.

You specify the operation that you want to perform with the parameter OP.

Prerequisites

You have the DBM operator authorization DBFileRead.

You have used the command for creating the list of database files to find out the file ID of the file or group of files that you want to edit.

Syntax

file_operation <file_id> OP=DELETE [DATE=<yyyymmddhhmmss>] | OP=SHRINK DATE=<yyyymmddhhmmss>|LINE=<n>

<file_id>

Log file(s) of the database instance

OP=DELETE

The file(s) is/are deleted.

You can specify that all files that have not been changed since the specified date, DATE=<yyyymmddhhmmss>, are to be deleted.

OP=SHRINK

Part of the content of the file is deleted.

If you also specify the parameter DATE=<yyyymmddhhmmss>, all lines that were written before the specified date are deleted.

If, instead, you specify the parameter LINE=<n>, the contents of the file are reduced to <n> lines. The <n> lines that were written most recently are retained.

Reply

The system outputs an OK message.

In the event of errors, see Reply Format.

 

Leaving content frame