Professional Documents
Culture Documents
DPA Administrator Guide
DPA Administrator Guide
Table of Contents
About SolarWinds
Contacting SolarWinds
Conventions
vi
Chapter 1: Introduction
Architecture
Browser View
3
3
Browser Requirements
4
4
Self-Managed Databases
7
i
You Can Repoint MySQL but not Oracle or Microsoft SQL Server Instances
Before You Install
9
9
Installation Overview
11
Installing on Windows
11
11
After Installing
12
12
After Installing
13
13
13
14
18
19
19
19
20
Advanced Configuration
20
20
23
24
Troubleshooting Tips
25
26
Upgrading on Windows
26
27
28
28
Licensing
29
License Types
29
29
ii
Table of Contents
Virtual Machine (VM) Licenses (Optional)
30
Purchasing Licenses
30
30
31
31
31
32
34
34
34
34
35
Deallocating Licenses
35
Deactivating Licenses
35
Online Deactivation
36
Offline Deactivation
36
36
37
37
37
37
38
39
40
43
45
48
51
Reports
51
Setting Alerts
53
iii
57
58
Instance Groups
59
Monitoring
59
Logs
60
More Features
60
Trend Reports
60
61
61
Creating a Report
61
Report Types
62
Alerts
63
64
64
Custom Alerts
65
Alert Attributes
66
69
69
iv
About SolarWinds
About SolarWinds
SolarWinds, Inc. develops and markets an array of network management,
monitoring, and discovery tools to meet the diverse requirements of todays
network management and consulting professionals. SolarWinds products
continue to set benchmarks for quality and performance and have positioned the
company as the leader in network management and discovery technology. The
SolarWinds customer base includes over 45 percent of the Fortune 500 and
customers from over 90 countries. Our global business partner distributor network
exceeds 100 distributors and resellers.
Contacting SolarWinds
You can contact SolarWinds in a number of ways, including the following:
Team
Contact Information
Sales
1.866.530.8100
www.solarwinds.com
www.thwack.com
Conventions
The documentation uses consistent conventions to help you identify items
throughout the printed and online library.
Convention
Specifying
Bold
Italics
Fixed font
Straight brackets, as
in [value]
Curly braces, as in
{value}
About SolarWinds
Logical OR, as in
value1|value2
Video
Tutorials
http://www.solarwinds.com/resources/videos.aspx
Success
Guide
http://thwack.solarwinds.com/docs/DOC-175335
Online
Help
Release
Notes
vi
Chapter 1: Introduction
Database Performance Analyzer for Oracle, SQL Server, MySQL, DB2, and SAP
ASE gives you the means to easily and quickly monitor, diagnose, and resolve
performance problems.
Database Performance Analyzer is a 24/7 database performance monitoring and
problem isolation tool based on industry best practice performance intelligence
and wait time analysis methods.
Architecture
SolarWinds DPA consists of:
l
The SolarWinds DPA server collects performance data from a set of database
instances you choose to monitor. SolarWinds DPA then stores this data in the
repository database.
Note: For optimal performance, the repository and the monitored database
instances need to reside on the same high-speed LAN. If your environment
contains database instances that are on separate LANs, we recommend that a
repository be set up on each LAN.
The Database Performance Analyzer server provides a web interface to let you
view performance data in a web browser from any computer with access to the
Database Performance Analyzer server.
Several Database Performance Analyzer installations can reside on the same
machine. On UNIX/Linux, this is done by installing each instance of Database
Performance Analyzer in a separate directory. The Database Performance
Analyzer Windows version supports the installation of a single Database
Performance Analyzer on a machine. Contact www.solarwinds.com/support if you
need multiple instances of Database Performance Analyzer installed on a
Windows machine.
Chapter 1: Introduction
Browser View
Database Performance Analyzer uses a web browser to view performance data.
From this interface, you configure monitoring and use advanced Database
Performance Analyzer features such as alerting and emailing reports.
"Licensing" on page 29
System Requirements
This section discusses the system requirements for SolarWinds DPA:
l
Browser Requirements
Browser Requirements
SolarWinds DPA supports the following browsers:
l
Firefox 35
CPUs
RAM
(dedicated to DPA)
OS
Architecture
1 20
1 GB
32 or 64 bit
20 50
2 GB
32 or 64 bit
51 100
4 GB
64 bit
101 250
8 GB
64 bit
If you plan to monitor more than 250 database instances, consider using more
than one SolarWinds DPA server for monitoring. See "Configuring DPA Central
Server Mode" on page 19.
System Requirements for an Amazon EC2 DPA Server
The minimum required Amazon EC2 instance type for the SolarWinds DPA AMI
is m3.medium. Smaller instance types are not supported.
Oracle 10.2.0.5
Oracle 11.2.0.5
Oracle 12.1 non-container database architecture
Architecture
1 - 20
2 GB
32 or 64 bit
20 - 50
4 GB
64 bit
51 100
8 GB
64 bit
101 250
16 GB
64 bit
1 GB
Medium
3 GB
Heavy
5 GB
Example
You are monitoring 5 light, 3 medium, and 2 heavy activity database instances.
(5 x 1GB) + (3 x 3GB) + (2 x 5GB) = 24 GB
Reserve at least 24 GB to provide adequate disk space for this repository
database.
Administrator Credentials Are Required
You must know the DBA credentials (Oracle) or the Sysadmin credentials
(MSSQL) for the database instance hosting your repository.
Self-Managed Databases
Self-Managed Databases
Database
Supported Version
Oracle
MySQL
SYS user privileges are required for the
initial setup.
2008 SP4
2008 R2 SP3
2012 SP2
2014 CU1
15.0.x
15.5
15.7
16
9.5
9.7
10.1
10.5
Percona 5.6
Amazon
RDS
Oracle
Supported
Versions
11.2.x
Key Differences
Unavailable alerts:
l
Explain plans:
l
Microsoft
SQL Server
2008 R2
sp1
2012
Unavailable alerts:
l
Explain plans:
l
You Can Repoint MySQL but not Oracle or Microsoft SQL Server Instances
Amazon
RDS
Supported
Versions
Key Differences
CPU Utilization
Memory Utilization
MySQL
5.6
No differences.
You Can Repoint MySQL but not Oracle or Microsoft SQL Server Instances
2. Identify the Oracle or Microsoft SQL Server database instance that will hold
the Database Performance Analyzer Repository.
a. Ensure the repository is not installed in a critical production database
instance.
b. For a Microsoft SQL Server Repository, ensure that a
username/password with SYSADMIN privileges is available during
installation.
c. For an Oracle Repository, ensure that a username/password with
DBA privileges is available during installation.
3. Obtain appropriate login credentials for each of the monitored databases.
Database
Oracle
Credentials
l
SYS password
SQL
Server
SYSADMIN username/password
DB2
Sybase
MySQL
SYS password
4. If you are using Database Performance Analyzer with the VM option, you
must have a read-only user with access to vCenter or ESX for monitoring.
10
Installation Overview
Installation Overview
1. Install the Database Performance Analyzer server software on a Windows,
UNIX, or Linux computer.
2. Use the Database Performance Analyzer Setup Wizards to:
a. Create and configure a repository database on a non-production
instance of Oracle or Microsoft SQL Server.
b. Register database instances to be monitored by the repository. You
should not monitor the same database instance from more than one
installed instance of Database Performance Analyzer.
Installing on Windows
SolarWinds DPA for Microsoft Windows comes as a typical Windows installer.
You can download the 64-bit installer as a .ZIP file from your SolarWinds
customer portal, https://customerportal.solarwinds.com/
If you require the 32-bit installer, please open a technical support ticket on our
website:
http://www.solarwinds.com/support/ticket/
Note: You can download evaluation versions of SolarWinds DPA from the
SolarWinds web site.
11
After Installing
1. Open your web browser to http://yourserver:8123
2. Complete the Repository Creation Wizard.
3. Begin registering database instances for monitoring in the Register Instance
Wizard.
-orl
12
After Installing
6. The installer will prompt you for needed information, including creating a
directory on the server to hold the new installation. This will be the
Database Performance Analyzer Home directory.
7. Start Database Performance Analyzer.
1. From the Database Performance Analyzer home directory, run
./startup.sh.
2. Open a browser and connect to http://yourserver:8123/.
When you run Database Performance Analyzer for the first time, a
wizard walks you through the process of creating a repository and
monitoring database instances.
After Installing
1. Open your web browser to http://yourserver:8123.
2. Complete the Repository Creation Wizard.
3. Begin registering database instances for monitoring in the Register Instance
Wizard.
13
3. Click EC2.
4. Click Launch Instance.
5. On the Choose an Amazon Machine Image (AMI) page:
1. Click the Community AMI tab.
14
2. Search for SolarWinds DPA and then click Select next to the AMI.
c3.large
r3.large
m3.large
c3.xlarge
m3.xlarge
c3.2xlarge
m3.2xlarge
m3.medium is an economical choice and a logical instance type to
start with. However, large deployments and managing very active
databases need the increased resources and optimizations available
to the larger instance types. You can select the size you need right
now and then resize to a larger instance type later.
2. Click Next: Configure Instance Details.
7. On the Configure Instance Details Type page:
If you have used Amazon EC2 before, you probably already have an
Amazon VPC network and subnet set up. Your existing network and subnet
15
is selected by default.
1. Make sure that:
l
Size
Root 50 GiB
EBS 100 GiB
The Delete on Termination option is not selected by default. It is a
good precautionary practice to have to separately delete the data
volume after terminating an instance.
2. Click Next: Tag Instance.
9. On the Tag Instance page:
1. Give the tag Name the value SolarWinds DPA to more easily
recognize your instance in Amazon EC2.
2. Click Next: Configure Security Group.
10. On the Configure Security Group page:
1. Add rules that allow inbound access to at least the remote desktop
and the HTTP/HTTPS ports.
Type Protocol Port Range
HTTP
TCP
80
HTTPS TCP
443
RDP
3389
TCP
16
17
14. Wait a few minutes for the provisioning and initialization to finish.
18
You want to monitor more than 250 database instances. You can divide
monitoring tasks between different SolarWinds DPA servers.
Your monitored databases are distributed geographically. You can install
separate SolarWinds DPA servers in each geographic location.
The DPA Central Server collects information from all your remote DPA servers
and rolls up the data into a single interface including viewing alarm information,
monitoring summary information, and database issues.
19
Advanced Configuration
Central is preconfigured to run fine in most environments, but depending on how
it is used you may need to make some configuration changes to make it run more
efficiently for your environment. The following tables explain some of these
advanced setting.
To change the default behavior, you can edit the system.properties file in the
/iwc/tomcat/ignite_config/idc directory of your Central DPA Server and add
the desired setting. Bold values are the default values.
Thread Pool Settings
These settings control the number of threads that will be used by Central to make
web service calls to other remote servers. The default settings are set for a few
concurrent users hitting up to 100 remote instances. If you have more than 100
instances or a lot of concurrent users you may want to adjust these settings.
20
20
The core
number
of
threads
that Central uses
to make
web service calls
to the
remote
servers.
com.confio.iwc.centralServiceTaskExecutor.maxPoolSize
40
The maximum
number
of
threads
that Central uses
to make
web service calls
to the
remote
servers.
Central
adds
more
threads
only
when all
core
threads
are in
use and
the task
queue is
full.
21
com.confio.iwc.centralServiceTaskExecutor.queueCapacity
com.confio.iwc.centralServiceTaskExecutor.keepAliveSeconds
120
22
The number of
seconds
to keep
an idle
thread
before
pruning
true
/false
com.confio.iwc .token.login.supported
true
/false
com.confio.iwc.show.all.errors
true/
false
com.confio.iwc.automatic.update true
/false
23
com.confio.iwc.alarm.level
com.confio.iwc.alarm.count
200
Critical
Warning
Normal
empty
(disables details)
100
com.confio.iwc.client.factory.cache.timeout
24
Troubleshooting Tips
com.confio.iwc.client.factory.connection.timeout 15
com.confio.iwc.client.factory.read.timeout
30
com.confio.iwc.client.factory.enable.chunking
com.confio.iwc.client.factory.enable.log
Troubleshooting Tips
l
Make sure another process is not using the default Database Performance
Analyzer ports. If the ports are being used by another process, change the
default ports of 8123 and 8127 by editing
25
installdir/iwc/tomcat/conf/server.xml
Upgrading on Windows
If you are upgrading from SolarWinds DPA 9.0 or earlier, we have granted you
new instance-based licenses for DPA that you will find in your customer portal.
Before upgrading, log on to the SolarWinds Customer Portal and verify that you
have your new instance-based keys listed as Category 1, Category 2, and
VM Option.
1. Download the most recent version of the software from your SolarWinds
Customer portal, http://customerportal.solarwinds.com.
2. Run the installer.
3. When asked, verify that you have a valid instance-based Category 1 or
Category 2 activation key(s).
4. Follow the installer instructions.
5. Open a web browser to your SolarWinds DPA server.
6. Click Enter Activation Key.
7. Activate a key using the online or the offline method as appropriate, and
then click Done. "Licensing" on page 29.
8. Click Proceed with Upgrade.
9. Wait for the upgrade to finish.
26
6. If you are:
l
using LDAPS, or
using SSL, or
NOTE: If you are using LDAPS but not SSL, it is not necessary to
copy the server.xml file.
b. Copy the keystore to the new installation.
cp -fr OLD_home/iwc/tomcat/conf/.keystore NEW_
home/iwc/tomcat/conf/
27
28
Licensing
Licensing
SolarWinds DPA comes with a 14-day evaluation license. During the evaluation
period, you can monitor and view data for an unrestricted number of database
instances. After the end of the evaluation period, you will need to purchase the
appropriate quantity and type of licenses for the database instances you want to
monitor.
License Types
Each database instance you monitor with SolarWinds DPA requires a license.
You must buy a database instance license for each database instance you
monitor. In addition, you may buy virtual machine licenses to monitor the virtual
infrastructure hosting one of your database instances.
Database Instance Licenses
Purchase an instance license for each database instance you want to monitor.
SolarWinds sells licenses by category according to the database edition they are
authorized to monitor.
Category 1 licenses monitor...
Oracle: all editions except Standard and Express
Sybase: all editions except Express
29
Category 2
licenses
monitor...
MySQL: All
editions
Microsoft
SQL Server:
all editions
Oracle:
Standard
and
Express editions
Sybase:
Express edition
IBM DB2:
Express edition
Purchasing Licenses
Contact our sales team to purchase licenses directly from SolarWinds in the
manner most convenient to you.
Only buy licenses for active database instances. Standby database
instances used for disaster recover or high availability do not need
licenses.
On the web:
http://www.solarwinds.com/onlinequotes/
Via email:
sales@solarwinds.com
Via telephone:
+1 (866) 530-8100
30
If your SolarWinds DPA server uses a proxy to connect to the Internet or has
no Internet connection, follow the activation procedure below titled
"Activating Licenses Offline if You Do Not Have Direct Internet
Connectivity".
If your SolarWinds DPA server has Internet Connectivity, follow the
activation procedure below titled "Activating Licenses if You Have Direct
Internet Connectivity
31
2. On the SolarWinds DPA License Manager page, paste the activation key.
1. Open the SolarWinds DPA Web Client in your browser.
2. On the Home page, click License Management and then click
License Manager.
3. Click Enter Activation Key.
4. Select Online Activation.
5. On the Online Activation page, paste the activation key into the correct
field. For example, if this is a Category 1 key, paste it into the
Category 1 field.
6. In the Amount to Activate section, select All Available or Specify
Amount.
l
l
32
33
6. On the Offline Activation page, click Choose File to choose the license file
you just transferred, and then click Activate.
Your license key is now activated.
Allocating Licenses to Database Instances
Use the License Allocation to configure and reconfigure how your licenses are
allocated to database instances. Make use of your SolarWinds DPA licenses by
allocating them among your registered database instances. We start monitoring
new instances immediately after you allocate your licenses. Category 1 and 2
licenses collect the data shown in the Performance view. VM licenses collect the
data shown in the Virtualization view.
Opening the License Allocation Page
You can see the current license allocations in the summary boxes near the top of
the License Allocation page.
You must allocate a license to each database instance you want to monitor and
collect information from.
34
1. From the list, find the registered database instance you want to monitor.
2. Select the Cat 1or Cat 2 check box next to that instance.
3. Click Save when finished.
After you allocate a license, you will see the license count update accordingly.
Allocating VM Licenses to VM Database Instances
If you have VM licenses, you must allocate a license to each database instance
you want to collect virtual infrastructure-related data from. VM licenses are in
addition to the regular SolarWinds DPA licenses required to normally monitor the
database instance.
1. From the list, find a VM-hosted database instance that already has a
Category 1 or 2 license allocated to it.
2. Select the VM check box next to that instance.
3. Click Save when finished.
Deallocating Licenses
If you change your mind about the registered databases instance you want to
monitor, you can deallocate licenses to make licenses available to register other
database instances.
Deallocating a license is similar to allocating a license, except that you clear the
check box instead.
Note: If you clear a Category 1 or 2 license from an instance that also has a
VM license, we automatically clear the VM license for you too.
Deactivating Licenses
For various reasons, you may want to deactivate licenses on a SolarWinds DPA
server to make them available elsewhere. If you were able to use online
activation for your licenses, you can deactivate them online too. If you had to
activate your licenses offline, you must use the offline deactivation process.
35
A license expires when you still have unexpired licenses of the same type
on the server.
You deactivate a license and still have other licenses of the same type on
the server.
If SolarWinds DPA licenses are over-allocated, you cannot view or analyze your
database instances until you deallocate the extra licenses. SolarWinds DPA
continues monitoring the databases, so you will not lose any data while you bring
the allocated licenses back to an allowable level.
To fix over-allocated licenses, deallocate database instances until you reach the
proper number of licenses. If the over-allocation is for Category 2 licenses, you
may assign any available Category 1 licenses to cover the shortage.
1. On the Home page, click License Management.
2. Look at the allocations chart to find the over-allocated license type. Overallocated license types are shown in red.
36
37
38
Identify the top three queries with the highest impact on application
response time.
Correlate these queries with system resources to understand the complete
picture.
These first steps cover the basics of Database Performance Analyzer, but once
you have completed this chapter you will have acquired enough knowledge and
experience to begin performing more advanced analysis.
Database Performance Analyzer works with Oracle, SQL Server, MySQL, DB2 /
LUW, and Sybase. There are some differences in the examples and screen shots,
but generally the application works the same for all database types.
Database Performance Analyzer is an agentless solution that places less than
1% load on the monitored databases. You will see best results on a heavily used
database where there are problems to solve.
This guide assumes Database Performance Analyzer is currently installed and
you have started monitoring a database. For installation and setup instructions,
see the Introduction section.
39
If you are not seeing the metrics you expect, or if charts have no data,
you may have performance schemas switched off. For more
information, see MySQL Requirements and Information.
40
41
42
43
44
45
46
Now go back to the Top SQL Statement chart again, shown below in screen 8.
For the first query, named Object Trend Message Priority, note how the majority of
the bar corresponds to a colored Wait Type/Event in the legend db file scattered
read.
47
Screen 9: Description of the Wait and Details on How to Best Resolve the Issue
Now Database Performance Analyzer has isolated the top SQL queries creating
increased user response time and has shown you the Wait Types/Events
uniquely responsible for the response time in each one.
Action: For the three SQL queries of interest identify the two or three Wait
Types/Events that comprise more than 75% of the total response time. In many
cases, one single wait bottleneck will be responsible for nearly all of the delay.
48
49
50
Reports
Click the Reports link from the top of the Database Performance Analyzer main
screen.
Now select the database instance to use for the report and Report Type = Top
SQLs. Then click Report Options.
51
Then click Display Report near the top of the Report Creation Window. Screen 13
shows the report with just the chosen queries for the most recent days.
52
Setting Alerts
Screen 13: Custom Report for Three Critical Queries
Make sure to use the Save As link with a report name to keep the selections you
have chosen for repeated use and scheduled distribution.
First, you want to schedule the report to be delivered automatically via email to
you and your manager on a weekly basis. From top right navigation, click
Options, then from the Monitor Setup tab click Report Schedules.
Note: Database Performance Analyzer has a default SMTP email configuration
that works in most cases. If your network or firewall requires use of an internal
SMTP server, see the Configuring SMTP Mail Server for Outgoing Email
Knowledge Base article.
Creating a report delivery schedule just requires a few pieces of information on
this screen:
l
Choose the report you want using the name created earlier.
Action: Create the report Total Response Time for three Critical SQLs for the
queries identified in Step 1. Create a report schedule to deliver it via email to you,
colleagues, or managers every Monday morning.
Setting Alerts
Database Performance Analyzer enables you to find the routine performance
history at any time. You also can generate summary reports to watch queries of
interest. Now you can take the final step of establishing proactive alerts to watch
for major increases in SQL response time and other metrics.
You will determine the average execution response time for each of your SQL
queries, then set Alerts to warn you of significant deviations.
First, determine the normal execution time for your queries. Go back to screen 2.
See the View Historical Charts for SQL drop-down menu. Choose your first query
and view the historical chart, as in screen 14. You will see this chart with a black
bar through the center located near the bottom on the page Historical Charts for
SQL. This chart shows the average execution time for the SQL on each day, and
the black bar denotes the average wait for this query across all the days
displayed in the chart.
53
In this case, the average wait time was 13.58 milliseconds for the example in
screen 14. Note that execution time, wait time, and response time all refer to the
same concept of how long it takes for the database to return a response to the
application.
The black bar shows an average time of 15:26 milliseconds wait for this query for
all executions for the entire month. A best practice is to alert if the average
54
Setting Alerts
response during a period is greater than 100% higher than this average during a
sample period. In this case that would be roughly two seconds.
Action: For each of the three chosen SQL queries, estimate the typical response
time. Choose a threshold, approximately twice as long, that you will use to set
alerts for notification.
To create the alert, go to the top right navigation and click Alerts, then the Manage
Alerts tab. From here, you can select the Alert Category and the Alert Type.
Choose the database instance and one of the three important SQL queries
you selected in Step 1 as the target for your Alert.
Set low and high level alert thresholds that are approximately twice as long
as the typical execution times for your query.
55
Run the alert every 10 minutes or more, allowing enough time to get valid
samples and ensure you dont get unnecessary warnings from a single slow
execution.
Make sure you test the alert (see Test button) to ensure it works properly
and can send email messages from your network.
56
l
l
You can search for the query to alert on by name or hash value.
The hash value is always returned from search, even when a named query
is selected.
The average wait time is specific to the execution interval, so if the interval
is 10 minutes, Database Performance Analyzer will look at the average wait
time for the SQL statement chosen for that 10 minute period and compare
these values to your thresholds.
Action: For the three selected SQL queries, and the criteria established already,
create, name, and save three alerts that send you warning messages when the
SQL queries exhibit excessively long response times.
57
58
Instance Groups
The main screen shows a table of the database instances being monitored.
Notice that different database types can be seen on the same screen. Monitoring
can be started or stopped from this screen.
Instance Groups
You can also group monitored databases using the Instance Groups feature. The
repository above has databases groups defined as the various database types,
but you can define any mix of groups. Database Performance Analyzer will
automatically group Oracle RAC instances. Other databases are not
automatically grouped.
Monitoring
59
Clicking the Log link for a database (found on the Home page in the Action dropdown) shows the Database Performance Analyzer monitoring log for the
associated database. This is helpful to determine why the Database Performance
Analyzer monitor cannot start for some reason, or data seems to be missing. The
Log Viewer link (found on the Options page under the Support tab) shows the log
entries for all monitored database instances.
More Features
l
l
Trend Reports
Trend Reports let Database Performance Analyzer users communicate the
important, long-term performance of their databases across the organization in
published reports with easy-to-understand charts. With Trend Reports, you can
quickly capture the results of performance tuning efforts, database resources of
concern, or database trends in the form of graphical reports and publish these
reports for managers, team members and customers. Trend Reports give
Database Performance Analyzer users a vehicle to show evidence to support
60
Trend Reports are different from the detailed data displayed in the typical
Database Performance Analyzer charts because Reports are available for
summarized data that extends over months or years. Detailed repository data is
accessible for a shorter detailed data storage period, typically 30 days. Trend
Reports can show data captured over longer intervals and allows you to display
and capture longer term trends.
To generate Trend Reports, Database Performance Analyzer summarizes and
condenses repository data to make long-term information available within a
manageable size. This process is automatic, and no user management of the
Report data summary process is required. The data is summarized by hour, and
this hourly data is available for 90 days. After 90 days, the data is summarized by
day and is available for five years.
Minimum Data to Generate a Report
Because the Trend Reports are designed to show data trends over hours, days,
months and years, a display of Reports requires a minimum of three hours of
collection. Detailed repository data, with time granularity down to the second, will
display information within 10 minutes of initial collection. Best results are
achieved after letting the repository collection run for at least a full day before
generating Reports.
Creating a Report
You can create a new report by clicking the Reports link from the main page. The
report menu page is displayed.
61
The Report page also has a Report Schedules tab. Report schedules are used to
automatically email a report (or group of reports) at regular intervals. For example,
you could create a schedule to email a list of the top ten worst performing SQL
statements every Monday at 9:00 am.
Report Types
Top Waits: This report charts Wait-Events for an entire database. By default,
Database Performance Analyzer displays the top five Wait-Events with
highest accumulated wait time. The user has the option to display the top
ten or select specific waits of interest on the Wait Types/Events tab in the
Report Properties dialog.
Top Waits for single SQL: This report identifies the top Wait-Events (up to
50), ranked by wait time, for a specific SQL statement. The user has the
option to display Wait Types/Events of interest from the Wait Types/Events
tab.
62
Alerts
Top SQLs: This report shows the top five SQL statements ranked by total
Wait Time across a user selected interval. The user has the option to
display the top ten or select specific SQL statements from the SQL
Statements tab on the Report Properties dialog. The report will show a
descriptive name for the SQL if it has been defined previously by the user.
Top SQLs for Single Wait: This report is similar to Top Waits for single SQL
except it shows Wait Time for a single specific database Wait only.
Top Programs: This reports the total accumulated Wait Time for Programs. It
shows the top five programs by default and allows the user to display up to
ten or select specific programs of interest from the Programs tab on the
Report Properties dialog.
Top Files: This report displays the top five busiest files ranked by total I/O
Wait Time. Database Performance Analyzer calculates the total Wait Time
for all I/O operations on each file for selected intervals. The user has the
option to display up to the top ten or select specific files from the Database
Files tab on the Report Properties dialog.
Typical Day of Wait for single SQL: This report displays a stacked graph
showing average hourly Wait Time for the top five Wait-Events contributing
to the total Wait Time for an individual SQL statement. The uppermost
portion of the bar is the summation of all other Wait-Events. You have the
option to display the top ten or select specific Wait Times/Events to display
from the Wait Times/Events tab. This report is useful for identifying the peak
loads during a business day based on long-term observation of the system.
Typical Day of Wait: This report displays a bar graph showing the average
hourly Wait Time for a specific database. It displays the distribution of
average Wait Time versus time-of-day.
Alerts
Database Performance Analyzer Alerts give you proactive control of the
database, notifying you of issues before they become problems for database
customers. By setting thresholds on key Wait Time statistics or on standard
administration indicators, the DBA group gets an early warning of potential
problems, and can take steps to solve the underlying issue before users are
affected. The result is improved customer service, fewer trouble tickets, and
increased compliance with database SLAs.
63
Alerts, like Trend Reports, are designed to provide instant use out-of-the-box and
allow a high degree of customization to give you a tool tailored to your specific
needs. Database Performance Analyzer is preconfigured with three types of
alerts:
Wait Time Alerts
Wait time alerts are based on the amount of time users or applications waited on
the database. For example, the Average SQL Wait Time alert fires when a SQL
statement causes more wait time for the user than is acceptable. These alerts are
critical because they ensure that you are only alerted when users and
applications are being affected.
Database Administration Alerts
DB Admin alerts are typical alerts surrounding the health of the database system.
For example, the Database Parameter Changes alert notifies you when any
database parameter has changed. The Database Availability alert notifies you
64
Custom Alerts
when the database instance is no longer accessible (e.g., crashed or the network
has gone down).
Custom Alerts
Custom Alerts are user-specified queries that are run against the monitored
database or the Database Performance Analyzer Repository. The query returns a
number (or set of numbers) that may trigger an alert depending on user-defined
threshold settings.
For example, you could enter a query to detect the number of canceled orders in
the last ten minutes.
select count(*) from orderswhere status=CANCELLED and date > sysdate
10/1440;
You can write a SQL query to set alerts on SQL Server health metrics.
You might also want to see which type of orders have high cancellation rates.
select order_type, count(*) from orders where status=CANCELLED and
date > sysdate 10/1440 group by order_type;
Finally, you may want complex logic to determine if an order has truly been
canceled. In this case, you could write a function or procedure on the monitored
database instance and call it.
l
Sybase: mycustomprocedure(parm1)
65
66
Alert Attributes
For Wait Time alerts, this value also indicates the time period that Database
Performance Analyzer uses to examine data, looking backwards from the time the
alert runs. For example, if the execution interval/explain is 10 minutes, Database
Performance Analyzer will execute the alert every 10 minutes and also query the
last 10 minutes of Database Performance Analyzer performance data as alert
input.
l
Notification Text: This text will be sent with the notification email or page. It
should include an explanation of the alert as well as the suggested
resolution steps.
Database Instance to Monitor: Specifies which database instances will be
monitored with this alert. Some alert types allow multiple database
instances to be specified.
Alert Levels and Recipients: Specifies the ranges of values that will trigger
an alert notification. For example, a particular SQL has an SLA to execute in
under 4 seconds, but typically executes in less than 2 seconds. A Low alert
threshold could be set at the 2 second mark to send you an email. Another
High alert threshold could be set to the 4 second mark.
Notification Group or Contact: Alerts can be sent to an individual, a group, or
to an enterprise management console such as SolarWinds Server &
Application Monitor using SNMP traps. It is important to note that when Alert
Levels are reached the appropriate notification group/contact is notified only
once. As Alert Levels change (i.e., go higher or lower), a group will not be
notified again if it has already been notified once. This will continue until the
Alert Level goes back to Normal.
SNMP Alerting: Database Performance Analyzer alerts can be configured to
send SNMPv2c Traps to a SNMP-enabled Network Management Station
(NMS) when an alert level or threshold is reached. The trap will contain the
name of the monitored database, alert name, alert level, and response
instructions. The NMS that will receive the trap is represented as a contact
(SNMP Contact) in Database Performance Analyzer.
SNMP Contacts: SNMP Contacts represent an NMS that will receive traps
from Database Performance Analyzer Alerts.
67
To create an SNMP Contact, from the Management Option screen, click the
Administration tab. Under Users & Contacts, click Contacts and Contact Groups.
68
69