Skip to Main Content

Oracle Database Discussions

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

policy predicate has error

DernbauerNov 20 2024

I created a policy function

create or replace function party_sec(
p_schema varchar2,
p_obj varchar2
) return varchar2 as
l_database_user varchar2(255) DEFAULT USER;
l_predicate varchar2(100);
begin
if SYS_CONTEXT('APEX$SESSION', 'APP_USER') = ('DEVELOPER') then
l_predicate := 'ID in (select MANDAT from H_PARTY)';
end if;
return l_predicate;

end;

It is working with about 40 values in the in clause but when I use the whole table with 289 values

I got the message

Error at line 1/15: ORA-28113: policy predicate has error

Comments
Post Details
Added on Nov 20 2024
3 comments
66 views