문제

I wonder how does library System.Data.OracleClient finds installed on machine OracleClient. I've reinstalled the client, but still get error "OracleClient requires Oracle client software", which seem rather suspicious, because client is installed on pc, it has entries in registry and path to oracle client in PATH variable.

도움이 되었습니까?

해결책

This works for me:

  1. Add the environment variable ORACLE_HOME, with the value equal to the base of the install directory (e.g. C:\oracle\product\10.2.0\client_1)
  2. Make sure that %ORACLE_HOME%\bin\ is in the PATH (the setup program should have already put it in there)

Agreed that using ODP.NET is better than deprecated System.Data.OracleClient.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top