Ora-12899 Raised in Trigger Execution Where a Timestamp(6) Column is Assigned Systimestamp (Doc ID 1288838.1)

Last updated on AUGUST 25, 2017

Applies to:

Oracle Database - Enterprise Edition - Version 10.2.0.4 and later
Information in this document applies to any platform.

Symptoms

An after update trigger raises ORA-12899 on production system when new timestamp value is assigned a systimestamp value.
A scaled-down sample of the trigger source code might include something like:

CREATE OR REPLACE TRIGGER <trigger_name>
BEFORE UPDATE ON <table_name>
  for each row
  REFERENCING NEW AS NEW OLD AS OLD
DECLARE
...
BEGIN
...
:NEW.LAST_UPDATE_DATE := SYSTIMESTAMP;
END;
/

Cause

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