Skip Headers

SQL*Plus Release Notes
Release 10.1

Part Number B12172-01

SQL*Plus

Release Notes

Release 10.1

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:

1 Certification

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.

2 Migrating from iSQL*Plus 9.2 to iSQL*Plus 10.1

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.

3 SQL*Plus Instant Client

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.

3.1 SQL*Plus Instant Client Installation

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:

  1. By downloading the SQL*Plus executable and Instant Client libraries from the Oracle Technology Network.
  2. By choosing the Administrator install option from the Oracle Database 10g Client CD. After the installation completes, you must create a new directory and copy the SQL*Plus and OCI Instant Client files to it. All libraries must be copied from the same ORACLE_HOME.
    On UNIX copy these files:
    $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
    
    On Windows copy these files:
    %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:

  1. If your operating system requires a shared library path such as LD_LIBARAY_PATH, LIBPATH or SHLIB_PATH, add the name of the directory containing the Instant Client files, and remove any other Oracle directories.
    For example on Solaris:
    LD_LIBRARY_PATH=/home/myic:${LD_LIBRARY_PATH}
    export LD_LIBRARY_PATH
    
  2. Add the directory to the PATH environment variable. This is mandatory on Windows. If it is not set on UNIX, then an absolute or relative path must be used to start the SQL*Plus executable. Remove any other Oracle directories from PATH.
    For example on UNIX:
    PATH=/home/myic:${PATH}
    export PATH
    
    For example in a Windows console window:
    set PATH=c:\myic;%PATH%
    
  3. Set SQLPATH to the directory. This lets SQL*Plus find glogin.sql.
    For example on UNIX:
    SQLPATH=/home/myic:${SQLPATH}
    export SQLPATH
    
    For example in a Windows console window:
    set SQLPATH=c:\myic;%SQLPATH%
    
SQL*Plus is now ready to run. Note that no ORACLE_HOME or ORACLE_SID environment variables need to be set.

3.2 Connecting to a Database with SQL*Plus Instant Client

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

3.3 Connecting using AS SYSDBA or AS SYSOPER with SQL*Plus Instant Client

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.

3.4 Uninstalling SQL*Plus Instant Client

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

:

4 General Issues and Workarounds

This section describes general issues and their workarounds for SQL*Plus.

4.1 Connecting to Oracle7 from SQL*Plus 10.1

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.

4.2 Cannot WORD_WRAP NCLOB Columns

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.

4.3 Non-Blocking Database Calls

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.

4.4 Querying of LONG Columns

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.

4.5 Privileged Connection Errors

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).

4.6 Cannot Use Some Web Browsers' Back Button in iSQL*Plus

The Back button of some web browsers cannot be used to view the previous page of iSQL*Plus output.

4.7 PAUSE Command Requests Input in iSQL*Plus

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.

4.8 iSQL*Plus Script Output Location

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.

4.9 Command Restrictions in iSQL*Plus

There are some command restrictions in this release of iSQL*Plus:

SP2-0872 Message 872 not found; product=SQLPlus; facility=SP2.

4.10 Restart iSQL*Plus After Editing web.xml

iSQL*Plus should be restarted after making any changes to the web.xml configuration file.

4.11 Restart iSQL*Plus After Changes to JAZN Authentication 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.

4.12 Starting JAZN

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

4.13 iSQL*Plus Does Not Display the Password Expiry Grace Period

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.

5 New Features in SQL*Plus

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.

5.1 Glogin and Login Calls

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.

5.2 SQL*Plus Site Profile and User Profile Changes

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.

5.3 SET SQLPROMPT

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.

5.4 Predefined Substitution Variables: _DATE, _PRIVILEGE, and _USER

There are three new predefined substitution variables:

These variables can be accessed and viewed like any other substitution variable.

5.5 Changes to SET SERVEROUTPUT ON

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.

5.6 SHOW RECYCLEBIN

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.

5.7 APPEND, CREATE, and REPLACE Extensions to SPOOL Command

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}

5.8 SQLPLUS -C[OMPATIBILITY] Argument

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.

5.9 Whitespace Support in File and Path Names in Windows

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"

5.10 Improved Messages and Prompts

Some SQL*Plus messages have been improved. For example, there are new error messages for the COPY command errors:

5.11 SET PAGESIZE Default

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.

5.12 Windows Specific Information

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.

6 New Features in Previous Releases

This section lists new features introduced to SQL*Plus in previous releases.

6.1 New Features in SQL*Plus 9.2 Production

6.2 New Features in SQL*Plus 9.0.1 Production

7 Bugs Fixed

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.

7.1 Bugs Fixed in SQL*Plus Release 10.1

8 Support

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.

9 Desupport Notices

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.

9.1 COPY Command

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.

9.2 Windows Graphical User Interface

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.

9.3 iSQL*Plus Extension for Windows

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.


Oracle
Copyright © 1996, 2003 Oracle Corporation.

All Rights Reserved.