You delete parts of the contents 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 with files for which it
is not valid, you receive the error
-24996 ERR_PARAM - wrong
parameters.
· You have the server authorization DBFileRead.
· You have used the command for displaying the list of database files to find the file ID of the file or group of files that you want to process.
file_operation <file_ID> <action>
<action> :: = OP=DELETE [DATE=<yyyymmddhhmmss>] | OP=SHRINK <option>
<option> :: = DATE=<yyyymmddhhmmss> | LINE=<n>
Options
Option |
Description |
<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 the lines that were written before the specified date are deleted. If you specify the LINE=<n> parameter instead, the contents of the file are reduced to <n> lines. The <n> lines that were written most recently are retained |
OK
In the event of errors, see Reply Format.