SQL*Plus Getting Started Release 8.1.7 for Windows Part Number A82954-01 |
|
This chapter provides the operating system-specific information that is referenced in the SQL*Plus User's Guide and Reference.
Specific topics discussed are:
When connecting to an Oracle database on the same Windows computer, you can set up SQL*Plus to do an automatic login by following these steps:
See "Shortcuts to Starting SQL*Plus" in Chapter 2 of the SQL*Plus User's Guide and Reference which refers you to this guide for information about automatically logging on to SQL*Plus when you log on to your operating system.
The SQL*Plus TIMING command displays output in hours, minutes, seconds and hundredths of seconds. For example, 02:31:07.55 is 2 hours, 31 minutes and 7.55 seconds.
See "Collecting Timing Statistics on Commands You Run" in Chapter 2 and the sections "SET" and "TIMING" in Chapter 8 of the SQL*Plus User's Guide and Reference which discuss how to use the TIMING command and the SET TIMING command to record timing data for an elapsed period.
See "Interpreting Error Messages" in Chapter 2 of the SQL*Plus User's Guide and Reference and this guide for information about interpreting error messages. See Oracle8i Error Messages to find explanations and actions for error codes beginning with the letters ORA.
If you do not find the error code in Oracle8i Error Messages, see Oracle8i Administrator's Guide for Windows NT.
When you install SQL*Plus, LOGIN.SQL is copied to the DBS subdirectory, and GLOGIN.SQL is copied to the SQLPLUS\ADMIN subdirectory of your Oracle home directory.
If you modify LOGIN.SQL or GLOGIN.SQL, make sure you do not add any ANSI escape sequences.
See "Setting Up Your SQL*Plus Environment" in Chapter 3 of the SQL*Plus User's Guide and Reference, which describes the LOGIN.SQL and GLOGIN.SQL files.
The SPOOL command is available from the File menu in the SQL*Plus graphical user interface. See "File Menu" for more information.
When you use the SPOOL command from the graphical user interface or the command line interface, SQL*Plus adds .LST to the file name if you do not specify an extension.
SQL*Plus does not support the use of the SPOOL OUT clause at the command line.
See "Sending Results to a File" in Chapter 4 and "Spool" in Chapter 8 of the SQL*Plus User's Guide and Reference, for more information about the SPOOL command.
SQL*Plus searches the current default directory for the file name that you specify with the @, @@, or START command. If SQL*Plus cannot find this file, the program searches a path to find the file.
You can specify the path that SQL*Plus searches by modifying the SQLPATH parameter in your registry. For more information about the SQLPATH parameter, see the "SQLPATH Parameter Description" in Appendix A.
See the sections "@ (at sign)", "@@ (double at sign)", and "START" in Chapter 8 of the SQL*Plus User's Guide and Reference, which describe how SQL*Plus searches for a file when you use the @, @@, or START command.
In SQL*Plus, you can access the Windows command prompt by entering the HOST command or a dollar sign ($) at the SQL*Plus prompt.
To return to SQL*Plus from the Windows command prompt, enter exit
.
See "HOST" in Chapter 8 of the SQL*Plus User's Guide and Reference, which describes how to use the HOST command to execute a host operating system command without leaving SQL*Plus.
The SET NEWPAGE 0 command does not clear the screen between pages. Instead, a black box appears in the GUI, or another character in the command line interface.
See "SET" in Chapter 8 of the SQL*Plus User's Guide and Reference, which describes how to set the NEWPAGE system variable, as well as many other system variables. It is recommended that you use SET NEWPAGE NONE
.
The PRODUCT_USER_PROFILE (PUP) table provides product-level security that supplements the user-level security provided by the SQL GRANT and REVOKE commands and user roles.
To create the PUP table
Log in to SQL*Plus as the SYSTEM user and run PUPBLD.SQL which is located in the ORACLE_HOME\SQLPLUS\ADMIN directory with:
SQL> @%ORACLE_HOME%\SQLPLUS\ADMIN\PUPBLD.SQL
or
C:\> SET SYSTEM_PASS=SYSTEM/PASSWORD
where PASSWORD is the password you have defined for the SYSTEM user. The default SYSTEM user password is MANAGER.
PUPBLD.BAT reads this login from SYSTEM_PASS to run successfully.
C:\> %ORACLE_HOME%\BIN\PUPBLD.BAT
If you are using SQL*Plus with a remote database, you may want to install the PUP table on the remote database. To do this, run PUPBLD.SQL on the server directly, or set the LOCAL parameter in your registry to point to the remote database and then run PUPBLD.SQL.
See the "PRODUCT_USER_PROFILE Table" in Appendix E of the SQL*Plus User's Guide and Reference for a description of the PUP table.
The PUP table is not used for ODBC connections. The connection identifier for ODBC connections begins with odbc: or oca:.
|
![]() Copyright © 1996-2000, Oracle Corporation. All Rights Reserved. |
|