Home » SQL & PL/SQL » SQL & PL/SQL » doubt using whenever sqlerror exit
doubt using whenever sqlerror exit [message #221507] Tue, 27 February 2007 04:19 Go to next message
Messages: 161
Registered: February 2007
Senior Member
I want to quit from the plsql script file when sqlerror is encountered and I want to pass the error message to shell script , can "whenever sqlerror exit" be used to pass the error messages to shell script?

How can this be done?
Re: doubt using whenever sqlerror exit [message #221627 is a reply to message #221507] Tue, 27 February 2007 16:49 Go to previous message
Bill B
Messages: 1629
Registered: December 2004
Senior Member
You can return and test for the errorlevel. For example


Would error when a sql error happened and set the errorlevel to 2.
Previous Topic: 8i Organization external error when creating table from unix script
Next Topic: Dynamic Procedure call
Goto Forum:

Current Time: Fri Jun 23 15:45:58 CDT 2017

Total time taken to generate the page: 0.23412 seconds