-->
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: Oracle instant client version
PostPosted: Tue Jun 02, 2009 7:15 pm 
Newbie

Joined: Tue Jun 02, 2009 4:02 pm
Posts: 1
Hi,

I am integrating NHibernate with Oracle using the NHibernate.Driver.OracleClientDriver class. Everything works well with the Oracle instant client version 10.1.0.5. However any version later than that results in the following error being generated. I am using NHibernate version 1.2.0.4000 (that is the version of the NHiberante.dll assembly).

2009-06-02 12:45:21,543 [1] ERROR Demo.ClientMainProgram [(null)] - Spring.Trans
action.CannotCreateTransactionException: Could not open Hibernate Session for tr
ansaction ---> NHibernate.ADOException: cannot open connection ---> System.Data.
OracleClient.OracleException: ORA-12545: Connect failed because target host or o
bject does not exist

at System.Data.OracleClient.OracleException.Check(OciErrorHandle errorHandle,
Int32 rc)
at System.Data.OracleClient.OracleInternalConnection.OpenOnLocalTransaction(S
tring userName, String password, String serverName, Boolean integratedSecurity,
Boolean unicode, Boolean omitOracleConnectionName)
at System.Data.OracleClient.OracleInternalConnection..ctor(OracleConnectionSt
ring connectionOptions)
at System.Data.OracleClient.OracleConnectionFactory.CreateConnection(DbConnec
tionOptions options, Object poolGroupProviderInfo, DbConnectionPool pool, DbConn
ection owningObject)
at System.Data.ProviderBase.DbConnectionFactory.CreatePooledConnection(DbConn
ection owningConnection, DbConnectionPool pool, DbConnectionOptions options)
at System.Data.ProviderBase.DbConnectionPool.CreateObject(DbConnection owning
Object)
at System.Data.ProviderBase.DbConnectionPool.UserCreateRequest(DbConnection o
wningObject)
at System.Data.ProviderBase.DbConnectionPool.GetConnection(DbConnection ownin
gObject)
at System.Data.ProviderBase.DbConnectionFactory.GetConnection(DbConnection ow
ningConnection)
at System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection ou
terConnection, DbConnectionFactory connectionFactory)
at System.Data.OracleClient.OracleConnection.Open()
at NHibernate.Connection.DriverConnectionProvider.GetConnection()
at NHibernate.Impl.SessionFactoryImpl.OpenConnection()

Does anybody know how to solve this? - Thanks! Philippe


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.