Re: Informix JDBC TYPE4 Drivers
Posted in 1998
Topics: Connectivity: ODBC / JDBC / .NET, Security, Permissions & Auditing, Java & JDBC Development
Thanks for your valuable advice. I tryed connecting Informix On-Line V5.01 once more. But I could not connect the server. The error message was the same as before. Anything more is neccesary for the connection? The connection of the database with following url: ----------- static final String connect_string = "jdbc:informix-sqli://133.190.106.31:1541/sys_data:INFORMIXSERVER=s4000; user=informix;password=informix;USEV5SERVER=1"; static final String driver_class = "com.informix.jdbc.IfxDriver"; DriverManager.registerDriver((Driver)Class.forName(driver_class).newInstance() ); conn = DriverManager.getConnection (connect_string); ----------- The error message shows below. ----------- java.sql.SQLException: Attempt to connect to a non 5.x server. at com.informix.jdbc.IfxSqliConnect.<init>(IfxSqliConnect.java) at com.informix.jdbc.IfxDriver.connect(Compiled Code) at java.sql.DriverManager.getConnection(Compiled Code) at java.sql.DriverManager.getConnection(DriverManager.java:149) at JdbcApplet.action(Compiled Code) at java.awt.Component.handleEvent(Component.java:2490) at java.awt.Component.postEvent(Component.java:1986) at java.awt.Component.postEvent(Component.java:1996) at java.awt.Component.postEvent(Component.java:1996) at java.awt.Component.dispatchEventImpl(Compiled Code) at java.awt.Component.dispatchEvent(Compiled Code) at java.awt.EventDispatchThread.run(Compiled Code) ------------ Rob Zook wrote: > Kazuhiko Nishigori wrote: > <snip> > > static final String connect_string = > > "jdbc://133.190.106.31:1541/sys_data:INFORMIXSERVER=s4000; > > user=informix;password=informix;USEV5SERVER=1"; > > This url does not look complete. The initial part should read: > "jdbc:informix-sqli://". > > Rob Z. > Thak you. --------- Kazuhiko Nishigori. KAWASAKI STEEL Systems R&D Corporation mailto: nishigori@ksd.co.jp