ORA-28022: cannot grant external roles to global user or role ORACLE 报错 故障修复 远程处理

文档解释

ORA-28022: cannot grant external roles to global user or role

Cause: The role granted was IDENTIFIED EXTERNALLY. External roles cannot be granted to global users, to global roles or to any other roles.

Action: Use ALTER ROLE to change the type of the role being granted (from IDENTIFIED EXTERNALLY to other, such as NOT IDENTIFIED) or use ALTER USER to change the type of the user that is the grantee.

ORA-28022:无法授予外部角色给全局用户或角色

官方解释

如果尝试由外部角色分配某个全局用户或角色,则可能导致此错误。 ORA-28022不允许全局用户或角色被授予外部角色。

常见案例

当尝试授予一个外部角色给一个全局用户时,可能会出现这种情况。

一般处理方法及步骤

可以通过以下步骤轻松解决ORA-28022错误:

1. 创建一个本地用户,作为从属用户将要授予的外部角色的角色权限。

2. 从属用户被分配所有关联的角色

3. 拥有该角色的从属用户与全局用户共享权限。


数据运维技术 » ORA-28022: cannot grant external roles to global user or role ORACLE 报错 故障修复 远程处理