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

WHENEVER OSERROR

WHENEVER OSERROR

Syntax

WHENEVER OSERROR {CONTINUE [COMMIT|ROLLBACK|NONE]}

Performs the specified action if an operating system error occurs (such as a file I/O error).

Terms

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

CONTINUE

Turns off the EXIT option. EXIT is not supported in this release of iSQL*Plus.

COMMIT

Directs SQL*Plus to execute a COMMIT before exiting or continuing and save pending changes to the database.

ROLLBACK

Directs SQL*Plus to execute a ROLLBACK before exiting or continuing and abandon pending changes to the database.

NONE

Directs SQL*Plus to take no action before continuing.

Usage

If you do not enter the WHENEVER OSERROR command, the default behavior of SQL*Plus is to continue and take no action when an operating system error occurs.

If you do not enter the WHENEVER SQLERROR command, the default behavior of SQL*Plus is to continue and take no action when a SQL error occurs.

5-122 iSQL*Plus User’s Guide and Reference

WHENEVER SQLERROR

WHENEVER SQLERROR

Syntax

WHENEVER SQLERROR {CONTINUE [COMMIT|ROLLBACK|NONE]}

Performs the specified action if a SQL command or PL/SQL block generates an error.

Terms

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

CONTINUE

Turns off the EXIT option. EXIT is not supported in this release of iSQL*Plus.

COMMIT

Directs SQL*Plus to execute a COMMIT before exiting or continuing and save pending changes to the database.

ROLLBACK

Directs SQL*Plus to execute a ROLLBACK before exiting or continuing and abandon pending changes to the database.

NONE

Directs SQL*Plus to take no action before continuing.

Usage

The WHENEVER SQLERROR command is triggered by SQL command or PL/SQL block errors, and not by SQL*Plus command errors.

Command Reference 5-123

WHENEVER SQLERROR

5-124 iSQL*Plus User’s Guide and Reference

A

SQL*Plus Error Messages

This appendix lists error messages generated by SQL*Plus and iSQL*Plus. For error messages generated by Oracle, refer to the Oracle9i Error Messages.

This chapter contains information about:

SQL*Plus Error Messages and Codes

iSQL*Plus Error Messages

COPY Command Messages

SQL*Plus Error Messages A-1

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