Node-Red- Cathing Error in installation the db2 - ibm-cloud

I need to connect my db2 database to node-red. when i try to install node red contrib db2 for i, I get error that the platform is not compatible with windows. do I need to install aix? I could install node red contrib db2 fixed on my node-red on win7-x64. may i connect db2 with this node?
Thank you

The node-red-contrib-db2-for-i is specifically for working with DB2 on iSeries systems.
If you want to connect to a "normal" DB2 database then you can use either:
node-red-contrib-db2
node-red-contrib-db2-fixed

Related

How to create connection for DB2 database in Apache Airflow(2.2.5)

I need to poll DB2 database table until a record is created and once it is successful,i need to trigger a task in dag.
For this I have to do below:
Create a DB2 connection in airflow
Use SQL sensor to poll db table using the connection created in above step.
But I don't see the connection type option for DB2 (screenshot attached). Do I have to install something? Please help.
PS: I am new to Airflow.
There is no DB2 specific connection.
For general connections you can just use the Generic connection:
For older Airflow versions that doesn't have Generic connection you can use any other connection type (HTTP/MySql for example). It doesn't really matter. Airflow looks for connection by the connection id. The type is almost meaningless in that perspective.
Yes the airflow connection does not appear to be a specific connection for db2, so you have to choose generic in connection Type.
I also recommend to install the security mechanism for connection.
the next package: pip install airflow-provider-db2
I have tried to connect to DB2 successfully on Airflow 2.2.5.
Airflow doesn't has specific provider for DB2. You need to use JDBC to connect.
So you need to install some libraries of Airflow and download DB2 JDBC driver to fulfill this task.
List of all libs and provider need to install below:
Apache-airflow-provider-jdbc/Version:2.1.3
JayDeBeApi/Version:latest
JPype1/Version:latest
You also need to download DB2 JDBC drivers. This driver include some packages and license file like:
db2jcc4.jar
sqlj4.zip
jdbc4_LI_en
Because it will use JDBC to connect,openJDK also need to install on your docker.
Setting environment variables JAVA_HOME, PATH and CLASSPATH are needed.
All of above actions can be done on your docker file.
When you have completed to build your image, You can start your airflow to set connection.
Connection URL syntax: jdbc:db2://Host:Port/Database
You can replace HOST,PORT and Database.
Driver Path: You can input where your class file(db2jcc4.jar) located.
Hope these tips can help you. I am New to Airflow too.

DB2 Connect licensing problem (SQLSTATE=42968)

I require DB2 Connect installed on my laptop to allow an application to read a DB2 database on a z/OS box. Due to issues with slow VPN I was unable to download a licensed copy of it from my firms server, so I downloaded a trial version (v9.7) from IBM Website. I am now in position where I can copy the licensed copy over the company network and install that (v 11.1).
I have uninstalled v9.7 and installed v11.1 but when attempting to reference the DB I get the error:
Logon Failure:42968: -1598: [IBM][CLI Driver]SQL1598N An attempt to
connect to the datasbase server failed because of a licensing problem.
SQLSTATE=42968.
I suspect that the registry is ‘polluted’ with v9.7 stuff including the licence expired flag.
Is there something I can remove from the Registry that will resolve this and allow v11.1 to work ?

How to remove PostgreSQL as a service?

I have installed PostgreSQL 9.5 in my machine. But there is no UI for that. When I installed pgAdmin I can view the postsql as a service.
Can I remove this service and install as a server like other databases(sql server, my sql)?
You can use pgAdmin III developed for PostgreSQL User Interface Or use cmd its will work. See this thread

Error when connecting to database using unixODBC on IBM AIX

I am facing an error while connecting to database using unixODBC on IBM AIX 64bit
DB2 client V9.7 is installed on the machine.
Found on net that it can be due to library file:' libdb2o.so ' missing and in that case update to DB2 V9.7 Fix Pack3.
Updated DB2 client to DB2 V9.7 Fix Pack 4 but still no success.
On trying to connect to database using: isql -v it gives following error:
[01000][unixODBC][Driver Manager]Can't open lib '/opt/IBM/db2/V9.7_01/lib64/db2o.o' : file not found
[ISQL]ERROR: Could not SQLConnect
Details of .odbc.ini :
[db2_odbc_source]
Description = IBM DB2 ODBC data source
Driver = db2_odbc_driver
Trace = Yes
DMEnvAttr = SQL_ATTR_UNIXODBC_ENVATTR={DB2_CLI_DRIVER_INSTALL_PATH=/home/UserName}
Details of .odbcinst.ini :
[db2_odbc_driver]
Description = IBM DB2 ODBC driver
Driver = /opt/IBM/db2/V9.7_01/lib64/db2o.o
FileUsage = 1
DontDlClose = 1
Environment variables DBINSTANCE and ODBCINI are set.
Your help will be greatly appreciated.
Thanks.
libdb2o.o is used for connectivity via unixodbc for db2 database on 64 bit OS except nt64.on nt64,we use probably db2clio.o

SQL22223N creating database with DB2 Express C for Windows

I am having problems trying to create a database with DB2 Express C (v9.7).
I already have a another version of DB2 installed on my system:
Product: DB2 Connect Enterprise Edition
Version: 8.2
Copy: DB2COPY1
Instance: DB2
I understand that it is possible to have coexistence.
Express C has seemingly installed OK on my laptop, and I am able to use the Sample Database without a problem. I created new copy DB2COPY2, and new instance DB2_01.
I've installed it as a DB2ADMN.
When I try and create a database I get the error:
SQL22223N The Instance "DB2_01" does not exist on host "host name".
It is saying that the instance does not exist on the host. Which is strange because I installed it locally as a DB2ADMN.
Coexistence is supported. You have to open correct CLP version, and
set db2instance=db2_01
db2cc
and then it should work. If it doesn't you have to probably uncatalog and re-catalog your node and databases.