Column Level Security [message #370587] |
Mon, 03 January 2000 16:24 ![Go to next message Go to next message](/forum/theme/orafaq/images/down.png) |
richa
Messages: 7 Registered: January 2000
|
Junior Member |
|
|
Hi all,
Is there any way I can imlement column level security from Oracle? Example One user can see Emp No and Emp Name columns from the Employee table and another can see Emp No, Emp Name and Emp Address columns. Will making a view for every user for every table be the best approach/ I have doubts abt it bcos if there are 1000 users and 500 tables per user we have a rapid spawning of views? Any solutions?
Richa
|
|
|
Re: Column Level Security [message #370643 is a reply to message #370587] |
Thu, 13 January 2000 18:05 ![Go to previous message Go to previous message](/forum/theme/orafaq/images/up.png) ![Go to next message Go to next message](/forum/theme/orafaq/images/down.png) |
Roger D. Cornejo
Messages: 5 Registered: January 2000
|
Junior Member |
|
|
Views will work, however, as you've pointed out this will be a problem for large numbers of tables and large numbers of users. Granting access to the views to roles and then granting roles to the users should help manage the problem.
Here's something I havn't tried, but it's an idea:
1) create a <PRIV'S TABLE> with the username and the priv, with one row per user.
2) join the priv's table to the main tables where user = <PRIV'S TABLE>.username
3) in the select list of the main table decode on the priv (e.g. DECODE(priv,'YES', - , null) I.e. don't show the column value if they don't have the priv.
Roger ---|-
|
|
|
|