Добавил:
Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
Скачиваний:
30
Добавлен:
16.04.2013
Размер:
2.15 Mб
Скачать

iSQL*Plus

User’s Guide and Reference

Release 9.0.1

June 2001

Part No. A88826-01

iSQL*Plus User’s Guide and Reference, Release 9.0.1

Part No. A88826-01

Copyright © 1996, 2001, Oracle Corporation. All rights reserved.

Primary Author: Simon Watt

Contributors: Andrew Code, Alison Goggin, Alison Holloway, Christopher Jones, Anita Lam, Luan Nim, Andrei Souleimanian, Christopher Tan, Ian Wu.

The Programs (which include both the software and documentation) contain proprietary information of Oracle Corporation; they are provided under a license agreement containing restrictions on use and disclosure and are also protected by copyright, patent, and other intellectual and industrial property laws. Reverse engineering, disassembly, or decompilation of the Programs is prohibited.

The information contained in this document is subject to change without notice. If you find any problems in the documentation, please report them to us in writing. Oracle Corporation does not warrant that this document is error free. Except as may be expressly permitted in your license agreement for these Programs, no part of these Programs may be reproduced or transmitted in any form or by any means, electronic or mechanical, for any purpose, without the express written permission of Oracle Corporation.

If the Programs are delivered to the U.S. Government or anyone licensing or using the programs on behalf of the U.S. Government, the following notice is applicable:

Restricted Rights Notice Programs delivered subject to the DOD FAR Supplement are "commercial computer software" and use, duplication, and disclosure of the Programs, including documentation, shall be subject to the licensing restrictions set forth in the applicable Oracle license agreement.

Otherwise, Programs delivered subject to the Federal Acquisition Regulations are "restricted computer software" and use, duplication, and disclosure of the Programs shall be subject to the restrictions in FAR 52.227-19, Commercial Computer Software - Restricted Rights (June, 1987). Oracle Corporation, 500 Oracle Parkway, Redwood City, CA 94065.

The Programs are not intended for use in any nuclear, aviation, mass transit, medical, or other inherently dangerous applications. It shall be the licensee's responsibility to take all appropriate fail-safe, backup, redundancy, and other measures to ensure the safe use of such applications if the Programs are used for such purposes, and Oracle Corporation disclaims liability for any damages caused by such use of the Programs.

Oracle is a registered trademark, and Oracle Net, Oracle HTTP Server, Oracle7, Oracle8, Oracle8i, Oracle9i, PL/SQL, iSQL*Plus and SQL*Plus are trademarks or registered trademarks of Oracle Corporation. Other names may be trademarks of their respective owners.

 

 

Contents

Send Us Your Comments ..................................................................................................................

vii

Preface............................................................................................................................................................

ix

1

Introduction to iSQL*Plus

 

 

What is iSQL*Plus? ............................................................................................................................

1-2

 

iSQL*Plus Architecture .....................................................................................................................

1-2

2

Configuring iSQL*Plus

 

 

System Requirements ........................................................................................................................

2-2

 

Installation ...............................................................................................................................

............ 2-2

 

Configuring the Client Tier ..............................................................................................................

2-3

 

Configuring the Middle Tier............................................................................................................

2-4

 

Configuring the iSQL*Plus Server .............................................................................................

2-4

 

Configuring the Oracle HTTP Server ........................................................................................

2-7

 

Configuring the Database Tier.........................................................................................................

2-8

 

iSQL*Plus Security.............................................................................................................................

2-8

 

Configuring Globalization Support .............................................................................................

2-12

3 The iSQL*Plus User Interface

 

 

The iSQL*Plus Log In Screen...........................................................................................................

3-2

 

The iSQL*Plus Work Screen.............................................................................................................

3-4

 

The Change Password Screen ..........................................................................................................

3-6

iii

4 Using iSQL*Plus

 

Running iSQL*Plus............................................................................................................................

4-2

Entering Statements ...........................................................................................................................

4-2

Loading Scripts....................................................................................................................................

4-3

Entering Substitution Variables.......................................................................................................

4-4

Creating Dynamic Reports................................................................................................................

4-6

Using SET and COLUMN Commands ...........................................................................................

4-9

Getting Help ........................................................................................................................................

4-9

Exiting iSQL*Plus ...............................................................................................................................

4-9

5 Command Reference

SQL*Plus Command Summary........................................................................................................

5-2

@ (“at” sign)..........................................................................................................................................

5-5

@@ (double “at” sign).........................................................................................................................

5-7

/ (slash) ..................................................................................................................................................

5-9

ARCHIVE LOG .................................................................................................................................

5-10

ATTRIBUTE .......................................................................................................................................

5-13

BREAK ................................................................................................................................................

5-15

BTITLE ................................................................................................................................................

5-20

CLEAR.................................................................................................................................................

5-21

COLUMN ...........................................................................................................................................

5-23

COMPUTE..........................................................................................................................................

5-34

CONNECT..........................................................................................................................................

5-40

COPY ...................................................................................................................................................

5-42

DEFINE ...............................................................................................................................................

5-46

DESCRIBE..........................................................................................................................................

5-48

DISCONNECT ..................................................................................................................................

5-54

EXECUTE............................................................................................................................................

5-55

HELP....................................................................................................................................................

5-56

LIST .....................................................................................................................................................

5-57

PRINT..................................................................................................................................................

5-59

PROMPT.............................................................................................................................................

5-61

RECOVER ..........................................................................................................................................

5-62

REMARK ............................................................................................................................................

5-69

REPFOOTER......................................................................................................................................

5-70

iv

REPHEADER.....................................................................................................................................

5-72

RUN.....................................................................................................................................................

5-75

SET.......................................................................................................................................................

5-76

SHOW .................................................................................................................................................

5-96

SHUTDOWN...................................................................................................................................

5-101

START ...............................................................................................................................................

5-103

STARTUP..........................................................................................................................................

5-105

TIMING............................................................................................................................................

5-108

TTITLE..............................................................................................................................................

5-110

UNDEFINE.......................................................................................................................................

5-114

VARIABLE .......................................................................................................................................

5-115

WHENEVER OSERROR ...............................................................................................................

5-122

WHENEVER SQLERROR.............................................................................................................

5-123

ASQL*Plus Error Messages

BSecurity

CUnsupported SQL*Plus Commands

Glossary

Index

v

vi

Соседние файлы в папке Oracle 9.0.1