SET
SET parameter_setting
The SET command is used to customize SQL*Plus’ operations to your needs. For example:
SET DEFINE OFF SET SERVEROUTPUT ON SIZE 1000000 - FORMAT WORD_WRAPPED SET NULL '***'
Controls automatic registration of command files using the DBMS_APPLICATION_INFO package.
Sets the number of rows that SQL*Plus will return at one time from the database when executing a query. The default is 1.
Controls whether SQL*Plus automatically commits your changes. Also specifies the number of statements to allow between each commit.
Controls whether SQL*Plus automatically prints the contents of bind variables after they have been referenced in a SQL statement or PL/SQL block.
When turned on, allows the RECOVER command to run without user intervention.
Enables and disables the automatic display of the execution plan and execution statistics for a SQL statement.
Sets the character used to terminate entry of a PL/SQL block. The default is a period.
Allows you to switch between buffers. Note that only one buffer can be used for executing SQL statements.
Controls whether SQL*Plus keeps the statement cursor open all the time.
Controls whether you can enter multiple SQL statements on one line and also sets the separator character. If you turn this option on, then the default separator character is a semicolon.
Controls the text used to separate columns of data. The default is to separate columns using one space.
Specifies the Oracle release with which SQL*Plus should be compatible. The default behavior is to let SQL*Plus decide this automatically.
Specifies the concatenation character, which marks the end of a substitution variable name in a SQL*Plus statement, SQL statement, or PL/SQL block. The default character is a period.
Controls how often SQL*Plus commits during the execution of a COPY command. The default is 0.
Controls whether type checking is done when using the COPY command to copy data from one table to another.
Specifies the character used to define a substitution variable. The
default is the ampersand character (&
).
Controls whether SQL*Plus displays documentation demarcated by the DOCUMENT command.
Controls whether SQL*Plus displays commands from a command file as they are executed.
Specifies the name of the work file used when you invoke an external
editor using the EDIT command. The default name is
afiedt.buf
.
Enables and disables the embedded report feature. This allows you to combine two reports into one without resetting the page numbering.
Specifies the escape character, which is used in front of the
substitution variable prefix character (usually an ampersand), when
you want that character interpreted literally and not as part of a
variable name. The default character is a backslash (
).
Controls whether and when SQL*Plus displays the number of rows affected by a SQL statement.
Controls whether SQL*Plus checks your statements for compliance with ANSI/ISO syntax.
Controls whether output may be buffered.
Controls whether column headings are displayed when selecting data.
Controls the character used to make a line break in a column heading.
The default is a vertical bar (|
).
Specifies the default database instance to use with the CONNECT command.
Specifies the size of a line in terms of characters. The default LINESIZE is 80 characters.
Is an index into a LONG column, specifying the first character to be displayed. The default is 1.
Tells SQL*Plus where to find archive log files for recovery. There is no default.
Specifies the maximum number of characters to display from a column of type LONG. The default is 80.
Controls the number of characters retrieved from a LONG column at one time. The default is 80.
Sets the maximum row length that SQL*Plus can handle. This is an obsolete setting, and there is no default.
Allows you to specify the markup language to use when generating output. Except for HTML, all markup options are optional. The following are valid markup options:
Specifies the markup language to use and enables or disables the use of that markup language. In release 8.1.6, this is a mandatory option.
Specifies content for the <head> tag. The tag ends up being written as <head>text < /head>. There is no default.
Specifies content for the <body> tag. The tag ends up being written as <body text >. There is no default.
Controls whether SQL*Plus uses HTML equivalents such as < and > for special characters.
Controls whether SQL*Plus writes to the spool file using plain text or the specified markup language (currently HTML).
Controls whether spooled report output is enclosed within <pre>...</pre> tags.
On some operating systems, you need to enclose the entire string of markup options within double quotes.
Controls the number of lines that SQL*Plus prints between pages. A value of zero causes SQL*Plus to print a form-feed character between each page. The default is 1.
Controls the text that SQL*Plus uses to represent a null value. The default is to represent nulls by a space.
Sets the default display format for numbers. There is no default format.
Sets the default display width for numbers. SET NUMFORMAT takes precedence over this value. The default width is 9.
Specifies the number of printable lines on a page. The default is 24.
Controls whether SQL*Plus pauses after each page of output.
Controls whether a record-separator line is printed between lines of output. The default is to print separators only when one of the column values in a record has wrapped.
Controls the character to use for the record separator. The default record separator is a line of space characters.
Enables and disables user variable substitution. This is obsolete in favor of SET DEFINE.
Controls whether SQL*Plus prints output from PL/SQL blocks.
Controls the display of shift characters on IBM 3270 terminals.
Controls whether SQL*Plus displays the before and after values when you change a setting.
Specifies the number of spaces to print between columns. The default is 1. This is obsolete in favor of SET COLSEP.
Controls whether you may enter blank lines as part of a SQL statement. This feature was introduced in release 8.1.5.
Controls automatic case conversion of SQL statements and PL/SQL blocks.
Allows you to change the continuation prompt used for multiline SQL
statements. The default is greater-than (>
).
Controls whether SQL*Plus uses the line number as a prompt when you enter a multiline SQL statement.
Specifies the SQL*Plus prefix character, which allows you to execute
a SQL*Plus command while entering a SQL statement or PL/SQL block
into the buffer. The default is a pound sign (#
).
Allows you to change the SQL*Plus command prompt. The default is SQL>.
Controls whether terminating a SQL statement using the semicolon causes it to be executed. Also allows you to change the termination character to something other than a semicolon.
Specifies the default extension used for command files. The default
is .sql
.
Controls whether SQL*Plus uses tab characters to format whitespace.
Controls whether SQL*Plus displays output generated from a SQL*Plus script file.
Controls whether SQL*Plus displays the current time as part of the command prompt.
Controls whether SQL*Plus displays the elapsed execution time for each SQL statement or PL/SQL block.
Controls whether SQL*Plus trims trailing spaces from lines displayed on the screen.
Controls whether SQL*Plus trims trailing spaces from lines written to a spool file.
Controls whether SQL*Plus truncates long lines.
Sets the character used to underline column headings. The default is a hyphen.
Controls whether SQL*Plus displays before and after images of lines containing substitution variables.
Controls whether SQL*Plus wraps or truncates long lines.