# Use new database extension to run DB Query from Dynatrace

**URL:** <https://community.dynatrace.com/t/use-new-database-extension-to-run-db-query-from-dynatrace/44832>\
**Category:** Extensions\
**Tags:** databases, extensions\
**Created:** [March 25, 2024, 3:34am UTC](https://community.dynatrace.com/t/use-new-database-extension-to-run-db-query-from-dynatrace/44832 "2024-03-25T03:34:33Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![agylpradipta](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/agylpradipta/32/15511_2.png) [@agylpradipta](https://community.dynatrace.com/u/agylpradipta)\
**Post date:** [March 25, 2024, 3:34am UTC](https://community.dynatrace.com/t/use-new-database-extension-to-run-db-query-from-dynatrace/44832/1 "2024-03-25T03:34:33Z")

</div>

Hello everyone,

Currently, I’m still using the Custom Database Query extension to run an Oracle database query through Dyantrace.

However, there is a notification indicating that the status of this extension is deprecated and it is recommended to use the “Custom database extension”.

Yet, I’m having difficulty finding the configuration steps for this extension to enable it to execute Oracle queries. Could someone please guide me on how to configure it?

Thank you.

---

<div class="post-metadata">

**Author:** ![Mohamed\_Hamdy](https://avatars.discourse-cdn.com/v4/letter/m/7ab992/32.png) [@Mohamed\_Hamdy](https://community.dynatrace.com/u/Mohamed_Hamdy)\
**Post date:** [March 25, 2024, 5:38am UTC](https://community.dynatrace.com/t/use-new-database-extension-to-run-db-query-from-dynatrace/44832/2 "2024-03-25T05:38:20Z")

</div>

Hello&nbsp;[@agylpradipta](https://community.dynatrace.com/user/58496)&nbsp;,

unfortunately, the custom db extension v2.0 is not available publicly yet, so you can create the extension by yourself using the available official documentation or contact Dynatrace extension team

> **[SQL data source](https://docs.dynatrace.com/docs/ingest-from/extensions/develop-your-extensions/data-sources/sql)**
>
> Learn how to create an SQL data source-based extension using the Extensions framework.

> **[SQL data source reference](https://docs.dynatrace.com/docs/ingest-from/extensions/develop-your-extensions/data-sources/sql/sql-reference)**
>
> Learn about SQL extensions in the Extensions framework.

as for the current&nbsp;Custom Database Queries v1, yes it’s deprecated but it’s supported by Dynatrace till October 2024

---

<div class="post-metadata">

**Author:** ![PacoPorro](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/pacoporro/32/36087_2.png) [@PacoPorro](https://community.dynatrace.com/u/PacoPorro)\
**Post date:** [March 25, 2024, 7:14am UTC](https://community.dynatrace.com/t/use-new-database-extension-to-run-db-query-from-dynatrace/44832/3 "2024-03-25T07:14:57Z")

</div>

take a look on the VSCode plugin to develop extensions.

[https://developer.dynatrace.com/extensions-v2/dynatrace-extensions-vscode/guides/getting-started/](https://developer.dynatrace.com/extensions-v2/dynatrace-extensions-vscode/guides/getting-started/)

---

<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:** [March 25, 2024, 8:07pm UTC](https://community.dynatrace.com/t/use-new-database-extension-to-run-db-query-from-dynatrace/44832/4 "2024-03-25T20:07:15Z")

</div>

Hi there.

We faced the same situation and we investigated the process of developing a new Query extension using the new framework, however, we found that it’s still quite basic in its implementation of queries. We had to define the queries themselves inside the JSON and this was very inflexible, so for now we stick with the previous version.

Configuring queries should be managed at the endpoint configuration level in Dynatrace, not directly inside the JSON file of the extension, this complicates deployment of changes enormously.

Regards,

JD.

---

<div class="post-metadata">

**Author:** ![agravier](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/agravier/32/29303_2.png) [@agravier](https://community.dynatrace.com/u/agravier)\
**Post date:** [March 26, 2024, 1:39pm UTC](https://community.dynatrace.com/t/use-new-database-extension-to-run-db-query-from-dynatrace/44832/5 "2024-03-26T13:39:58Z")

</div>

Hello&nbsp;[@agylpradipta](https://community.dynatrace.com/user/58496)&nbsp;,

The excellent practical guide to SQL extensions with&nbsp;[@vagiz\_duseev](https://community.dynatrace.com/user/3741)&nbsp;is what you need :

[![](https://global.discourse-cdn.com/dynatrace/original/3X/4/e/4eb12e9e93fd0cdedcd07d59496499a7c7c7ab77.jpeg "A Practical Guide to SQL Extensions with Dynatrace") ](https://www.youtube.com/watch?v=t9kHPKL9yKY)

Regards Aurélien
