-->
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: Not being able to connect to Oracle database..pls help
PostPosted: Thu Apr 26, 2007 7:09 am 
Newbie

Joined: Sat Apr 21, 2007 2:12 am
Posts: 16
Hi

Below stated are the contents of config file. And it gives an internal error "ORA-12154: TNS:could not resolve the connect identifier specified".Where as datasource, user id and pssword are correct. Does it need some other property also??

Please help, Its urgent

<?xml version="1.0" encoding="utf-8" ?>
<hibernate-configuration xmlns="urn:nhibernate-configuration-2.2" >
<session-factory name="northwind">
<property name="dialect">NHibernate.Dialect.OracleDialect</property>
<property name="connection.provider">NHibernate.Connection.DriverConnectionProvider</property>
<property name="connection.driver_class">NHibernate.Driver.OracleClientDriver</property>
<property name="connection.connection_string">Data Source=Oracle;User Id=scott;Password=tiger</property>
<property name="connection.isolation">ReadCommitted</property>
<!-- HBM Mapping Files -->
<mapping assembly="EnterpriseSample.Core" />
</session-factory>
</hibernate-configuration>


Thanks

Regards,
Gaurav


Top
 Profile  
 
 Post subject:
PostPosted: Fri Apr 27, 2007 3:44 am 
Newbie

Joined: Sat Apr 21, 2007 2:12 am
Posts: 16
Its done :)

The connectionstring is supposed to be :

Data Source=(DESCRIPTION =(ADDRESS_LIST =(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.2.10)(PORT = 1521)) )(CONNECT_DATA =(SERVICE_NAME = abc)));User ID=scott;Password=tiger;

and its working fine :)

Cheers :)

Gaurav


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.