In single user mode, the trace ends when the application server ends. (Remember, you cannot enter operator commands in single user mode.) To deactivate a trace in multiple user mode, enter the following operator command:
.-CLOSE---. >>-TRACE OFF----+---------+---+-----------+-------------------->< '-NOCLOSE-' '-TRCPURGE--' |
If you are tracing to tape, specify either CLOSE or NOCLOSE and then TRACE ON to create multiple trace output files.
In DB2 Server for VM you must specify the LEAVE option on the ARITRAC FILEDEF command.
Note: | You can use the LEAVE option to process these files sequentially when you are formatting trace output. |
If you end normally, the trace file is closed automatically. If the application server is ended abnormally, the file may not be closed successfully. A message is displayed whenever the trace file is closed successfully.
If the trace file is a tape and is not closed successfully, you can still try to format it. Information near the end of the trace might not be processed, however, and the trace formatting utility will probably terminate abnormally. You can also try to write a tape mark on the trace tape before you attempt to format it. (The trace tape is not automatically rewound.)