关于conn / as sysdba无法登陆的解决方案

上午数据库服务器无法连接,跑到机房一看机器挂了,强制重启。使用sqlplus / as sysdba登陆数据库,提示权限不够,网上搜索得知使用操作系统认证必须满足下面两个条件:

1. 操作系統用户是否dba组
2. sqlnet.ora 认证服务从NONE改为NTS
   SQLNET.AUTHENTICATION_SERVICES= (NTS)  --windows使用nts、linux使用all

 

服务器是linux的,没有dba组,然后执行usermod -G oinstall,dba -g oinstall oracle。搞定。



下面是官网对SQLNET.AUTHENTICATION_SERVICES的解释

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


你可能感兴趣的:(关于conn / as sysdba无法登陆的解决方案)