Teradata - 如何检查用户是否有" WITH GRANT"选项?

时间:2017-06-26 17:59:34

标签: sql teradata

如何检查用户是否具有SELECT" WITH GRANT" Teradata中的选项?我知道如何使用DBC.ROLEMEMBERS和DBC.ALLROLERIGH获取权限列表,只是没有找到一种方法来检查" WITH GRANT"允许选项。

由于

1 个答案:

答案 0 :(得分:3)

GrantAuthority仅存在于AllRightsVUserGrantedRightsVUserRightsV中,原因很简单:

5613 GRANT OPTION cannot be granted to a role.
Explanation: WITH GRANT OPTION can only be granted to users or databases.
Generated By: resname2 module.
For Whom: End User.
Remedy: Remove WITH GRANT OPTION and re-submit request.