Attempt to connect to database server (myserver) failed
843854Mar 15 2004 — edited Mar 15 2004Dear 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