Do procedures need separate access Rights on Tables?

南楼画角 提交于 2019-12-13 07:28:57

问题


I have access on tables but when I run the same query in Anonymous block it fails with

ORA-00942: table or view does not exist


回答1:


The Oracle security model means that we cannot build database objects (views, stored procedures, etc) using privileges granted to our account through a role. The privileges have to be explicitly granted to our named account.

This applies to anonymous blocks as well.

So, if you want to build PL/SQL which runs against database objects in other schemas you will have to ask the schema owner - or the DBA - to grant you the privileges you need.



来源:https://stackoverflow.com/questions/5780224/do-procedures-need-separate-access-rights-on-tables

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