SQL Plus - WHENEVER OSERROR

Card Puncher Data Processing

About

Performs the specified action (exits SQL*Plus by default) if an operating system error occurs (such as a file writing error).

In iSQL*Plus, performs the specified action (stops the current script by default) and returns focus to the Workspace if an operating system error occurs.

Syntax

WHENEVER OSERROR 
    { 
    EXIT [SUCCESS|FAILURE|n|variable|:BindVariable] [COMMIT|ROLLBACK] 
    | 
    CONTINUE [COMMIT|ROLLBACK|NONE]
    }

where:

  • you must choose the EXIT or CONTINUE statement
  • the block [SUCCESS|FAILURE|WARNING|n|variable|:BindVariable] define the exit code that can be:
  • the block [COMMIT|ROLLBACK] defines the transaction termination action to do.





Discover More
Card Puncher Data Processing
SQL Plus - Command Reference

Commands Description @ @@ / ACCEPT APPEND ARCHIVE ATTRIBUTE BREAK BTITLE CHANGE CLEAR COLUMN COMPUTE CONNECT COPY Copies data from a query to a table in the same or another...
Card Puncher Data Processing
SQL Plus - Script

You must include: a semicolon at the end of each SQL command and a slash (/) on a new line at the end of each PL/SQL block with the @ or the start command where: The exit error...



Share this page:
Follow us:
Task Runner