[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.

Question
[x]
Attachment Details

Accessing firebird on a linux server from AS400 via jdbc

Asked by EC63 in Interbase / Firebird Database, Programming for iSeries / AS400, SuSE Linux

Tags: firebird as400 iseries jdbc 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));
            }
....
[+][-]10/27/09 08:31 AM, ID: 25673528Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]10/27/09 08:36 AM, ID: 25673609Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]10/27/09 09:20 AM, ID: 25674278Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]10/30/09 12:20 PM, ID: 25706035Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20091111-EE-VQP-92 - Hierarchy / EE_QW_3_20080625