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!

PL/SQL Command set_policy_context explanation and alternatives

3292105Aug 5 2016 — edited Aug 15 2016

Hi,

In order to access any observations in a view, I first must run the following command once when logging in to SQL Developer:

begin

apps.mo_global.set_policy_context('S',org#) ;

end ;

If I query the view before running the command above, the dataset is returned but contains absolutely no observations.  After running the command, I am able to view all of the observations in the view and can query it normally.  Can someone explain why this command is necessary and if there are any other ways to avoid having to enter it each time I enter SQL developer?  I have the same issue querying the view from other programs, such as SAS, and I am unable to find any other ways to access the observations in the desired view.

Any help or explanation on this would be much appreciated.

Thank you

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 12 2016
Added on Aug 5 2016
3 comments
2,655 views