Skip to Main Content

SQL & PL/SQL

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!

Followup to earlier question about VPD, static parameter and GLOBAL SYS_CONTEXT

OhayaNov 22 2016 — edited Nov 22 2016

Hi,

I had asked about how to implement a static parameter for a VPD function earlier:

VPD: Best way to pass a static parameter to VPD Function?

and I had settled on using SYS_CONTEXT and "ACCESSED GLOBALLY".

I had shutdown the database last night and then just started up again this morning to do more testing, and noticed that the global variable was gone, so I had to run the exec to set it again.

Is there a way to avoid that and have the global variable always persist/be set automatically when the database is running?  Or maybe I am creating or setting the context incorrectly?

I am currently following the example for access globally at:  http://www.adp-gmbh.ch/ora/sql/create_context.html

Thanks!

Jim

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 20 2016
Added on Nov 22 2016
16 comments
407 views