服务启起来,运行,cmd
,打开命令行窗口
C:\users\pc>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> show user
USER 为"SYS"