You are on page 1of 2

SET LINESIZE 1000;

SET PAGESIZE 0;
SET TRIMSPOOL ON
SET WRAP OFF
SET TAB ON
SET colsep " | "

SET LINESIZE line_width


The LINESIZE setting controls the number of characters SQL*Plus prints on one
physical line. The default setting is 80 (150 in iSQL*Plus).
The maximum width is system-dependent, though it�s often 32,767 characters.
Range: 1 to 32767

SET PAGESIZE lines_on_page


The PAGESIZE setting tells SQL*Plus the number of printed lines that will fit on
one page of output.
lines_on_page: It is the number of lines you want SQL*Plus to print on one page.
This includes detail lines, header lines, and footer lines and top and bottom
margins (controlled by the TMARGIN and BMARGIN options).
The default value for PAGESIZE is 14 (24 in iSQL*Plus).
The default is 66 lines, which is suitable for printing report output on 8 1/2" by
11" paper.
Output Lines
--------------
Lines from PAGESIZE 66
Lines for TMARGIN - 2
Lines for the standard heading - 2
Lines for BMARGIN - 1
Lines available for output 61

You can turn off all pagination functions by issuing a SET PAGESIZE 0 command.
This will eliminate page titles, page footers, column titles, and any blank lines
or formfeeds from the NEWPAGE setting.

SET TRIMSPOOL {ON | OFF}


The TRIMSPOOL setting controls whether SQL*Plus writes trailing spaces when
spooling data to a file.
The default setting is OFF, which causes SQL*Plus to write each line to the spool
file in its entirety, trailing spaces and all.
SET TRIMSPOOL ON otherwise every line in the spool file is filled up with blanks
until the linesize is reached.
ON: Causes SQL*Plus to trim any trailing spaces from each line before it is written
to the spool file.
OFF: Causes SQL*Plus to write all characters of a line to the spool file, even the
trailing spaces. This is the default setting.

SET TRIMOUT {ON | OFF}


The TRIMOUT setting controls whether SQL*Plus displays any trailing spaces that may
occur at the end of a line.
The default setting is ON, which causes SQL*Plus to display only up to the last
nonblank character on a line.
ON: Causes SQL*Plus to trim any trailing spaces from each line before it�s
displayed. This is the default setting.
OFF: Causes SQL*Plus to display all characters on a line, even the trailing spaces.
Don't SET TRIMOUT OFF otherwise every line in the output is filled up with blanks
until the linesize is reached.
The default setting of ON usually works well when displaying data on a terminal, so
there�s rarely a reason to turn this setting off.
TRIMOUT has no effect on spooled output. If you are spooling output to a file, the
TRIMSPOOL setting controls whether trailing spaces are spooled as well.

SET WRAP {ON | OFF}


The WRAP setting controls how SQL*Plus prints lines that contain more characters
than the current LINESIZE setting allows.
With WRAP ON, long lines are wrapped around and continued on as many physical lines
as necessary.
With WRAP OFF, lines are truncated to match the LINESIZE setting.
ON: It is the default setting, Causes long lines to be wrapped around to two or
more physical lines in order to print and still fit within the LINESIZE setting.
OFF: Causes long records to be truncated to the current LINESIZE setting.

SET TAB {ON | OFF}


Determines how SQL*Plus formats white space in terminal output.
OFF: Forces SQL*Plus to use space characters for all whitespace.
ON: It is the default setting, and allows SQL*Plus to insert tabs into the output
rather than displaying a large number of space characters.

SET COLSEP {Separator | text}


Sets the text to be printed between selected columns.
set colsep " | " It will insert | between two column data.

SET ARRAY[SIZE] {15 | n}


Sets the number of rows, called a batch, that SQL*Plus will fetch from the database
at one time.

You might also like