Skip to Main Content

Java Database Connectivity (JDBC)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Attempt to connect to database server (myserver) failed

843854Mar 15 2004 — edited Mar 15 2004
Dear all,

I want my client application to connect informix database by using JDBC. The JDBC driver has been installed successfully in the client computer (Win2000). The informix resides the a Unix server named "dbserver". The following is my java program.
here is the function for establishing the connection
Connection connexion = DriverManager.getConnection("jdbc:informix-sqli://@ip:1526/my_db:INFORMIXSERVER=myserver;user=user-name;password=*****);
catch(SQLException e){
System.out.println("Message : "+ e.getMessage ());
System.out.println("Etat : " +e.getSQLState ());
System.out.println("Code Erreur: " + e.getErrorCode ()+ "\n");
}

the message returned is;

Message : com.informix.asf.IfxASFException: Attempt to connect to database server (myserver;) failed.
Etat : 08004
Code Erreur: -908
sure that my informixserver is myserver
any suggestion will be very apreciated,thanks
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 12 2004
Added on Mar 15 2004
2 comments
413 views