My Oracle Support Banner

ORA-00984 or PLS-00231 Error when Compiling a Trigger (Doc ID 1205273.1)

Last updated on OCTOBER 06, 2022

Applies to:

PL/SQL - Version 10.2.0.4 and later
Information in this document applies to any platform.

Symptoms

Attempting to create a Trigger or a PL/SQL Procedure that attempts to reference SQLCODE or another built-in function can return one of the following errors.

PL/SQL: ORA-00984: column not allowed here
or
PLS-00231: function 'SQLCODE' may not be used in SQL

Here is a simple sample illustrating the error.




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
Cause
Solution

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