ITPub博客

首页 > 数据库 > Oracle > sqlnet.ora

sqlnet.ora

原创 Oracle 作者:lusklusklusk 时间:2017-09-04 15:59:27 0 删除 编辑
The sqlnet.ora file is the profile configuration file. It resides on the client machines and the database server.
sqlnet.ora文件是概要配置文件。它既是客户端文件也是服务端文件。



NAMES.DIRECTORY_PATH
To specify the order of the naming methods used for client name resolution lookups.
用于客户端解析名称的顺序。
NAMES.DIRECTORY_PATH相当于一个服务搜索顺序文件,先使用tnsnames.ora中别名进行连接,如果tnsnames.ora中无法找到对应别名,再使用ldap进行连接,如果ldap也不行,最后使用ezconnect进行连接。

Default: NAMES.DIRECTORY_PATH=(tnsnames, ldap, ezconnect)

tnsnames (local naming method): Set to resolve a net service name through the tnsnames.ora file on the client.
ezconnect or hostname (Easy Connect naming method): Select to enable clients to use a TCP/IP connect identifier, consisting of a host name and optional port and service name.

如果NAMES.DIRECTORY_PATH没有配置tnsnames则不能使用tnsnames.ora别名进行连接





SQLNET.AUTHENTICATION_SERVICES
To enable one or more authentication services. If authentication has been installed, then it is recommended that this parameter be set to either none or to one of the listed authentication methods.
启用一种或多种认证服务。

SQLNET.AUTHENTICATION_SERVICES = none | all | nts(windows下表示启用OS认证)
all : 用于linux、unix、windows平台,启用OS认证
nts : 用于windows平台,启用OS认证,其他平台使用这个值表示关闭OS认证
none : 表示关闭OS认证,只能密码认证或其他认证
all: all for all authentication methods.
nts: nts for Microsoft Windows native operating system authentication
none: none for no authentication methods, including Microsoft Windows native operating system authentication. When SQLNET.AUTHENTICATION_SERVICES is set to none, a valid user name and password can be used to access the database.

AUTHENTICATION_SERVICES总结
SQLNET有AUTHENTICATION_SERVICES:
如果后面有=,但是值不是all,表示关闭OS认证,只能密码认证或其他认证(特殊一点,如果是nts则仅在windows才表示开启OS认证,其他平台都是关闭OS认证)
如果后面没有=,表示忽略AUTHENTICATION_SERVICES,即和下面SQLNET没有AUTHENTICATION_SERVICES一样
SQLNET没有AUTHENTICATION_SERVICES:
表示默认开启OS认证

默认情况下Unix/Linux下的sqlnet.ora文件是没有SQLNET.AUTHENTICATION_SERVICES参数的,此时是OS验证和密码验证并存

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

请登录后发表评论 登录
全部评论
Welcome to Lukes DB HOME。 Oracle OCM、Mysql OCP, 10年DBA工作经验,博客仅记录自己的一个学习过程,不代表完全准确,如有需要,欢迎转载。

注册时间:2015-02-02

  • 博文量
    348
  • 访问量
    1174959