otmfaqForumsBlogsRegister
FAQMembers ListCalendarToday's PostsSearch


 Subscribe Blogs:RSS
 Subscribe Forums:RSS
OTMFAQ Home
OTMFAQ Blogs
OTMFAQ Forums
OTMFAQ Tutorials

OTM SIG
MavenWire

Go Back   Oracle OTM / G-Log GC3 Community Support > OTM / G-Log - Technical Topics > Database Administration
Reload this Page

What exactly are "SYS_CONTEXT" and "gl_user_ctx" in a VPD predicate?


Database Administration Database installation, creation, administration and related topics.

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old September 18th, 2008, 08:24
Member
 
Join Date: Feb 2008
Posts: 62
Thanks: 1
Thanked 0 Times in 0 Posts
Groans: 0
Groaned at 0 Times in 0 Posts
Rep Power: 1
MURTHYKO is on a distinguished road
Question What exactly are "SYS_CONTEXT" and "gl_user_ctx" in a VPD predicate?

Dear All,

Can any one explain me, what exactly are "SYS_CONTEXT" and "gl_user_ctx", which we use while defining a predicate in VPD Profile? Pls explain in detail.

Thanks & Regards,
Lakshman
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old September 19th, 2008, 03:55
Member
 
Join Date: Dec 2007
Posts: 66
Thanks: 5
Thanked 10 Times in 10 Posts
Groans: 1
Groaned at 1 Time in 1 Post
Rep Power: 2
james_foran is on a distinguished road
Re: What exactly are "SYS_CONTEXT" and "gl_user_ctx" in a VPD predicate?

Hi,

This is used to substitute a condition within the EXTERNAL_PREDICATE, with a VPD Context that is linked to the user.

Within your External Predciate, you may include the following:

where corporation_xid = SYS_CONTEXT('gl_user_ctx','CORPORATION_XID')


Within the VPD_CONTEXT/VPD_CONTEXT_VARIABLE table, the CONTEXT_VAR_NAME will contain the CORPORATION_XID, and the CONTEXT_VAR_VALUE contains the "TEST_CORPORATION".

For users that are linked to the VPD_CONTEXT, via their User Role, External Predicate will be executed as follows:

where corporation_xid = 'TEST_CORPORATION'

If there is no VPD Context linked to a user, all records are returned.

Hope this helps.

Regards,

James
__________________
James Foran
Toll Solutions
http://www.tollgroup.com
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply



Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Milestone Monitor Refresh error "ArrayIndexOutOfBoundsException" sknmail@rediffmail.com Workflow 0 October 25th, 2007 20:09
[SOLVED] "Exceed Max Connections Allowed" When Launching A Report From OTM ianlo Reports / FTI and Other Analytics 7 May 9th, 2007 07:49
[SOLVED] Re: "Service Temporarily Unavailable" in OTM browser and other issues Rick v100 Email List Archive 1 January 3rd, 2007 17:46
[SOLVED] Re: "Service Temporarily Unavailable" in OTM browser and other issues Rick v100 Email List Archive 1 January 2nd, 2007 18:53
[SOLVED] "Service Temporarily Unavailable" in OTM browser and other issues idq Email List Archive 0 January 2nd, 2007 18:19



All times are GMT. The time now is 20:31.
Copyright © 2008, Open Book Solutions LLC. All rights reserved.

Sponsored by MavenWire - MavenWire.com


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37