cancel the exection of a sql script dynamically

ekinox

Member
hi guys.
i have several anonymous sql blocks in one file which is executes via sqlplus. I want to stop the execution of the whole file if an error occurs in one of the blocks.

Please help.
 
Is this what you are looking for?

WHENEVER SQLERROR EXIT SQL.SQLCODE;
WHENEVER OSERROR EXIT FAILURE;

------------------
Hakuna Matata,

Arnoud.
 
Back
Top