---
title: "解决System.Data.OracleClient需要Oracle 客户端软件8.1.7或更高版本"
author: "songhongchen"
date: "2009-04-12T16:33:04Z"
tags: ["AIX", "HP", "IIS", "Linux", "Oracle"]
slug: "system-data-oracleclient-oracle-8-1-7"
draft: false
lastmod: "2009-04-12T16:34:52Z"
id: 366083
url: "https://songhongchen.iteye.com/blog/366083"
---

公司的一个项目要求服务器使用windows2008操作系统和oracle数据库，于是安装完成Windows2008后，就把去年下载的oracle10g复制到服务器上安装，没想到出错，弹出一个提示，上面一堆问号。后来一查才得知，Windows2008需要安装特定的oracle版本。于是到oracle官网上下载了win32\_11gR1\_database.zip，可以运行在Windows2008上

下面是从oracle官上网复制来的。注：下载oracle数据库要先登录oracle网站的。

### Oracle Database 11*g* Release 1 Standard Edition, Standard Edition One, and Enterprise Edition

(11.1.0.7.0)  
![Download](http://oracleimg.com/admin/images/ocom/download_icon13.gif) [Microsoft Windows Server 2008 (32-bit)](http://download.oracle.com/otn/nt/oracle11g/111070/win32_11gR1_database.zip) (1.9 GB) | [See All](http://www.oracle.com/technology/software/products/database/oracle11g/111070_win32_2008soft.html) (Including Client, Clusterware)  
![Download](http://oracleimg.com/admin/images/ocom/download_icon13.gif) [Microsoft Windows Server 2008 x64](http://download.oracle.com/otn/nt/oracle11g/111070/11107_w2k8_x64_production_database.zip) (1.9 GB) | [See All](http://www.oracle.com/technology/software/products/database/oracle11g/111070_win64_2008soft.html) (Including Client, Clusterware)

(11.1.0.6.0)  
![Download](http://oracleimg.com/admin/images/ocom/download_icon13.gif) [Microsoft Windows (32-bit)](http://download.oracle.com/otn/nt/oracle11g/win32_11gR1_database_1013.zip) (1.7 GB) | [See All](http://www.oracle.com/technology/software/products/database/oracle11g/111060_win32soft.html) (Including Client, Examples, Gateways, Clusterware)  
![Download](http://oracleimg.com/admin/images/ocom/download_icon13.gif) [Microsoft Windows (x64)](http://download.oracle.com/otn/nt/oracle11g/win64_11gR1_database_1013.zip) (1.7 GB) | [See All](http://www.oracle.com/technology/software/products/database/oracle11g/111060_win64soft.html) (Including Client, Examples, Clusterware)  
![Download](http://oracleimg.com/admin/images/ocom/download_icon13.gif) [Linux x86](http://download.oracle.com/otn/linux/oracle11g/linux_11gR1_database_1013.zip) (1.7 GB) | [See All](http://www.oracle.com/technology/software/products/database/oracle11g/111060_linuxsoft.html) (Including Client, Examples, Gateways, Clusterware)  
![Download](http://oracleimg.com/admin/images/ocom/download_icon13.gif) [Linux x86-64](http://download.oracle.com/otn/linux/oracle11g/linux.x64_11gR1_database_1013.zip) (1.8 GB) | [See All](http://www.oracle.com/technology/software/products/database/oracle11g/111060_linx8664soft.html) (Including Client, Examples, Gateways, Clusterware)  
![Download](http://oracleimg.com/admin/images/ocom/download_icon13.gif) [Solaris (SPARC) (64-bit)](http://download.oracle.com/otn/solaris/oracle11g/solaris.sparc64_11gR1_database_1013.zip) (1.9 GB) | [See All](http://www.oracle.com/technology/software/products/database/oracle11g/111060_sol64soft.html) (Including Client, Examples, Gateways, Clusterware)  
![Download](http://oracleimg.com/admin/images/ocom/download_icon13.gif) [AIX (PPC64) Disk 1](http://download.oracle.com/otn/aix/oracle11g/aix.ppc64_11gR1_database_1013_1of2.zip), [Disk 2](http://download.oracle.com/otn/aix/oracle11g/aix.ppc64_11gR1_database_1013_2of2.zip) (2.3 GB) | [See All](http://www.oracle.com/technology/software/products/database/oracle11g/111060_aixsoft.html) (Including Client, Examples, Gateways, Clusterware)  
![Download](http://oracleimg.com/admin/images/ocom/download_icon13.gif) [HP-UX Itanium Disk 1](http://download.oracle.com/otn/hp/oracle11g/hpia64_11gR1_database_1013_1of2.zip), [Disk 2](http://download.oracle.com/otn/hp/oracle11g/hpia64_11gR1_database_1013_2of2.zip) (2.3 GB) | [See All](http://www.oracle.com/technology/software/products/database/oracle11g/111060_hpisoft.html) (Including Client, Examples, Gateways, Clusterware)  
![Download](http://oracleimg.com/admin/images/ocom/download_icon13.gif) [HP-UX PA-RISC (64-bit) Disk 1](http://download.oracle.com/otn/hp/oracle11g/hpux.parisc_11gR1_database_1013_1of2.zip), [Disk 2](http://download.oracle.com/otn/hp/oracle11g/hpux.parisc_11gR1_database_1013_2of2.zip) (2.3 GB) | [See All](http://www.oracle.com/technology/software/products/database/oracle11g/111060_hpuxsoft.html) (Including Client, Examples, Gateways, Clusterware)

安装过程依旧是那样简单，但在配好IIS站点，准备连接数据库的时候出错了，以下是错误提示：  
System.Data.OracleClient 需要 Oracle 客户端软件 8.1.7 或更高版本。

 

以往这种情况的处理就是把ASPNET用户加上oracle/bin文件夹上，并开启读取与运行权限就OK了，但windows2008中，没有ASPNET这个用户。那加谁好呢？试验了几个用户后，IIS\_IUSRS？，都无果。最后，找到了“Authenticated Users”这个用户组，加上之后，重启了IIS，还是没有效果。是不是重启一下就OK了呢？抱着试试看的想法，重启了服务器，再一试，果然OK了。

 

因为应用中有通过页面操作写文件的代码，执行的时候就报错，说无法写，这想再试想起了“Authenticated Users”这个用户组，把这个用户组加上应用的文件夹安全权限里面，就可以进行文件的写操作了。