My Oracle Support Banner

WHENEVER SQLERROR EXIT ROLLBACK with SET ERRORLOGGING Is Not Populating the SPERRORLOG Table (Doc ID 1579435.1)

Last updated on DECEMBER 21, 2020

Applies to:

SQL*Plus - Version 11.2.0.1 and later
Information in this document applies to any platform.

Symptoms

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).


Changes

 Using parameter ERRORLOG and "WHENEVER SQLERROR EXIT SQL.SQLCODE ROLLBACK" along with "SET ERRORLOGGING ON TRUNCATE".

Cause

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Symptoms
Changes
Cause
Solution
References


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.