|
[x]
Posted via EE Mobile
|
|
| Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again. |
|
|
|
|
Asked by EC63 in Interbase / Firebird Database, Programming for iSeries / AS400, SuSE Linux
I need to connect a firebird database on a Suse Linux 9.2 from an AS400 V5R4M0 using Java and JDBC. I'm trying with jaybird-full-2.2.0.jar on a JDK 1.4.
I have this error:
ERROR: GDS Exception. 335544721. Unable to complete network request to host "172.16.0.1".
I use already a similar connection to a MySQL database on the same linux machine and it works fine.
There are no firewalls. I think that the connection string for firebird is wrong but I don't find the right one.
Anybody can help me?
(sorry ... my english is not good, I know!)
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
|
....
String fbsqlurl="jdbc:firebirdsql:172.16.0.1:/var/firebirddata/csy.fdb";
String userid = "SYSDBA";
String password = "masterkey";
try {
DriverManager.registerDriver(new org.firebirdsql.jdbc.FBDriver());
connection = DriverManager.getConnection ( fbsqlurl,
userid,
password );
Statement select = connection.createStatement ();
ResultSet rs = select.executeQuery("SELECT * FROM CONFIG");
while (rs.next ()) {
System.out.println (rs.getString(1) + "," + rs.getString(2));
}
....
|
20091111-EE-VQP-92 - Hierarchy / EE_QW_3_20080625