ORA-01939: only the ADMIN OPTION can be specified ORACLE 报错 故障修复 远程处理

文档解释

ORA-01939: only the ADMIN OPTION can be specified

Cause: System privileges and Roles can only be granted with the admin option. The grant option cannot be used with these privileges.

Action: Specify the admin option.

ORA-01939错误指示执行请求的数据字典中不受支持。它被触发,当有非管理员被要求更新文件。

官方解释

ORA-01939,只有管理员选项可以指定。

常见案例

案例1:选择用户更新表:

SQL> GRANT UPDATE ON table_name TO user_name;

ERROR:ORA-01939:只有管理员选项可以指定

正常处理方法及步骤

只有管理员才可以更新表,如果有其他用户需要更新表,可以让管理员给他们授权:

SQL> GRANT UPDATE ON table_name TO user_name WITH ADMIN OPTION;

SQL> GRANT UPDATE ON table_name TO user_name;


数据运维技术 » ORA-01939: only the ADMIN OPTION can be specified ORACLE 报错 故障修复 远程处理