oracle 10G,XP系统,
用plsqldev可以连接本地数据库和远程的数据库,都很正常,用.net开发的时候连接本地或者远程的都提示
System.Data.OracleClient 需要 Oracle 客户端软件 8.1.7 或更高版本。
网上查了很多资料说,添加安全权限,我都把oracle目录添加了everyone设置了完全控制还是不行,
连接字符串
"Data Source=(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=XXXX)(PORT=1521))(CONNECT_DATA=(SERVICE_NAME=XXX)));User ID=XXX;Password=XXX;Unicode=True"
就算用自动创建连接的也是提示这样的错误求解决方法

解决方案 »

  1.   

    用.net企业库!或者用Castle框架!总比自己弄个的要方便的多。
      

  2.   

    你用SQLPlus看看用你的账号能不能进去
      

  3.   

    SQLPlus也可以进得啊,
    权限的话我就不清楚了,我网上看了很多...结果还是不行啊...
      

  4.   

    你的意思是 plsql 能连上,但是.net连不上?应该是你.net 内部的问题吧?
      

  5.   

    google了下都说是权限问题I've run into this error dozens of times:CauseSecurity permissions were not properly set when the Oracle client was installed on Windows with NTFS. The result of this is that content of the ORACLE_HOME directory is not visible to Authenticated Users on the machine; this causes an error while the System.Data.OracleClient is communicating with the Oracle Connectivity software from ASP.NET using Authenticated User privileges.SolutionTo fix the problem you have to give the Authenticated Users group privilege to the Oracle Home directory.* Log on to Windows as a user with Administrator privileges.
    * Start Window Explorer and navigate to the ORACLE_HOME folder.
    * Choose properties on the ORACLE_HOME folder.
    * Click the “Security” tab of the “Properties” window.
    * Click on “Authenticated Users” item in the “Name” list.
    * Un-check the “Read and Execute” box in the “Permissions” list under the “Allow” column.
    * Re-check the “Read and Execute” box under the “Allow” column.
    * Click the “Advanced” button and in the “Permission Entries” verify that “Authenticated Users” are listed with permission = “Read & Execute”, and Apply To = “This folder, subfolders and files”. If not, edit that line and make sure that “Apply To” drop-down box is set to “This folder, subfolders and files”. This should already be set properly but it is important that you verify it.
    * Click the “Ok” button until you close out all of the security properties windows. The cursor may present the hour glass for a few seconds as it applies the permissions you just changed to all subfolders and files.
    * Reboot, to assure that the changes have taken effect.
    Try your application again.来自:
    http://stackoverflow.com/questions/447983/system-data-oracleclient-requires-oracle-client-software-version-8-1-7
      

  6.   

    删除aspnet用户隶属的组,添加到administrators组,给与完全控制权限,重启ok.
      

  7.   

    我知道为什么了,我单装oracle的时候设置文件夹权限是可以连的,再装了一个oracle的epr就不能连了......