Skip to Content
Oracle SQL: the Essential Reference
book

Oracle SQL: the Essential Reference

by David C. Kreines
September 2000
Intermediate to advanced
418 pages
11h 5m
English
O'Reilly Media, Inc.
Content preview from Oracle SQL: the Essential Reference
WHENEVER OSERROR
WHENEVER OSERROR {EXIT {SUCCESS | FAILURE | n | var |
						:bind_variable}
                   [COMMIT | ROLLBACK] | 
                  CONTINUE [COMMIT | ROLLBACK | NONE]
                 }

Specifies the action to be taken by SQL*Plus if an operating system error occurs.

Keywords

EXIT

Directs SQL*Plus to exit as soon as an operating system error is detected.

COMMIT

Directs SQL*Plus to execute a COMMIT before exiting or continuing after an operating system error occurs.

CONTINUE

Turns off the EXIT option.

FAILURE

Exits with a return code indicating failure.

n

Exits and returns the specified numeric return code.

NONE

Directs SQL*Plus to take no action after an operating system error.

ROLLBACK

Directs SQL*Plus to execute a ROLLBACK before exiting or continuing after an operating system error occurs.

SUCCESS

Exits normally with a return code indicating success. This option is the default behavior.

var

A user-defined or system variable, the value of which will be used as the return code.

bind_variable

A bind variable, created in SQL*Plus with the VARIABLE command, the value of which will be used as a return code.

WARNING

Exits with a return code indicating a warning status.

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Oracle Database 12c The Complete Reference

Oracle Database 12c The Complete Reference

Kevin Loney, Bob Bryla
Oracle SQL Developer

Oracle SQL Developer

Ajith Narayanan, Susan Harper
Oracle PL/SQL for DBAs

Oracle PL/SQL for DBAs

Arup Nanda, Steven Feuerstein

Publisher Resources

ISBN: 1565926978Catalog PageErrata