When logid has been created and the logfile built, the
Operator will control the logging process using the :LOG
command. The :LOG command allows the operator to start a
logging process to a new logfile, stop a
logging process (for example, to change attributes using
:ALTLOG, or to shut
the system down), or restart a logging process
to a logfile which has already been accessed.
Problems which may occur when using the :LOG command include:
The user of the :LOG command does not have OP
capabilities or the operator has not done an :ALLOW of
the :LOG command for the user.
START was specified instead of RESTART for a
file which already has records in it.
STOP was requested while user processes are accessing
the logfile.
Logging to DISC |
 |
When logging to DISC, for User Logging to continue when a full
logfile is encountered, the :CHANGELOG command may be used.
The :CHANGELOG command will open a new User Logging file with
the same attributes as the previous file. To use the :CHANGELOG
command, the User Logging filename specified in the
:GETLOG command must end with the three digits "001".
Each time a new logfile is constructed, by the CHANGELOG
command, the value represented by
the last three digits is incremented by 1 (for example,
filename001 ---> filename002). If the
logfile name specified with the :GETLOG command does not
end with the three digits "001", a warning will be given (to the user
issuing the command)
that the :CHANGELOG command will not be allowed for this
file.
If the ;AUTO option is specified with the :GETLOG
or :ALTLOG command for a disc file, where :CHANGELOG
is allowed, the User Logging process will automatically perform a
:CHANGELOG whenever the disc file becomes full. If
the ;AUTO option is not specified, when the disc logfile
becomes full the User Logging process will close the logfile
and terminate, preventing any applications which are linked to it from
writing any additional log records.
After a System Backup |
 |
Usually, when it is time to backup a database, the operator
will stop the logging processes; the database and all associated
logfiles will be stored off, and the old logfile(s) will be purged
from disc and rebuilt. If :CHANGELOG was allowed,
it is important
to use the :ALTLOG command to reset the last three digits
of the logfile name back to "001". Failure to do this will
cause problems when recovering data.