Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> Re: Running SQLPlus from command line
RLN wrote:
>>> Syntax error: no terminating semicolon ; <<
The SPOOL command takes the output of SQL*Plus and writes it to a file. As such, if you do not like the formatting, change in SQL*Plus.
To change the length of the line of output, use the following:
SET LIN xxx
Where xxx is the number of characters. The default is too short.
To change the formatting of a column (including the length of a column), use the COLUMN command in SQL*Plus.
Please refer to the SQL*Plus documentation for these two commands to see how they can help you format your report:
http://download-east.oracle.com/docs/cd/B19306_01/server.102/b14357/ch6.htm#i1081008
You can add the SET and COLUMN commands in your script before you start the SPOOL.
-- =================================================================== Brian Peasland dba_at_nospam.peasland.net http://www.peasland.net Remove the "nospam." from the email address to email me. "I can give it to you cheap, quick, and good. Now pick two out of the three" - UnknownReceived on Fri Oct 13 2006 - 10:04:10 CDT
![]() |
![]() |