GithubHelp home page GithubHelp logo

Comments (12)

avikalar avatar avikalar commented on August 25, 2024 1

You need to use the TCPIP protocol. Can you please check if you are connecting to the correct PORT by finding an entry for DRDA protocol nettype in sqlhost file of Informix server. To check if DRDA is enabled please check entries in your sqlhost file by running 'echo $INFORMIXSQLHOSTS'. If it is empty or not set you can find sqlhost file under $INFORMIXDIR/etc/sqlhosts. If the sqlhost file has an entry with drsoctcp protocol , then use that port number in the connection string. If not found enable DRDA by adding a new entry into the sqlhost file. Then you can connect to the db using the following connection string with the port number taken from the sqlhost file entry for drsoctcp and protocol set to TCPIP.

from node-ibm_db.

avikalar avatar avikalar commented on August 25, 2024

Hi Piotr,

Which version of Informix are you using ? Can you please refer to the issue(#25). It talks about connecting to an Informix server

from node-ibm_db.

rochal avatar rochal commented on August 25, 2024

Hi @avikalar,

I'm connecting to Informix version 11.70.FC7XOB4.

from node-ibm_db.

rochal avatar rochal commented on August 25, 2024

From linked google discussion I read "onsoctcp" is not supported (this is what I was using to get the error above), but when I use TCPIP protocol I instead get this connection error:

{ [Error: [IBM][CLI Driver] SQL30081N  A communication error has been detected. Communication protocol being used: "TCP/
IP".  Communication API being used: "SOCKETS".  Location where the error was detected: "127.0.0.1".  Communication fu
nction detecting the error: "recv".  Protocol specific error code(s): "*", "*", "0".  SQLSTATE=08001
]}

Does it mean I should be using TCPIP protocol?

from node-ibm_db.

bimalkjha avatar bimalkjha commented on August 25, 2024

@rochal I hope, you are not facing this issue now. If so, can we close this ticket?

from node-ibm_db.

achurak avatar achurak commented on August 25, 2024

So what can I do if the Informix server I need to connect to only supports onsoctcp?
Is there any way to overcome this issue?

from node-ibm_db.

bimalkjha avatar bimalkjha commented on August 25, 2024

@achurak all informix server supports both onsoctcp and drsoctcp. You just need to configure it on server. If Informix server is not configured for drsoctcp, you can not correct to such server using node ibm_db driver.

from node-ibm_db.

achurak avatar achurak commented on August 25, 2024

@bimalkjha What I meant to say was that I don't have access to this server's settings. That's too bad, but thanks for the reply anyway.

from node-ibm_db.

robert-shade avatar robert-shade commented on August 25, 2024

@bimalkjha Will onsoctcp ever be supported? Cisco's products make use of Informix and they only expose onsoctcp.

from node-ibm_db.

bimalkjha avatar bimalkjha commented on August 25, 2024

@robert-shade No node ibm_db driver can't support onsoctcp. It uses underlying DB2 CLI/ODBC driver which supports only DRDA protocol. Thanks.

from node-ibm_db.

forrejam avatar forrejam commented on August 25, 2024

@bimalkjha Thats a pitty I wanted to use this against Cisco CCX Informix database. How hard would it be to use a different ODBC driver? Like the one contained in the Informix client sdk. Would it be a huge undertaking to build some abstractions into this library that would allow us to swap out the ODBC Driver?

from node-ibm_db.

bimalkjha avatar bimalkjha commented on August 25, 2024

@Gumpy @robert-shade For node.js application connectivity against Cisco CCX Informix database, you can install ifx_db using npm install ifx_db. Thanks.

from node-ibm_db.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.