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
|