Comments (12)
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.
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.
Hi @avikalar,
I'm connecting to Informix version 11.70.FC7XOB4.
from node-ibm_db.
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.
@rochal I hope, you are not facing this issue now. If so, can we close this ticket?
from node-ibm_db.
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.
@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.
@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.
@bimalkjha Will onsoctcp ever be supported? Cisco's products make use of Informix and they only expose onsoctcp.
from node-ibm_db.
@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.
@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.
@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)
- Error: /node_modules/ibm_db/build/Release/odbc_bindings.node: ELF file's phentsize not the expected size HOT 4
- Unable to connect using TLS. Error - SQL30081N, Protocol Specific Error -414 HOT 2
- Providing extended client information HOT 4
- DB2 connection pool is unavailable after DB2 server restart HOT 1
- PDF content error happens after inserted PDF BLOB to DB2 table HOT 6
- insert data error HOT 2
- Bug Report_Getting " PrintDeps.exe Bad image" pop-ups while running tests from terminal using ibm_db package with Playwright with JavaScript HOT 8
- string returned after date type requested HOT 1
- Fetch multiple rows HOT 2
- adm-zip can it be moved to dev dependencies HOT 2
- queryResult deferred callback result changed with version 3.2.3 HOT 5
- Node ibm_db Installation Error with Python 3.12 HOT 2
- conn.query callback being fired before all queries are finished. (possibly) HOT 1
- Release v3.2.4 HOT 1
- Bug Report - Could not locate the bindings file. HOT 2
- Having trouble get a valid npm install in a GitLab CI Pipeline HOT 2
- libcrypto.so.1 error HOT 3
- Connection Pooling not working as expected .maxpool and settimeout having issue HOT 5
- I am tryingto install ibm_db in linux and getting error HOT 5
- GSKIT Error HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from node-ibm_db.