Professional Documents
Culture Documents
README Sqlplus
README Sqlplus
Release Bulletin
SQL*Plus Release 9.0.1 Production
June 2001
-------------------------------------------------------------------------------
README.doc README.doc README.doc README.doc README.doc README.doc
-------------------------------------------------------------------------------
Contents
--------
2. Documentation
----------------
iSQL*Plus
SET APPINFO
Command line switches
SET SQLPLUSCOMPATIBILITY
/ (slash)
iSQL*Plus
---------
SET APPINFO
-----------
The default for SET APPINFO has been changed to OFF. This allows
some privileged DBA operations to be executed.
The version and usage command line switches have been standardized
as:
-V[ERSION]
-H[HELP]
SET SQLPLUSCOMPATIBILITY
------------------------
/ (slash)
---------
Parsing of the /(slash) command has changed. The new behavior in
Release 9.0.1 permits spaces before the /(slash). Prior to this
release, /(slash) was required to be the first character on the line.
If you want the old behavior in Release 9.0.1, you must install patch
1776566. You can obtain this patch from Oracle Support Services. Once
patch 1776566 is installed, you can enable the old /(slash) behavior
with the SET SQLPLUSCOMPATIBILITY command.
Overview:
You can use SET MARKUP HTML ON SPOOL OFF to generate HTML
output suitable for embedding in an existing web page. Output
generated this way has no <HTML> or <BODY> tags, but is marked
up in HTML format.
Syntax:
The new MARKUP syntax for SQLPLUS -MARKUP and SET MARKUP is:
For further details about the MARKUP option, see Chapter 7 and
the SET MARKUP command in Chapter 8 of the SQL*Plus User's
Guide and Reference.
SQLPLUS -MARKUP
SET MARKUP
SHOW MARKUP
SQLPLUS -RESTRICT
Help System
SHOW MARKUP
-----------
A new system variable, MARKUP, has been created for use with
SQLPLUS -MARKUP and SET MARKUP. You can use SHOW MARKUP to see
the status of MARKUP options.
SQLPLUS -RESTRICT
-----------------
The syntax for the SQLPLUS command is now:
See Section 3.1 for the latest syntax for -MARKUP markup_option.
Help System
-----------
Note the help system documents only SQL*Plus, not SQL or PL/SQL
commands.
SET SQLBLANKLINES
SHOW SQLBLANKLINES
SQL*Plus Messages
SET SQLBLANKLINES
-----------------
Controls whether SQL*Plus allows blank lines within a SQL
command. ON interprets blank lines and new lines as part of a
SQL command. OFF, the default value, does not allow blank lines
or new lines in a SQL command. SQL*Plus returns to the default
behavior when a SQLTERMINTATOR or BLOCKTERMINATOR is
encountered. The syntax is:
Example:
--------
SQL> SET SQLBLANKLINES OFF
SQL> select *
2
SQL>
SQL> SET SQLBLANKLINES ON
SQL> select *
2
3 from
4
5 dual
6
7 ;
D
-
X
SQL>
SHOW SQLBLANKLINES
------------------
The SHOW SQLBLANKLINES command displays whether the SET
SQLBLANKLINES command is set ON or OFF. SQL*Plus allows
blanklines in SQL commands when SET SQLBLANKLINES is ON. The
syntax is:
SHOW SQLBL[ANKLINES]
SQL*Plus Messages
-----------------
The success message returned from any CREATE/ALTER/DROP SNAPSHOT
or SNAPSHOT LOG commands has been altered to use the phrase
"Materialized view". The terms "snapshot" and "materialized
view" are synonymous. These commands are documented in the
Oracle8 SQL Reference. For example:
The prefix for SQL*Plus Messages has changed for this release.
SQL*Plus Messages
-----------------
SQL*Plus errors and messages now have a prefix of "SP2". The
syntax of the error message is similar to that of the COPY
command error messages, for example :
or
ARCHIVE LOG
DESCRIBE
RECOVER
SET
AUTORECOVERY
DESCRIBE
INSTANCE
LOGSOURCE
SHOW
AUTORECOVERY
DESCRIBE
INSTANCE
LOGSOURCE
PARAMETERS
SGA
SHUTDOWN
STARTUP
ARCHIVE LOG
-----------
Starts or stops automatic archiving of online redo log files,
manually (explicitly) archives specified redo log files, or
displays information about redo log files. The syntax is:
ARCHIVE LOG {LIST|STOP}|{START|NEXT|ALL|integer} [TO destination]
DESCRIBE
--------
The DESCRIBE command can now describe objects recursively to the
level set in the SET DESCRIBE command. It can also display the
line number and indentation of an attribute or column name when
an object contains multiple object types. Use the SET LINESIZE
command to control the data display width. The syntax is:
DESCRIBE {object}
Example:
--------
To describe the table EMP, enter
SQL>DESCRIBE EMP
RECOVER
-------
Performs media recovery on one or more tablespaces, one or more
datafiles, or the entire database. The syntax is:
SET Command
-----------
The SET command has four new clauses, AUTORECOVERY, DESCRIBE,
INSTANCE, and LOGSOURCE.
The default for SET DESCRIBE DEPTH is 1 and can be any figure
between 1 and 50. SET DEPTH ALL describes all objects up to a
depth of 50 levels. The default for SET DESCRIBE LINENUM is
OFF. The default for SET DESCRIBE INDENT is OFF.
The SET INSTANCE command changes the default instance for your
session to the specified instance path. The syntax is:
The SHOW AUTORECOVERY command displays the setting for the SET
AUTORECOVERY command. The syntax is:
SHOW AUTORECOVERY
The SHOW DESCRIBE command displays the setting for the SET
DESCRIBE command. The syntax is:
SHOW DESCRIBE
The SHOW INSTANCE command displays the setting for the SET
INSTANCE command. The syntax is:
SHOW INSTANCE
The SHOW LOGSOURCE command displays the setting for the SET
LOGSOURCE command. The syntax is:
SHOW LOGSOURCE
The SHOW PARAMETERS command displays the current values for one
or more initialization parameters. You can use a string after
the command to see a subset of parameters whose names include
that string. The syntax is:
SHOW SGA
SHUTDOWN
--------
Shuts down a currently running Oracle instance, optionally
closing and dismounting a database. The syntax is:
SHUTDOWN [ABORT|IMMEDIATE|TRANSACTIONAL|NORMAL]
STARTUP
-------
Starts an Oracle instance with several options, including
mounting, and opening a database. The syntax is:
STARTUP [FORCE][RESTRICT][PFILE=filename][MOUNT[OPEN[RECOVER]]
[database]][mount_options]|[NOMOUNT]
[EXCLUSIVE|[PARALLEL|SHARED][RETRY]]
CONNECT
-------
The syntax of CONNECT command is extended to support the "mode"
of connection. The syntax is:
username[/password][@database_specification]|/
CREATE TYPE
-----------
The CREATE TYPE command is processed as a PL/SQL command.
DESCRIBE
--------
The describe command now supports the following objects:
TABLE/VIEW
PROCEDURE/FUNCTION
SYNONYM
PACKAGE
OBJECT TYPE
PASSWORD
--------
Allows password to be change without echoing the password on an
input device. The syntax is:
PASSW[ORD] [username]
CONNECT
-------
If you logon or connect as a user whose account has expired, you
will be prompted to change your password before being allowed to
connect.
SET Commands
------------
- The SET MAXDATA and CLOSECURSOR commands have been obsoleted and
have no effect in SQL*Plus 8.0.4
- The SET NEWPAGE command has the new keyword NONE. The syntax is:
- The SET command now has a LOBOFFSET clause. The syntax is:
VARIABLE
--------
The VARIABLE command now supports bind variables of following
datatypes:
NCHAR
NVARCHAR2
NCLOB
CLOB
SHOW ERRORS
-----------
The syntax is:
ATTRIBUTE
---------
The ATTRIBUTE command has been introduced. It can be used to
format the attribute of an object when that object is
selected. The format of an attribute will not be affected when
selected as object.attribute, however, the COLUMN command can be
used in this case. The syntax is:
ALI[AS] alias
CLE[AR]
FOR[MAT] format
LIKE {type_name.attribute_name|alias}
ON|OFF
{EXIT|QUIT} [SUCCESS|FAILURE|WARNING|n|variable|:BindVariable]
[COMMIT|ROLLBACK]
Version Variable
----------------
A new define variable _SQLPLUS_RELEASE contains a numeric form
of the SQL*Plus release number. The format is the same as the
Oracle Server release number _O_RELEASE already available.
4. Bugs Fixed
-------------
- Recovery dialog no longer prompts for a log when end of disabled thread
reached (1111709)
- Recovery dialog no longer terminates when bad log name is entered (1169101)
- Describe command can now describes synonyms based on schema object created
with double quotes (1598520, 1217127, 1035350)
- SHOW ERRORS shows the errors for ALTER TYPE COMPILE BODY (1341524)
- SQL*Plus now gives an error instead of prompting for a password when a user
is not in the DBA group (1657213)
- SQL*Plus now accepts scripts from the Operating System with a space between
the '@' sign and the script name (1714104, 1617267)
- SQL*Plus now handles input files that have a control/d (EOF) character
(1265859)
- "SP2-0614: Server version too low for this feature" will no longer
appear when "glogin.sql" contains 'set serveroutput on' (1552238)
- SQL*Plus now allows for blank spaces before the '/' to terminate and
execute a PL/SQL block (1312929)
- The TABLE clause was added to SET MARKUP usage message (1288901)
- Some problems with SHOW ERRORS for Java source with multibyte
characters have been fixed (1458572)
- HTML tags for output after a SKIP are now valid (1477515)
- A problem with HTML tag markup and BTITLE has been fixed (1477529)
- DESCRIBE object does not give consistent information for object type
method has been fixed (997861)
- SET AUTOTRACE ON does not work with certain character set on the client
side. It results in ORA-00923 (1200008)
- The status of ENTMAP was being altered by other HTML options (1001773)
- Fixed various memory access errors and small leaks for error
conditions when selecting object types that SQL*Plus cannot
convert to a text representation (984823, 886471)
- SQL*Plus must trap for the server status and handle accordingly to
allow re-connection after a server status changes (949590)
- SQL*Plus now does not issue a recovery unless the OPEN fails with
recovery needed error (963874)
- Include quote for the head & body option for the markup command
when issuing the store command (989120)
- When selecting CLOB column with Japanese character set, some chars
were missing (1008404)
- Inconsistent case for meta tag in set markup html command (994545)
- Show errors prints incorrect message for java object that has
compilation errors (1132921)
- SQL*Plus does not free temporary lob after data is fetched and
displayed (1282663)
- On Windows NT, errors from trying to run a console file are now
echoed to spool files (617398)
- SQL*Plus on Windows NT and UNIX now have similar output for HELP,
BREAK, and SET TIMING (690909, 874656)
- The statistics for AUTOTRACE now report only on the user SQL. The
AUTOTRACE features also works for externally authenticated
("OPS$") users (690925)
- The initial extent size of the HELP table has been reduced
(691638)
- Dynamic SQL compilation errors within PL/SQL blocks are now trapped.
Use the expliction object name with SHOW ERRORS to view the warnings
(716198)
- The default format for number types in collections is now the same
as for scalar columns (731416)
- SET LOGSOURCE "" is now accepted. This allows files created with
the STORE SET command to be loaded without error (734764)
- SET AUTOTRACE shows the correct output when using stored outlines
(757580)
- SHOW PARAMETER now orders output so the parameters that can have
multiple initialization file entries are listed in the order they
were written (776577)
- Error messages from STARTUP and SHUTDOWN now have individual error
messages (820683)
- A memory access error for the PRINT command has been fixed (836620)
- A problem causing ORA-1458 when using COPY has been fixed (898213)
- The SET DESCRIBE usage message is no longer hard coded and may now
be translated (930478)
- The maximum length for spool file names was increased. Error
checking was improved to prevent a core dump with long names
(690415)
- DESCRIBE A TYPE DOES NOT DISPLAY THE SCHEMA OF THE TYPES OF ITS ATTRIBUTES
(654349)
- RECONNECCT AFTER ALTER USER USER1 PASSWORD EXPIRE WILL RESULT DISCONNECT
(661550)
- SQLPLUS EXITS WITH MULTIPLE ORA-1012S AND MEMORY ERROR AFTER INVALID
'CONNECT' (661485)
5. Known Restrictions
---------------------
6. Desupport Notices
--------------------
COPY Command
------------
-------------------------------------------------------------------------------
README.doc README.doc README.doc README.doc README.doc README.doc
-------------------------------------------------------------------------------