VPD does not work from inside PL/SQL
Last updated on JANUARY 26, 2015
Applies to:Oracle Database - Enterprise Edition - Version 18.104.22.168 and later
Information in this document applies to any platform.
On 22.214.171.124, a custom package contains functions which select from objects with VPD policies.
However, when such a function is called, it behaves as if there was no VPD policy in place at all.
Furthermore, when 10730 tracing is enabled, nothing is written to trace.
In contrast, running an equivalent query in SQL*Plus, not using the PL/SQL, behaves as expected, generating 10730 trace output as well.
A package has been written which contains functions that select from VPD-protected objects.
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