where:
filename | Any valid name for a spool file. If not specified, the file type or file extension is LOG. If a file by the specified name exists, an error is generated. |
OFF | Closes the previously opened spool file. |
Additional Information: The default filename is operating system specific. Refer to your operating system-specific Oracle documentation for the default filename on your operating system. To see whether you are currently spooling, enter SHOW SPOOL.
Example
To create a file named NOV2.LOG, enter:
SPOOL NOV2