Oracle不可访问问题的解决

本文介绍了一个ASP.NET程序在Windows2003 Server下遇到的Oracle数据库连接问题及解决方案。通过调整sqlnet.ora文件中的SQLNET.AUTHENTICATION_SERVICES参数为(NONE),解决了NTS导致的连接不稳定问题。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

一个asp.net程序,采用oracle数据库,在windows 2003 server下面出现oracle不可访问错误,但是使用pl/sql或者winform程序均可访问oracle,发现asp.net在运行时的权限不够,在web.config文件中进行如下设置<identity impersonate="true" userName="Administrator" password="Password"/>后大部分时间可以访问oracle,但是也访问不了。后来将%oracle_home%/ora92/network/admin/sqlnet.ora文件中的SQLNET.AUTHENTICATION_SERVICES= (NTS)改为SQLNET.AUTHENTICATION_SERVICES= (NONE),问题解决。

这个 NTS 时常引起 连接不到数据库,
择段英文如下解释
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
Windows NT native authentication
An authentication method that enables a client single login access to a Windows NT server and a database running on the server.

If authentication is set to NTS on a standalone Windows 2000 or Windows NT 4.0 computer, ensure that Windows Service NT LM Security Support Provider is started. If this service is not started on a standalone Windows 2000 or Windows NT 4.0 computer, then NTS authentication fails. This issue is applicable only if you are running Windows 2000 or Windows NT 4.0 in standalone mode.


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值