-->
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.  [ 2 posts ] 
Author Message
 Post subject: Problem Opening Oracle Database using NHibernate
PostPosted: Fri Jul 13, 2007 2:58 am 
Newbie

Joined: Thu Jul 12, 2007 1:13 am
Posts: 17
I'm using 1.2.0 version of NHibernate.Actually I want to connect my .NET application to Oracle database using NHibernate but while running the application I'm getting an error Could Not Open Connection.Kindly Help.
Connection string which I'm using is:

<nhibernate>
<add
key="hibernate.connection.provider"
value="NHibernate.Connection.DriverConnectionProvider"
/>
<add
key="hibernate.dialect"
value="NHibernate.Dialect.Oracle9Dialect"
/>
<add
key="hibernate.connection.driver_class"
value="NHibernate.Driver.OracleClientDriver"
/>
<add
key="hibernate.connection.connection_string"
value="server=SBCDR2.world;database=SBCD;user=appl_sbcs;pwd=sbcsg2"
/>
</nhibernate>


Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp

Hibernate version:

Mapping documents:

Code between sessionFactory.openSession() and session.close():

Full stack trace of any exception that occurs:

Name and version of the database you are using:

The generated SQL (show_sql=true):

Debug level Hibernate log excerpt:


Problems with Session and transaction handling?

Read this: http://hibernate.org/42.html


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jul 13, 2007 4:57 am 
Regular
Regular

Joined: Wed Apr 25, 2007 4:18 am
Posts: 51
Location: Belarus, Gomel
Hi ashutosh.nigam37!

IMHO connection.connection_string for Oracle must be something like
Code:
Data Source=server_name;User ID=schema_name;Password=your_pazzword

_________________
WBR, Igor


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

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.