• 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的“读取及运行”的允许选中,点击确定,即可

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

  • 相关阅读:
    OpenGL模板缓冲区与模板测试
    u3d调用c++ dll的DllNotFoundExceion 问题
    u3d调用自己的dll
    使用 idea 的Bookmarks(书签)功能
    maven 相关问题
    项目
    使用 vi/vim 时,粘贴进新创建文件或空文件的首行内容丢失的解决方法
    Thread.sleep还是TimeUnit.SECONDS.sleep
    搭建 Guacamole 并解决各种坑和创建不了虚拟驱动器导致无法实现文件传输的方法
    properJavaRDP 跑通本地远程桌面
  • 原文地址:https://www.cnblogs.com/lauer0246/p/1710166.html
Copyright © 2020-2023  润新知