Hi, I am new to NHibernate and I am trying to connect to an Oracle 8i Database. Firstly I should mention I can connect to SQL Server and all goes well.
However trying to establish a connection to Oracle returns:
Quote:
Exception: System.Data.OracleClient.OracleException
Message: ORA-12154: TNS:could not resolve service name
I have tested the DSN through Oracle's ODBC Test and this DSN works fine (can resolve the service name).
My web config looks like this:
Code:
<nhibernate>
<add key="hibernate.show_sql" value="true" />
<add key="hibernate.connection.provider" value="NHibernate.Connection.DriverConnectionProvider" />
<add key="hibernate.dialect" value="NHibernate.Dialect.OracleDialect" />
<add key="hibernate.connection.driver_class" value="NHibernate.Driver.OracleClientDriver" />
<add key="hibernate.connection.connection_string" value="Data Source=myDsn;User ID=scott;Password=tiger;"/>
</nhibernate>
I am missing something a newbie would miss?
Any help would be much appreciated.
Thanks
Joe