Using a single query or a given set of queries, you can monitor the status of any given database using Applications Manager Database Query
monitor. Queries are the best way to find out whether your database is up and running 24x7. In business enterprises such as an online store,
there are a number of applications and databases used for e-commerce. Any interruption in such an environment could mean only one thing: loss
of revenue.

The execution of such a query or a set of queries can be automated by setting the polling interval. By fixing the polling interval, user can
automate this process and the results are obtained at the end of the polling. The result includes execution time (time taken by the query to
provide results) and also displays any error that may occur during regular polling intervals. These errors help identify any issue that may occur
with the database.

Let us consider an example. Many enterprise environment run critical applications which need to be up and running 24x7. Let us assume, the
status of such applications are maintained in a "APPLICATION_STATUS" table. Using Database Query monitor, the user shall be able to
send a select set of queries to that database to find out if they are operational or not.

|-----------------------------------------------------------|

|
APPLICATIONS_STATUS
|

|-----------------------------------------------------------|

| APPLICATIONS_NAME | Status |

|-----------------------------------------------------------|

| PURCHASE
| OK |

|
CRM
| CRITICAL |

|
PAYROLL
| OK |

|
LEADS
| OK |

|-----------------------------------------------------------|

SELECT * APPLICATIONS_STATUS

By executing the above command using Database Query monitor, the user will then obtain the list of applications that are running along with
its status. The user can then identify the applications whose status is 'Critical' and then carry out necessary action by configuring
Alarms in Applications Manager. This action could be in the form of creating a ticket, or executing a script to rectify the problem.

Database Query monitor can also be used to identify any bottle necks in the networks which are linked to several databases and help remove
them by identifying the correct database which has the issue. This bottle neck issue can arise because there is a problem with the one of
applications or with the databases. Using Database Query monitor, user can then execute a given set of queries and analyze the result which
provides a clear indication of the error that has caused such an occurance. The result includes the execution time (time taken by the query to
generate the result). If the execution time is above a certain pre-assigned threshold, then the issue is with the database or if the result is below
the pre-assigned threshold, then the issue is elswhere.

The Database Query monitor currently supports the following set of databases queries:

MySQL

MS SQL

Sybase

DB2

Oracle and

Postgres

Applications Manager also provides the ability to compare various column value in the output by attributes types. Option to Enable or Disable
Reports is provided.

Note: Please note that the number of queries is limited to five queries. Total number of rows shown in
the output is limited to 50 rows.