16.10.2015 Views

Getting Started with IBM Data Studio for DB2

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

• Connections: This generates a connections alert.<br />

• Table Space Quiesced: This generates a storage alert.<br />

4.10.1 Adjust the monitoring frequency<br />

Chapter 4 – Monitoring the health of your databases 155<br />

First, navigate to the Health Alerts Configuration page in the <strong>Data</strong> <strong>Studio</strong> web console and<br />

select a database. You will see the default refresh value is 10 minutes, which means that<br />

the monitoring of this database will happen every 10 minutes. For this exercise, change<br />

this value to 1 minute, so you will not have to wait as long to see the alerts being<br />

generated.<br />

4.10.2 Adjust the page refresh rates<br />

Navigate to the Health Summary page, and find the option to change refresh intervals.<br />

Click the down arrow next to the Recent xx minutes label. A window opens that lets you<br />

change how often the Health Summary pages will auto-refresh itself to display recently<br />

found alerts. The default is set to 5 minutes. For this exercise, change it to 1 minute to<br />

minimize testing wait times.<br />

4.10.3 <strong>Data</strong>base availability<br />

The <strong>Data</strong>base Availability Alert checks the following status types <strong>for</strong> a database: Normal,<br />

Quiesce Pending, Quiesced, Roll<strong>for</strong>ward, and Unreachable. By default, a warning alert is<br />

generated if the database is in Quiesce Pending or Roll<strong>for</strong>ward state. A critical alert is<br />

generated if the database is in Quiesced or Unreachable state.<br />

The following error scenario will put the database in Quiesced state, so that a critical alert<br />

will be generated.<br />

1. Open a <strong>DB2</strong> command window.<br />

2. Connect to the database <strong>with</strong> the following command:<br />

db2 connect to GSDB user db2admin using db2admin<br />

3. Quiesce the database <strong>with</strong> the following command:<br />

db2 quiesce db immediate<br />

4. Navigate to the Health Summary page. Wait <strong>for</strong> one minute to see the <strong>Data</strong> Server<br />

Status change from Normal (green) status to Critical (red) status. The Critical Count<br />

should also now be raised by 1. Click the Critical Status icon, or the Critical Count<br />

Number, to get more in<strong>for</strong>mation on the alert.<br />

4.10.4 Updating the alert configuration<br />

In this section, follow these steps to generate a warning <strong>for</strong> a database in Quiesced state,<br />

instead of the currently defined critical alert.<br />

1. Navigate to the Health Alerts Configuration page.<br />

2. Select the database that is in Quiesced state.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!