 |
AppletTalk.com Java discussions newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
George Kontoravdis Guest
|
Posted: Wed Jun 23, 2004 7:23 pm Post subject: Oracle JDBC thin client does not work over SSH tunelling |
|
|
I'm trying to get a Java app to talk to an Oracle 8.1.7 server
using the JDBC thin client over SSH tunelling. Here is my setup:
Oracle 8.1.7 running on RH Linux 7.3
Database SID: testdb
IP: 192.168.1.10
Server is behind firewall with public ip 1.2.3.4 (obviously
not the real ip, just for clarifing the setup)
Workstation running Java app
IP: 192.168.1.50
Win2K
jdbc lib: classes12.zip
jdk 1.3.1
Workstation is behind firewall with public ip 5.6.7.8 (obviously
not the real ip, just for clarifing the setup)
Forward local port 1602 to 1512 of the db server by running
ssh -n -f -l myaccount -L 1602:192.168.1.10:1521 1.2.3.4 sleep 7200
Now from my workstation I can get to the server via sqlplus by
using: sqlplus dbuser/dbuser@testdb
This tells my that the tunneling is setup correctly.
BUT when I use jdbc:oracle:thin:@localhost:1602:testdb to
connect the java app to the db server I keep getting an
ORA-17002 (Io exception: The Network Adapter could not establish
the connection)
Any suggestions?
|
|
| Back to top |
|
 |
|
|
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 You cannot vote in polls in this forum
|
|