# Dynatrace Managed OneAgent on AIX server for Database DB2

**URL:** <https://community.dynatrace.com/t/dynatrace-managed-oneagent-on-aix-server-for-database-db2/9263>\
**Category:** Dynatrace Managed\
**Tags:** databases, aix, dynatrace-managed\
**Created:** [November 23, 2017, 11:18am UTC](https://community.dynatrace.com/t/dynatrace-managed-oneagent-on-aix-server-for-database-db2/9263 "2017-11-23T11:18:56Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![rchavan1](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/rchavan1/32/31170_2.png) [@rchavan1](https://community.dynatrace.com/u/rchavan1)\
**Post date:** [November 23, 2017, 11:18am UTC](https://community.dynatrace.com/t/dynatrace-managed-oneagent-on-aix-server-for-database-db2/9263/1 "2017-11-23T11:18:56Z")

</div>

Please can anyone help me to understand how the OneAgent on AIX db2 works.

The installation is not as like linux but need to do instrumentation on the technologies like Java etc

but since I am using db2 database on this AIX server once i extract the agent and how my db is getting picked up by oneagent.

If any one share details procedure will be appreciated.

Thank you

---

<div class="post-metadata">

**Author:** ![hayden\_miedema](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/hayden_miedema/32/29357_2.png) [@hayden\_miedema](https://community.dynatrace.com/u/hayden_miedema)\
**Post date:** [November 23, 2017, 2:54pm UTC](https://community.dynatrace.com/t/dynatrace-managed-oneagent-on-aix-server-for-database-db2/9263/2 "2017-11-23T14:54:05Z")

</div>

Hi Rajesh,

Installation of the OneAgent on the AIX server where DB2 is running the will monitor the the DB2 process. This allows indirect monitoring of the database. You should also be able to see the queries going to the database.

HTH,

Hayden

---

<div class="post-metadata">

**Author:** ![rchavan1](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/rchavan1/32/31170_2.png) [@rchavan1](https://community.dynatrace.com/u/rchavan1)\
**Post date:** [November 23, 2017, 5:59pm UTC](https://community.dynatrace.com/t/dynatrace-managed-oneagent-on-aix-server-for-database-db2/9263/3 "2017-11-23T17:59:40Z")

</div>

Thank you Hayden, if need to restart the db2 process ? will have number of instances of db2 process? since I am doing frist time on the db2 agent installation oneagent on AIX server.

---

<div class="post-metadata">

**Author:** ![KevinW](https://avatars.discourse-cdn.com/v4/letter/k/94ad74/32.png) [@KevinW](https://community.dynatrace.com/u/KevinW)\
**Post date:** [March 21, 2025, 1:28am UTC](https://community.dynatrace.com/t/dynatrace-managed-oneagent-on-aix-server-for-database-db2/9263/4 "2025-03-21T01:28:08Z")

</div>

The OneAgent by default will group all DB2 instances together into a single process group instance called DB2 as of OneAgent v1.307, however you can use Simple Detection rules based on the Environment Variable DB2INSTANCE and DT\_CUSTOM\_PROP with the Process group Naming, and the DB2ENVLIST setting to import the DT\_CUSTOM\_PROP value to then split these out into individual DB2 instances names as the instance values.

DB2ENVLIST and DT\_CUSTOM\_PROP are set in the&nbsp;/db2/\<instanceName\>/sqllib/db2profile file, usually the last 2 lines.

tail -3 /db2/InstanceName/sqllib/db2profile

export DT\_CUSTOM\_PROP=DB2\_Inst\_Name=“${DB2INSTANCE}”

export DB2ENVLIST=DT\_CUSTOM\_PROP

RFE has been opened for Process Group Naming for DB2:&nbsp;[https://community.dynatrace.com/t5/Product-ideas/DB2-Process-Group-Instance-Using-already-available-environment/idi-p/273112#M50951](https://community.dynatrace.com/post/273112#M50951)
