# Execute an Oracle SQL on Davis Problem

**URL:** <https://community.dynatrace.com/t/execute-an-oracle-sql-on-davis-problem/51190>\
**Category:** Automations\
**Tags:** sql, workflows, automation\
**Created:** [April 11, 2025, 12:44pm UTC](https://community.dynatrace.com/t/execute-an-oracle-sql-on-davis-problem/51190 "2025-04-11T12:44:50Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![vishnu\_kumar](https://avatars.discourse-cdn.com/v4/letter/v/df705f/32.png) [@vishnu\_kumar](https://community.dynatrace.com/u/vishnu_kumar)\
**Post date:** [April 11, 2025, 12:44pm UTC](https://community.dynatrace.com/t/execute-an-oracle-sql-on-davis-problem/51190/1 "2025-04-11T12:44:50Z")

</div>

Hi guys,

Am looking for a solution to execute an Oracle SQL whenever we have a particular Davis Problem event.

Basically we need to fetch order related data when there is a particular Exception in the code.

I can setup the trigger as event trigger workflow, but post that I&nbsp;was thinking to use a Custom Query extension with SQL source and invoke it from a Workflow.

Is it possible to do? Any other suggestions to explore?

---

<div class="post-metadata">

**Author:** ![AntonPineiro](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/antonpineiro/32/49_2.png) [@AntonPineiro](https://community.dynatrace.com/u/AntonPineiro)\
**Post date:** [April 11, 2025, 1:02pm UTC](https://community.dynatrace.com/t/execute-an-oracle-sql-on-davis-problem/51190/2 "2025-04-11T13:02:32Z")

</div>

Hi,

It means, do you want to execute a SQL query and depending answer, alert or not?

Best regards

---

<div class="post-metadata">

**Author:** ![vishnu\_kumar](https://avatars.discourse-cdn.com/v4/letter/v/df705f/32.png) [@vishnu\_kumar](https://community.dynatrace.com/u/vishnu_kumar)\
**Post date:** [April 11, 2025, 1:13pm UTC](https://community.dynatrace.com/t/execute-an-oracle-sql-on-davis-problem/51190/3 "2025-04-11T13:13:06Z")

</div>

Actually no, the alert will stay as is, will add a “CUSTOM INFO” event with the data returned by the SQL and the display id of the involved Problem
