`
songhongchen
  • 浏览: 121297 次
  • 性别: Icon_minigender_1
  • 来自: 杭州
社区版块
存档分类
最新评论

解决System.Data.OracleClient需要Oracle 客户端软件8.1.7或更高版本

阅读更多

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

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

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


(11.1.0.7.0)

Download Microsoft Windows Server 2008 (32-bit) (1.9 GB) | See All (Including Client, Clusterware)
Download Microsoft Windows Server 2008 x64 (1.9 GB) | See All (Including Client, Clusterware)


(11.1.0.6.0)
Download Microsoft Windows (32-bit) (1.7 GB) | See All (Including Client, Examples, Gateways, Clusterware)
Download Microsoft Windows (x64) (1.7 GB) | See All (Including Client, Examples, Clusterware)
Download Linux x86 (1.7 GB) | See All (Including Client, Examples, Gateways, Clusterware)
Download Linux x86-64 (1.8 GB) | See All (Including Client, Examples, Gateways, Clusterware)
Download Solaris (SPARC) (64-bit) (1.9 GB) | See All (Including Client, Examples, Gateways, Clusterware)
Download AIX (PPC64) Disk 1, Disk 2 (2.3 GB) | See All (Including Client, Examples, Gateways, Clusterware)
Download HP-UX Itanium Disk 1, Disk 2 (2.3 GB) | See All (Including Client, Examples, Gateways, Clusterware)
Download HP-UX PA-RISC (64-bit) Disk 1, Disk 2 (2.3 GB) | See All (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”这个用户组,把这个用户组加上应用的文件夹安全权限里面,就可以进行文件的写操作了。

 

2
0
分享到:
评论
1 楼 小幕天 2018-03-06  
                                

相关推荐

Global site tag (gtag.js) - Google Analytics