How to fix the Oracle error ORA-04096: trigger ‘string’ has a WHEN clause which is too large, limit 2K?

In this post, you’ll learn more about the Oracle ErrorORA-04096: trigger ‘string’ has a WHEN clause which is too large, limit 2K with the details on why you receive this error and the possible solution to fix it.

Oracle Error Description

ORA-04096: trigger ‘string’ has a WHEN clause which is too large, limit 2K

Reason for the Error ORA-04096: trigger ‘string’ has a WHEN clause which is too large, limit 2K

A trigger’s ‘when’ clause is limited to 2K for dictionary storage reasons. The trigger being created exceeded that size.

How to fix the Error ORA-04096: trigger ‘string’ has a WHEN clause which is too large, limit 2K ?

You can fix this error in Oracle by following the below steps

Use a smaller ‘when’ clause. Note, the trigger body could be used to perform the same limiting action as the ‘when’ clause.

Tags :

Leave Your Comment