DB2 Connect licensing problem (SQLSTATE=42968) - zos

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 ?

Related

Oracle Database 18c installation taking forever to install on windows 10

I'm trying to install Oracle Database 18c locally on my windows 10 pro education but installation is stuck on Creating Oracle XE database even It wasn't allowing to cancel the installation at this point I had to do this through task manager , I have already tried the following as suggested here but no use:
0)Please disable anti-virus and try again.
Is ORACLE_HOME or TNS_ADMIN set in the environment? Go to a command prompt, type "set". You will need to temporarily unset any such environment variables.
Are you using Windows 10 Home Edition? It is not supported and the installer is not properly checking for it in the Prerequisite check.
Are you using Server 2019? Same issue.
On your network adapter that you are using, check (enable) "Client for Microsoft Networks" and "File and Printer Sharing for Microsoft Networks".
Check to make sure Netbios is enabled on your network connection:
In some cases, antivirus has interfered with an installation. Try installing without AV.
Try creating a local user and adding to local administrator group and then log in and install as that user.
In my case, the problem occurred because a space was used as a password.

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.

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

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.

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.

IBM data studio not connecting to local DB2 databases

I have installed DB2 10.5 version on my local Ubuntu 12.04 Machine. Now i need a GUI. I already tried squirrel-sql & Db-Visualizer. While Db-Visualizer give me the view-only database structure, squirrel-sql give me some more options to manage. But now I need a DB2 administrator tool, which can handle all this tasks plus backup/restore, import/export etc.
I have listen a lot for IBM Data Studio as de-facto tool for DB2. So I installed it. After install completion, I am unable connect to my DB2 databases/schemas. It is surprise As I am easily can connect my Dbs through squirrel-sql & Db-Visualizer but IBM Data Studio refuse to connect. It give following errors during try.
Full message content: [jcc][t4][2043][11550][4.17.30] Exception java.net.SocketException: Error opening socket to server localhost/127.0.0.1 on port 50,000 with message: Malformed reply from SOCKS server.
An attempt was made to access a database that was not found, has not been started, or does not support transactions.
Ensure that the specified database name exists in the system database directory. If the database name does not exist in the system database directory, either the database does not exist or the database name has not been cataloged. If needed, issue a db2start command and then resubmit the current command. SQL4499N A fatal error occurred that resulted in a disconnect from the data source. SQLSTATE: 08004
I have specified,
Local : Db2 for Linux, Unix & Windows
Database : <mydbname>
Host : localhost
Port Number : 50000
UserName : db2inst1
Password : XXXXXX
Default Schema : db2inst1
Anybody can suggest if extra steps needed to connect.
UPDATE : Pastebin Link for Stack Trace : http://pastebin.com/ySmrFKNV
UPDATE 1 : Search online for DB2 forums for same problem, Somebody suggested to check system proxy settings. So yes, My system have proxy settings enabled. But even after set proxy to NONE in Netwrok Settings in Ubuntu, problem still persists.
UPDATE 2 : Issue resolved after reinstallation of Data Studio. No idea what problem came, But now it working with same settings.
Not really a answer. But issue resolved after re-installation of Data Studio. No idea what problem came, But now it working with same settings.