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!

VPD problem: select for update on join tables with policy on ref table

Jaco Verheul-OracleFeb 8 2007 — edited Feb 9 2007
In our application we use VPD. Now we ran into an issue. I will try to explain with EMP and DEPT table.

EMP table has no VPD attached.
DEPT table has VPD policy that forbids all updates, but allows select. (Policy returns '1=2' for statement type update.

This query returns no rows:
select * from emp join dept using (department_id) for update. This makes sense, because I'm going to update both the tables.

However:
select * from emp join dept using (department_id) for update of employee_id also returns no rows. THIS IS WRONG. I'm not going to update dept table.

Any experience with this. Is this a known limitation ?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 9 2007
Added on Feb 8 2007
7 comments
476 views