ORA-28113 When A Policy Predicate Is Fetched From A Context
(Doc ID 331862.1)
Last updated on MARCH 04, 2019
Applies to:Oracle Database - Enterprise Edition - Version 184.108.40.206 to 220.127.116.11.0 [Release 8.1.7 to 11.2]
Oracle Database Cloud Schema Service - Version N/A and later
Oracle Database Exadata Cloud Machine - Version N/A and later
Oracle Cloud Infrastructure - Database Service - Version N/A and later
Oracle Database Exadata Express Cloud Service - Version N/A and later
Information in this document applies to any platform.
Checked for relevance on 27-Aug-2010
ORA-28113 is returned intermittently from your application. You follow the diagnostic steps in note 250094.1
and you discover from the trace file the predicate is truncated at about 256 characters. For example you get the error
ORA-01756: quoted string not properly terminated
Or any other SQL syntax error resulting from the truncate of the predicate string.
In the design of your policy function, you derive the value of the predicate string directly from a namespace (context) with a construct similar to the following:
iGetSTRING := SYS_CONTEXT('SECURITY_CONTEXT','SECURITY_ATTRIBUTE');
WHEN OTHERS THEN
RAISE_APPLICATION_ERROR (SQLCODE, SQLERRM);
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