# Database Query Extension with DB2 for IBM i Series (AS400)

**URL:** <https://community.dynatrace.com/t/database-query-extension-with-db2-for-ibm-i-series-as400/39297>\
**Category:** Extensions\
**Tags:** databases, ibm, extensions\
**Created:** [April 13, 2023, 7:13pm UTC](https://community.dynatrace.com/t/database-query-extension-with-db2-for-ibm-i-series-as400/39297 "2023-04-13T19:13:43Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![jose\_araya](https://avatars.discourse-cdn.com/v4/letter/j/41988e/32.png) [@jose\_araya](https://community.dynatrace.com/u/jose_araya)\
**Post date:** [April 13, 2023, 7:13pm UTC](https://community.dynatrace.com/t/database-query-extension-with-db2-for-ibm-i-series-as400/39297/1 "2023-04-13T19:13:43Z")

</div>

Hello!

I have tried to configure the Custom DB Query Extension against a DB2 for i Database but we haven’t been able to make it work.

Using the DB2 JTOpen driver we encounter the following error:

**Error running queries: Could not connect to the database using com.ibm.db2.jcc.DB2Driver: com.ibm.db2.jcc.am.SqlSyntaxErrorException: [jcc][t4][10509][13454][4.25.25] 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**

Is there any restriction for DB2 running on i Series with this extension?

Where do we need to put that .jar file that the exception refers to?

Thank you very much!

---

_[View the full topic](https://community.dynatrace.com/t/database-query-extension-with-db2-for-ibm-i-series-as400/39297)._
