日期:2014-05-16  浏览次数:20561 次

conn / as sysdba遇到ORA-01031: insufficient privileges

运行,cmd,打开命令行窗口

C:/Documents and Settings/Administrator.LINYUHUI.000>sqlplus /nolog

SQL*Plus: Release 9.2.0.1.0 - Production on 星期二 12月 22 17:00:23 2009

Copyright (c) 1982, 2002, Oracle Corporation.? All rights reserved.

SQL> conn / as sysdba
ERROR:
ORA-01031: insufficient privileges

?

啊哦,出错了。再试试

SQL> conn?system/oracle@ORACLE?as sysdba;
ERROR:
ORA-01031: insufficient privileges

?

加上实例名还是不行。

?

我打开他的SQLNET.ORA文件,内容如下

# SQLNET.ORA Network Configuration File: C:/oracle/ora92/network/admin/sqlnet.ora
# Generated by Oracle configuration tools.

SQLNET.AUTHENTICATION_SERVICES= (NTS)

NAMES.DIRECTORY_PATH= (TNSNAMES, ONAMES, HOSTNAME)

对着的呀,SQLNET.AUTHENTICATION_SERVICES参数已经设置为NTS了。思考……

?

右键我的电脑-管理-本地用户和组-组-在右边找到ORA-DBA组-双击打开-OH!

?

发现问题了,ORA_DBA这个组里面是空的,没有成员,这时我把administrator添加进去,再去命令行下执行。如果你机器有多个管理员,这时你要把你当前操作的用户添加进去。

SQL> conn / as sysdba
已连接。
SQL>?alert user sys identified by sys;

用户已修改

SQL>alert user system identified by system;