ORA-01031: insufficient privileges

ORA-01031: insufficient privileges

$ sqlplus /nolog

SQL*Plus: Release 10.2.0.1.0 - Production on Sun Apr 22 13:42:40 2007

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

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

[@more@]
SQL> exit


$ id
uid=203(oracle) gid=203(oinstall) groups=204(dba)


为何在sqlnet.ora中添加两行后
SQLNET.AUTHENTICATION_SERVICES= (NTS)
NAMES.DIRECTORY_PATH= (TNSNAMES, ONAMES, HOSTNAME)

就无法用操作系统验证登陆呢?

经过实验发现的确如此

一旦设置 SQLNET.AUTHENTICATION_SERVICES= (NTS) 默认就取消了操作系统认证

但是新问题又来了

D:oracleoracleproduct10.2.0dbNETWORKADMIN>type sqlnet.ora
# This file is actually generated by netca. But if customers choose to
# install "Software Only", this file wont exist and without the native
# authentication, they will not be able to connect to the database on NT.

SQLNET.AUTHENTICATION_SERVICES = (NTS)


D:oracleoracleproduct10.2.0dbNETWORKADMIN>sqlplus /nolog

SQL*Plus: Release 10.2.0.2.0 - Production on 星期日 4月 22 15:29:35 2007

Copyright (c) 1982, 2005, Oracle. All Rights Reserved.

SQL> conn / as sysdba
已连接。
SQL>

这是NT平台上的测试结果

由此猜测 SQLNET.AUTHENTICATION_SERVICES = (NTS) 参数是否仅仅针对NT平台呢??

再来实验一次:
D:oracleoracleproduct10.2.0dbNETWORKADMIN>type sqlnet.ora
# This file is actually generated by netca. But if customers choose to
# install "Software Only", this file wont exist and without the native
# authentication, they will not be able to connect to the database on NT.

SQLNET.AUTHENTICATION_SERVICES = (NONE)


D:oracleoracleproduct10.2.0dbNETWORKADMIN>sqlplus /nolog

SQL*Plus: Release 10.2.0.2.0 - Production on 星期日 4月 22 15:34:18 2007

Copyright (c) 1982, 2005, Oracle. All Rights Reserved.

SQL> conn / as sysdba
ERROR:
ORA-01031: 权限不足






看来真是如此SQLNET.AUTHENTICATION_SERVICES 效果在UNIX上和NT上截然不同!

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

转载于:http://blog.itpub.net/7437037/viewspace-911946/

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值