SQL*Plus User's Guide and Reference
Release 9.0.1

Part Number A88827-02
Go To Documentation Library
Home
Go To Product List
Book List
Go To Table Of Contents
Contents
Go To Index
Index

Master Index

Feedback

Go to previous page Go to beginning of chapter Go to next page

Command Reference, 41 of 52


SHOW

Syntax

SHO[W] option

where option represents one of the following terms or clauses:

system_variable
ALL
BTI[TLE]
ERR[ORS] [ { FUNCTION | PROCEDURE | PACKAGE | PACKAGE BODY | TRIGGER
| VIEW | TYPE | TYPE BODY | DIMENSION | JAVA CLASS } [schema.]name]
LNO
PARAMETERS [parameter_name]
PNO
REL[EASE]
REPF[OOTER]
REPH[EADER]
SGA
SPOO[L]
SQLCODE
TTI[TLE]
USER

Shows the value of a SQL*Plus system variable or the current SQL*Plus environment.

Terms

Refer to the following list for a description of each term or clause:

system_variable

ALL

BTI[TLE]

ERR[ORS] [{FUNCTION|PROCEDURE|PACKAGE|PACKAGE BODY|TRIGGER
|VIEW|TYPE|TYPE BODY | DIMENSION | JAVA CLASS} [schema.]name]

LNO

PARAMETERS [parameter_name]

PNO

REL[EASE]

REPF[OOTER]

REPH[EADER]

SPOO[L]

SGA

SQLCODE

TTI[TLE]

USER

Examples

To list the current LINESIZE, enter

Keyboard icon
SHOW LINESIZE

If the current linesize is 80 characters, SQL*Plus will give the following response:

Screen icon
LINESIZE 80

The following example illustrates how to create a stored procedure and then show its compilation errors:

Keyboard icon
CONNECT SYSTEM/MANAGER
CREATE PROCEDURE HR.PROC1 AS
BEGIN
:P1 := 1;
END;
/

Screen icon
Warning: Procedure created with compilation errors.

Keyboard icon
SHOW ERRORS

Screen icon
Errors for PROCEDURE HR.PROC1:
LINE/COL ERROR
--------------------------------------------------------
3/1      PLS-00049: bad bind variable 'P1'
Screen icon



Keyboard icon
SHOW ERRORS PROCEDURE PROC1
NO ERRORS.
SHOW ERRORS PROCEDURE HR.PROC1
Errors for PROCEDURE HR.PROC1:
LINE/COL ERROR
--------------------------------------------------------
3/3      PLS-00049: bad bind variable 'P1'

To show whether AUTORECOVERY is enabled, enter

Keyboard icon
SHOW AUTORECOVERY

Screen icon
AUTORECOVERY ON

To display the connect identifier for the default instance, enter

Keyboard icon
SHOW INSTANCE

Screen icon
INSTANCE "LOCAL"

To display the location for archive logs, enter

Keyboard icon
SHOW LOGSOURCE

Screen icon
LOGSOURCE "/usr/oracle90/dbs/arch"

To display information about the SGA, enter

Keyboard icon
SHOW SGA

Screen icon
Total System Global Area    7629732 bytes 
Fixed Size                    60324 bytes 
Variable Size               6627328 bytes 
Database Buffers             409600 bytes 
Redo Buffers                 532480 bytes 

Go to previous page Go to beginning of chapter Go to next page
Oracle
Copyright © 1996-2001, Oracle Corporation.

All Rights Reserved.
Go To Documentation Library
Home
Go To Product List
Book List
Go To Table Of Contents
Contents
Go To Index
Index

Master Index

Feedback