简体   繁体   English

oracle 11g检查用户以查看架构源代码

[英]oracle 11g check user to view schema source code

i am using oracle 11g and have 2 schema. 我正在使用oracle 11g并具有2个架构。 is the way to grant the right to other users who can view the source code of these 2 schema beside sys/system and these schema users. 是向其他可以查看sys / system以及这两个模式用户的人查看这2个模式的源代码的用户授予权限的方法。

if can , how to check which user is able to view the source code of this schema? 如果可以,如何检查哪个用户可以查看此架构的源代码?

This may be overkill, and feedback is welcome on the wisdom of doing this, but two options come to mind: 这可能是过大的,欢迎对此提供反馈,但有两种选择:

  1. grant select on dba_source to otheruser; 将dba_source上的select授予其他用户;
  2. grant select any dictionary to otheruser; 向其他用户授予选择任何词典的权限;

The first allows otheruser to select from DBA_SOURCE, where they will be able to find the source code from packages, procedures, and functions. 第一个允许其他用户从DBA_SOURCE中选择,他们将能够从包,过程和函数中找到源代码。

The second allows otheruser to select from any dictionary object, so they will also be able to see source for views. 第二个允许其他用户从任何字典对象中进行选择,因此他们也将能够看到视图的源。

The second part of your question, how to determine who can see it is very complicated, and dependent upon how you granted access. 问题的第二部分,如何确定谁可以看到它非常复杂,并且取决于您如何授予访问权限。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM