If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > Informix > connect failed - but cant find any reason

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-13-03, 06:55
katharr katharr is offline
Registered User
 
Join Date: Oct 2003
Posts: 1
connect failed - but cant find any reason

Hello,

i've got a mysterious problem - i'm connecting to an Informix DB via JDBC though com.informix.jdbc.IfxDriver and URL

jdbc:informix-sqli://SERVER1:4222/DBNAME:informixserver=db2_SERVER1_tcp;


Connection works perfect till now.

When executing some stupid stupid SQL Statement i also get a "Syntax Error occured" message from the DB, BUT:
when i try to execute a valid statement, i.e.
SELECT count(*) FROM SOME_VALID_TABLE

i get the following error message:

"com.informix.asf.IfxASFException: Attempt to connect to database server (db2_shm) failed."


The problem is: i never included this db2_shm database in any of my parameter options. db2_shm is a Shared Memory Database, and could of course not be selected by native JDBC (which is TCP only).

Does anyone have an idea how these databases could be connected and why my login works until this point?

The admin told me that connecting via JDBC & ODBC works for this statement.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On