01031. 00000 - "insufficient privileges" 同时向新用户授予系统权限
01031. 00000 - "insufficient privileges" while granting System Privileges to the new user
我在 Oracle SQL Developer 中创建了一个新连接。在这个新连接下,我创建了一个新用户。现在,我正在尝试向这个新用户授予角色和系统权限。尝试向新用户授予系统权限时出现以下错误:
新用户已成功获得所有角色。但是,我无法授予它所有系统权限。
更新:
我关注了this and this links to grant sysdba privilege to the new user using the command prompt. I'm able to grant sysdba to this new user. However, when I try to grant all system privileges from the Oracle sql Developer, I get the same error (specified in the screenshot above). I am trying to grant all the system privilege to the new user because I'm getting following error while trying to access the tables of the database.
最近我不得不将我的 OS 更改为 Windows 10。之前我有 Windows 7,但我没有任何这些问题。这个问题与 OS 有关吗?在 Windows 10 中使用 Oracle SQL Developer 有什么问题吗?
您应该以 SYS 或 SYSTEM 身份连接才能授予 SYSDBA。你是吗?
例如:
connect sys/pwd@db as sysdba
grant sysdba to santobedi;
请参考这个blog
The ORA-01031: "insufficient privileges" error occurs when you attempt
to execute a program or function for which you have not been granted
the appropriate privileges.
For the DBA, the ORA-01031 can happen if the target OS executables do
not have read and execute permissions (e.g. (770) in UNIX/Linux), and
ensure that the oracle user is a member of the dba group (e.g.
/etc/group). There are similar permission in the Windows registry.
Inside Oracle, the "ORA-01031: insufficient privileges" error can be
avoided by signing on "as sysdba" with unlimited database privileges.
The oerr utility notes this on the ORA-01031 error:
ORA-01031: insufficient privileges
Cause: An attempt was made to change the current username or password
without the appropriate privilege. This error also occurs if
attempting to install a database without the necessary operating
system privileges. When Trusted Oracle is configure in DBMS MAC, this
error may occur if the user was granted the necessary privilege at a
higher label than the current login.
Action: Ask the database administrator to perform the operation or
grant the required privileges. For Trusted Oracle users getting this
error although granted the appropriate privilege at a higher label,
ask the database administrator to re-grant the privilege at the
appropriate label.
我在 Oracle SQL Developer 中创建了一个新连接。在这个新连接下,我创建了一个新用户。现在,我正在尝试向这个新用户授予角色和系统权限。尝试向新用户授予系统权限时出现以下错误:
新用户已成功获得所有角色。但是,我无法授予它所有系统权限。
更新:
我关注了this and this links to grant sysdba privilege to the new user using the command prompt. I'm able to grant sysdba to this new user. However, when I try to grant all system privileges from the Oracle sql Developer, I get the same error (specified in the screenshot above). I am trying to grant all the system privilege to the new user because I'm getting following error while trying to access the tables of the database.
最近我不得不将我的 OS 更改为 Windows 10。之前我有 Windows 7,但我没有任何这些问题。这个问题与 OS 有关吗?在 Windows 10 中使用 Oracle SQL Developer 有什么问题吗?
您应该以 SYS 或 SYSTEM 身份连接才能授予 SYSDBA。你是吗?
例如:
connect sys/pwd@db as sysdba
grant sysdba to santobedi;
请参考这个blog
The ORA-01031: "insufficient privileges" error occurs when you attempt to execute a program or function for which you have not been granted the appropriate privileges.
For the DBA, the ORA-01031 can happen if the target OS executables do not have read and execute permissions (e.g. (770) in UNIX/Linux), and ensure that the oracle user is a member of the dba group (e.g. /etc/group). There are similar permission in the Windows registry.
Inside Oracle, the "ORA-01031: insufficient privileges" error can be avoided by signing on "as sysdba" with unlimited database privileges.
The oerr utility notes this on the ORA-01031 error:
ORA-01031: insufficient privileges
Cause: An attempt was made to change the current username or password without the appropriate privilege. This error also occurs if attempting to install a database without the necessary operating system privileges. When Trusted Oracle is configure in DBMS MAC, this error may occur if the user was granted the necessary privilege at a higher label than the current login.
Action: Ask the database administrator to perform the operation or grant the required privileges. For Trusted Oracle users getting this error although granted the appropriate privilege at a higher label, ask the database administrator to re-grant the privilege at the appropriate label.