系统相关
首页 > 系统相关> > windows上 ORA-01031的解决办法

windows上 ORA-01031的解决办法

作者:互联网

运维DBA反映在Windows环境的Oracle数据库,在执行sqlplus / as sysdba本地权限登录数据库时报错ORA-01031

测试环境win平台的oracle不能在本地使用sqlplus / as sysdba登录数据库,提示ora-01031的错误

01031, 00000, "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 // ? ? ? ? ?the appropriate privilege at a higher label, ask the database // ? ? ? ? ?administrator to regrant the privilege at the appropriate label.

ORA-01031的解决办法

根据这个错误提示,我的第一反应就是当前的用户不属于ora_dba用户组,
通过计算机管理–>本地用户和组–>administrator用户属性–>隶属于中只有一个administrators,果然没有ora_dba组


接下来的事情,就是添加ora_dba组到administrator用户中
点击刚刚隶属于下面的添加–>高级–>立即查找–选择ora_dba–点击确定–>再点击选择组中的确定–>点击用户属性的确定


添加把ora_dba添加到administrator用户所属组中,再尝试登录

ok,登录成功了,看来在win系统中,要想使用sqlplus / as sysdba 登录数据库,必须要隶属于ora_dba组,就算administrators组也不能越俎代庖。

标签:administrator,登录,windows,01031,dba,privilege,ORA,ora
来源: https://www.cnblogs.com/chendian0/p/13455602.html