开发者

Do procedures need separate access Rights on Tables?

开发者 https://www.devze.com 2023-02-28 19:28 出处:网络
I have access on tables but when I run the same query in Anonymous block it fails with ORA-00942: ta开发者_如何转开发ble or view does not exist

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

ORA-00942: ta开发者_如何转开发ble or view does not exist


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号