Last updated on NOVEMBER 03, 2015
Applies to:Oracle Server - Enterprise Edition - Version: 126.96.36.199 to 188.8.131.52.0 - Release: 8.1.7 to 11.2
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:
FUNCTION F_PREDICATE (obj_schema VARCHAR2, obj_name VARCHAR2) RETURN
iGetSTRING := SYS_CONTEXT('SECURITY_CONTEXT','SECURITY_ATTRIBUTE');
WHEN OTHERS THEN
RAISE_APPLICATION_ERROR (SQLCODE, SQLERRM);
Sign In with your My Oracle Support account
Don't have a My Oracle Support account? Click to get started
Million Knowledge Articles and hundreds of Community platforms