Why doesn't PL/SQL respect privileges granted by Roles?

后端 未结 5 894
我在风中等你
我在风中等你 2021-01-14 15:26

When executing a PL/SQL block, any privileges granted to roles are ignored. Instead you must give specific users specific grants to run it. If I want to give DBAs access to

5条回答
  •  旧巷少年郎
    2021-01-14 15:58

    Maybe I am not understanding something correctly here, because I have done what you say can't be done. In fact, the Oracle documentation says it can be done. Look at the section on Procedure Security in this document. (@ibre5041)Nothing would have to be recompiled because the procedures run under the owner's privileges. The user's (or his roles') privileges are only checked for whether they are allowed to run the procedure. What am I missing?

提交回复
热议问题