Oracle Error ORA-04077: WHEN clause cannot be used with table level triggers

Oracle Error Message

ORA-04077: WHEN clause cannot be used with table level triggers

Reason for the Error

The when clause can only be specified for row level triggers.

Solution

Remove the when clause or specify for each row.