ORA-28168: attempted to grant password-protected role

文档解释

ORA-28168: attempted to grant password-protected role

Cause: An ALTER USER … GRANT CONNECT command was attempted specifying a role that is protected by a password as a role which the proxy may execute on behalf of a client.

Action: Either specify a role that does not have a password or alter the role so that a password is not required.

ORA-28168表示尝试授予密码保护角色时出现了错误。

官方解释

ORA-28168的原因是角色的密码保护必须在授予角色之前进行设置。

常见案例

要授予带有密码保护的角色,用户必须先将该角色的密码保护设置为激活状态。如果尝试授予一个尚未启用密码保护的角色,则会出现ORA-28168错误。

一般处理方法及步骤

1. 使用ALTER ROLE命令或DBMS_SYSTEM包中的PASSWORD_FORCE函数,将角色密码保护设置为激活状态。

2. 使用GRANT命令或DBMS_SYSTEM包中的GRANT_ROLE_PASSWORD函数,授予带有密码保护的角色。

你可能感兴趣的