ITPub博客

首页 > Linux操作系统 > Linux操作系统 > 在windows通过操作系统认证登录ORACLE

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

Linux操作系统 作者:liuhaimiao 时间:2017-01-23 10:47:20 0 删除 编辑

在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-

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/223653/viewspace-2132834/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论
sap技术顾问

注册时间:2014-07-29

  • 博文量
    933
  • 访问量
    861980