otmfaqForumsBlogsRegister
FAQMembers ListCalendarToday's PostsSearch


 Subscribe Blogs:RSS
 Subscribe Forums:RSS
 Follow New Posts:Twitter
OTMFAQ Home
OTMFAQ Blogs
OTMFAQ Forums
OTM Wiki

OTM SIG
OTM Wiki
MavenWire


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

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old October 14th, 2009, 04:58
Junior Member
 
Join Date: Sep 2009
Posts: 14
Groans: 0
Groaned at 0 Times in 0 Posts
Thanks: 0
Thanked 3 Times in 3 Posts
Rep Power: 0
stoganv is on a distinguished road
VPD in OTM

Hello folks,

My first post here.

I've started to dig into the internals of VPD within OTM and I'm trying to work out how it all hangs together.

I've come across something which doesn't quite make sense to me. Here's what I've found.

Location table :

- It has 2 policies for read
1. VPDWREXT_PREDICATE_READ584
2. VPD.EXTERNAL_PREDICATE_RULE_READ

The first one has a policy_type of dbms_rls.shared_context_sensitive while the second one has dbms_rls.dynamic. The first one basically does a call to VPD.EXTERNAL_PREDICATE_RULE_READ. Why are we doing the same thing twice? Doesn't the second dynamic policy of dynamic make it reparse the statement each time which basically means there's no reason for the first one?

I've run a seesion trace with 10046 and I can see the functions being called.

Anyone know why it works this way?

I'm about to raise a service request with Oracle to get some more info... oh, this is 5.5 and it's a 10.2.0.3 database on Linux. I can see similar stuff in 5 on 9.2.0.8.

Regards,

Stojan.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old October 20th, 2009, 00:19
Junior Member
 
Join Date: Sep 2009
Posts: 14
Groans: 0
Groaned at 0 Times in 0 Posts
Thanks: 0
Thanked 3 Times in 3 Posts
Rep Power: 0
stoganv is on a distinguished road
Re: VPD in OTM

For those interested I can see that they have changed the default policy group in 5.5 or thereabouts.

In our 5.0b systems when you call the procedure vpd.set_user the default policy group is DYNAMIC. In 5.5 the default policy group changes to STATIC. We are seeing a few policy predicate errors due to this as 5.5 and 10g has policies which are shared context sensitive.

I've rasied a service request with Oracle to explain why we are executing the policies twice but it could be related to the above even though we see it on old and new.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
The Following User Says Thank You to stoganv For This Useful Post:
chrisplough (December 4th, 2009)
  #3 (permalink)  
Old December 4th, 2009, 19:40
chrisplough's Avatar
Site Moderator
 
Join Date: Jun 2006
Location: West Chester, PA
Posts: 1,167
Blog Entries: 8
Groans: 0
Groaned at 1 Time in 1 Post
Thanks: 143
Thanked 258 Times in 161 Posts
Rep Power: 10
chrisplough is a jewel in the roughchrisplough is a jewel in the roughchrisplough is a jewel in the rough
Send a message via AIM to chrisplough
Re: VPD in OTM

I'd be curious to see the results of your SR. Please post back when done

--Chris
__________________
Chris Plough
MavenWire

www.MavenWire.com
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old December 6th, 2009, 21:36
Junior Member
 
Join Date: Sep 2009
Posts: 14
Groans: 0
Groaned at 0 Times in 0 Posts
Thanks: 0
Thanked 3 Times in 3 Posts
Rep Power: 0
stoganv is on a distinguished road
Re: VPD in OTM

My take on how policies are executed wasn't right and I was getting strange results due the database i was testing on being hosed.

I can't remember off the top of my head but there's some sort of context you set to tell Oracle to only run static or dynamic policies via the policy groups. OTM changed the default behaviour of the vpd.set_user function to be static sometime around 5.5.

It still doesn't explain the policy predicate errors we are seeing intermittently in production which I originally thought was due to policies being executed twice.

Last edited by stoganv; December 6th, 2009 at 21:56.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules

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



All times are GMT. The time now is 23:14.
Copyright © 2006-2009, Open Book Solutions LLC. All rights reserved.


Inactive Reminders By Icora Web Design

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 38 39 40