(이 올바른 마이크로 소프트 드라이버에 대한인가?)NHibernate에 마이크로 소프트의 System.Data.OracleClient 내가 오라클은 마이크로 소프트의 System.Data.OracleClient에</p> <p>NHibernate에 구성을 사용하여 자 NHibernate를 사용하는 것을 시도하고있다
<hibernate-configuration xmlns="urn:nhibernate-configuration-2.2">
<session-factory>
<property name="show_sql">true</property>
<property name="connection.provider">NHibernate.Connection.DriverConnectionProvider</property>
<property name="cache.use_second_level_cache">true</property>
<property name="cache.provider_class">NHibernate.Caches.SysCache.SysCacheProvider, NHibernate.Caches.SysCache</property>
<property name="cache.use_query_cache">true</property>
<property name="dialect">NHibernate.Dialect.Oracle9Dialect</property>
<property name="connection.driver_class">NHibernate.Driver.OracleDataClientDriver</property>
<property name="connection.connection_string">Data Source=localhost;User Id=jbadmin;Password=justbooks12;Integrated Security=no;</property>
</session-factory>
</hibernate-configuration>
그것의 던지기와 예외,
The IDbCommand and IDbConnection implementation in the assembly Oracle.DataAccess could not be found. Ensure that the assembly Oracle.DataAccess is located in the application directory or in the Global Assembly Cache. If the assembly is in the GAC, use <qualifyAssembly/> element in the application configuration file to specify the full name of the assembly.
출력 bin 디렉토리로 System.Data.OracleClient.dll을 복사 해 보았습니다. 도움이되지 않았다. 또한 오라클 클라이언트 dll을 출력 bin 디렉토리에 복사 해 보았습니다. 그것은 또한 도움이되지 못했습니다.
예외로 'Oracle.DataAccess'어셈블리를 찾을 수 없습니다. 그러나 Microsoft의 System.Data.OracleClient에는 이러한 어셈블리가 없습니다. 오라클의 ODP 드라이버를 찾고 있습니까?
편집 : 구성이 잘못 위의 경우 구성에서의 System.Data.OracleClient
에 대한
Microsoft Oracle 드라이버는 테이블에있을 수있는 인덱스를 사용하지 않습니다. 권장하지 않습니다. –