在windows通过操作系统认证登录ORACLE

在windows通过操作系统认证登录ORACLE

在windows通过操作系统认证登录ORACLE
2010-1-14
在windows 2008下,尝试登录oracle报错:

C:\Users\oracle>sqlplus /nolog

SQL*Plus: Release 11.1.0.6.0 - Production on Wed Jan 13 17:42:49 2010

Copyright (c) 1982, 2007, Oracle.  All rights reserved.

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


明明是ORACLE用户,怎么说我没有权限呢? 难道2008 的Windows搞歧视,sqlserver和oracle数据库间的竞争延伸到了OS和DB。
应该不会的。
在ORACLE 官网上找到解释:
When you install Oracle Database, a special Windows local group called ORA_DBA is created (if it does not already exist from an earlier Oracle Database installation), and your Windows username is automatically added to it. Members of local group ORA_DBA automatically receive the SYSDBA privilege.

我查看我的环境,发现oracle 用户没有赋予ora_dba group。那肯定是没有赋予sysdba的权限了,无法通过操作系统认证了。
修改权限,再次登陆。问题解决了:
C:\Users\oracle>sqlplus / as sysdba

SQL*Plus: Release 11.1.0.6.0 - Production on Wed Jan 13 18:34:06 2010

Copyright (c) 1982, 2007, Oracle.  All rights reserved.


Connected to:
Oracle Database 11g Release 11.1.0.6.0 - 64bit Production



在UNIX混的时间太长了,连windows的简单的操作都不会用,汗颜啊。
-END-