-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: ODP.NET and NHibernate
PostPosted: Thu Jun 21, 2007 9:46 am 
Regular
Regular

Joined: Mon Oct 02, 2006 12:03 pm
Posts: 62
Hello forum, I have got a trouble!!!

I'm trying connect to an Oracle Database, and I use this properties in order to configure NHibernate correctly. I don't want use Microsoft Oracle Driver (NHibernate.Driver.OracleClientDriver), instead of this, I want use Native .NET Oracle Driver (ODP.NET installed correctly, NHibernate.Driver.OracleDataClientDriver) -->

Code:
            props["hibernate.connection.provider"] = "NHibernate.Connection.DriverConnectionProvider";
            props["hibernate.dialect"] = "NHibernate.Dialect.OracleDialect";
            props["hibernate.connection.driver_class" ] = "NHibernate.Driver.OracleDataClientDriver" ;
            props["hibernate.connection.connection_string"] = "SERVER=(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=192.168.1.2)(PORT=1500))(CONNECT_DATA=(SERVICE_NAME=webshop)));uid=user;pwd=password;";
            props["hibernate.show_sql"] = true;


when I execute the follow code:

Code:
this.session_factory = this.cfg.BuildSessionFactory();


crashes an exception with message:

Quote:
Could not create the driver from NHibernate.Driver.OracleDataClientDriver.


I have got installed correctly ODP.NET and I've added Oracle.DataAccess into References Project.

Can you help me please?


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.