sqlplus / as sysdba 提示权限不足(ORA-01031)问题处理
2016-04-19 17:34
666 查看
背景介绍
用户在命令窗口输入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引起,其官方解释如下:
[align=left]Purpose[/align]
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 eithernone or to one
of the authentication methods.
[align=left]Default[/align]
None
[align=left]Values[/align]
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
用户在命令窗口输入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引起,其官方解释如下:
[align=left]Purpose[/align]
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 eithernone or to one
of the authentication methods.
[align=left]Default[/align]
None
[align=left]Values[/align]
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
相关文章推荐
- 一千行MySQL学习笔记
- sql优化原则与技巧
- memcached
- Oracle Study之-AIX6.1构建Oracle 11gR2 RAC(2) 推荐
- Oracle中Hint深入理解
- Mysql主从复制
- Oracle Study之-AIX6.1构建Oracle 11gR2 RAC(2)
- Views Relevant to Oracle Data Guard
- flask+mako+peewee(下)(解决了Error 2006: MySQL server has gone away)
- ORACLE常用SQL优化hint语句
- Innobackup mysql 多实例环境搭建主从同步
- 数据库中的三级模式结构
- SQL自定义函数 字符串截取 递归查询 以及一个小例子
- MongoDB
- oracle 10g和11g下 CDC机制(change data capture) 变化数据捕捉
- JDBC+MYSQL初始学习
- 阿里云分布式关系数据库DRDS笔记
- SqlServer查询表中各列名称、表中列数
- Mysql join语句解析
- 开启MYSQL主从同步备份