日期:2014-05-17  浏览次数:20894 次

Oracle9i中的 SQLPLUS 登陆问题(头疼啊···)
SQL code

C:\Documents and Settings\db2admin>sqlplus scott/tiger

SQL*Plus: Release 9.2.0.1.0 - Production on 星期五 4月 23 09:51:02 2010

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


连接到:
Oracle9i Enterprise Edition Release 9.2.0.1.0 - Production
With the Partitioning, OLAP and Oracle Data Mining options
JServer Release 9.2.0.1.0 - Production

SQL>

使用 scott 用户登陆正常
SQL code

C:\Documents and Settings\db2admin>sqlplus /nolog

SQL*Plus: Release 9.2.0.1.0 - Production on 星期五 4月 23 09:52:19 2010

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

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


SQL>


显示的是权限不足的异常。

-------------------以下是oracle配置文件------------------------
--sqlnet.ora
# SQLNET.ORA Network Configuration File: E:\oracle\ora92\network\admin\sqlnet.ora
# Generated by Oracle configuration tools.

SQLNET.AUTHENTICATION_SERVICES= (NTS)

NAMES.DIRECTORY_PATH= (TNSNAMES, ONAMES, HOSTNAME)

--tnsnames.ora
# TNSNAMES.ORA Network Configuration File: E:\oracle\ora92\NETWORK\ADMIN\tnsnames.ora
# Generated by Oracle configuration tools.

S30 =
  (DESCRIPTION =
  (ADDRESS_LIST =
  (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.30)(PORT = 1521))
  )
  (CONNECT_DATA =
  (SERVICE_NAME = ora9)
  )
  )

INST1_HTTP =
  (DESCRIPTION =
  (ADDRESS_LIST =
  (ADDRESS = (PROTOCOL = TCP)(HOST = apache)(PORT = 1521))
  )
  (CONNECT_DATA =
  (SERVER = SHARED)
  (SERVICE_NAME = MODOSE)
  (PRESENTATION = http://HRService)
  )
  )

EXTPROC_CONNECTION_DATA =
  (DESCRIPTION =
  (ADDRESS_LIST =
  (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC0))
  )
  (CONNECT_DATA =
  (SID = PLSExtProc)
  (PRESENTATION = RO)
  )
  )

ORACLE =
  (DESCRIPTION =
  (ADDRESS_LIST =
  (ADDRESS = (PROTOCOL = TCP)(HOST = apache)(PORT = 1521))
  )
  (CONNECT_DATA =
  (SERVER = DEDICATED)
  (SERVICE_NAME = oracle)
  )
  )
ZHOU =
  (DESCRIPTION =
  (ADDRESS_LIST =
  (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.18)(PORT = 1521))
  )
  (CONNECT_DATA =
  (SERVICE_NAME = ORA9)
  )
  )
CHEN =
  (DESCRIPTION =
  (ADDRESS_LIST =
  (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.19)(PORT = 1521))
  )
  (CONNECT_DATA =
  (SERVICE_NAME = ORACLE)
  )
  )

------------------------------------

这个问题困扰我一天了,请高手们提点解决思路。

------解决方案--------------------
在控制面板的用户管理里看一下,有没有ora_dba用户组,如果没有请增加
如果有,当前用户有没有加入ora_dba组,如果没有请加入
再试试
c:\>sqlplus / as sysdba
------解决方案--------------------
1.2 SQLNET.ORA参数文件里,必须设置

SQLNET.AUTHENTICATION_SERVICES = (NTS)