ASP使用ADO连接ORACLE数据库失败解决方法

错误现象

-----------connectionstring:  
  Provider=OraOLEDB.Oracle;   Data   Source=ORACLE;   User   Id=sinodigital;Password=aaaaa;  
  ------------err.description:  
  Provider   cannot   be   found.   It   may   not   be   properly   installed.  
  -----------connectionstring:  
  Provider=MSDAORA.1;Password=aaaaa;User   ID=sinodigital;Data   Source=oracle;Persist   Security   Info=True  
  ------------err.description:  
  Oracle   client   and   networking   components   were   not   found.   These   components   are   supplied   by   Oracle   Corporation   and   are   part   of   the   Oracle   Version   7.3.3   or   later   client   software   installation.   Provider   is   unable   to   function   until   these   components   are   installed.  
   
  -----------connectionstring:  
  DSN=dl;UID=sinodigital;PWD=aaaaa;SERVER=oracle;  
  ------------err.description:  
  [Microsoft][ODBC   Driver   Manager]   Driver's   SQLAllocHandle   on   SQL_HANDLE_ENV   failed

 

原因:oracle安装目录文件夹的authenticated users用户权限不足,导致asp文件创建数据库连接时,系统无法访问oracle目录

解决方案:以oracle9.2为例

1、在web服务器的oracle安装目录下,右键选择ora92文件夹的属性

2、在“安全”页下将authenticated   user的“读取及运行”的允许取消选中(时间比较长),点击确定

3、再次打开属性页面,将“安全”页下将authenticated   user的“读取及运行”的允许选中,点击确定,即可

如果没有“安全”页,将菜单“工具”->查看下的“使用简单文件共享(推荐)”取消选中,确定即可。

转载于:https://www.cnblogs.com/lauer0246/archive/2010/04/12/1710166.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值