WHENEVER SQLERROR EXIT ROLLBACK with SET ERRORLOGGING Is Not Populating the SPERRORLOG Table
Last updated on OCTOBER 27, 2016
Applies to:SQL*Plus - Version 126.96.36.199 and later
Information in this document applies to any platform.
No error messages are logged in the SPERRORLOG table when using "WHENEVER SQLERROR EXIT SQL.SQLCODE ROLLBACK" along with "SET ERRORLOGGING ON TRUNCATE", in the following scenario:
(Note: ROLLBACK keyword here is important.)
Notice nothing is logged in the SPERRORLOG table (0 records).
Using parameter ERRORLOG and "WHENEVER SQLERROR EXIT SQL.SQLCODE ROLLBACK" along with "SET ERRORLOGGING ON TRUNCATE".
Sign In with your My Oracle Support account
Don't have a My Oracle Support account? Click to get started
My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms