
Chapter 6. Custom Database Monitor Analysis 197
Before running the queries, we presume that an SQL SET SCHEMA and an SQL CREATE
ALIAS are done as shown in Figure 6-12.
6.4.1 Finding SQL requests that are causing problems
To find the SQL that is causing problems, expect to use more queries for the investigation,
because it is not only the running time that matters.
First, take an overview over the data collected. To determine the number of SQL requests
that were done during the collection, run the query shown in Example 6-13.
Example 6-13 Number of SQL requests in the Database Monitor table
SELECT count(*) FROM mydbmon
WHERE qqrid=1000;
Figure 6-13 ...