Are the privileges on underlying table automatically passed on to any views created on the table?

≡放荡痞女 提交于 2020-01-04 05:53:52

问题


If a user has SELECT, INSERT privileges on the underlying table of a view, would he automatically have the same privileges on views (created on the table) as well or does he need to be granted those?

For instance, suppose Bob has INSERT privileges on the table EMPLOYEES. Does he also have INSERT privileges on a view EMPLOYEENAMES which has only the names of the employees?

PLEASE NOTE: I am working on oracle express 11g


回答1:


No, the privileges are not inherited (which would be rather problematic when you're joining multiple tables or when you are calling functions). The views are separate objects so the grants are separate as well.



来源:https://stackoverflow.com/questions/19672116/are-the-privileges-on-underlying-table-automatically-passed-on-to-any-views-crea

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!