Hi all,

I solved my problem with Oracle 8.1.6 and JNDI. I remember you the problem was
that when I tried to execute Connection con = ds.getConnection() (where ds is 
a DataSource token by JNDI) I receved:

"Network Adapter could not establish the connection".

Well first a couple of considerations:

1) I discovered that this problem is not specific of Oracle 8.1.6 but it can 
occure with Oracle 8.1.7.

2) The version of driver (classes12.zip) is important but with the correct 
version of driver the error persist.

At least the solution.

In the server.xml where you set your JNDI connection, the value of DriverName 
isn't

jdbc:oracle:thin:@HOST:PORT:SID

but the correct string is:

jdbc:oracle:thin:@(description=(address=(host=HOST)(protocol=tcp)(port=PORT))(connect_data=(sid=SID)(SERVER=DEDICATED)))

whre the part SERVER=DEDICATED is very very very important.


I hope this can help someone.

Thanks everybody who helped me.


Laura


--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>

Reply via email to