gpt4 book ai didi

oracle - 是否可以在没有DBA特权的情况下查看Oracle用户表特权?

转载 作者:行者123 更新时间:2023-12-04 13:35:44 25 4
gpt4 key购买 nike

是否可以在没有DBA特权的情况下查看用户的角色?如果是这样,怎么办?

SELECT * FROM DBA_TAB_PRIVS WHERE GRANTEE = 'USER_NAME';

上面的查询需要“SELECT_CATALOG_ROLE”角色。

我需要获得没有(DBA和SELECT_CATALOG_ROLE)特权的上述查询的结果。

最佳答案

也许ALL_TAB_PRIVS将提供您想要的。显然,它包含:

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

关于oracle - 是否可以在没有DBA特权的情况下查看Oracle用户表特权?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1166064/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com