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: 1663
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: Problem In Loading The CSV File Into The Database
Next Topic: insert multiple rows
Goto Forum:

Current Time: Tue Aug 22 15:53:16 CDT 2017

Total time taken to generate the page: 0.01808 seconds