当前位置:编程学习 > asp >>

解决使用ASP无法连接 ORACLE 9i 数据库的问题

今天,在一台WIN2K SERVER 服务器上,通过ASP安装在本机的 Oracle9i 数据库时,发现错误,根本无法连接上数据库。其错误描述如下:
Microsoft OLE DB Provider for ODBC Drivers 错误 '80004005'
[Microsoft][ODBC 驱动程序 管理器] 驱动程序的 SQLAllocHandle on SQL_HANDLE_ENV 失败


Microsoft OLE DB Provider for ODBC Drivers 错误 '80004005'
由于系统错误 5 (Oracle in jxt_user),导致不能加载指定驱动程序
连接方式是通过ODBC,驱动程序包括 Oracle ODBC Driver 和 Microsoft ODBC Driver for Oracle 。
连接字串如下:
(1)CONNECTIONSTRING ="DSN=TXLTNS;UID=user;PWD=password"
(2)CONNECTIONSTRING ="DRIVER={Oracle in txl_user};UID=user;PWD=password;DBQ=TXLTNS;DBA=W;"
结果,都是无法正常运作。经检查发现 %ORACLE_HOME% 设置是正确的,也包含到PATH中了。
在 GOOGLE 搜索简体中文的信息,发现一个信息说法如下:
“这个其实是由于Oracle9i装在2000的NTFS分区上产生的错误。主要是IIS的权限不足,找不到Oracle9i的文件导致的错误。”
而且他还给出了一堆英文文摘,答题的意思是:%ORACLE_HOME%这个目录在安装的时候,是单独设置了权限的,默认是管理员组、SYSTEM组和一个名为“Authenticated Users”的组具有权限。他还说要这样:
------------------------------------------
v. Click on "Authenticated Users" item in the "Name" list (on Windows XP the "Name" list is called "Group or user names").
vi. Uncheck the "Read and Execute" box in the "Permissions" list (on Windows XP the "Permissions" list is called "Permissions for Authenticated Users"). This box will be under the "Allow" column.
vii. Check the "Read and Execute" box. This is the box you just unchecked.
------------------------------------------
感觉这段英文的说法有点怪,为什么要取消Authenticated Users组的“读取和执行”权限呢,不是说权限不够吗?
继续在ORACLE 技术网查询相关信息,发现这个信息:
-------------------------------------------
The Microsoft ODBC driver for Oracle is known not to work correctly on a 9.2 Oracle client. You need to use the Oracle ODBC driver if you're using the 9.2 client.
补充:asp教程,数据库相关 
CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,