sqlplus / as sysdba 提示权限不足(ORA-01031)问题处理

背景介绍
用户在命令窗口输入sqlplus / as sysdba提示ORA-01031: insufficient privileges 错误,同样的,在输入rman target / 提示同样的错误
问题分析
根据经验,使用sqlplus / as sysdba登陆数据库,提示权限不够,也就是我们常用的用操作系统认证方式登录数据库必须满足下面两个条件:
1. 操作系統用户是否dba组
2. sqlnet.ora 认证服务从NONE改为NTS
    SQLNET.AUTHENTICATION_SERVICES= (NTS)  --注意这里windows使用nts、linux使用all

本案例服务器是aix的,我们查询结果显示如下



可以看到用户oracle的gid为空,肯定有人动了oracle用户的所属组,知道问题所在,后续处理的方式就很简单了
问题处理
因为系统是aix系统,因此需要通过smitty chuser 调整主组为oinstall
知识点
这次我们问题是用户所属组引起的,但大多数时候,该问题是由SQLNET.AUTHENTICATION_SERVICES引起,其官方解释如下:

Purpose
Use the parameter SQLNET.AUTHENTICATION_SERVICES to enable one or more authentication services. If authentication has been installed, it is recommended that this parameter be set to either none or to one of the authentication methods.
Default
None
Values
Authentication Methods Available with Oracle Net Services:
  • none for no authentication methods. A valid username and password can be used to access the database.
  • all for all authentication methods
  • nts for Windows NT native authentication
Authentication Methods Available with Oracle Advanced Security:  
  • kerberos5 for Kerberos authentication
  • radius for RADIUS authentication
  • dcegssapi for DCE GSSAPI authentication
  • 3
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值