SQL*Plus Release Notes Release 10.1 Part Number B12172-01 |
|
December 2003
Part No. B12172-01
This document summarizes requirements, differences between SQL*Plus and its documented functionality, new features in this release and support information. It contains the following topics:
SQL*Plus (including iSQL*Plus) is certified against the operating systems set out in the operating-system specific Oracle Database documentation.
SQL*Plus (including iSQL*Plus) is certified against Oracle Database 10g Release 1 (10.1) and all supported versions of the Oracle Server.
The standardization of iSQL*Plus to use Oracle Containers for Java (OC4J) has altered some iSQL*Plus configuration and interfaces. This section is a summary of the changes. The SQL*Plus User's Guide and Reference has full details of iSQL*Plus 10.1 configuration and use.
If required, an HTML form calling an iSQL*Plus dynamic report can be used to prompt for multiple values in one screen prior to running a script.
When iSQL*Plus is generating a dynamic report, or is set to save to an HTML file, users are not prompted for any script input, and output is set to a single page. This is the same behavior as iSQL*Plus 9.2.
Each browser handles sessions differently. For example, starting a second Internet Explorer browser via the Windows Start menu allows a user to have multiple concurrent sessions to an iSQL*Plus server. Opening a new window using the Internet Explorer File > New > Window option does not.
SQL*Plus Instant Client is optionally available for SQL*Plus command-line interfaces that support the OCI Instant Client. It offers all the functionality of SQL*Plus command-line, without the need for a traditional ORACLE_HOME installation. SQL*Plus Instant Client is easier to install, and uses significantly less disk space compared to a traditional ORACLE_HOME installation.
See the Oracle Call Interface Programmer's Guide for more information on the OCI Instant Client.
This Table shows the only Oracle client-side files required to deploy the SQL*Plus Instant Client.
Platform |
Description | |
UNIX | Windows | |
sqlplus | sqlplus.exe | SQL*Plus executable |
libsqlplus.so | not applicable | SQL*Plus library |
glogin.sql | glogin.sql | SQL*Plus site profile |
libclnstsh.so.10.1 | oci.dll | Client code library |
libociei.so | oraociei10.dll | OCI Instant Client data shared library |
libnnz10.so | orannzsbb10.dll | Security library |
SQL*Plus Instant Client 10.1 can be installed in two ways:
$ORACLE_HOME/instantclient/libociei.so $ORACLE_HOME/lib/libclntsh.so.10.1 $ORACLE_HOME/lib/libnnz10.so $ORACLE_HOME/lib/libsqlplus.so $ORACLE_HOME/bin/sqlplus $ORACLE_HOME/sqlplus/admin/glogin.sql
%ORACLE_HOME%\instantclient\oraociei10.dll %ORACLE_HOME%\bin\oci.dll %ORACLE_HOME%\bin\orannzsbb10.dll %ORACLE_HOME%\bin\sqlplus.exe %ORACLE_HOME%\sqlplus\admin\glogin.sql
After the required files are in one directory, for example /home/myic on UNIX, or c:\myic on Windows, perform these steps:
LD_LIBRARY_PATH=/home/myic:${LD_LIBRARY_PATH} export LD_LIBRARY_PATH
PATH=/home/myic:${PATH} export PATH
set PATH=c:\myic;%PATH%
SQLPATH=/home/myic:${SQLPATH} export SQLPATH
set SQLPATH=c:\myic;%SQLPATH%
SQL*Plus Instant Client is always 'remote' from any database server. To connect to a database you must specify it using an Oracle Net connection identifier.
Example using an Easy Connection Identifier:
sqlplus hr/your_password@//mymachine.mydomain:port/MYDB
Example using a Net Service Name:
sqlplus hr/your_password@MYDB
Net Service Names can be stored in a number of places, including in Oracle Names. See the Net Services Reference Guide for more information.
If you want to use Net Service Names configured in a local Oracle Net tnsnames.ora file, then set the environment variable TNS_ADMIN to the directory containing the tnsnames.ora file. For example, on UNIX, if your tnsnames.ora file is in /home/user1 and it defines the Net Service Name MYDB2:
TNS_ADMIN=/home/user1 export TNS_ADMIN sqlplus hr/your_password@MYDB2
If TNS_ADMIN is not set, then an operating system dependent set of directories is examined to find tnsnames.ora. This search path includes looking for network/admin/tnsnames.ora in the directory specified by the ORACLE_HOME environment variable, for example, $ORACLE_HOME/network/admin/tnsnames.ora. This is the only reason to set the ORACLE_HOME environment variable for SQL*Plus Instant Client. If ORACLE_HOME is set when running Instant Client applications, it must be set to a directory that exists.
This example assumes the ORACLE_HOME environment variable is set, and the $ORACLE_HOME/network/admin/tnsnames.ora or %ORACLE_HOME%\network\admin\tnsnames.ora file defines the Net Service Name MYDB3:
sqlplus hr/your_password@MYDB3
The TWO_TASK (on UNIX) or LOCAL (on Windows) environment variable can be set to a connection identifier. This removes the need to explicitly enter the connection identifier whenever a connection is made in SQL*Plus or SQL*Plus Instant Client. This UNIX example connects to the database known as MYDB4:
TNS_ADMIN=/home/user1 export TNS_ADMIN TWO_TASK=MYDB4 export TWO_TASK sqlplus hr/your_password
To connect AS SYSDBA or AS SYSOPER to perform DBA tasks, you need to set up an Oracle password file on the database server using the database's orapwd utility. Once this is configured, your SQL*Plus Instant Client connection string might look something like:
sqlplus sys/your_password@MYDB AS SYSDBA
See the Oracle Database Administrator's Guide for information on Oracle password files.
To remove the complete SQL*Plus Instant Client, delete the directory containing the SQL*Plus executable, Oracle libraries and glogin.sql. If you created a tnsnames.ora file, remove it too. Reset any environment variables such as LD_LIBRARY_PATH, PATH or TNS_ADMIN.
The SQL*Plus tool can be removed separately from the OCI Instant Client. The remaining libraries will allow custom written OCI programs or third party database utilities to connect to a database.
To delete only the SQL*Plus tool from the OCI Instant Client, remove the following SQL*Plus specific files which are not needed for the OCI Instant Client:
Platform |
Description | |
UNIX | Windows | |
sqlplus | sqlplus.exe | SQL*Plus executable |
libsqlplus.so | not applicable | SQL*Plus library |
glogin.sql | glogin.sql | SQL*Plus site profile |
:
This section describes general issues and their workarounds for SQL*Plus.
Connections to an Oracle7 database from SQL*Plus 10.1 are not supported. You cannot connect to an Oracle7 database from SQL*Plus 10.1.
NCLOB columns cannot be formatted with WORD_WRAPPING. When the "COLUMN" command is used to format NCLOB columns with the "WORD_WRAP" option, the column data will WRAP instead of WORD_WRAP.
Non-blocking database calls to the Oracle8 Server are not supported by the Windows graphical user interface and therefore there is no cancel dialog while statements are executing. This does not affect multi-tasking operating systems.
Querying of LONG columns requires enough local memory to store the amount of data, as specified by the value of SET LONG command, irrespective of the value of the SET LONGCHUNKSIZE command. This restriction does not apply when querying LOBs.
Some privileged connections to the Server may generate errors if the SET SERVEROUTPUT or SET APPINFO commands have been put in the global initialization file (glogin.sql) or local file (login.sql).
The Back button of some web browsers cannot be used to view the previous page of iSQL*Plus output.
The PAUSE command should print any PAUSE [text], and display the Next Page button. Instead, it displays the Input Required screen, and the [text] as the prompt before the input field.
The SQL*Plus User's Guide and Reference states that iSQL*Plus output
can be displayed:
In this release, the output can only be displayed below the input area, and saved to an HTML file. A future version of iSQL*Plus may include the extra functionality of displaying input in a new browser window, or in the same browser window.
There are some command restrictions in this release of iSQL*Plus:
SP2-0872 Message 872 not found; product=SQLPlus; facility=SP2.
iSQL*Plus should be restarted after making any changes to the web.xml configuration file.
iSQL*Plus should be restarted after making any changes to the JAZN authentication file, jazn-data.xml. The JAZN authentication file is changed when you use the JAZN admin tool to set up users for the iSQL*Plus DBA URL.
The SQL*Plus User's Guide and Reference documents that JAZN should be
started with the following command:
$JAVA_HOME/bin/java -Djava.security.properties=$ORACLE_HOME/sqlplus/admin/iplus/provider -jar $ORACLE_HOME/oc4j/j2ee/home/jazn.jar -user "iSQL*Plus DBA/admin" -password admin_password -shell
Although the above command will start up JAZN, for future compatibility,
you should use the following command to start up JAZN instead:
$JAVA_HOME/bin/java -Djava.security.properties=$ORACLE_HOME/oc4j/j2ee/home/config/jazn.security.props -jar $ORACLE_HOME/oc4j/j2ee/home/jazn.jar -user "iSQL*Plus DBA/admin" -password admin_password -shell
If a user's password is about to expire, iSQL*Plus does not display the error:
ORA-28002: the password will expire within grace_period days
The user may not realise their password requires changing until the account is locked due to the grace period time expiring.
SQL*Plus Release 10.1 is a superset of SQL*Plus Release 9.2.
This section describes new features introduced in this release of SQL*Plus. Some features may be affected by the SQLPLUSCOMPATIBILITY setting. See the SET SQLPLUSCOMPATIBILITY Matrix in chapter 13, "SQL*Plus Command Reference" in the SQL*Plus User's Guide and Reference.
Previously, the SQL*Plus site and user profile files, glogin and login, were run when SQL*Plus was started with a username and password, or with /NOLOG. They are now also run after successful CONNECT commands.
SET PAGESIZE 14 and SET SQLPLUSCOMPATIBILITY 8.1.7 have been removed from the Site Profile (glogin.sql). As the new default for pagesize has been changed from 24 to 14, the default value of 14 effectively remains unchanged. SQLPLUSCOMPATIBILITY will default to 10.1.
You can now use substitution variables in the SQL*Plus command-line prompt to display, for example, the database and server you are connected to, or other
information available through a substitution variable you choose. This is similar to the substitution variable usage in TTITLE. This is particularly useful for the display of runtime information such as the current connection or current user at runtime.
There are three new predefined substitution variables:
These variables can be accessed and viewed like any other substitution variable.
Changes to the way output from nested PL/SQL functions is displayed may change the appearance of output with SET SERVEROUTPUT ON. SET SERVEROUTPUT ON now correctly shows output (DBMS_OUTPUT.PUT_LINE) from a PL/SQL function nested inside a SQL statement. Previously, output from a nested PL/SQL function did not display until a subsequent PL/SQL function was executed.
A new SHOW RECYCLEBIN [original_name] command has been added. It enables you to view objects that are available for purging or reverting using the PURGE and FLASHBACK BEFORE DROP commands.
The SPOOL command has been enhanced. You can now append to, or replace an existing file, where previously you could only create (and replace) files. The default is to replace the file. The new syntax is:
SPOOL {file_name[.ext] [CRE[ATE]|REP[LACE]|APP[END]]|OFF|OUT}
There is a new command-line argument for the SQLPLUS command, SQLPLUS -C x.y.z which specifies the value of the SQLPLUSCOMPATIBILITY system variable.
In Windows, whitespace can be included in file names and paths, in particular, START, @, @@, and RUN commands, and SPOOL, SAVE and EDIT commands. To reference files or paths containing spaces, enclose the name or path in quotes. For example:
SPOOL "Monthly Report.sql" SAVE "c:\program files\ora10\scripts\Monthly Report.sql"
Some SQL*Plus messages have been improved. For example, there are new error messages for the COPY command errors:
The default value of SET PAGESIZE has been changed from 24 to 14 in SQL*Plus command line. iSQL*Plus has a default value of 24.
The SQL*Plus Getting Started for Windows guide has been discontinued. Windows specific information is now included in the SQL*Plus User's Guide and Reference.
This section lists new features introduced to SQL*Plus in previous releases.
The following section lists bugs fixed in SQL*Plus. Numbers in parentheses following the problem description refer to bug numbers in the Oracle Bug Database.
For SQL*Plus and iSQL*Plus support, please contact your local Oracle Support Services Center. There is also an iSQL*Plus Discussion Forum on the Oracle Technology Network located at http://otn.oracle.com/ which may be helpful.
This section gives advance notice of the desupport of SQL*Plus commands and interfaces. It is not official notice of desupport dates, nor is it intended to replace the Oracle obsolescence process. This information provides you with advance warning that Oracle Corporation intends to desupport these features/interfaces in upcoming releases.
COPY supports the datatypes listed for the COPY command in the SQL*Plus User's Guide and Reference, but no new datatypes will be supported. The COPY command may be made obsolete in a future release of SQL*Plus.
The SQL*Plus for Windows graphical user interface (GUI) will be desupported in a future release of SQL*Plus. The browser-based iSQL*Plus user interface will replace the SQL*Plus for Windows GUI. The SQL*Plus for Windows command line (DOS) interface will continue to be supported.
The iSQL*Plus Extension for Windows is not available in this release of SQL*Plus. No future versions of this extension will be available.
Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners.
Copyright © 1996, 2003 Oracle Corporation.
All Rights Reserved.
|
![]() Copyright © 1996, 2003 Oracle Corporation. All Rights Reserved. |
|