unable to create a database connection using Aqua Data Studio ETL tool - db2

When try to connect to DB2 Z/OS, the following error message is displayed,
[jcc][t4][10509][13454][3.67.28] Connection to the data server failed. The IBM Data Server for JDBC and SQLJ license was invalid or was not activated for the DB2 for z/OS subsystem. If you are connecting directly to the data server and using DB2 Connect Unlimited Edition for System z, perform the activation step by running the activation program in the license activation kit. If you are using any other edition of DB2 Connect, obtain the license file, db2jcc_license_cisuz.jar, from the license activation kit, and follow the installation directions to include the license file in the class path. ERRORCODE=-4230, SQLSTATE=42968"

For a ADS DB2 Z/OS connection,you do need the DB2 z/OS JDBC driver license file. You can fix the problem below with these steps ...
Close ADStudio
Download this driver file
Unzip the contents into the /lib/drivers> folder
Start ADStudio and then connect to DB2 z/OS.

Related

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 ?

Db2 errors post installing through InfoSphere Federation Server

I am planning to do SQL replication through InfoSphere Federation Server and installed the latest version from IBM website, while running the executable iisetup.exe, federation tool create the db2 instances and ask for db2user password and port as well, I have given all the required information and at the end installation and JDBC wrapper was successfully completed. after that I have open the db2 command prompt through administration. I am getting issue in running all the command eg
C:\db2\BIN>db2start
SQL1390C The environment variable DB2INSTANCE is not defined or is invalid.
C:\db2\BIN>db2 GET DATABASE MANAGER CONFIGURATION
DB21018E A system error occurred. The command line processor could not continue processing.

Microsoft PowerBI: Failed to load the security library: krb5_64.dll

I'm trying to connect from PowerBi to Impala with Kerberos using ODBC.
I followed by this https://plenium.wordpress.com/2019/08/02/connect-microsoft-power-bi-desktop-to-cloudera-impala-with-kerberos/
I can create ODBC connection with valid credentials and execute query form other tools (for example ODBC Query Tool), but from PowerBi I have this error with loading Kerberos dll:
Details: "ODBC: ERROR [HY000] [Cloudera][Support] (50366) Failed to load the security library: krb5_64.dll
ERROR [HY000] [Cloudera][Support] (50366) Failed to load the security library: krb5_64.dll"
Have you any suggestions about how to resolve it?
I have:
Windows 10 Pro version 1903
MIT Kerberos for Windows 4.1
Cloudera ODBC Driver for Impala 2.6.8 (C6 Compatible)
Microsoft Power BI Desktop 2.78.5740.721 64-bit
The solution is: don't install PowerBI as windows app, instead directly download
PBIDesktopSetup_x64.exe and install it. Now its destination is C:\ProgramFiles\"Microsoft Power BI Desktop" not C:\ProgramFiles\WindowsApps\ ... and it works.

DB2 CLP connect to remote DB

I downloaded and installed on Windows the following:
IBM DB2 Runtime Client (64-Bit) 10.5
with the aim of connecting to a remote server database.
It installed here:
C:\Program Files\IBM\SQLLIB
But I don't see any DB2 folders in there.
I tried to catalog the remote db like this:
db2 catalog tcpip node testing remote the.server.com server 446
If I then try to connect to it, I get the following:
SQL1031N The database directory cannot be found on the indicated file system.
There is some wizard installed called the 'Default DB2 and IBM Database Client Interface Selection Wizard'. I ran this and it said it would create a default DB2 copy and would be used by default, called DB2COPY1 and it would be installed to C:\Program Files\IBM\SQLLIB.
But I'm nnot sure what this is doing really.
What do I need to do here to connect to the remote DB2??
EDIT:
I have managed to get a bit further based on this article here:
https://www-01.ibm.com/support/docview.wss?uid=swg21008914
my current commands look like:
db2 catalog tcpip node tstnode remote my.server.com server 446
db2 catalog db db1name as mytstdb at node tstnode authentication server
db2 catalog dcs db db1name as A123456DAT
db2 terminate
db2 connect to mytstdb user <username> using <password>
However the connect fails with:
SQL30061N The database alias or database name "A123456DAT " was not
found at the remote node. SQLSTATE=08004
Any ideas?
If you are connecting through port 446, I guess you are trying to connect to DB2 for IBM z or DB2 for IBM i. If yes, you will need at least Db2 Connect.
Regarding error "SQL30061N The database alias or database name "A123456DAT " was not found at the remote node. SQLSTATE=08004" it happens to me when the userid does not have some priviledges on the source system. If it is an IBM i, look at the corresponding spool file. DRDA Connections are attended by jobs called QRWTSRVR. With the IBM i command WRKSPLF SELECT(USERID) (changing USERID by the user trying the DRDA connection) you can see the spool files for jobs related to your connection. Usually spool file messages are very specific on the cause of the failure.
If you are trying to connect to DB2 on z, I don't have experience.

Squirrel - DB2 : Connection to the data server failed. The IBM Data Server for JDBC and SQLJ license was invalid

I am using squirrel to connect to DB2 database.
I am able to successfully connect to one of our DB2 databases. But when I create a new connection to point to another db2 database, I get the below mentioned error.
java.util.concurrent.ExecutionException: java.lang.RuntimeException: com.ibm.db2.jcc.am.SqlSyntaxErrorException: [jcc]...... Connection to the data server failed. The IBM Data Server for JDBC and SQLJ license was invalid
or was not activated for the DB2 for z/OS subsystem. If you are connecting directly to
the data server and using DB2 Connect Unlimited Edition for System z, perform the
activation step by running the activation program in the license activation kit.
If you are using any other edition of DB2 Connect, obtain the license file,
db2jcc_license_cisuz.jar, from the license activation kit, and follow the installation
directions to include the license file in the class path. ERRORCODE=-4230, SQLSTATE=42968
I also tried to create a new Driver to use in Squirrel, But that too doesnot work.
I have db2jcc_license_cisuz.jar available in the same folder where I pointed my driver jar.
I am really surprised why one connection to DB2 works and the other doesn't work.
db2jcc_license_cisuz.jar must be in CLASSPATH. Check db2jcc_license_cisuz.jar in Java Class Path or Extra Class Path in driver properties.