<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中显示用户的所有权限?

        时间:2023-09-20

        <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中显示用户的所有权限?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  上一篇:oracle 格式化日期 下一篇:如何从 Oracle 中的值列表中进行选择

                  相关文章

                  <legend id='l6OJm'><style id='l6OJm'><dir id='l6OJm'><q id='l6OJm'></q></dir></style></legend>
                      <bdo id='l6OJm'></bdo><ul id='l6OJm'></ul>

                    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>