---
title: "How to monitor multiple instances of IBM DB2 database in SQL-Toolkit plugin"
description: "Monitoring multiple IBM DB2 database instances requires specifying the DB2INSTANCE environment variable for each instance. To do this, start one Netprobe process per instance with the DB2INSTANCE variable set before startup, noting this does not apply to Windows Netprobes."
url: "https://docs.itrsgroup.com/docs/faq/geneos/360012001537-geneos-how-to-monitor-multiple-instances-of-ibm-db2-database-in-sql-toolkit-plugin/index.html"
---
**Issue:**

For monitoring IBM DB2 databases, the instance name should be specified at the DB2INSTANCE environment variable.

**Solution:**

1. If you need to monitor more than one DB2 database instance, you need to start one Netprobe process per database instance.
2. In the Netprobe startup script, it should include the DB2INSTANCE environment variable pointing to the instance name. e.g.

   ```
   export DB2INSTANCE=fxappdb
   ```

3. The environment variable should be set prior to the Netprobe process startup.

Note: This procedure does not work for Windows Netprobes. These are usually started with Windows services, and do not have separate startup scripts.


