没有为角色“ my_role_1”授予ADMIN选项

时间:2020-06-15 10:26:52

标签: sql oracle database-administration user-roles grant

我正在尝试向用户授予角色。

grant my_role_1 to ktest1 with admin option;

但是我收到以下错误

Error report - ORA-01932: ADMIN option not granted for role 'my_role_1'
01932. 00000 -  "ADMIN option not granted for role '%s'
*Cause:    The operation requires the admin option on the role.
*Action:   Obtain the grant option and re-try.

1 个答案:

答案 0 :(得分:1)

GRANT documentation说:

要授予角色,您必须已被授予ADMIN OPTION的角色或已被授予GRANT ANY ROLE系统特权,或者您必须已经创建了角色。