如何获取 Oracle 用户有权访问的模式列表
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/2193063/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
How do I obtain a list of schemas that an Oracle user has access to
提问by alwayslearning
In Oracle I can grant privileges on my schema to another user so that the other user has access to my schema (and in turn objects in my schema).
在 Oracle 中,我可以将我的架构的权限授予另一个用户,以便其他用户可以访问我的架构(进而访问我的架构中的对象)。
How do I programmatically ,using ADO.NET (either MS or Oracle's provider), obtain a list of schemas to which a particular user has access?
我如何使用 ADO.NET(MS 或 Oracle 的提供程序)以编程方式获取特定用户有权访问的模式列表?
回答by dpbradley
If connected as the user of interest:
如果作为感兴趣的用户连接:
select distinct table_schema from all_tab_privs;