PL/SQL Returns ORA-28106: Input Value For Argument #2 Is Not Valid and ORA-7445 from code run by the Job Scheduler (Doc ID 1369310.1)

Last updated on JULY 05, 2017

Applies to:

PL/SQL - Version: 11.2.0.2 and later   [Release: 11.2 and later ]
Information in this document applies to any platform.

Symptoms

One way that this error occurs is via DBMS_SESSION.SET_CONTEXT run through the Job Scheduler. A PL/SQL procedure fails, intermittently, with ORA-28106: input value for argument #2 is not valid when trying to set the context using DBMS_SESSION.SET_CONTEXT. 

The trace file shows that the context attribute, (the 2nd parameter) is empty whereas it was not coded this way. 

The error can also appear with an ORA-7445 exception encountered: core dump [pevm_CMP3C()+29]. 

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