Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ORA-28115: policy with check option violation

I am getting "ORA-28115: policy with check option violation" while executing a stored procedure.It specifically throws error on an INSERT query within the SP.With the same request body(data) and same SP,it works in other Enviornment's DB but fails in other one with this error.Can anyone point towards what all can I do to debug and solve the issue ?

like image 527
netcoredev Avatar asked Dec 05 '25 10:12

netcoredev


1 Answers

Most likely someone has created a VPD policy on this table, which (in this case) means you can only add a row that will ultimately be visible to you based on the policy assigned.

Take a look in xxx_POLICIES to see what has been created.

Docs on DBMS_RLE here https://docs.oracle.com/en/database/oracle/oracle-database/19/arpls/DBMS_RLS.html

like image 86
Connor McDonald Avatar answered Dec 07 '25 23:12

Connor McDonald