我用.NET 程序连接ORACLE(oracle是简单安装) 运行程序时会出现 ocienvnls create failed with return code -1 but error message text was not available 错误,高人帮解决一下啊。

解决方案 »

  1.   

    貌似是安装不全造成的
    http://social.msdn.microsoft.com/Forums/en-US/adodotnetdataproviders/thread/ca70069c-a0f0-4f25-9bd5-1193abc52773/
      

  2.   

    Just chiming in to confirm that this error is always a permissions problem, in my experience. I've only seen it happen when permissions fail, or the managed provider fails to find a file it needs (not necessarily due to permissions, but some other installation problem).If it can't find *any* Oracle files, usually you will get a different error, the one that says you need to have Oracle 8.1.7 or higher installed. This error means it found enough to get started, but the OCI layer than failed to find a required file. This is probably because the initial OCI DLL is in a accessible location, but subsequent files are somewhere else.FileMon (as already mentioned in this thread) and possibly RegMon can be good ways to track this down, particularly for permissions problems. You can get both tools at http://www.sysinternals.com.主要是这段,我英文也不是很好,我也只能看懂大概意思。还是请达人翻译吧。