How to debug DB2 object - db2

when I develop application with DB2 I try to debug but can not.
What can I do to debug procedure, function, views, and trigger on DB2.

You can debug the SPs using DB2 Developer Workbench.

Related

Internal log error in Oracle SQL developer

Whenever I compile my package, Oracle SQL developer is showing this.
Any action to be taken from my side in scripting ? How can I avoid this ? Any serious issue in scripting?
Version-21.4.3.063

IBM Cognos DB2 configuration

I'm trying to configure IBM Cognos 10.2.1 with IBM DB2 - 10.5.1 on AIX 7.1. The default installation (in cogstartup.xml) of Cognos comes with Derby database. Cognos with default configuration starts successfully. Dispatcher page comes up but with an error that indicates that Content Store (i.e. Derby) is not available.
However, if I replace the database with DB2, Cognos does not start properly i.e. dispatcher URL is inaccessible.
Can you please see what can be the issue?
Are you doing config for server end or framework manager client end? what i can tell you is once you passed config in FM and want to change it, you gotta remove two Pkey and comm folders before you trying to save your config
You might need to copy db2 jar files to cognos lib folder when you change the database from Derby to DB2, directly edit the cogstartup.xml with DB2 data configurations.

JBoss Developer Studio (Eclipse) Data Source Explorer - Disconnect HSQL still locked

I have a database connection to HSQL in Eclipse via the Data Source Explorer (DSE). I can browse the existing HSQL database just fine, and then I disconnect and start a web app that uses the same database. After disconnecting, my web app won't start unless I restart Eclipse because it says the HSQL database is locked.
If I start Eclipse and run my web app then it works fine.
What it looks like is that when I disconnect hte Eclipse DSE it does not actually release the lock properly.
Any ideas?
For anyone who is still looking for an answer:
HSQLDB lock file is not released from Eclipse Data source explorer when you disconnect, when you connect to file based URL. To release the lock, execute SHUTDOWN command on the DB (e.g. by opening SQL Scrapbook against the connection and executing SHUTDOWN as an SQL statement) and then disconnect. Also, this command could even be executed by starting a new session from the data source explorer itself, if you have disconnected before executing the shutdown command.

Integrated Authentication in Jboss Teiid

I want to use Integrated authentication using jdbc connector in Teiid. I have tried to create a connecton to Database using:
1. Create Teiid Model Project-> Source ->Import->JDBC Connection
2. I see a feature called integrated security checkbox in Specify a Driver and Connection profile.
When i am inserting values there , it is giving me an error. I want to understand if it is supported by Teiid or not
Yes, this is supported as general JBoss EAP feature, but there is no tooling support like in the Teiid Designer as you describe above.
When you create a data source configuration for Oracle in JBoss EAP, define "security-domain", and then configure a JAAS based security domain that based on Caller Idenity Login Module. See https://access.redhat.com/documentation/en-US/JBoss_Enterprise_Data_Services/5/html/Data_Services_Administration_Guide/chap-Login_Modules.html
Once you configure that, if Oracle source is being used as one of the sources under Teiid VDB, then the credentials used to log into Teiid will be used to issue queries on Oracle.

Integrating eclipse with db2

I was doing a project related to the IBM competition and need to create a web application. I have done a web application before by connecting netbeans and mysql. But, now am facing problem right from installation.
Is there any workbench(like something for mysql) for db2 . If so can anyone give a link. Also, I need to make jdbc connections. So, is there any other software I need to install.
Kindly explain to me in detail as I'm not pretty sure about this.
All you need is a DB2 JDBC JAR. Pick the appropriate one for your version and add it to your CLASSPATH.
You should use either a DB2 admin client to create tables and view data or something like SQL Squirrel.