<legend id='nyQv6'><style id='nyQv6'><dir id='nyQv6'><q id='nyQv6'></q></dir></style></legend>

    • <bdo id='nyQv6'></bdo><ul id='nyQv6'></ul>
  • <small id='nyQv6'></small><noframes id='nyQv6'>

    <i id='nyQv6'><tr id='nyQv6'><dt id='nyQv6'><q id='nyQv6'><span id='nyQv6'><b id='nyQv6'><form id='nyQv6'><ins id='nyQv6'></ins><ul id='nyQv6'></ul><sub id='nyQv6'></sub></form><legend id='nyQv6'></legend><bdo id='nyQv6'><pre id='nyQv6'><center id='nyQv6'></center></pre></bdo></b><th id='nyQv6'></th></span></q></dt></tr></i><div id='nyQv6'><tfoot id='nyQv6'></tfoot><dl id='nyQv6'><fieldset id='nyQv6'></fieldset></dl></div>
    <tfoot id='nyQv6'></tfoot>

      1. 如何在oracle中显示用户的所有权限?

        How to show all privileges from a user in oracle?(如何在oracle中显示用户的所有权限?)

        <small id='mYKgS'></small><noframes id='mYKgS'>

      2. <tfoot id='mYKgS'></tfoot>
        1. <i id='mYKgS'><tr id='mYKgS'><dt id='mYKgS'><q id='mYKgS'><span id='mYKgS'><b id='mYKgS'><form id='mYKgS'><ins id='mYKgS'></ins><ul id='mYKgS'></ul><sub id='mYKgS'></sub></form><legend id='mYKgS'></legend><bdo id='mYKgS'><pre id='mYKgS'><center id='mYKgS'></center></pre></bdo></b><th id='mYKgS'></th></span></q></dt></tr></i><div id='mYKgS'><tfoot id='mYKgS'></tfoot><dl id='mYKgS'><fieldset id='mYKgS'></fieldset></dl></div>

                <tbody id='mYKgS'></tbody>
              <legend id='mYKgS'><style id='mYKgS'><dir id='mYKgS'><q id='mYKgS'></q></dir></style></legend>
                <bdo id='mYKgS'></bdo><ul id='mYKgS'></ul>
                  本文介绍了如何在oracle中显示用户的所有权限?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  谁能告诉我如何在 sql-console 中显示特定用户的所有权限/规则?

                  解决方案

                  您可以尝试以下视图.

                  SELECT * FROM USER_SYS_PRIVS;SELECT * FROM USER_TAB_PRIVS;SELECT * FROM USER_ROLE_PRIVS;

                  DBA 和其他高级用户可以使用这些相同视图的 DBA_ 版本找到授予其他用户的权限.它们包含在文档中.>

                  这些视图仅显示直接授予用户的权限.查找所有权限,包括通过角色间接授予的权限,需要更复杂的递归 SQL 语句:

                  select * from dba_role_privs connect by previous given_role = grantee start with grantee = '&USER' order by 1,2,3;select * from dba_sys_privs where grantee = '&USER' or grantee in (select grantee from dba_role_privs connect by previous given_role = grantee start with grantee = '&USER') order by 1,2,3;select * from dba_tab_privs where grantee = '&USER' or grantee in (select grantee from dba_role_privs connect by previous given_role = grantee start with grantee = '&USER') 按 1,2,3,4 排序;

                  Can someone please tell me how to show all privileges/rules from a specific user in the sql-console?

                  解决方案

                  You can try these below views.

                  SELECT * FROM USER_SYS_PRIVS; 
                  SELECT * FROM USER_TAB_PRIVS;
                  SELECT * FROM USER_ROLE_PRIVS;
                  

                  DBAs and other power users can find the privileges granted to other users with the DBA_ versions of these same views. They are covered in the documentation .

                  Those views only show the privileges granted directly to the user. Finding all the privileges, including those granted indirectly through roles, requires more complicated recursive SQL statements:

                  select * from dba_role_privs connect by prior granted_role = grantee start with grantee = '&USER' order by 1,2,3;
                  select * from dba_sys_privs  where grantee = '&USER' or grantee in (select granted_role from dba_role_privs connect by prior granted_role = grantee start with grantee = '&USER') order by 1,2,3;
                  select * from dba_tab_privs  where grantee = '&USER' or grantee in (select granted_role from dba_role_privs connect by prior granted_role = grantee start with grantee = '&USER') order by 1,2,3,4;
                  

                  这篇关于如何在oracle中显示用户的所有权限?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  ibtmp1是非压缩的innodb临时表的独立表空间,通过innodb_temp_data_file_path参数指定文件的路径,文件名和大小,默认配置为ibtmp1:12M:autoextend,也就是说在文件系统磁盘足够的情况下,这个文件大小是可以无限增长的。 为了避免ibtmp1文件无止境的暴涨导致
                  SQL query to group by day(按天分组的 SQL 查询)
                  What does SQL clause quot;GROUP BY 1quot; mean?(SQL 子句“GROUP BY 1是什么意思?意思是?)
                  MySQL groupwise MAX() returns unexpected results(MySQL groupwise MAX() 返回意外结果)
                  MySQL SELECT most frequent by group(MySQL SELECT 按组最频繁)
                  Include missing months in Group By query(在 Group By 查询中包含缺失的月份)
                  <legend id='l6OJm'><style id='l6OJm'><dir id='l6OJm'><q id='l6OJm'></q></dir></style></legend>
                        <bdo id='l6OJm'></bdo><ul id='l6OJm'></ul>

                            <tbody id='l6OJm'></tbody>
                        1. <tfoot id='l6OJm'></tfoot>

                            <small id='l6OJm'></small><noframes id='l6OJm'>

                            <i id='l6OJm'><tr id='l6OJm'><dt id='l6OJm'><q id='l6OJm'><span id='l6OJm'><b id='l6OJm'><form id='l6OJm'><ins id='l6OJm'></ins><ul id='l6OJm'></ul><sub id='l6OJm'></sub></form><legend id='l6OJm'></legend><bdo id='l6OJm'><pre id='l6OJm'><center id='l6OJm'></center></pre></bdo></b><th id='l6OJm'></th></span></q></dt></tr></i><div id='l6OJm'><tfoot id='l6OJm'></tfoot><dl id='l6OJm'><fieldset id='l6OJm'></fieldset></dl></div>