My Oracle Support Banner

VPD does not work from inside PL/SQL (Doc ID 1964494.1)

Last updated on FEBRUARY 23, 2023

Applies to:

Oracle Database - Enterprise Edition - Version and later
Information in this document applies to any platform.


On, 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.


To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!

In this Document

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.