Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 162383
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T11:22:52+00:00 2026-05-11T11:22:52+00:00

I am trying to use Nhibernate with Oracle using Microsoft’s System.Data.OracleClient Nhibernate Configuration (Is

  • 0

I am trying to use Nhibernate with Oracle using Microsoft’s System.Data.OracleClient

Nhibernate Configuration (Is it correct for Microsoft Driver ?)

  <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> 

Its throwing Exception,

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.  

I tried copying System.Data.OracleClient.dll to output bin directory. It didn’t help. I also tried copying Oracle Client dlls to output bin directory. It also didn’t help.

Exception says ‘Oracle.DataAccess’ assembly not found. But there is no such assembly inside Microsoft’s System.Data.OracleClient. Is it searching for Oracle’s ODP Drivers ?

Edit: If above Configuration is wrong , help me by posting Configuration for System.Data.OracleClient

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-11T11:22:52+00:00Added an answer on May 11, 2026 at 11:22 am

    This line in your configuration:

      <property name='connection.driver_class'>NHibernate.Driver.OracleDataClientDriver</property> 

    is instructing NHibernate to use the ODP.NET drivers found in Oracle.DataAccess.dll . This allows NHibernate to make use of ODP.NET features such as Connection Pool and tracing. Depending on the version of Oracle client software installed, you should find a copy of this assembly somewhere like C:\Oracle\product\10.1.0\Client_1\BIN\

    If you would prefer to use Microsoft’s System.Data.OracleClient driver instead, change this line to:

      <property name='connection.driver_class'>NHibernate.Driver.OracleClientDriver</property> 
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Trying to use Oracle's Times Ten db instead of hsqldb for performance reasons. I
I am trying to use Nhibernate with the Sql 2008 Geography type and am
I am new to Nhibernate, I'm trying to use nhibernate in a project and
I am trying to use the repository pattern, ninject for DI with fluent nhibernate.
I'm trying to use an in-memory SQLite database to test my data layer which
I'm trying to implement a web service which accepts a list of strings, each
I'm trying to install GridSphere through some app, there's an ant task that creates
I'm having a bit of trouble setting up NHibernate, and I'm not too sure
This is probably fairly straightforward but i can't seem to find a reasonable explanation
Hello is nice to be a new member of the community and thanks for

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.