# Debugging custom 2.0 extension with sqlOracle datasource

**URL:** <https://community.dynatrace.com/t/debugging-custom-2-0-extension-with-sqloracle-datasource/46413>\
**Category:** Extensions\
**Tags:** databases, oracle, extensions\
**Created:** [July 2, 2024, 12:00pm UTC](https://community.dynatrace.com/t/debugging-custom-2-0-extension-with-sqloracle-datasource/46413 "2024-07-02T12:00:53Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![sivart\_89](https://avatars.discourse-cdn.com/v4/letter/s/848f3c/32.png) [@sivart\_89](https://community.dynatrace.com/u/sivart_89)\
**Post date:** [July 2, 2024, 12:00pm UTC](https://community.dynatrace.com/t/debugging-custom-2-0-extension-with-sqloracle-datasource/46413/1 "2024-07-02T12:00:53Z")

</div>

I’ve created a custom db extension but am noticing the below for an endpoint. I can connect to the database through something like dbeaver and run the query fine (the same connection string and account used in the extension). When ran through the extension it seems to not work. Is there any debugging I can do here to help determine what is going on? All of my other queries are working, just not this one query connecting to this other database.

Side note, this works fine in the old extension running from the same ActiveGate. Even so, based off the message below the connection does seem valid, there just isn’t metrics being collected. I’ve seen a different message if the connection is invalid and the datasource cannot connect to the database.

Connection exists but no metrics have been produced for endpoints

---

<div class="post-metadata">

**Author:** ![Mike\_L](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/mike_l/32/11717_2.png) [@Mike\_L](https://community.dynatrace.com/u/Mike_L)\
**Post date:** [July 4, 2024, 3:52pm UTC](https://community.dynatrace.com/t/debugging-custom-2-0-extension-with-sqloracle-datasource/46413/2 "2024-07-04T15:52:54Z")

</div>

Hi,

This tool is helpful when investigating connectivity issues:

> **[GitHub - Dynatrace/db-connection-check: Quick & dirty tool to verify database connectivity](https://github.com/Dynatrace/db-connection-check)**
>
> Quick & dirty tool to verify database connectivity

Mike

---

<div class="post-metadata">

**Author:** ![Julius\_Loman](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/julius_loman/32/51_2.png) [@Julius\_Loman](https://community.dynatrace.com/u/Julius_Loman)\
**Post date:** [July 4, 2024, 7:57pm UTC](https://community.dynatrace.com/t/debugging-custom-2-0-extension-with-sqloracle-datasource/46413/3 "2024-07-04T19:57:18Z")

</div>

It may sound dirty, but unless you use SSL, sometimes it’s worth doing a tcpdump/wireshare packet capture and see what’s going on. I’m not aware of any user setting to set the extension to debug mode. With Wireshark I was able to see the error almost immediately. In my case it was short name instead of fqdn retrieved from the SCAN name outside of my DNS domain resolutions.

---

<div class="post-metadata">

**Author:** ![sivart\_89](https://avatars.discourse-cdn.com/v4/letter/s/848f3c/32.png) [@sivart\_89](https://community.dynatrace.com/u/sivart_89)\
**Post date:** [July 18, 2024, 12:14pm UTC](https://community.dynatrace.com/t/debugging-custom-2-0-extension-with-sqloracle-datasource/46413/4 "2024-07-18T12:14:05Z")

</div>

Thank you all for your input here. Got pulled away from this a bit but looking now I no longer see the issue. I will keep these things in mind for the future.
