Oracle JDBC thin client does not work over SSH tunelling
From: George Kontoravdis (georgek_at_fortigo.com)
Date: 06/23/04
- Previous message: Mary Jane Pronio: "Coding an SFTP step in a Unix Script running F-Secure Shell"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Wed, 23 Jun 2004 19:23:26 GMT
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?
- Previous message: Mary Jane Pronio: "Coding an SFTP step in a Unix Script running F-Secure Shell"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|
|