Is it possible to view Oracle user table privileges without having DBA privilege?

荒凉一梦 提交于 2019-12-01 16:43:53

问题


Is it possible to view the roles of the user without having DBA Privilege? If so, how?

SELECT * FROM DBA_TAB_PRIVS WHERE GRANTEE = 'USER_NAME';

The above query needs the "SELECT_CATALOG_ROLE" role.

I need to get the result of the above query without (DBA and SELECT_CATALOG_ROLE) Privileges.


回答1:


Perhaps ALL_TAB_PRIVS will provide what you want. Apparently, it contains:

Grants on objects for which the user is the grantor, grantee, owner, or an enabled role or PUBLIC is the grantee




回答2:


See me what GRANTs and Privileges I have:

SELECT * FROM user_tab_privs;



回答3:


You could have the DBA create a new role and grant the new role select on the table. The DBA could then grant you the new role which will allow you to see the table without DBA or select catalog role.




回答4:


DBA_TAB_PRIVS DBA_SYS_PRIVS DBA_ROLE_PRIVS

Here are the main tables you can check for roles and privs



来源:https://stackoverflow.com/questions/1166064/is-it-possible-to-view-oracle-user-table-privileges-without-having-dba-privilege

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!