|
|
Re: GRANT SELECT ON all_views not working [message #683178 is a reply to message #683176] |
Thu, 10 December 2020 06:25 |
John Watson
Messages: 8960 Registered: January 2010 Location: Global Village
|
Senior Member |
|
|
It sounds to me as though you are trying to do something that is deliberately forbidden
Consider the situation where I grant you select on one of my tables. If you create a view on that table, and grant select on the view to another user, that would allow them to see my table - even though they have no permission to do so. For this to work, you would have to have been granted select on my table WITH GRANT OPTION, only then can you pass your privilege on via a view.
[Updated on: Thu, 10 December 2020 06:28] Report message to a moderator
|
|
|
Re: GRANT SELECT ON all_views not working [message #683179 is a reply to message #683176] |
Thu, 10 December 2020 06:33 |
John Watson
Messages: 8960 Registered: January 2010 Location: Global Village
|
Senior Member |
|
|
It occurs to me that there is another possibility: you could create your view with BEQUEATH CURRENT_USER and then it will run with the privileges of the invoker. Since he does, by default, have select on the ALL_% views, that should work. You will of course have to grant yourself INHERIT PRIVILEGES on the other user first.
|
|
|
|
|
|
|
|
|