Re: Cannot connect with JDBC to Informix 7.24 SE on Linux
Posted in 1998
Using recycled bits, Darrel Davis pleaded: %I am having no luck connecting to my database with 7.24 SE under %Linux. The driver loads fine but can;t get the connection. Here are my % %particulars: % %INFORMIXSERVER : asxdb %database: asxtest %hostname: quailman Is $INFORMIXDIR set? %sqlhost: %asxdb sesoctcp quailman sqlexec The hostname entry, which is "quailman" here, must exactly match the output of "uname -n" %sqlexecd running as root: %sqlexecd asxdb % % %Running the informix SimpleConnection.java program with the following %URL: %java -v SimpleConnection %'jdbc:informix-sqli://quailman:1533/asxtest:informixserver=asxdb' % %The program runs fine and I'm sure the CLASSPATH is OK since I'm running %the java with %the -v option and I see it load classes from the informix jar file. % %Do I also need the following in /etc/services? %asxdb 1533/tcp sqlexec Yes, if you will be allowing remote access to your database. -- Kurt Wall Informix on Linux FAQ: http://www.users.uswest.net/~kwall/iolfaq.html