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

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

  • 相关阅读:
    Filebeat Processors对日志数据的处理
    beats直接给es传输日志,自定义索引名
    Elasticsearch:修改fielddata
    Elasticsearch:Elasticsearch中的refresh和flush操作指南
    Elasticsearch创建索引(index)及一个文档(document)
    Elasticsearch:如何对PDF文件进行搜索
    C++ 类构造函数 & 析构函数~
    学习CSS的好地方:CSS Inspiration -- CSS灵感
    css式样里的content
    寄存器与cmp,mov,add,sub,IMUL指令
  • 原文地址:https://www.cnblogs.com/lauer0246/p/1710166.html
Copyright © 2011-2022 走看看