We are using Oracle’s Virtual Private Database(VPD) feature to restrict data. We have a security table that hold the list of countries that user is authorised to see the data. There is a function to return the predicate for country and a policy to apply the function to the fact tables. Function has a Application conext to set the username. Can someone help me on how to pass the username to the application conext. This will be very useful.
I am afraid V$SESSION or SYS_CONTEXT doesnt meet my requirements. BO Universe connect to oracle with a common user account hence SYS_CONNECT always return the same user account irrespective of bo user. There are about 3000+ BO users and it is not possible to have oracle account for each user. There should be some way through which BO should pass the user name to the database ( in the connection parameters)