DB6 LUW DBA Cockpit
DB6 LUW DBA Cockpit
Database Administration
Using the DBA Cockpit
IBM DB2 for Linux, UNIX,
and Windows
For SAP Systems based on Enhancement
Package 1 + 2 of SAP NetWeaver 7.0
Document Version 1.00 April, 2010
SAP AG
Dietmar-Hopp-Allee 16
69190 Walldorf
Germany
T +49/18 05/34 34 24
F +49/18 05/34 34 20
www.sap.com
reserved.
Adobe, the Adobe logo, Acrobat, PostScript, and Reader are either
trademarks or registered trademarks of Adobe Systems Incorporated in
Disclaimer
Some components of this product are based on Java.
UNIX, X/Open, OSF/1, and Motif are registered trademarks of the Open
Group.
Citrix, ICA, Program Neighborhood, MetaFrame, WinFrame,
VideoFrame, and MultiWin are trademarks or registered trademarks of
Typographic Conventions
Icons
Type Style
Description
Example Text
Caution
Cross-references to other
documentation
Syntax
Example text
EXAMPLE TEXT
Example text
Example text
<Example
text>
EXAMPLE TEXT
Icon
Meaning
Example
Note
Recommendation
Contents
Database Administration Using the DBA Cockpit: IBM DB2 for
Linux, UNIX, and Windows ................................................................ 8
1 The DBA Cockpit ................................................................................. 9
1.1 SAP GUI-Based User Interface ............................................................ 10
1.1.1 Central System Data .............................................................................................. 12
1.1.2 Maintenance Actions in the DBA Cockpit ............................................................... 13
1.1.3 Configuration of Systems for Remote Monitoring ................................................... 14
1.1.3.1 Configuring Systems for Remote Monitoring Using Remote Database
Connections ................................................................................................................. 15
1.1.3.1.1 Configuration of Database Connections ...................................................... 16
1.1.3.2 Configuring Systems for Remote Monitoring Using the System Landscape
Directory (SLD)............................................................................................................. 20
2 Performance ...................................................................................... 26
2.1 Performance: Partitions....................................................................... 26
2.2 Performance: Database ....................................................................... 27
2.2.1 Database: Buffer Pool ............................................................................................ 28
2.2.2 Database: Cache.................................................................................................... 30
2.2.3 Database: Asynchronous I/O ................................................................................. 31
2.2.4 Database: Direct I/O .............................................................................................. 32
2.2.5 Database: Real-Time Statistics............................................................................... 33
2.2.6 Database: Locks and Deadlocks............................................................................. 34
2.2.7 Database: Logging ................................................................................................. 35
2.2.8 Database: Calls ...................................................................................................... 37
2.2.9 Database: Sorts ..................................................................................................... 39
2.2.10 Database: XML Storage ....................................................................................... 40
April 2010
3 Space .................................................................................................. 95
3.1 Space: Automatic Storage................................................................... 95
3.2 Space: Tablespaces ............................................................................. 96
3.2.1 Maintaining Tablespaces ........................................................................................ 98
April 2010
April 2010
April 2010
Database Administration Using the DBA Cockpit: IBM DB2 for LUW
This document applies to SAP systems that are based on SAP Enhancement
Package 1 for SAP NetWeaver 7.0.
More Information
For more information about running an SAP system on DB2 for Linux, UNIX, and
Windows, choose the SAP on DB2 for LUW in the SDN pushbutton in the navigation
frame of the DBA Cockpit.
For DB2-specific information, see the respective IBM DB2 Information Center for your
database and the following IBM manuals:
IBM DB2 System Monitor Guide and Reference
IBM DB2Performance Guide
April 2010
Database Administration Using the DBA Cockpit: IBM DB2 for LUW
Features
You can choose between the following user-interfaces:
SAP GUI-based user interface
Web browser-based user interface
Activities
You can use the DBA Cockpit to:
Navigate between different actions
Change to another action without closing the previous action and still hold all data
retrieved by this action
Handle central configuration
Monitor remote systems using remote database connections
To use the functions offered for remote monitoring, you must configure the system
you want to monitor. The local system is configured automatically when you start the
DBA Cockpit for the first time.
After having configured the connection and depending on the database, more actions
are required to configure the database monitor and to set up database administration.
Caution
For systems that are monitored using a remote database connection, constraints
depend on whether:
o
More Information
SAP GUI-Based User Interface [ page 10]
Web Browser-Based User Interface [page 21]
April 2010
Database Administration Using the DBA Cockpit: IBM DB2 for LUW
Application toolbar
System landscape
toolbar
Action area
Navigation frame
Application Toolbar
Provides a minimum of functions, for example, to display or hide the areas on the left side.
System Landscape Toolbar
Provides central functions to manage the system landscape, for example:
Access to system configuration where you configure and set up your system
landscape
Management of database connections
Lets you choose the system to monitor. Additional information about a distributed
database system is displayed if available.
Navigation Frame
Displays a tree structure divided at the top level into the main task areas of database
administration. These are, for example, performance monitoring, space management, and job
scheduling. Within each task area, there is a set of related action nodes.
10
April 2010
Database Administration Using the DBA Cockpit: IBM DB2 for LUW
April 2010
11
Database Administration Using the DBA Cockpit: IBM DB2 for LUW
Description
Last Refresh
Date and time when the screen data was last refreshed
DB Name
Started
DB Release
Database release
Date and time of last reset or checkpoint of the monitored data
Note
Last Reset/Checkpoint
This field is available only for actions that support Reset/Since
Reset or Set Checkpoint/Delta to Checkpoint.
End of the note.
The currently selected set of data. This is available for actions
that support Reset/Since Reset:
Since DBM Start
Reset
Current Selection
Since Reset
And for actions supporting checkpoints:
Current Configuration
Checkpoint Set
Delta to Checkpoint
Currently selected system
Note
System
This field is only available if the navigation frame has been hidden
using the Full Screen on/off function. In this case, you can select
the required system in this field.
End of the note.
12
April 2010
Database Administration Using the DBA Cockpit: IBM DB2 for LUW
This field is only available if the navigation frame has been hidden using the
Full Screen on/off function. In this case, you select the required partition in this
field.
End of the note.
The following only applies to Oracle and IBM DB2 for Linux, UNIX, and
Windows.
When you make changes that affect database objects such as database configuration
parameters or tablespaces, an audit log is written. You can display this audit log in the DBA
Cockpit.
For more information, see Displaying the Audit Log.
April 2010
13
Database Administration Using the DBA Cockpit: IBM DB2 for LUW
In the event of severe errors, we recommend that you disable your system to
prevent further problems. After you have investigated and corrected the error,
you have to enable your system again.
Normally, when you start the DBA Cockpit, the local system is set as default system. To
change this setting, select a system from the list and choose Default System.
This setting only applies to the user currently logged on to the system. It is not a
system-wide setting.
You use one of the following methods to monitor a system remotely:
Remote database connections
This method uses additional connections. It is the main access method for monitoring
and administration tasks and is mandatory. You can specify remote connections for
any database and maintain the connections using the DBA Cockpit. For more
information, see Maintaining Database Connections.
RFC connection
For this method you have to assign an RFC connection to your system. RFC
connections are available for SAP ABAP systems only. You can use RFC connections:
As an optional access path for ABAP-related monitoring functions, for example,
for the consistency check of the ABAP Dictionary. That is, the DBA Cockpit uses
the RFC connection in parallel to the database connection for the same system.
MS SQL Server only:
For a database connection that is localized in another ABAP system. That is,
the DBA Cockpit can use the RFC connection together with the database
connection.
You can only maintain RFC connections with transaction SM59, not with the
DBA Cockpit.
More Information
Configuring Systems for Remote Monitoring Using Remote Database Connections
Configuring Systems for Remote Monitoring Using the System Landscape Directory (SLD)
14
April 2010
Database Administration Using the DBA Cockpit: IBM DB2 for LUW
When you start the DBA Cockpit for the first time, the local system is
automatically added to the list of all systems available. At least one system entry
is displayed.
2. Choose Add.
The screen Configuration: System Administration Add System Entry appears.
3. Specify the connection data as follows:
a. In the System field, enter the name of the system you want to monitor.
This name is a unique ID and does not need to be the SAP system ID. You can
choose any name except the SAP system ID of the local system, which is
reserved for the local system entry.
Except for the local system entry, Remote Database is already selected.
b. Select Database Connection.
Enter the name of the database connection. If the database connection does not
yet exist, you are directed to the DB Connections: Add Connection Entry screen
where you can specify all relevant data for the new connection. For more
information, see Configuration of Database Connections.
c. After you have saved your entries, you are redirected to the screen System
Administration Details.
d. If an additional RFC destination is used for special ABAP monitoring functions
or if the connection is initially routed using an RFC connection (MS SQL Server
only), select RFC Destination, too.
April 2010
15
Database Administration Using the DBA Cockpit: IBM DB2 for LUW
16
April 2010
Database Administration Using the DBA Cockpit: IBM DB2 for LUW
Process Flow
...
1. You call the DBA Cockpit and choose DB Connections in the system landscape
toolbar.
The screen DBA Cockpit: Database Connections appears displaying a list of all
available database connection definitions grouped by database platform:
Column
Description
Remote Database
Connections
Name of database
DB Host
DB Schema
User
Permanent
Max. Connections
Opt. Connections
By default, the database connections that are defined in the local system are displayed.
2. You are able to perform one of the following tasks:
You add database connections.
You change an existing database connection.
You delete a database connection.
You test a database connection.
See also:
Adding a Database Connection
Changing a Database Connection
Deleting a Database Connection
Testing a Database Connection
April 2010
17
Database Administration Using the DBA Cockpit: IBM DB2 for LUW
This name is a unique ID that you can choose freely except for names that are
reserved by SAP for generated connections. These can be, for example,
administrator connections or connections that are used by systems from the
system landscape directory (SLD).
5. Specify the database connection attributes as follows:
a. In the Database System field, specify the name of the database platform.
b. In the Connection Maximum field, enter an approprriate value. This value limits
the number of database connections that are currently held by the SAP system.
The SAP system does not let you exceed this limit.
c. In the Connection Optimum field, enter an appropriate value. This value is a
more flexible limit that can be exceeded.
d. If you want the connection to be mandatory for the SAP system, select
Permanent Connection. This parameter defines the availability of the database
connection.
It is then handled like the local default connection, that is, if this database
connection is not available for a work process, the work process of the SAP
system cannot run.
You should set this parameter only if this connection is absolutely required to
run your SAP system.
e. In the User Name field, enter the name of the connect user. Make sure that you
choose a user with the appropriate authorizations. For more information, see
Maintenance Actions in the DBA Cockpit.
f. In the Password field, enter a password for the connect user.
6. In the Connection Parameters table, specify the following additional database-specific
attributes:
Attribute
Description
Database Name
Name of database
Service Name
Database Host
Schema Name
18
April 2010
Database Administration Using the DBA Cockpit: IBM DB2 for LUW
To support new connection parameters and for support scenarios, you might
have to add connection parameters in an unchecked raw format. To be able to
do so, choose Guided Mode <-> Expert Mode and switch to the expert mode. In
the expert mode, you can enter connection parameters as a string instead of
using the guided mode. However, we do not recommend that you use the expert
mode.
7. To confirm your entries, choose Save.
Result
As soon as the connection has been specified, the DBA Cockpit connects automatically to the
newly added database system and displays data on the System Data tab page.
April 2010
19
Database Administration Using the DBA Cockpit: IBM DB2 for LUW
1. To import database connection data from the SLD, call the DBA Cockpit.
2. In the system landscape toolbar, choose System Configuration.
The screen The DBA Cockpit: System Configuration Maintenance appears.
3. Choose SLD System Import.
The SLD System Import screen appears. Depending on the system landscape, one or
more of the following nodes are displayed:
New Database Systems in the SLD
All database systems registered in the SLD that are so far unknown to the DBA
Cockpit are displayed.
Changed Systems From Earlier SLD Imports
All database systems for which the main data differs between the SLD and the
DBA Cockpit are displayed.
Systems No Longer Registered in the SLD
All systems that were originally imported from the SLD into the DBA Cockpit but
that are no longer registered in the SLD are displayed.
Systems Identical in the SLD and in the DBA Cockpit
All systems that are registered in the SLD and that are identical in the DBA
Cockpit are displayed.
Unsupported Database Systems in the SLD
All database systems that are registered in the SLD but not supported by the
DBA Cockpit are displayed.
20
April 2010
Database Administration Using the DBA Cockpit: IBM DB2 for LUW
Connection data that is retrieved from the SLD might not be complete for one of
the following reasons:
Depending on the data provided by a system to the SLD, some connection
data can be incomplete.
User or password data is generally not available via SLD.
When you establish the connection to an imported system, the DBA Cockpit
checks the completeness of a configured system. That is, if necessary, you are
prompted for user, password, and connection information.
If additional connection information is required, enter the required data
according to the maintenance dialog that is described in Configuration of
Database Connections.
April 2010
21
Database Administration Using the DBA Cockpit: IBM DB2 for LUW
Detail navigation
System landscape
selector
Content area
Favorite list
Content detail area
22
April 2010
Database Administration Using the DBA Cockpit: IBM DB2 for LUW
Detail Navigation
Contains the main actions of the main task areas. Depending on the selected main action, a
subset of related actions is available.
Example
If you chose Performance in the top level navigation area, the following main actions are
available:
Inplace Table Reorganization
Performance Warehouse
Snapshots
History
If you choose Performance Warehouse, the subactions Reporting and Configuration become
available.
End of the example.
System Landscape Selector
Provides a quick overview of all configured systems. This area is described in more detail
under Customizing of the System Landscape Selector later in this section.
Favorite List
Contains a list of favorite links to special actions.
To provide quick access to specific actions, choose Personalize Add Favorite in the
common header area. An entry is added to your list of favorites. By choosing Personalize
Organize Favorites , you can rename or delete favorites.
Note
By default, the favorite list contains a link to the EXPLAIN Access Plan and to the SQL
Command Line. Both entries cannot be removed.
End of the note.
Framework Message Window
Displays the message window that is provided by the framework. Unlike the classic SAP GUI
message processing, this window contains a complete history of all messages that are sent
during the session.
In addition, you can:
Collapse or expand the window by choosing Expand Message Window or Collapse
Message Window.
Check if a long text for a message is available by double-clicking the message or by
choosing Details.
April 2010
23
Database Administration Using the DBA Cockpit: IBM DB2 for LUW
Note
By default, the message window is collapsed. When a new message is generated, it is
automatically expanded.
End of the note.
Central System Data
This area is common to most actions providing, for example, the time of the last refresh, the
startup time and the database name.
Content Area
Displays details of the currently selected action.
Content Detail Area
Only appears with certain actions and displays additional information that is related to the
selected action. Typically, this areas shows details that are related to some list display.
Customizing the System Landscape Selector
By default, all systems are displayed without any grouping or filtering. For each configured
system, the alert status, the name of the system and its database host is displayed. The
following menu buttons are available for the list of systems:
Refresh System Landscape
You can refresh the information about the available systems in the list.
Group Systems by Selected Criteria
You can customize the displayed list of systems by grouping them according to the
selected criteria:
o
Database Platform
Name
Custom
Alerts
To use a custom grouping, you must first define and add a custom group to the list.
To do so, choose Add Group... from the pop-up menu of the menu button Group
Systems by Selected Criteria. Specify a name for the custom group and assign the
systems of your choice.
As soon as you have added a custom group, the option Organize Groups becomes
available in the pop-up menu of the menu button Group Systems by Selected
Criteria, which lets you maintain an already existing group.
24
April 2010
Database Administration Using the DBA Cockpit: IBM DB2 for LUW
April 2010
25
Database Administration Using the DBA Cockpit: IBM DB2 for LUW
2 Performance
The following sections provide information on performance:
Performance: Partitions
Performance: Database
Performance: Schemas
Performance: Buffer Pools
Performance: Tablespaces
Performance: Tables
Performance: Application
Performance: SQL Cache
Performance: Lock Waits and Deadlocks
Performance: Inplace Table Reorganization
Performance: History Database
Performance: History Tables
Performance: Performance Warehouse
Description
Partition
Total Size Buffer Pools Total size in KB of all buffer pools used for a partition
Data Logical Reads
26
April 2010
Database Administration Using the DBA Cockpit: IBM DB2 for LUW
Since index data is read only by the database manager agents, this
value includes the number of synchronously read index pages.
Average time in milliseconds required to read data from disk into the
buffer pool
Executed SQL
Statements
April 2010
27
Database Administration Using the DBA Cockpit: IBM DB2 for LUW
Calls
Sorts
XML storage
You can access the Database Snapshot screen by calling the DBA Cockpit and choosing
Performance Database in the navigation frame of the DBA Cockpit.
The Database Snapshot screen is the initial screen of the SAP database monitor for DB2 for
Linux, UNIX, and Windows. The system displays values collected since the database was
started. If the database is shut down, the values are deleted.
Note
The values displayed are not really meaningful until the database has been running for some
time. The longer the database has been running, the more useful the values.
End of the note.
Performance
Database
Description
Buffer Pools
Number
Total Size
Buffer Quality
Indicates percentage at which the data is read from the buffer
pool, rather than directly from the hard disk
Overall Buffer Quality
This is calculated using the following formula: (logical reads physical reads) / (logical reads) * 100
Data Hit Ratio
No Victim Buffers
28
April 2010
Database Administration Using the DBA Cockpit: IBM DB2 for LUW
Field
Description
Average Time
Physical Reads
Physical Writes
Data
Logical Reads
Physical Reads
Physical Writes
Synchronous Reads
Synchronous Writes
Index
Logical Reads
Physical Reads
Physical Writes
Synchronous Reads
April 2010
29
Database Administration Using the DBA Cockpit: IBM DB2 for LUW
Field
Description
Synchronous Writes
Note
Data is read or written in pages. A page can be 4 KB, 8 KB, 16 KB, or 32 KB in size.
Unless otherwise specified, no distinction is made between synchronous and asynchronous
accesses.
End of the note.
Performance
Database
Description
Catalog Cache
Maximum allowed size in KB for the catalog cache
Size
Quality
This is calculated using the following formula: (catalog cache
lookups - catalog cache inserts) / catalog cache lookups * 100
Lookups
30
April 2010
Database Administration Using the DBA Cockpit: IBM DB2 for LUW
Field
Description
Inserts
Overflows
Number of times that an insert into the catalog cache failed due to
the catalog cache being full
High-Water Mark
Package Cache
Maximum allowed size in KB for the package cache
The package cache contains access plans. The maximum allowed
size is determined by database configuration parameter
PCKCACHESZ.
Size
Inserts
Total number of times that an access plan was not available for
use and had to be loaded into the package cache
Overflows
High-Water Mark
Database.
Description
I/O
Number of I/O Servers
April 2010
31
Database Administration Using the DBA Cockpit: IBM DB2 for LUW
Average Time
Asynchronous Physical
Reads
Asynchronous Physical
Writes
Data
Asynchronous Physical
Reads
Asynchronous Physical
Writes
Asynchronous Read
Requests
Index
Asynchronous Physical
Reads
Asynchronous Physical
Writes
Asynchronous Read
Requests
Database.
Description
Average Time
Direct Reads
32
April 2010
Database Administration Using the DBA Cockpit: IBM DB2 for LUW
Direct Writes
I/O
Direct Reads
Direct Writes
Direct Writes
Performance
Database
Description
Number of Asynchronously
Collected Statistics
Number of Synchronously
Collected Statistics
April 2010
33
Database Administration Using the DBA Cockpit: IBM DB2 for LUW
Performance
Database
Description
Lock List
Size
In Use
Lock Waits
Total
Time Waited
Escalations
Number of times that locks have been escalated from several row
locks to a table lock
Lock Escalations
Exclusive Lock
Escalations
Locks
Locks Currently Held
Deadlocks Detected
34
April 2010
Database Administration Using the DBA Cockpit: IBM DB2 for LUW
Field
Description
Deadlock situations are recognized and resolved automatically by
the database. The database configuration parameter lock
escalations determines when a lock wait situation is resolved.
Number of times that a request to lock an object timed out instead
of being granted
Lock Timeouts
Parameter lock escalations determines when a lock wait situation
is resolved.
Performance
Database
Description
Log Files
Number of primary log files
Primary
Secondary
Size
Total Log
Available to Database
Used by Database
April 2010
35
Database Administration Using the DBA Cockpit: IBM DB2 for LUW
Field
Description
Node with the least amount of available log space in Bytes
Note
This field is only displayed for global snapshots over all
partitions.
End of the note.
Secondary Log
Logs Currently Allocated
Log Pages
Read
Written
Restart Range
Ratio of log data read from the buffer in relation to log data
read from disk
Number of times that agents have to wait for log data to write
to disk while copying log records into the log buffer
36
April 2010
Database Administration Using the DBA Cockpit: IBM DB2 for LUW
Performance
Database
Description
Rows
Read
Selected
Deleted
Inserted
Updated
April 2010
37
Database Administration Using the DBA Cockpit: IBM DB2 for LUW
Field
Description
Linux, UNIX, and Windows Fix Pack 1 or higher.
Average number of pages read from the buffer pool per rows
processed, which can be either rows returned to the application
(SELECT statements) or rows written (UPDATE, INSERT,
DELETE statements)
Note
This metric is only available if your database is DB2 V9.5 for
Linux, UNIX, and Windows Fix Pack 1 or higher.
End of the note.
Statements Executed
SELECT SQL
UPDATE/INSERT/DELETE
DDL
Statements Attempted
COMMITs
Rollbacks
Dynamic SQL
Static SQL
Failed SQL
38
April 2010
Database Administration Using the DBA Cockpit: IBM DB2 for LUW
Hash Joins
Total
Overflows
Number of times that hash join data exceeded the available sort
heap space
Small Overflows
Number of times that hash join data exceeded the available sort
heap space by less than 10%
Total number of hash joins that were throttled back by the sort
memory throttling algorithm
Post Threshold
A throttled hash join is a hash join that was granted less memory
than requested by the sort memory manager. A hash join is
throttled back when the memory allocation from the shared sort
heap is close to the limit set by database configuration
parameter sheapthres_shr.
This throttling significantly reduces the number of overflows over
thesheapthres_shr limit in a system that is not properly
configured. The data reported in this element only reflects hash
joins using memory allocated from the shared sort heap.
Performance
Database
Description
Sort Heap
Total Size
Allocated
April 2010
39
Database Administration Using the DBA Cockpit: IBM DB2 for LUW
Sort Time
Total
Average
Sorts
Total Sorts
Sort Overflows
Active Sorts
Performance
Database
Description
Pool Data
40
Logical Reads
Indicates the number of data pages for XML storage objects (XDAs)
that have been requested from the buffer pool (logical reads) for
regular and large tablespaces
Physical Reads
Indicates the number of data pages for XML storage objects (XDAs)
that have been read from the tablespace containers (physical reads)
for regular and large tablespaces
April 2010
Database Administration Using the DBA Cockpit: IBM DB2 for LUW
Field
Description
Indicates the number of times a buffer pool data page for an XML
storage object (XDA) was physically written to disk
Write Accesses
Temporary Data
Logical Reads
Indicates the number of pages for XML storage objects (XDA) that
have been requested from the buffer pool (logical reads) for
temporary tablespaces.
Physical Reads
Indicates the number of pages for XML storage objects that have
been (XDA) read from the tablespace containers (physical reads) for
temporary tablespaces
Asynchronous I/O
Physical Reads
Physical Writes
Indicates the number of XML storage object (XDA) data pages that
have been read in from the tablespace containers (physical reads)
by asynchronous engine dispatchable units (EDUs) for all types of
tablespaces.
Indicates the number of times a buffer pool data page for an XML
storage object (XDA) was physically written to disk by either an
asynchronous page cleaner, or a prefetcher
A prefetcher may have written dirty pages to disk to create space for
the pages being prefetched.
Read Requests
Description
User
Partition
April 2010
41
Database Administration Using the DBA Cockpit: IBM DB2 for LUW
Column
Description
SAP Component
42
April 2010
Database Administration Using the DBA Cockpit: IBM DB2 for LUW
Performance
Buffer Pools
April 2010
43
Database Administration Using the DBA Cockpit: IBM DB2 for LUW
Description
Buffer Pool
Name
Current Size
If Automatic is selected, the buffer pool is automatically tuned (if
DB2's Self Tuning Memory Management was activated).
End of the caution.
New Size
Buffer Quality
Indicates percentage at which the data is read from the buffer
pool, rather than directly from the hard disk
Overall Buffer Quality
This is calculated using the following formula: (logical reads physical reads) / (logical reads) * 100
Data Hit Ratio
Average Time
Physical Reads
Physical Writes
Data
Logical Reads
Physical Reads
44
April 2010
Database Administration Using the DBA Cockpit: IBM DB2 for LUW
Field
Description
The value includes the number of physical reads that were
performed synchronously (by the database manager agents) and
asynchronously (by the I/O servers).
Number of write accesses to data on disk (I/O)
Physical Writes
Synchronous Reads
Synchronous Writes
Temporary Physical
Reads
Index
Logical Reads
Physical Reads
Physical Writes
Synchronous Reads
Synchronous Writes
Temporary Physical
Reads
April 2010
45
Database Administration Using the DBA Cockpit: IBM DB2 for LUW
Buffer Pools.
Description
Average Time
Asynchronous Physical
Reads
Asynchronous Physical
Writes
Data
Asynchronous Physical
Reads
Asynchronous Physical
Writes
Asynchronous Read
Requests
Index
Asynchronous Physical
Reads
Asynchronous Physical
Writes
Asynchronous Read
Requests
46
April 2010
Database Administration Using the DBA Cockpit: IBM DB2 for LUW
Buffer Pools.
Description
Average Time
Direct Reads
Direct Writes
I/O
Direct Reads
Direct Writes
Direct Writes
Performance
Buffer Pools
April 2010
47
Database Administration Using the DBA Cockpit: IBM DB2 for LUW
Description
Pool Data
Logical Reads
Physical Reads
Write Accesses
Temporary Data
Logical Reads
Physical Reads
Indicates the number of pages for XML storage objects that have
been (XDA) read from the tablespace containers (physical
reads) for temporary tablespaces
Asynchronous I/O
Physical Reads
Physical Writes
Read Requests
48
April 2010
Database Administration Using the DBA Cockpit: IBM DB2 for LUW
Performance
Tablespaces
April 2010
49
Database Administration Using the DBA Cockpit: IBM DB2 for LUW
2. To display more detailed information, select one or more tablespaces and choose
Details.
A detail Tablespace Snapshot screen appears.
3. Choose Buffer Pool.
If you have selected more than one tablespace, you can use the page buttons on the screen
to navigate between them.
Field
Description
Tablespace
Name
Buffer Quality
Buffer Pool
No Victim Buffer
Average Time
Physical Reads
Average time in milliseconds required to read data from disk into the
buffer pool
Physical Writes
Data
Logical Reads
Physical Reads
50
April 2010
Database Administration Using the DBA Cockpit: IBM DB2 for LUW
Field
Description
Number of write accesses to data on disk (I/O)
Physical Writes
Synchronous Reads
Synchronous Writes
Temporary Logical
Reads
Number of logical read requests that required I/O to get data pages
into the temporary tablespace
Temporary Physical
Reads
Index
Logical Reads
Physical Reads
Since index data is read only by the database manager agents, this
value includes the number of synchronously read index pages.
Number of write accesses to index data on disk (I/O)
Physical Writes
Synchronous Reads
Synchronous Writes
Temporary Logical
Reads
Number of logical read requests that required I/O to get index pages
into the temporary tablespace
Temporary Physical
Reads
Tablespaces.
April 2010
51
Database Administration Using the DBA Cockpit: IBM DB2 for LUW
2. To display more detailed information, select one or more tablespaces and choose
Details.
A detail Tablespace Snapshot screen appears.
3. Choose Asynchronous I/O.
If you have selected more than one tablespace, you can use the page buttons on the screen
to navigate between them.
Field
Description
Average Time
Asynchronous Physical Reads
Data
Asynchronous Physical Reads
Index
Asynchronous Physical Reads
Tablespaces.
52
April 2010
Database Administration Using the DBA Cockpit: IBM DB2 for LUW
If you have selected more than one tablespace, you can use the page buttons on the screen
to navigate between them.
Field
Description
Average Time
Direct Reads
Direct Writes
I/O
Direct Reads
Direct Writes
Direct Writes
Performance
Tablespaces
Description
Pool Data
Logical Reads
Physical Reads
April 2010
53
Database Administration Using the DBA Cockpit: IBM DB2 for LUW
Field
Write Accesses
Description
Indicates the number of times a buffer pool data page for an XML
storage object (XDA) was physically written to disk
Temporary Data
Logical Reads
Physical Reads
Indicates the number of pages for XML storage objects that have
been (XDA) read from the tablespace containers (physical reads)
for temporary tablespaces
Asynchronous I/O
Physical Reads
Physical Writes
Read Requests
Description
Table Schema
Table Name
54
April 2010
Database Administration Using the DBA Cockpit: IBM DB2 for LUW
Partition
Table File ID
Table Type
Rows Written
Rows Read
Overflow Access
Note
Pay particular attention to this column. If the value in this
column is very high, you should consider reorganizing the
table.
End of the note.
Number of page reorganizations executed for the table
Page Reorgs
Note
If you double-click a line, detailed table analysis data is displayed as described in Space:
Single Table Analysis [page 106].
April 2010
55
Database Administration Using the DBA Cockpit: IBM DB2 for LUW
Workload Management
Critical Activities
On the Critical Activities screen, activities that have been captured manually
are displayed with the value MANUAL in the Predicate column.
Note
To find manually captured activities more easily, use the filter function of the
list viewer.
End of the note.
As soon as you select on of the activities, details of the execution of the captured
activity are displayed.
Cancel an activity by selecting it and choosing the Cancel pushbutton.
56
April 2010
Database Administration Using the DBA Cockpit: IBM DB2 for LUW
Note
This feature is available only if the currently monitored database version is at least DB2
Version 9.5.
End of the note.
Displaying Details on Applications
You can display detailed information by selecting one or more applications and choosing
Details. A detail Application Snapshot screen appears with information on:
Application
Agents
Note
This tab page is only available if you are using the SAP GUI-based user interface. It
also contains information that you can also find on the Assigned Agents and on the
Agents Memory tab pages on the Web browser-based user interface.
Assigned Agents
Note
This tab page is only available if you are using the Web browser-based user
interface.
Agents Memory
Note
This tab page is only available if you are using the Web browser-based user
interface.
Buffer Pool
Direct I/O
XML Storage
Locks and Deadlocks
Calls
Sorts
Cache
Unit of Work
April 2010
57
Database Administration Using the DBA Cockpit: IBM DB2 for LUW
Statement
Statement Text
SQL Workspace
Performance
Applications
Description
Application
PID
Handle
Connect Start
Platform
Host
Name
Status
58
April 2010
Database Administration Using the DBA Cockpit: IBM DB2 for LUW
Field
Description
Database Connect Completed
The application has initiated a database connection and
the request has completed.
Unit of Work Executing
The database manager is executing requests on behalf
of the unit of work.
Unit of Work Waiting
The database manager is waiting on behalf of the unit of
work in the application. This status typically means that
the system is executing in the application's code.
Lock Wait
The unit of work is waiting for a lock. After the lock is
granted, the status is restored to its previous value.
Commit Active
The unit of work is committing its database changes.
Rollback Active
The unit of work is rolling back its database changes.
Recompiling
The database manager is compiling an SQL statement
or precompiling a plan on behalf of the application.
Request Interrupted
An interrupt of a request is in progress.
Database Disconnect Pending
The application has initiated a database disconnect but
the command has not yet completed executing. The
application may not have explicitly executed the
database disconnect command. The database manager
will disconnect from a database if the application ends
without disconnecting.
Transaction prepared
The unit of work is part of a global transaction that has
entered the prepared phase of the two-phase commit
protocol.
Transaction Heuristically
April 2010
59
Database Administration Using the DBA Cockpit: IBM DB2 for LUW
Field
Description
Committed The unit of work is part of a global
transaction that has been heuristically committed.
Transaction Heuristically Rolled Back
The unit of work is part of a global transaction that has
been heuristically rolled-back.
Transaction Ended
The unit of work is part of a global transaction that has
ended but hast not yet entered the prepared phase of
the two-phase commit protocol.
Creating Database
The agent has initiated a request to create a database
and that request has not yet completed.
Restarting Database
The application is restarting a database in order to
perform crash recovery.
Restoring Database
The application is restoring a backup image to the
database.
Backing Up Database
The application is performing a "fast load" of data into
the database.
Data Fast Load
The application is performing a "fast load" of data into
the database.
Data Fast Unload
The application is performing a "fast unload" of data
from the database.
Wait to Disable Tablespace
The application has detected an I/O error and is
attempting to disable a particular tablespace. The
application has to wait for all other active transactions on
the tablespace to complete before it can disable the
tablespace.
Quiescing a Tablespace
The application is performing a QUIESCE
60
April 2010
Database Administration Using the DBA Cockpit: IBM DB2 for LUW
Field
Description
TABLESPACE request.
Wait for Remote Partition The application is
waiting for a response from a remote partition in a
partitioned database instance.
Agent
Process ID of an SAP work process that made the connection to
the database
PID
Client Information
User ID
Application
Accounting
Performance
Applications
April 2010
61
Database Administration Using the DBA Cockpit: IBM DB2 for LUW
2. To display more detailed information, select one or more applications and choose
Details.
A detail Application Snapshot screen appears.
3. Choose Agents.
If you have selected more than one application, you can use the page buttons on the screen
to navigate between them.
Field
Description
Agents
Coordinator Agent PID
Currently Associated
Idle Time
PID
Process ID (UNIX) or thread ID (Windows) of the
agent
Pool ID
Type of memory pool
Current Size (KB)
62
April 2010
Database Administration Using the DBA Cockpit: IBM DB2 for LUW
Field
Description
Current size of the memory pool
High-Water Mark (KB)
Largest size of the memory pool since its creation
Configured Size (KB)
Configured size of the memory pool
Performance
Snapshots
Applications
Description
Agents
Coordinator Agent PID
Currently Associated
April 2010
63
Database Administration Using the DBA Cockpit: IBM DB2 for LUW
Idle Time
Assigned Agents
Indicates whether an agent is associated or active
TID
Thread ID of the agent
Service Class
Service class the agent is assigned to
Event Type
Type of event that was last processed by the agent
Event Object
Object of the event that was last processed by the agent
Event State
State of the event that was last processed by the agent
64
April 2010
Database Administration Using the DBA Cockpit: IBM DB2 for LUW
Performance
Snapshots
Applications
Description
Partition number
Process ID (UNIX) of the agent
Note
PID
Performance
Applications
April 2010
65
Database Administration Using the DBA Cockpit: IBM DB2 for LUW
Description
Buffer Quality
Indicates percentage at which the data is read from the buffer pool,
rather than directly from the hard disk
Overall Buffer Quality
This is calculated using the following formula: (logical reads
physical reads) / (logical reads) * 100
Data Hit Ratio
Average Time
Physical Reads
Physical Writes
Data
Logical Reads
Physical Reads
Physical Writes
Temporary Logical
Reads
Number of logical read requests that required I/O to get data pages
into the temporary tablespace
Temporary Physical
Reads
66
April 2010
Database Administration Using the DBA Cockpit: IBM DB2 for LUW
Index
Logical Reads
Physical Reads
Since index data is read only by the database manager agents this
value contains the number of synchronously read index pages.
Number of write accesses to index data on disk (I/O)
Physical Writes
Temporary Logical
Reads
Temporary Physical
Reads
Applications.
Description
Average Time
Direct Reads
Direct Writes
I/O
Direct Reads
Direct Writes
April 2010
67
Database Administration Using the DBA Cockpit: IBM DB2 for LUW
Direct Writes
Performance
Applications
Description
Pool Data
Logical Reads
Indicates the number of data pages for XML storage objects (XDAs)
that have been requested from the buffer pool (logical reads) for
regular and large tablespaces
Physical Reads
Indicates the number of data pages for XML storage objects (XDAs)
that have been read from the tablespace containers (physical reads)
for regular and large tablespaces
Write Accesses
Indicates the number of times a buffer pool data page for an XML
storage object (XDA) was physically written to disk
Temporary Data
68
Logical Reads
Indicates the number of pages for XML storage objects (XDA) that
have been requested from the buffer pool (logical reads) for temporary
tablespaces.
Physical Reads
Indicates the number of pages for XML storage objects that have been
(XDA) read from the tablespace containers (physical reads) for
temporary tablespaces
April 2010
Database Administration Using the DBA Cockpit: IBM DB2 for LUW
Asynchronous I/O
Physical Reads
Physical Writes
Indicates the number of XML storage object (XDA) data pages that
have been read in from the tablespace containers (physical reads) by
asynchronous engine dispatchable units (EDUs) for all types of
tablespaces.
Indicates the number of times a buffer pool data page for an XML
storage object (XDA) was physically written to disk by either an
asynchronous page cleaner, or a prefetcher
A prefetcher may have written dirty pages to disk to create space for
the pages being prefetched.
Read Requests
Performance
Applications
Description
Lock Waits
Total
Time Waited
April 2010
69
Database Administration Using the DBA Cockpit: IBM DB2 for LUW
Fields
Description
Escalations
Number of times that locks have been escalated from several row
locks to a table lock
Lock Escalations
Exclusive Lock
Escalations
Locks
Locks Currently Held
Deadlocks Detected
The database configuration parameter DLCHKTIME determines
when a lock wait situation is resolved.
Number of times that a request to lock an object timed out instead
of being granted
Lock Timeouts
The database configuration parameter LOCKTIMEOUT determines
when a lock wait situation is resolved.
Lock Timeout Value
70
April 2010
Database Administration Using the DBA Cockpit: IBM DB2 for LUW
Performance
Applications
Description
Rows
Deleted
Inserted
Selected
Updated
Statements Executed
SELECT SQL
UPDATE/INSERT/DELETE
DDL
Statements Attempted
COMMITs
Rollbacks
Dynamic SQL
Static SQL
April 2010
71
Database Administration Using the DBA Cockpit: IBM DB2 for LUW
Field
Failed SQL
Description
Number of attempted SQL statements that failed
Hash Joins
Total
Overflows
Number of times that hash join data exceeded the available sort
heap space
Small Overflows
Number of times that hash join data exceeded the available sort
heap space by less than 10%
Applications.
Description
Sort Time
Total
Average
Sorts
Total Sorts
Sort Overflows
72
April 2010
Database Administration Using the DBA Cockpit: IBM DB2 for LUW
Performance
Applications
Description
Catalog Cache
Indicates percentage at which the data is read from the catalog cache,
rather than directly from the hard disk
Quality
This is calculated using the following formula: (catalog cache lookups catalog cache insert) / catalog cache lookups * 100
Lookups
Number of times that the catalog cache was referenced to obtain table
descriptor information
Inserts
Overflows
Number of times that an insert into the catalog cache failed due to the
catalog cache being full
Heap Full
Number of times that an insert into the catalog cache failed due to the
database heap being full
Package Cache
Indicates percentage at which the data is read from the package
cache, rather than directly from the hard disk
Quality
This is calculated using the following formula: (package cache lookups
- package cache inserts) / package cache lookups * 100
Lookups
Inserts
Total number of times that a request section was not available for use
and had to be loaded into the package cache
April 2010
73
Database Administration Using the DBA Cockpit: IBM DB2 for LUW
Applications.
Field
Description
Unit of Work
Start Time
Stop Time
Completion Status
Applications.
74
April 2010
Database Administration Using the DBA Cockpit: IBM DB2 for LUW
Field
Description
Statement
Start Time
Stop Time
Elapsed Time(s)
Rows
Rows Read
Rows Written
Sort
Sort Overflow
Data
Logical Reads
Physical Reads
Index
Logical Reads
Physical Reads
April 2010
75
Database Administration Using the DBA Cockpit: IBM DB2 for LUW
Performance
Applications
Description
Statement
Type of statement processed
Possible types are:
Type
Operation
EXECUTE IMMEDIATE
OPEN
FETCH
CLOSE
DESCRIBE
STATIC COMMIT
76
April 2010
Database Administration Using the DBA Cockpit: IBM DB2 for LUW
Field
Description
STATIC ROLLBACK
FREE LOCATOR
PREP_COMMIT
CALL
PREP_OPEN
PREP_EXEC
COMPILE
Indicates if the statement that is executed is using a blocking cursor
(YES) or not (NO)
Blocking Cursor
If data is transferred in blocks and not row by row, the performance of
the corresponding query will be improved.
Text of dynamic SQL statement that was being processed when the
snapshot was taken
Statement
It can also be the text of the statement that was most recently
processed, if no statement was being processed at the time when the
snapshot was taken.
If a statement is displayed, you can choose EXPLAIN to list the access plan for the statement
execution. This function provides a detailed analysis of expensive SQL statements.
Note
To display the ABAP source program where the statement was defined, choose Source. An
editor screen appears, which contains the related source.
However, this function is only available for local system or ABAP systems that have an
additional RFC destination assigned.
End of the note.
More Information
The EXPLAIN Function [page 199]
Performance
Applications
April 2010
77
Database Administration Using the DBA Cockpit: IBM DB2 for LUW
2. To display more detailed information, select one or more applications and choose
Details.
A detail Application Snapshot screen appears.
3. Choose SQL Workspace.
Field
Description
Private Workspace
Lookups
Inserts
Overflows
High-Water Mark
Shared Workspace
Lookups
Inserts
Overflows
High-Water Mark
78
April 2010
Database Administration Using the DBA Cockpit: IBM DB2 for LUW
Depending on your system, the snapshot can give you a wide range of information, which
might lead to a very large result set. After the snapshot has been taken and before the results
are displayed, the Selection Criteria dialog box appears where you can limit the result set
displayed according to the following selection criteria:
Field
Description
Executions
Rows Read
Rows Written
Search using either the wild card "*" or using a text string, for
example, INSERT, to limit the number of statements displayed
Ratio of rows read from the base table compared to rows
processed, which can be either rows returned to the application
(SELECT statements) or rows written (UPDATE, INSERT, DELETE
statements)
When you have made your selections and chosen Continue, the result set is determined by
filtering the snapshot results according to the selection criteria and the following information is
displayed:
Field
Description
Rows Read
Rows Written
April 2010
79
Database Administration Using the DBA Cockpit: IBM DB2 for LUW
Note
The data displayed under Total Cache Sum table refers to the entire SQL cache and not only
to the currently selected result set.
End of the note.
The result set is displayed in a table:
Column
SQL Text
Description
Text of a dynamic SQL statement that was in the SQL cache at
the time of the snapshot
Number of times a statement was executed
Executions
You can use this value together with Executions to identify the
statements that would benefit from further analysis.
80
April 2010
Database Administration Using the DBA Cockpit: IBM DB2 for LUW
Average number of pages read from the buffer pool per rows
processed, which can be either rows returned to the application
(SELECT statements) or rows written (UPDATE, INSERT, DELETE
statements)
BP Gets / Rows
Processed
Note
This metric is only available if your database is DB2 V9.5 for Linux,
UNIX, and Windows Fix Pack 1 or higher.
End of the note.
BP Gets / Executions
Average number of pages read from the buffer pool per execution
of the statement
Total user CPU time in milliseconds for a statement
This value together with the total execution time gives you
information on the longest running statements.
Total system CPU time in milliseconds for a statement
Total System CPU Time This value together with total execution time and total user CPU
(ms)
time helps you to identify statements that use an excessive number
of resources.
Number of rows read
Rows Read
You can use this value to identify statements that would benefit
from additional indexes. Use EXPLAIN to analyze the statement.
The given value does not necessarily correspond to the number of
rows of the result set of the SQL statement. The Rows Read value
shows the number of rows that needs to be read to obtain the
result set.
Number of rows that were changed (inserted, deleted, or modified)
in a table
Rows Written
High values might indicate that you should update statistics using
RUNSTATS.
Number of sorts that were necessary to execute the statement
SQL Sorts
You can use this value to determine whether new indexes are
needed. Use EXPLAIN to check whether and which indexes were
used when the selected statement was executed.
Sort Overflows
Total Sorts
April 2010
81
Database Administration Using the DBA Cockpit: IBM DB2 for LUW
Note
If no hits are found, the result set is empty and nothing is displayed.
End of the note.
The following functions are available for further actions:
Refresh
Set Selection Criteria
When you choose Set Selection Criteria, the Selection Criteria dialog box appears
again and you can make further evaluations based on the already taken snapshot
data.
Source
To display the ABAP source program where the statement was defined, choose
Source. An editor screen appears, which contains the related source.
Note
This function is only available for local systems or ABAP systems that have an
additional RFC destination assigned.
End of the note.
EXPLAIN
To display detailed performance analysis, you can display the access plan for the
SQL statement by choosing EXPLAIN. For more information, see The EXPLAIN
Function [page 199].
Index Advisor
To improve the performance of a query, you can retrieve recommendations about
useful indexes using the index advisor. In addition, you are able to design new virtual
indexes that can be validated before they are actually created. For more information,
see The Index Advisor [page 213].
82
April 2010
Database Administration Using the DBA Cockpit: IBM DB2 for LUW
Agent <Agent ID> (<Application Name>) waiting for Agent <Agent ID>
Client Process ID: <Process ID>
Host: <Host>
Lock Agent is waiting for:
Table: <Schema>.<Table>
Lock Object Type: <Lock Object Type>
Current Lock Mode: <Lock Mode>
Requested Lock Mode: <Lock Mode>
To display the last SQL statement that was executed by one of the agents, choose Last SQL
Statement. The last SQL statement of the respective agent is displayed in the editor window
at the bottom of the screen.
Tree Node
Description
<Agent ID>
<Application Name>
<Host>
April 2010
83
Database Administration Using the DBA Cockpit: IBM DB2 for LUW
Tree Node
Description
S: share lock
SIX: share with intention exclusive lock
X: exclusive lock
IN: intent none
Z: super exclusive lock
U: update lock
NS: next key share lock
NX: next key exclusive lock
W: weak exclusive lock
NW: next key weak exclusive lock
Table
Caution
Lock wait situations are recognized by DB2. Database parameter LOCKTIMEOUT specifies
how many seconds the system must wait before automatically resolving a lock wait situation.
If LOCKTIMEOUT is set to -1, lock wait situations are not resolved.
End of the caution.
Caution
DB2 recognizes deadlocks automatically using parameter DLCHKTIME that specifies the time
period during which the system analyzes lock situations or deadlocks.
End of the caution.
84
April 2010
Database Administration Using the DBA Cockpit: IBM DB2 for LUW
Description
Table Schema
Table Name
Partition
REORG Status
Paused
Suspended
Completed
Progress %
Start Date
Start Time
Access Mode
READ
WRITE
NO ACCESS
Tablespace
Note
If no active inplace table reorganization was found, the system displays the following
message: No Inplace Table Reorganizations are running. Only the REORG
activities since the database start are displayed. REORGs that were active before the
database start are not displayed.
April 2010
85
Database Administration Using the DBA Cockpit: IBM DB2 for LUW
Function
Active Only
Only inplace table reorganizations with the status Started or
Paused are displayed.
Choose View
All
All inplace table reorganizations are displayed including
those with status Completed or Suspended.
Since DB Start
Only inplace table reorganization that have been started after
the last restart of the database manager are displayed.
Choose Data Source
Activities
You can perform the following actions for an inplace reorganization:
Pause
Select a running inplace reorganization and choose Pause.
Resume
Select a paused inplace table reorganization and choose Resume.
Suspend
Select any inplace table reorganization and choose Suspend.
As a result of any of these actions, the list of active inplace table reorganizations is refreshed.
86
April 2010
Database Administration Using the DBA Cockpit: IBM DB2 for LUW
Description
Partition
Date
April 2010
87
Database Administration Using the DBA Cockpit: IBM DB2 for LUW
Column
Description
Since index data is read only by the database manager
agents, this value includes the number of synchronously read
index pages.
Number of write accesses to index data on disk (I/O)
COMMIT Statements
ROLLBACK Statements
Automatic ROLLBACKs caused by error situations or
deadlocks are not included.
Lock Waits
Deadlocks
Lock Escalations
If you choose Total Day in the field Workload in the Performance History - Database group
box, the total workload of this day is displayed. The value displayed is calculated using
formula maximum value - minimum value. Database restarts are taken into consideration.
If you choose Peak in the field Workload in the Performance History - Database group box,
the maximum of all measured values is displayed.
You can display details for one specific day by double-clicking a field or selecting a row and
choosing Details. A detail screen appears with the following information:
Snapshot
The measured values of the selected day are displayed.
Interval
The delta values of the measurements, which are provided under Snapshot, are
displayed.
88
April 2010
Database Administration Using the DBA Cockpit: IBM DB2 for LUW
If you select a particular day, snapshots of the database activity are displayed in a two-hour
cycle.
Note
If the database is restarted during one day, the interval displayed after the restart does not
equal the delta of two measurements because the counter was reset during the restart. In this
case the absolute value of the last measurement is displayed.
End of the note.
Description
Table Schema
Table Name
Rows Written
Rows Read
Overflow Accesses
Note
If there is a high number of overflow accesses in comparison to
total read accesses, the table is a candidate for reorganization.
End of the note.
Page Reorgs
April 2010
89
Database Administration Using the DBA Cockpit: IBM DB2 for LUW
Note
If you want to display history data that is cumulated by day, week or month, choose the
appropriate option from the dropdown list in the Statistics field.
End of the note.
If you are using the SAP GUI-based user interface, the application starts in a
separate Web browser.
Integration
The Performance Warehouse is part of the DBA Cockpit.
Prerequisites
An SAP Solution Manager system with Solution Manager Diagnostics (SMD) enabled is
required.
Features
In the Performance Warehouse, all relevant performance indicators that are collected by the
DBA Cockpit are stored in an SAP NetWeaver BW system. This BW system is used by the
Solution Manager Diagnostics (SMD) back end of an SAP Solution Manager system. SMD
already uses this SAP NetWeaver BW to store workload data of SAP applications. To
configure the extraction of data into the SMD BI, you use the SMD Setup Wizard.
Based on this architecture, the DBA Cockpit uses SAP NetWeaver BW technology to provide
reports for performance analysis, which you can customize according to your needs. All
collected data has a time dimension, so you can analyze the database performance for any
point in time or over a specified time frame.
90
April 2010
Database Administration Using the DBA Cockpit: IBM DB2 for LUW
Almost all reports are displayed as a chart to visualize the key performance indicators (KPIs).
In addition, there is also a detailed table view. To navigate within these reports, you can use
the SAP BI drilldown feature. Violations to performance thresholds are highlighted based on
predefined SAP BI exceptions to make you immediately aware of performance issues.
By default, the Performance Warehouse is delivered with predefined content that you can use
to create your own reports according to your needs.
More Information
Performance Warehouse: Reporting [Page 91]
Performance Warehouse: Configuration [Page 92]
If you are using the SAP GUI-based user interface, a separate Web browser
opens for this application.
Specifying the Time Frame
To display detailed reports, you first have to specify the time frame for which you want to
analyze data by defining the following:
Granularity
You can choose between Hour, Day or Month. Depending on your selection, the values
for your time frame might change.
Time Frame
If you choose Custom Selection from the dropdown list, you can manually enter the
starting and ending time for your analysis. To activate your custom selection, choose
Apply Filter. For any other selection from the dropdown list, the reports are
automatically refreshed.
The reports are categorized and for each category there is one tab page. On every tab page,
you find a button row for the reports. Every pushbutton in the button row represents a specific
view on the database performance, for example, I/O, Prefetcher, Sort Heap, etc.
Displaying a Report
To display a report, choose the appropriate view pushbutton on the respective tab page.
The availability of the tab pages and of the pushbuttons on each tab page can
vary depending on the selected system. Some reports are only available if
special database features are enabled.
April 2010
91
Database Administration Using the DBA Cockpit: IBM DB2 for LUW
The chart display is optional and not available for all available views.
In the lower section, a detailed table view is available.
You can drill down your reports by either using the context menu of a column header in the
Detail: <Category View> screen area or by specifying the respective value using the
pushbuttons in the Detail: Navigation screen area. Here, you can also add and remove
columns or key figures, or you can set filters on columns.
In addition, there are predefined exceptions (for example, Chart: Exceptions or Details:
Exceptions) for almost all reports on key performance indicators. The used thresholds are
based on Early Watch Alerts and each violation to these thresholds is displayed in red.
If you want to reset a report to its initial state, choose Reset Report in the central
system area.
If you are using the SAP GUI-based user interface, a separate Web browser
opens for this application.
On the screen Performance Warehouse: Configuration, the following tab pages are available:
Configuration
Web Reports
Report Categories
Configuration
Here, you can view or modify the configuration parameters of the performance warehouse for
the monitored system. To modify some of these parameters, use the Edit, Save, and Cancel
pushbuttons in the toolbar.
92
April 2010
Database Administration Using the DBA Cockpit: IBM DB2 for LUW
Depending on your database platform, the displayed selection of values can vary. The
following parameters are displayed for all database platforms:
Parameter
Description
BI Server
The Default checkbox is selected if the default value for your complete
landscape is the same as the one specified for your system.
Web Reports
Here, you can configure the display on the Reporting screen. That is, you can view and
modify the integrated BI BEx Web templates in the tree table. To modify some of these
parameters, use the Edit, Add, and Delete pushbuttons in the toolbar.
The main report categories appear and for each report category, you can view or modify the
views by expanding the appropriate report category. These views appear as pushbuttons on
the respective category tab page on the Reporting screen. To change the sequence within a
category, use the Up or Down pushbuttons.
To display details about a view, simply select it in the table. The following parameters are
displayed in the Details for Web Reports area below the table view:
Parameter
Description
Report
Description
Category
Active
Default
April 2010
93
Database Administration Using the DBA Cockpit: IBM DB2 for LUW
Database
Release (min)
Release (max)
Description
Category
Description
94
April 2010
Database Administration Using the DBA Cockpit: IBM DB2 for LUW
3 Space
The following sections provide information on space:
Space: Automatic Storage
Space: Tablespaces
Space: Containers
Space: Tables and Indexes
Space: Single Table Analysis
Space: Virtual Tables
Space: History - Overview
Space: History - Database and Tablespaces
Space: History - Tables and Indexes
Description
Partition
Storage Path
FS ID
April 2010
95
Database Administration Using the DBA Cockpit: IBM DB2 for LUW
Note
If you want to add or delete a storage path, choose the Display <-> Change pushbutton. The
Space Change Automatic Storage screen appears and only the information about Partition
and Storage Path is displayed.
To switch to the display mode, choose the Display <-> Change pushbutton again.
End of the note.
Adding or Deleting a Storage Path for a Tablespace
1. On the Space: Change Automatic Storage screen, choose Add.
A new line is added to the list.
2. Enter the complete path name of the new storage path and press Enter.
3. Choose Execute.
Note
If you want to delete a storage path, select one from the list and choose Delete.
End of the note.
In the lower half of the Space: Change Automatic Storage screen, an editor is displayed that
shows the generated SQL statement(s) that will be executed. This area is automatically filled
and refreshed if any changes were applied correctly.
96
April 2010
Database Administration Using the DBA Cockpit: IBM DB2 for LUW
Column
Description
Tablespace Name
Partition
Contents
TS State
KB Total
Page Size
No. Containers
Number of containers
KB Free
Percent Used
DMS/SMS Tablespaces
Regardless whether you have chosen automatic storage management tablespaces or manual
maintenance of DMS/SMS tablespaces during the SAP system installation, the following
information is displayed for all DMS/SMS tablespaces that are maintained manually:
Column
Description
Tablespace Name
Partition
TS Type
Contents
TS State
KB Total
Page Size
April 2010
97
Database Administration Using the DBA Cockpit: IBM DB2 for LUW
Column
Description
No. Containers
Number of containers
KB Free
Percent Used
AUTORESIZE
Description
Tablespace Name
Schema
Name
Type
Maintaining Tablespaces
In addition, you can maintain tablespaces, that is Change, Add or Delete them. For more
information, see Maintaining Tablespaces.
98
April 2010
Database Administration Using the DBA Cockpit: IBM DB2 for LUW
Procedure
Changing Tablespaces
1. On the Space: Tablespace Configuration screen, choose Change. The Space:
Tablespace Maintenance Change Tablespace screen appears. The following
information is displayed:
Field
Description
Tablespace
Maintenance
Name
Contents
Description
Describes, which kind of data will be stored in the tablespace, for
example, regular data, large objects, temporary user objects, or
temporary system objects
Page size in KB
Extent Size
Extent size in KB
Space Management by
Database (DMS)
April 2010
99
Database Administration Using the DBA Cockpit: IBM DB2 for LUW
Field
Description
System (SMS)
AutoStorage
Description
Disk Performance
Displays I/O controller overhead and disk seek and latency time in
milliseconds
Overhead
This value is used to determine the cost of I/O during query
optimization.
Time to read one page into memory in milliseconds
Transfer Rate
Recovery
Dropped Tables
AUTORESIZE enabled
Buffer Pool
By default, the buffer pools are displayed that match the page size
of the tablespace. If required, you can add a new buffer pool. For
more information, see Maintaining Buffer Pools [page 144].
Name
For more information about the technical settings, see the IBM documentation SQL
Reference.
Note
By default, DB2 9 for Linux, UNIX, and Windows uses large object tablespaces.
After you have upgraded your database from DB2 Version 8 to DB2 9, you
might also want to convert your regular tablespaces into large object
tablespaces. To do so, select a tablespace and choose Convert to LOB. The job
is scheduled as a background job.
100
April 2010
Database Administration Using the DBA Cockpit: IBM DB2 for LUW
Storage Parameters
For tablespaces that are completely managed by automatic storage management or
that have at least AUTORESIZE enabled, the following fixed values are displayed:
Field
Description
Settings
Initial Size
Size
Current Size
Last Resize
This field only appears if the last automatic resize failed. Date
and time when the automatic resize failed.
End of the note.
The SQL error is displayed in the lower half of the Space:
Tablespace Maintenance screen.
NONE
If there is no maximum size limit
Maximum Size
Absolute value
April 2010
101
Database Administration Using the DBA Cockpit: IBM DB2 for LUW
To delete containers, select one or more lines in the table and choose
Delete.
102
April 2010
Database Administration Using the DBA Cockpit: IBM DB2 for LUW
4. Add containers.
If you are using a muli partition database, you must add containers for all partitions of
the corresponding database partition group.
Caution
This step does not apply to tablespaces managed by automatic storage
management.
End of the caution.
5. To confirm your entries, choose Add.
Deleting Tablespaces
1. On the Space: Tablespace Configuration screen, select a tablespace.
2. Choose Delete.
The Space: Tablespace Maintenance DeleteTablespace screen appears.
3. To delete the selected tablespace, choose Delete.
Caution
You cannot delete tablespaces that are still used by the SAP system, that is, if they
are related to some data class. You must delete the data class before deleting the
tablespace.
End of the caution.
SQL Statements
In the lower half of the Space: Tablespace Maintenance screen, an editor is displayed that
shows the generated SQL statement(s) that will be executed. This area is automatically filled
and refreshed if any changes were applied correctly.
More Information
Configuration: Data Classes [page 149]
Description
Tablespace Name
Partition
April 2010
103
Database Administration Using the DBA Cockpit: IBM DB2 for LUW
Column
Description
Stripe Set
Container Name
Type
KB Total
Pages Total
Accessible
FS ID
File system ID
Maintaining Containers
You can maintain tablespace containers by selecting a line in the table on the Container
Configuration screen and choosing Change, Add, or Delete. The Tablespace Maintenance
screen appears.
For more information, see Maintaining Tablespaces [page 98].
Description
Filters
Tablespace Name
Table Name
Table Size
Flagged Tables
If this flag is not set, only tables are displayed that have a
recommendation for table or index reorganization.
Large RIDs
If this flag is set, only tables are displayed that are located in large
RID tablespaces but that have not been enabled for large RIDs.
104
April 2010
Database Administration Using the DBA Cockpit: IBM DB2 for LUW
Field
Description
Not Available
If this flag is set, only tables are displayed that have the status not
available.
REORG Pending
If this flag is set, only tables are displayed that have the status
REORG PENDING.
Index Type-1
If this flag is set, only tables are displayed that still have Type1
indexes.
Load Status
If this flag is set, only tables are displayed that have the status LOAD
PENDING.
Row Compression
If this flag is set, only tables are displayed that have been
recommended for row compression.
Display Options
Sort by
Maximum Number of
Rows
Example
To display the first hundred tables with the largest size, choose Size in the Display Options
group box and enter 100 in the Maximum Number of Rows field.
End of the example.
When you have made your selections and chosen OK, the Space: Table and Indexes screen
appears with the following information:
Column
Description
Schema
Schema of the table, usually the user who created the table
Table Name
Tablespace Name
F1
F2
F3
Table Flagged
Index Flagged
April 2010
105
Database Administration Using the DBA Cockpit: IBM DB2 for LUW
Column
Description
REORGCHK recommendations for at least one of the table indexes
Size (KB)
Table size
Date of the last REORG check, for example, the date when RUNSTATS
ran using program dmdb6srp
Time of the last REORG check, for example, the time when RUNSTATS
ran using program dmdb6srp
If you want to change the selection, choose Set Selection Criteria. The Selection Criteria
dialog box appears and you can make your new selection.
To display detailed information on tables and indexes, double-click a table or choose Details.
A detail screen is displayed with information on tables, indexes, and table structures. You can
directly access this screen by choosing Space Single Table Analysis in the navigation
frame of the DBA Cockpit. For more information, see Space: Single Table Analysis [page
106].
Note
The data displayed is based on a set of database tables that have been filled by the job
REORGCHK for all Tables. This job must have been scheduled using the DBA Planning
Calendar. If the job is not running, no current data is available.
End of the note.
Description
Name
Schema
Schema of table, that is usually the user who created the table
106
April 2010
Database Administration Using the DBA Cockpit: IBM DB2 for LUW
Description
Date and time of the last REORG check, for example, the date
and time when RUNSTATS ran using program dmdb6srp
Size of table in KB
REORG Pending
April 2010
107
Database Administration Using the DBA Cockpit: IBM DB2 for LUW
Field
Description
System Catalog
Last RUNSTATS
Tablespace
Cardinality
Counted Rows
Deviation
Overflow Records
Pooled, Cluster or
Import/Export Table
VOLATILE
Note
Newly created tables and tables that were dropped or recreate during an upgrade or a table conversion are always
marked as VOLATILE as long as there are not yet valid
statistics available.
108
April 2010
Database Administration Using the DBA Cockpit: IBM DB2 for LUW
Field
Description
End of the note.
Value Compression
Row Compression
Distributed Statistics
Indexes
Field
Description
Index
Name
Schema
Schema of the index, that is usually the user who created the
index
Tablespace
Type
Index type
Date and time of the last REORG check, for example, the date
and time when RUNSTATS ran using program dmdb6srp
Cardinality
April 2010
109
Database Administration Using the DBA Cockpit: IBM DB2 for LUW
Field
Leafs
Description
index tree
System Catalog
Last RUNSTATS
Number of Leaves
Number of Levels
Sequential Pages
Density
Cluster Ratio
Cluster Factor
The value is set to 1.
First Key Cardinality
Note
If the value displayed in field Full Key Cardinality is the same as the one displayed in field
Cardinality, the index is a unique index. Every record in the table can be accessed using that
index.
End of the note.
110
April 2010
Database Administration Using the DBA Cockpit: IBM DB2 for LUW
If several indexes are defined on a table, you can use the page buttons on Index to navigate
between the different indexes.
Table Structure
Column
Description
DB Column No.
DB Column Name
DB Type
DB Length
The following information is only displayed for the local system and if the table is defined as a
transparent table in the ABAP Dictionary
Column
Description
SAP Key
SAP Type
SAP Length
RUNSTATS Control
For RUNSTATS Control, you have to take the following into consideration:
Scheduling of RUNSTATS for a table
Which types of statistics are gathered
Both scheduling and profiling depend on the configuration of automatic RUNSTATS. If
automatic RUNSTATS is enabled, the following scheduling options are available:
Field
Description
Statistics Attributes
Not VOLATILE
(AutoRUNSTATS included)
The VOLATILE attribute is not set for this table and therefore
the table will get statistics controlled by automatic RUNSTATS.
VOLATILE (AutoRUNSTATS The VOLATILE attribute is set for this table. automatic
excluded)
RUNSTATS does not take this table into account.
April 2010
111
Database Administration Using the DBA Cockpit: IBM DB2 for LUW
If automatic RUNSTATS is not enabled, the following options are available instead:
Field
Description
Scheduling
Automatically
On User Request
Statistics is out-of-date
Deviation
Statistics Attributes
Statistics
If you want to execute a RUNSTATS, you can choose one of the following options:
Use Profile
This option is only available if a RUNSTATS profile has been set before. By choosing
this option, a RUNSTATS is performed using exactly the same settings as specified in
the profile.
Customized Settings
If you want to determine how the statistics are collected, you can choose Customized
Settings.
112
April 2010
Database Administration Using the DBA Cockpit: IBM DB2 for LUW
The following table lists the table analysis methods and index analysis methods that you can
specify if you chose Customized Settings for the collection of statistics:
Field
Description
Distributed Statistics
None
Selecting this option does only freeze already existing
old table statistics but not delete or invalidate them.
End of the caution.
Percentage of entries to be used for sampling
Sampling of [ ] %of entries
Caution
This field is only active if you are using DB2 UDB for
UNIX and Windows Version 8, FixPak 2 or higher.
The data to be sampled is selected page by page.
Caution
This field is only active if you are using DB2 UDB for
UNIX and Windows Version 8, FixPak 2 or higher.
The data to be sampled is selected row by row.
Caution
This field is only active if you are using DB2 UDB for
UNIX and Windows Version 8, FixPak 2 or higher.
Detailed Statistics
April 2010
113
Database Administration Using the DBA Cockpit: IBM DB2 for LUW
Field
Description
No statistics for the index
Caution
None
Selecting this option does only freeze already existing
old index statistics but not delete or invalidate them.
End of the caution.
Index Structures
Column
Position
Description
Position of the column within the key
Sort order of the column:
A = ascending order
Order
D = descending order
DB Column Number
DB Column Name
DB Type
DB Length
Note
The following information is only displayed for the local system and if the table is defined as a
transparent table in the ABAP Dictionary:
Column
Description
SAP Type
SAP Length
114
April 2010
Database Administration Using the DBA Cockpit: IBM DB2 for LUW
RUNSTATS Profile
If a RUNSTATS was executed using the PROFILE option, this profile is stored in the system
catalog and is displayed on the screen. The profile is the same as the RUNSTATS command
that was executed with the SET PROFILE option.
Table Status
On this tab page, you find information about the size and status of tables and indexes
provided by DB2's stored procedure ADMIN_GET_TABINFO:
Field
Description
Physical Size
Amount of disk space in KB that is physically allocated for the table
Data Objects
Long Objects
LOB Objects
XML Objects
Index Objects
Logical Size
Amount of disk space in KB that is logically allocated for the table
Data Objects
For MDC tables, this size includes the logical size of the block map
object. This size represents the logical size of the base table only.
Space that is consumed by LOB data, long data, indexes, and XML
objects is reported by other fields described in the following.
Long Objects
LOB Objects
April 2010
115
Database Administration Using the DBA Cockpit: IBM DB2 for LUW
XML Objects
Index Objects
YES
The table is available.
Note
Rollforward through an unrecoverable load makes a table
unavailable.
End of the note.
Current status of an inplace table reorganization on the table
The following values are possible:
ABORTED
The inplace table reorganization is in PAUSED state but
unable to resume. A STOP is required.
No Load Restart
The value YES indicates that the table is in partially loaded state
that does not allow a load restart. Otherwise, the value NO is
returned.
116
April 2010
Database Administration Using the DBA Cockpit: IBM DB2 for LUW
NO
The table is not using large RIDs.
PENDING
The table supports large RIDs (that is, the table is in a
large tablespace) but at least one of the indexes for the
table has not yet been reorganized or rebuilt. Therefore,
the table is still using 4-byte RIDs, which means that action
must be taken to convert the table or indexes.
Indicates whether or not the table is using large slots (which allows
more than 255 rows per page)
YES
The table is using large slots.
NO
Large Slots
The table is not using large slots.
PENDING
The table supports large slots (that is, the table is in a large
tablespace) but there has not yet been an offline table
reorganization or a table truncation operation. Therefore,
the table is still using a maximum of 255 rows per page.
Indicates the number of blocks pending cleanup for MDC tables.
Blocks Pending Cleanup
For non-MDC tables this value is always 0.
The following values are possible:
System fabricated
Statistics are gathered by the system without a table or an
index scan.
Type of Statistics
These statistics are stored in memory and are different
from the statistics that are stored in the system catalog.
This is a temporary state and eventually full statistics are
gathered by DB2 and stored in the system catalog.
System asynchronously gathered
April 2010
117
Database Administration Using the DBA Cockpit: IBM DB2 for LUW
Description
Compression Detail
Current Dictionary Size
118
April 2010
Database Administration Using the DBA Cockpit: IBM DB2 for LUW
Field
Description
Percentage of pages saved by compression
Note
Only data pages are taken into account.
Last Check
April 2010
119
Database Administration Using the DBA Cockpit: IBM DB2 for LUW
In case of RUNSTATS in dialog and RUNSTATS in the background, the RUNSTATS can be
performed based on the changeable parameters that you specified on the RUNTSTATS
Control tab page. If you have modified any of the control parameters, the RUNSTATS
Execution dialog box appears. You can choose one of the following options:
Use modified parameters
Caution
Be aware when choosing this option, you have to take into account that the statistics
are overwritten by an automatically triggered RUNSTATS job if you had previously
selected Automatically by CCMS on the RUNSTATS Control tab page.
End of the caution.
Use active parameters
Use modified parameters and save (If automatic RUNSTATS is enabled, this option is
not available.)
120
April 2010
Database Administration Using the DBA Cockpit: IBM DB2 for LUW
On the screen Space Virtual Tables the following tab pages are available:
Virtual Tables
Contains a list of all virtual tables that exist in your SAP systems
To materialize a single or multiple tables, select one or more tables and choose
Materialize.
Candidates for Virtualization
Displays a list of tables that are candidates for being dropped and re-created as
virtual tables. If you choose Convert Empty Tables, a background job is scheduled
that checks each table if it is:
o
Empty
Not volatile
Tables that meet these conditions are dropped and re-created as virtual tables.
Note
The use of virtual tables is transparent to the ABAP Dictionary.
End of the note.
Caution
Before you drop tables and re-create them as virtual tables, make sure that you have read
SAP Note 1151343.
April 2010
121
Database Administration Using the DBA Cockpit: IBM DB2 for LUW
Description
Tablespaces
Last Analysis
Total Number
Total Size
Free Space
Used Space
Database Partitions
Number of database partitions
Total Number
Description
Last Analysis
Date and time of the latest execution of the job REORGCHK for
all tables
122
April 2010
Database Administration Using the DBA Cockpit: IBM DB2 for LUW
The job to collect the database and tablespace history and the job to collect tables and
indexes history are triggered by the standard performance collector job
SAP_COLLECTOR_FOR_PERFMONITOR. You can display the schedule of these two jobs
in the DBA Planning Calendar by choosing Jobs DBA Planning Calendar in the DBA
Cockpit. In the Category group box you can choose DB Collectors. The default setting is DBA
Actions.
Caution
Calculating table values with outdated statistics can result in inaccurate values. To calculate
update statistics including the calculation of table sizes, use the DBA Planning Calendar
[page 166].
End of the caution.
Description
Tablespace Name
Partition
KB Total
KB Used
April 2010
123
Database Administration Using the DBA Cockpit: IBM DB2 for LUW
Column
Description
% Used
KB Free
Containers
Changes Containers
Description
Tablespace Name
Tables
Number of tables
Changes Tables
Table (KB)
Indexes
Number of indexes
Changes Indexes
Index (KB)
If you want to display delta values between available measurements, select a row and
choose Details. Alternatively, you can double-click the selected row. The table will be
displayed again with the following difference: Columns with the heading Changes... are
renamed with Delta...
124
April 2010
Database Administration Using the DBA Cockpit: IBM DB2 for LUW
Description
Filters
Tablespace Name
Display Options
Sort by
Example
To display the first hundred tables or indexes with the highest growth, choose Growth in the
Display Options group box and enter 100 in the Maximum number of rows field.
End of the example.
When you have made your selections and chosen OK, the History Table and Index screen
appears with the following information:
Column
Description
Object Name
Object Type
Table or index
Tablespace Name
Size (KB)
April 2010
125
Database Administration Using the DBA Cockpit: IBM DB2 for LUW
Column
Description
Date of the last REORG check, for example, the date when
RUNSTATS ran using program dmdb6srp
Time of the last REORG check, for example, the time when
RUNSTATS ran using program dmdb6srp
If you want to display delta values between available measurements, select a row and
choose Details. Alternatively, you can double-click the selected row. The table will be
displayed again with the following difference: Columns with the heading Changes... are
renamed with Delta...
If you want to change the selection criteria, choose Set Selection Criteria.
126
April 2010
Database Administration Using the DBA Cockpit: IBM DB2 for LUW
Backup and
Description
Contains information on database backups
Database
Backups
Log Files
The screen is divided into two frames. The left frame provides information on
database backups done in the past. If you want to display detailed information
on a database backup, double-click the field. The details are displayed in the
right frame.
Contains information on log files that have been moved from the log directory to
the log archive or to a storage product, such as Tivoli Storage Manager (TSM)
If you want to display older information on database backups, change the value in the Display
Days field in the Backup and Recovery: Overview group box.
April 2010
127
Database Administration Using the DBA Cockpit: IBM DB2 for LUW
5 Configuration
The following sections provide information on configuration:
Configuration: Overview
Configuration: Database Manager
Configuration: Database
Configuration: Registry Variables
Configuration: Parameter Changes
Configuration: Database Partition Groups
Configuration: Buffer Pools
Configuration: Special Tables Regarding RUNSTATS
Configuration: File Systems
Configuration: Data Classes
Configuration: Monitoring Settings
Configuration: Automatic Maintenance Settings
Description
Database Instance
Name
Partitionable
Number of Partitions
If the database environment is not partitioned, the value is 1.
128
April 2010
Database Administration Using the DBA Cockpit: IBM DB2 for LUW
Address Space
Database Release
Service Level
Build Level
PTF
Fix Pack
Operating System
Name
Version
Release
Host Name
Total CPUs
Configured CPUs
Total Memory
If the system has been installed as a high availability disaster recovery (HADR) system, the
following additional information is displayed:
Group Box
Description
HADR Information
The current HADR connection status of the database
The following values are possible:
Connect Status
CONGESTED
CONNECTED
DISCONNECTED
April 2010
129
Database Administration Using the DBA Cockpit: IBM DB2 for LUW
Local Service
Log Gap
The log sequence number (LSN) is a byte offset in the log stream
of the database.
Page number in the current log file indicating the current log
position on the primary HADR database
ASYNC
NEARSYNC
SYNC
HADR Timeout
Heartbeat
130
April 2010
Database Administration Using the DBA Cockpit: IBM DB2 for LUW
DISCONNECTED
Displays the disconnection time
If there had been no connection since the HADR engine
dispatchable unit (EDU) was started, the connection status is
reported as Disconnected and the HADR EDU startup time is used
for the disconnection time.
Since HADR connect and disconnect events occur relatively
seldom, the time is collected and reported even if the
DFT_MON_TIMESTAMP switch is off. This element should be
ignored if the database's HADR role is STANDARD.
Host name of the HADR remote host
Remote Host
Remote Instance
Remote Service
HADR Role
PRIMARY
STANDARD
STANDBY
April 2010
131
Database Administration Using the DBA Cockpit: IBM DB2 for LUW
LOCAL_CATCHUP
PEER
REM_CATCH_PEN
REM_CATCHUP
Description
Common
Diagnostics
Security - Groups
Security Authentication
132
April 2010
Database Administration Using the DBA Cockpit: IBM DB2 for LUW
Tree node
Description
Memory
Agents
Transaction Manager
Network
Fast Communication
Manager
DB2 Discovery
Others
The database manager parameters are displayed with a short description and the technical
name that was defined by DB2. If you need to change a parameter, use the following
command:
UPDATE DATABASE MANAGER CONFIGURATION using <keyword> <value>
Note
In a multi partition environment, the database manager parameters are the same for all
partitions. Therefore, All is displayed in the Partition field in the Database Manager
Configuration group box.
End of the note.
For more information about these parameters, see the IBM DB2 online documentation.
In addition, you can maintain the database configuration parameters. For more information,
see Maintaining the Database Configuration [page 135].
April 2010
133
Database Administration Using the DBA Cockpit: IBM DB2 for LUW
Description
Common
Automatic Maintenance
Optimization
I/O
Self-Tuning Memory
Manager
Application Memory
Logging
TSM
Locks
Space
Applications
High Availability
Others
134
April 2010
Database Administration Using the DBA Cockpit: IBM DB2 for LUW
The database parameters are displayed with a short description and the technical name that
was defined by DB2. If you need to change a parameter, use the following command:
UPDATE DATABASE CONFIGURATION for <system> using <keyword> <value>
Note
In multi partition environment, the parameters can vary for each partition. For more
information about how to compare the configuration of several database partitions, see
Comparing Database Configuration Parameters For Several Database Partitions [page 136].
End of the note.
Caution
Depending on your database release level, some tree nodes might not be visible or might
added to the view.
End of the caution.
In addition, you can maintain the database configuration parameters. For more information,
see Maintaining the Database Configuration [page 135].
For more information about these parameters, see the IBM DB2 online documentation.
Displaying the Parameter Value History
Caution
To be able to display a value history, the function must be switched on first by selecting
Collect History Data when you configured your database for remote monitoring. For more
information, see Configuring Systems for Remote Monitoring Using Remote Database
Connections.
End of the caution.
For parameters that are affected by the self-tuning memory manager, you can display a value
history by choosing Show Value History on the Configuration: Database screen.
The result for a parameter is displayed in a separate window. By default, the value history
information is displayed as a chart. By choosing List, you can switch to a tabular view. To limit
the history time frame, choose From or To.
April 2010
135
Database Administration Using the DBA Cockpit: IBM DB2 for LUW
Note
If a parameter cannot be changed, the Display <-> Change icon is not displayed.
End of the note.
2. Choose Display <-> Change and enter the new configuration parameter values.
Note
Some configuration parameters are enabled for automatic value adjustment. In this
case, the checkbox AUTOMATIC is displayed. If you select AUTOMATIC, the value
will automatically be maintained by DB2.
End of the note.
3. To check your entries, choose Check Input.
In the lower half of the Configuration: Database Maintain or Configuration:
Database Manager Maintain screen, an editor is displayed that shows the
generated CLP commands that are based on your input. This area is automatically
filled and refreshed whenever you choose Check Input.
4. To confirm your entries, choose Execute.
136
April 2010
Database Administration Using the DBA Cockpit: IBM DB2 for LUW
Description
Parameter
Active
Parameter
History
Parameter Type
All
Parameter Type
Database
April 2010
137
Database Administration Using the DBA Cockpit: IBM DB2 for LUW
Option
Parameter Type
DB Manager
Parameter Type
Registry
Description
Displays database manager parameters only
Displays registry variables only
When you have made your selection, the following information is displayed:
Column
Description
Parameter Type
Parameter Name
Partition
Date
Time
Parameter Value
138
April 2010
Database Administration Using the DBA Cockpit: IBM DB2 for LUW
Description
Partition
Status
Partition not in partitioning map;
containers created
Partition and containers have been created, but
partition is not yet referenced in the partitioning map.
Partition in partitioning map;
containers created
Partition will be dropped after next
redistribution
For more information, see the DB2 Administration
Guide.
The list of database partition groups contains all database partition groups of which the
selected partition is a member. If you choose All in the Partition field, all available database
partition groups will be displayed.
In addition, you can maintain database partition groups, that is change, add or delete them.
For more information, see Maintaining Database Partition Groups page 140].
April 2010
139
Database Administration Using the DBA Cockpit: IBM DB2 for LUW
Description
Status
o
o
o
140
April 2010
Database Administration Using the DBA Cockpit: IBM DB2 for LUW
Buffer Pools
This tab page contains a list of all buffer pools that have been defined for the selected
database partition group.
Column
Buffer Pool
Name
Description
Total space in KB
If you create tablespaces, this information is not displayed.
Size of the buffer pool in KB
Buffer Pool
Size (KB)
Page Size
A value of 1 indicates that the default buffer pool size parameter from the
database configuration is used (parameter BUFFPAGE).
Size of one buffer pool page in bytes
For detailed information on buffer pools, double-click the corresponding buffer pool.
Tablespaces
This tab page contains a list of all tablespaces that have been defined for the
selected database partition group.
Field
Description
Tablespace Name
Page Size
To delete partitions, select one or more lines in the table and choose Delete
Partition.
April 2010
141
Database Administration Using the DBA Cockpit: IBM DB2 for LUW
142
April 2010
Database Administration Using the DBA Cockpit: IBM DB2 for LUW
Description
Number of the partition (only displayed if you are using a multi partition
database)
Size of the buffer pool in KB. A value of 1 indicates that the default buffer
pool size parameter from the database configuration is used (parameter
BUFFPAGE).
Size (Pages)
AUTOMATIC indicates that the selected buffer pool is tuned by DB2's self
tuning memory management (STMM).
If one of these special values is displayed and you want to see the real
size of the buffer pool, you should use the buffer pool snapshot [page 42].
The list of buffer pools contains all buffer pools that have been defined for the selected
partition. If you choose ALL in the Partitions field, all available buffer pools will be displayed.
In addition, you can maintain buffer pools, that is change, add or delete them. For more
information, see Maintaining Buffer Pools [page 144].
April 2010
143
Database Administration Using the DBA Cockpit: IBM DB2 for LUW
Description
Partitions that have been defined for the selected buffer pool. The
list depends on the selection of database partition groups. You
can modify the size of the buffer pool on selected partitions or set
the size for all partitions by using the field Set size on all partition
to.
Partition
Caution
In a multi partitioned environment, you can define exception
entries by which the size of the buffer pool on this partition is
different from its size for all other partitions. To remove this entry,
choose Remove Exception Entry next to the Immediate checkbox.
End of the caution.
Immediate
Description
Specifies the buffer pool size on all partitions
Note
This function is not supported for buffer pools that are enabled for
DB2's selftuning memory management
144
April 2010
Database Administration Using the DBA Cockpit: IBM DB2 for LUW
Column
Description
End of the note.
Page Size
Block Size
Size of one block for blocked I/O in pages displayed only if you
are using DB2 Version 8
Description
Tablespace Name
Page Size
April 2010
145
Database Administration Using the DBA Cockpit: IBM DB2 for LUW
146
April 2010
Database Administration Using the DBA Cockpit: IBM DB2 for LUW
Description
Table Schema
Table Name
VOLATILE
If the table is flagged as VOLATILE, statistics are not used by the
optimizer.
Type of entry in control table DBSTATC
The following entries are displayed:
N
Active
April 2010
147
Database Administration Using the DBA Cockpit: IBM DB2 for LUW
Column
Description
A
RUNSTATS may be run by CCMS programs.
This information is only relevant if CCMS RUNSTATS is
enabled.
Profile
RUNSTATS Date
RUNSTATS Time
Cardinality
Note
If automatic RUNSTATS is not enabled, proceed as follows:
To receive correct results, the RUNSTATS and REORGCHK for all Tables job should have
run at least once.
End of the note.
148
April 2010
Database Administration Using the DBA Cockpit: IBM DB2 for LUW
Description
Number of the partition (only displayed if you are using a multi
partition database)
Name of the file system
KB Used
Percentage Used
KB Free
Percentage Free
Inodes Used
Inodes are needed to save files in the file system. For each
directory of files a minimum of one inode is used.
Percentage of inodes used
April 2010
149
Database Administration Using the DBA Cockpit: IBM DB2 for LUW
Description
Green:
No action required
Yellow:
Indicates warnings
Recommendation
We strongly recommend that you take immediate action.
End of the recommendation.
Red:
State
Indicates errors
Immediate action required
The following errors are checked:
Is there a related tablespace for data?
Does the data tablespace exist in the database?
Is there a related tablespace for indexes?
Does the index tablespace exist in the database?
Does the name of the tablespace comply with the naming
conventions for the customer namespace?
Is there a description for the data class?
Data Class
Data Tablespace
Index Tablespace
No. of Tables
No. of Indexes
Category
Description
In addition, you can maintain data classes, that is change, add or delete them. For more
information, see Maintaining Data Classes.
150
April 2010
Database Administration Using the DBA Cockpit: IBM DB2 for LUW
April 2010
151
Database Administration Using the DBA Cockpit: IBM DB2 for LUW
Configuration
Monitoring Settings
152
April 2010
Database Administration Using the DBA Cockpit: IBM DB2 for LUW
Caution
If you change the path, keep in mind that the DBA Cockpit only accepts paths that
contain the SAP system ID or an empty path. If you do not indicate a path, DB2
assumes that the UDFs are located in the DB2 UDF library. Any other path that does
not comply with these rules are automatically changed when you start the DBA
Cockpit. The DBA Cockpit then assumes that the UDFs are located in the directory
where the SAP kernel is located.
End of the caution.
4. To test the current path, choose Test.
In case of problems, error messages are displayed during the test. These are
typically some SQL error messages, which indicate, for example, that the UDFs were
not found under the specified path or that the user does not have the required
authorizations.
You must save your changes before you can run the next test.
Changing the Retention Periods for History Data
1. Call the DBA Cockpit.
2. In the navigation frame, choose
Configuration
Monitoring Settings
April 2010
153
Database Administration Using the DBA Cockpit: IBM DB2 for LUW
Features
You can configure the following functions:
Automatic Backup
Automatic RUNSTATS
Automatic REORG
Activities
To use automatic maintenance for your database, call the DBA Cockpit and choose
Configuration Automatic Maintenance Settings in the navigation frame of the DBA
Cockpit. The screen Configuration: Automatic Maintenance Settings appears.
By default, the General tab page is displayed where you specify the maintenance windows
during which automatic maintenance is performed by DB2.
Note
In this context, online and offline does not mean the state of the database itself
but the time frame with only low activity (online) or no activity (offline) on the
database.
You can specify the following maintenance windows:
Online Maintenance Window
Time frame with only low activity on the database. For example, during an online
maintenance window, you can still be connected to the database.
Offline Maintenance Window
Time frame with no activity on the database. For example, during an offline
maintenance window, neither connections to the database are allowed nor updates
for tables and indexes while they are being reorganized.
Note
Since the tab pages for specifying the online and the offline maintenance
windows are identical, they are only described once. For more information, see
Configuring General Maintenance Settings [page155].
Furthermore, you attach the required function, for example, Automatic REORG, to one of the
maintenance windows. DB2 then decides if any action is required and triggers the correct
action automatically.
More Information
Configuring General Maintenance Settings [page155]
Configuring Automatic Backup Settings [page 155]
Configuring RUNSTATS Settings [page 158]
Configuring Automatic REORG Settings [page 159]
154
April 2010
Database Administration Using the DBA Cockpit: IBM DB2 for LUW
2. Choose
frame.
Configuration
in the navigation
Time
Day of Week
Day of Month
Month of Year
Caution
The definition of all time-related parameters is combined by AND. Therefore, a valid
maintenance window must meet all definitions.
End of the caution.
In the footer of the maintenance window, the actions that are registered for this maintenance
window are displayed as well as whether they are switched on or off.
Configuration
in the navigation
April 2010
155
Database Administration Using the DBA Cockpit: IBM DB2 for LUW
Description
General
Automatic backup is switched
Enables or disables the automatic backup function
on / off
Specifies the type of backup (online or offline)
Backup Operation Type
Priority
Note
1 means highest priority.
End of the note.
Starting Conditions
Backups are created more frequently. Therefore, less time is
required to recover the database. The following limits apply:
Optimize for Database
Recoverability
o
10 MB
o
25 MB
o
50 MB
156
April 2010
Database Administration Using the DBA Cockpit: IBM DB2 for LUW
When you choose this option, you are able to customize the
following parameters:
Number of full backups is less than
o
days
Log space used since last full If the log space exceeds the specified value, a backup is
backup is more than
created.
Backup Media
The backup is created in the specified file systems.
File System
If you choose File System, you also have to specify File Paths
where the backup is to be created.
The backup is created on tape.
Tape Device
TSM
XBSA
If you choose XBSA, you also have to specify the Number of
Parallel Sessions.
The backup is created and data is stored using a vendor
library.
Vendor Library
April 2010
157
Database Administration Using the DBA Cockpit: IBM DB2 for LUW
Configuration
in the navigation
Description
General
Automatic RUNSTATS is
switched on / off
Maintenance Window
Priority
Note
1 means highest priority.
End of the note.
Parameters
If you select this checkbox, you enable the SAP default criteria,
that is that no tables are excluded from automatic RUNSTATS by
the policy filter.
SAP Default Criteria for
Tables Excluded by Policy
Note
A full editor for these filter criteria is not provided.
End of the note.
158
April 2010
Database Administration Using the DBA Cockpit: IBM DB2 for LUW
In addition, the following information is displayed for tables that are excluded from RUNSTATS:
Column
Description
The excluded tables are divided into the following categories:
Volatile Tables
Volatile tables are always excluded from automatic
RUNSTATS. When you expand this node, the volatile tables
are displayed.
Volatile
If the table is flagged as VOLATILE, statistics are not used by the
optimizer.
Profile
RUNSTATS Date
RUNSTATS Time
Cardinality
Configuration
in the navigation
April 2010
159
Database Administration Using the DBA Cockpit: IBM DB2 for LUW
Description
General
Automatic REORG is
switched on/off
Index Reorganization
Mode
Recommendation
We recommend that you reorganize indexes during the online
maintenance window.
End of the recommendation.
Specifies the priority of the automatic REORG over the other
automatic maintenance features, such as Automatic RUNSTATS
or Automatic Backup.
Priority
Note
1 means highest priority.
End of the note.
Parameters
Enables the SAP default filter criteria for tables that are to be
excluded from automatic REORG
That is, all table filters in the policy are disabled and the
parameters are changed according to the SAP
recommendations.
Note
An editor for these filter criteria is not provided.
End of the note.
160
April 2010
Database Administration Using the DBA Cockpit: IBM DB2 for LUW
Recommendation
We recommend a maximum table size filter of 1,000,000 KB.
End of the recommendation.
Specifies if you want to keep or rebuild the compression data
dictionary
A rebuild of the data dictionary could lead to a better
compression ratio but means additional time during
reorganization.
April 2010
161
Database Administration Using the DBA Cockpit: IBM DB2 for LUW
In addition, the following information is displayed for tables that are excluded from an
automatic REORG:
Column
Description
The excluded tables are divided into the following categories:
Tables Excluded by Policy
Within the policy, there are some filter criteria for tables
to be excluded from the automatic REORG. When you
expand this node, the excluded tables are displayed.
Schema
Table Flagged
Index Flagged
Size of table in KB
REORG Date
REORG Time
162
April 2010
Database Administration Using the DBA Cockpit: IBM DB2 for LUW
6 Jobs
The following sections provide information on:
Central Calendar
The DBA Planning Calendar
The DBA Log
Back-End Configuration
The SQL Script Maintenance
April 2010
163
Database Administration Using the DBA Cockpit: IBM DB2 for LUW
The entry for February 2007 in the cell for Thursday February, 08 is:
3 FUD 2
On system FUD for Thursday 8th January 2007 (in the past), there were 3
actions planned, 2 of which had the highest status severity. For example, the
highest status severity might be Warning, in which case the entry is displayed
with a yellow background.
Activities
...
On the system where you normally run the DBA Cockpit, you plan a regular job in the
DBA Planning Calendar to update the results from remote systems using the action
Central Calendar Log Collector. For example, you plan this job to run daily at 06:00.
You define the systems you want to monitor in the DBA Cockpit by setting the flag
Collect Central Planning Calendar Data for each system.
You regularly check the results using the Central Calendar.
If you need to schedule, change, delete, or execute actions, you switch to the DBA
Planning Calendar.
For more information, see Using the Central Calendar.
164
April 2010
Database Administration Using the DBA Cockpit: IBM DB2 for LUW
Procedure
...
1. Start the Central Calendar from the DBA Cockpit by choosing Jobs
Calendar.
Central
The Central Calendar is displayed. If you have already run or planned actions, you see
entries by day, one for each system.
Here is an example of entries for Thursday February, 08 affecting two systems, FUD
and FIB:
FUD
FIB
On system FUD for Thursday 8th January, there were three actions planned, two
of which had the highest status severity. For example, the highest status
severity for FUD might be Finished with warning, in which case the entry for
FUD is displayed with a yellow background. This means that two actions ended
with a warning.
On system FIB for the same day, there were four actions planned, one of which
ended with the highest severity. For example, the highest severity for FIB might
be Finished with error, in which case the entry for FIB is displayed with a red
background. This means that one action ended with an error.
The following table shows the color-coded statuses in the Central Calendar, which you
can also see by choosing Legend:
Color
Status
Light blue
Planned
Dark blue
Running
Green
Finished successfully
Yellow
Red
Dark yellow
No longer available
Dark red
Scheduling failed
2. To see a summary of the actions for a day, double-click the day header.
The system displays a summary of the actions and status for each system on the day
you selected, as in the following example:
System
Total
No
longer
available
FUD
FIB
Scheduled
Running
Finished
Warning
Error
2
3
3.
April 2010
165
Overdue
Database Administration Using the DBA Cockpit: IBM DB2 for LUW
4. To see the individual actions for a system, double-click the entry for the system on the
required day.
You see the relevant day in the DBA Planning Calendar. You can perform all usual
functions in the DBA Planning Calendar.
5. To refresh the display for the system from which you called the Central Calendar,
choose Refresh.
6. To refresh the display for all systems, choose Remote Refresh.
You can remotely refresh the display as follows:
Method
Run in Dialog
Start immediately
Schedule at
We recommend that you schedule action Central Calendar Log Collector to run
regularly, as described above in Prerequisites.
7. If required, you can customize the calendar display as follows:
a. Specify a factory calendar in Calendar ID.
Holidays are displayed in the same background color as weekend days. This in
no way restricts the planning of actions in the DBA Planning Calendar.
b. Switch to day, week, or month view by choosing Administration
Administration
View Week, or Administration
View Month.
View Day,
c. Choose Save Settings and change Number of Weeks or Entries per Day in the
display.
166
April 2010
Database Administration Using the DBA Cockpit: IBM DB2 for LUW
Features
Initial Screen
The initial screen of the DBA Planning Calendar is divided into three frames that are
described in the following.
Left Frame
The frame on the left contains all information and parameters to select the set of actions to be
displayed. You can:
Select the system from which you want to read planning data.
Select the category of an action:
o
DBA Actions
These are plannable actions.
External Actions
These are plannable actions that have not been started via the DBA planning
calendar but manually or by external job schedulers.
All Actions
These are all plannable actions, regardless how they have been scheduled.
DB Collectors
These are actions that are automatically selected by the system to collect, for
example, data on performance or history and are only available for RFCmonitored systems.
April 2010
167
Database Administration Using the DBA Cockpit: IBM DB2 for LUW
Action Pad
The frame on the right contains the following list of all plannable actions that are currently
available for DB2 for Linux, UNIX, and Windows:
Task Area
Backup and recovery of the database
Note
The actions involved have an impact
on the availability of the database.
End of the note.
Actions Involved
Full Database Backup into TSM
Full Database Backup to Device
Full Database Backup with Vendor Library
Archive Log File to Tape
Automatic REORG
This action depends on data provided by
action REORGCHK for all Tables. If the latter
is not scheduled, the action will not work
properly. For more information, see
Reorganizing Tables [page 179].
Note
This action is available only if the automatic
REORG by DB2 is disabled.
End of the note.
REORGCHK for All Tables
Most actions that you can schedule using the DBA Planning Calendar should normally be
scheduled as a recurring action. You can set up your DBA Planning Calendar using the
pattern setup function as described in Setting Up the DBA Planning Calendar [page 170].
168
April 2010
Database Administration Using the DBA Cockpit: IBM DB2 for LUW
Calendar Frame
The calendar can be displayed with either a weekly, daily, or monthly view using either a topbottom layout or left-right split view layout. To change the layout, choose Administration
Left-Right Split View or Top-Bottom Split View Layout. To change, for example, from a
weekly view to a daily or monthly view, choose the corresponding button in the application
toolbar.
Note
You can only change the layout for the week or month view. For the day view, only the leftright split view layout is available.
To change your preferred settings that is, the layout and the view choose Save Settings.
The calendar shows the actions that were scheduled using background processing. These
actions are then automatically executed.
End of the note.
Once the action has run, the status is indicated using the following colors:
Color
Meaning
Light blue
Dark blue
Green
Yellow
Check the job log for details.
An error has occurred and the action was interrupted.
Red
Check the job log for details and reschedule the action.
Dark yellow
Dark red
Scheduling failed, that is, there is no status available and the action
is overdue.
April 2010
169
Database Administration Using the DBA Cockpit: IBM DB2 for LUW
170
April 2010
Database Administration Using the DBA Cockpit: IBM DB2 for LUW
Jobs
DBA
April 2010
171
Database Administration Using the DBA Cockpit: IBM DB2 for LUW
Drag and drop an action from the action pad into a calendar cell.
Note
You can also use drag and drop to move actions within the calendar. If you want to
copy an action, keep the CTRL key pressed while using drag & drop.
End of the note.
A dialog box appears with the details of an action.
2. If you chose the first or second option in the first step, you can select the action you
want to schedule from the group box Action Description. In the Planned Start field,
you can enter date and time when the action is to start. If you are entering an action
for today and want to start the action immediately, choose Execute.
If you chose the final option in the first step, the corresponding action is already listed
as default.
The parameters for the required action are displayed under Action Parameters. They
vary depending on the action.
3. On the Action Parameters tab page, change or enter the basic parameters for the
action.
172
April 2010
Database Administration Using the DBA Cockpit: IBM DB2 for LUW
Description
Interval for the action in weeks, days or hours
Recurrence
Pattern
Depending on the selected recurrence pattern, you need to specify the pattern
in more detail, that is the days of the week for weeks and the hours of the day
for a daily period. The action is repeated at the interval you enter. If you select
Once only, the action is executed only once.
Recurrence
Range
Range of time where the action recurs, that is for a specific time interval or for
a limited number of occurrences
Caution
The system warns you if there is a conflict with an existing action, but it does not
prevent you from inserting the new action.
You must decide whether the actions might conflict in terms of database access
or performance. The system does not check for conflicts between actions with
identical start times, but checks for actions within a range of approximately 30
minutes.
5. To schedule the action, choose Add.
Result
The schedule of the DBA Planning Calendar is updated.
April 2010
173
Database Administration Using the DBA Cockpit: IBM DB2 for LUW
Procedure
1. Call the DBA Cockpit
2. Choose
Cockpit.
Jobs
Jobs
3. Double-click a calendar cell or position the cursor on a calendar cell and choose
Delete.
A dialog box appears with a list of all actions to be deleted, where you can decide if
you want to delete only a single occurrence of a recurring action or all occurrences.
4. To delete an action, choose Delete.
174
April 2010
Database Administration Using the DBA Cockpit: IBM DB2 for LUW
If you are sure that the action parameters are correct, you only need to position
the cursor on the action and choose Execute.
Result
The action is rescheduled starting at the current time.
April 2010
175
Database Administration Using the DBA Cockpit: IBM DB2 for LUW
Procedure
Select the action by double-clicking a calendar cell or by positioning the cursor on a cell and
choosing Action Details.
The Display Details of Action dialog box appears. In the Action Description group box,
scheduling information and the return status of the finished action is displayed.
Action Parameters
The system displays tablespaces containing tables and indexes that need to be reorganized.
Recurrence
This tab page only appears if the action is part of a recurring action.
Caution
The timestamp is used to assign logs to scheduled actions. An action log is assigned to the
action that has the same type and the closest corresponding timestamp. In some cases, for
example, if no background work process is available, the action is delayed and even
postponed until after the next scheduling time. Unfortunately, this means that the action log is
then assigned to the next scheduling time and the original scheduling time log is incorrect.
This is the case if the logs for the previous schedules are displayed for the next schedule of
the same type.
End of the caution.
Job Log
The background processing job log generated by the action is displayed under Job Log. All
messages that have been written by the background job are also displayed.
To display long texts, if any are available, double-click a message.
Program Log
Some actions write log files onto the database server. If such a program log exists, it is
displayed on this tab page.
6.2.1.7 Troubleshooting
Since any action scheduled in the DBA Planning Calendar can fail, you must at least check
the more critical actions such as database backups.
Procedure
1. To check whether the background job was executed correctly, consult the job log. If
no job log exists, the background job was probably not started.
For more details, call transaction SM37 and display the job overview.
176
April 2010
Database Administration Using the DBA Cockpit: IBM DB2 for LUW
Note
The names of all jobs scheduled in the DBA Planning Calendar start with DBA. The
job log also tells you whether an external program was started.
End of the note.
2. If you are sure that the background job ran successfully, consult the job log or
program log (if available).
3. After you have corrected the error, execute the action manually using Execute,
making sure there are no conflicts with other scheduled actions.
Note
If you want to completely clean up your jobs, choose the Cleanup pushbutton. This deletes all
jobs, all scheduling data, and all related protocol records. It also resets the DBA Planning
Calendar to its initial state.
We recommend that you clean up after an SAP system upgrade or if jobs have become
corrupt.
End of the note.
April 2010
177
Database Administration Using the DBA Cockpit: IBM DB2 for LUW
By setting the value for Number of Parallel Jobs higher than one, the RUNSTATS job
can be parallelized if there are enough system resources available (for example,
background processes and the appropriate number of processors). Doing so results
in additional jobs that are scheduled by the regular DB13 job and which perform the
RUNSTATS on tables in parallel. The SAP system makes sure that the number of
parallel jobs does not exceed the number of available background processes.
Caution
However, you have to handle the parameter Number of Parallel Jobs with care
because starting more jobs can have a high impact on the overall system
performance even though it significantly reduces the amount of time for the job
execution.
Description
Specifies that the job is called for all tables
All Tables
By default, this parameter is selected.
178
April 2010
Database Administration Using the DBA Cockpit: IBM DB2 for LUW
Note
Only choose this option if you require an up-to-date analysis for
the selected tables.
End of the note.
Analyzes the tables and checks for candidates to be compressed
By default, you should not activate this option for the REORGCHK
job that is scheduled weekly. For performance reasons, only
perform compression checks in larger time-frames.
Defines the minimum size limit for checking how much space can
be saved by compressing the table.
Recommendation
We recommend that you set this limit to prevent too small tables
that do not benefit from row compression from being checked.
End of the recommendation.
Note
You can only specify this value if you have chosen With
Compression Check.
End of the note.
Maximum Runtime
April 2010
179
Database Administration Using the DBA Cockpit: IBM DB2 for LUW
Description
Table Schema
Table
Offline
Keep Dictionary
If you select this option, a compression dictionary is
kept and not rebuilt.
Note
This option is valid only for compressed tables.
End of the note.
180
Online
All Indexes
April 2010
Database Administration Using the DBA Cockpit: IBM DB2 for LUW
Description
Backup Mode
Online
Offline
April 2010
181
Database Administration Using the DBA Cockpit: IBM DB2 for LUW
Backup Type
Full
Incremental
Incremental Delta
Additional Options
Compress
Include Logs
Caution
The following options are available for downward-compatibility reasons and we strongly
recommend that you do not set them:
Number of Buffers
Buffer Size
Parallelism
End of the caution.
Backup Considerations
When performing a backup, you should consider the following:
Regardless of the selected backup mode, you can only restore the database if you
have at least one valid full backup.
To restore the database completely and to bring the system up-to-date, you have to
roll in the log files that were generated after the backup was performed.
182
April 2010
Database Administration Using the DBA Cockpit: IBM DB2 for LUW
The database may be local or remote. The backup, however, remains on the
database server unless a storage management product, for example, Tivoli Storage
Manager (TSM), is used.
After an online backup, DB2 forces the currently active log files to be closed and as a
result they are archived. Thus, an online backup has a complete set of archived log
files that are available for database recovery.
Backup of a Multi-Partition Database
You have to back up partition by partition. Therefore, you have to schedule backup jobs for
each partition.
In a multi partition database system, keep a copy of file db2nodes.cfg with any backup
copy that you take. This copy of file db2nodes.cfg is used as a safety copy in case of
possible damage to the original file.
Note
As of DB2 Version 9.5 for Linux, UNIX, and Windows and higher, a single system view
backup is available that performs the backup for all database partitions in one job. You can
use this option by choosing the value All for the database partition on the Schedule a New
Action dialog box.
End of the note.
Frequency of Backups and Time Required
You should take full database backups on a regular basis, regardless of how often log files
are archived. A current full backup means that there are fewer archived log files that you have
to apply in case of a database recovery. Thus, the amount of time that is required by the
ROLLFORWARD utility to recover the database decreases. In addition, the chance of a log file
not being available (for example, due to data corruption or data loss) also decreases.
To reduce the amount of time that the database is not available, we recommend that you
consider performing online backups.
Note
You can only use an online backup for recovery if the database log files that were created
during the online backup are available.
End of the note.
Advanced Backup Techniques
The following list provides information on advanced backup techniques:
Incremental or delta backups
To reduce the backup and restore time, you can use incremental or delta backups.
For more information, see the IBM manual Data Recovery and High Availability Guide
and Reference.
April 2010
183
Database Administration Using the DBA Cockpit: IBM DB2 for LUW
Operations
Double Store
For more information about these options and how to use them, see the Database
Administration Guide SAP on IBM DB2 for Linux, UNIX, and Windows at:
http://service.sap.com/instguidesnw
Operations Database-Specific Guides
184
April 2010
Database Administration Using the DBA Cockpit: IBM DB2 for LUW
Note
The following section only applies if you are using a near-line storage (NLS) database for
your local BW system.
End of the note.
When data is reloaded from the NLS database into the BW system, it continues to exist in the
NLS database. It is marked, however, as invalidated. To remove this invalidated data and to
reduce the space consumption in the NLS database, you can use the NLS Cleanup job in the
DBA Planning Calendar.
Procedure
1. In the Action Pad of the DBA Planning Calendar, choose NLS Cleanup and drag and
drop it in the calendar frame.
The Schedule a New Action dialog box appears.
2. In the NLS Connection field, choose an existing NLS connection.
3. In the InfoProvider field, choose the name of the InfoProvider.
Caution
If you do not specify an InfoProvider, the cleanup is performed for all InfoProviders.
To run the job for many InfoProviders with similar names, you can use the wildcard
character *.
End of the caution.
April 2010
185
Database Administration Using the DBA Cockpit: IBM DB2 for LUW
More Information
For more information about reloading data from the NLS database into the BW system, see
the separate document Enabling an SAP NetWeaver BW to Use IBM DB2 for Linux, UNIX,
and Windows as Near-Line Storage at:
http://service.sap.com/instguidesnw <Your SAP NetWeaver Release>
Installation - SAP NetWeaver Systems
Installation
Jobs
DBA Log
The following information is displayed on the Jobs: DBA Action Log screen:
Column
Description
Start Date
Start Time
End Date
End Time
Runtime
Runtime in HH:MM:SS
Action
Description of action
Return Code
When you access the DBA log for the first time, the system displays the log information for
the current week.
If you want to display information on previous weeks, double-click a day in the corresponding
week in the calendar control.
186
April 2010
Database Administration Using the DBA Cockpit: IBM DB2 for LUW
If you only want to display certain log records, choose one of the following icons:
Icon
Meaning
Total
Errors
Displays jobs that finished with an error. These jobs should be executed again
Jobs
Note
Alternatively, choose
Planning Calendar.
Goto
April 2010
187
Database Administration Using the DBA Cockpit: IBM DB2 for LUW
Meaning
Specifies the server, where scheduled jobs are executed
Background
Server
Job Priority
If no priority is specified, jobs run with default priority (medium).
Name of the user to execute the job
User
If no user is specified, the dialog user is used.
4. Save your changes.
188
April 2010
Database Administration Using the DBA Cockpit: IBM DB2 for LUW
April 2010
189
Database Administration Using the DBA Cockpit: IBM DB2 for LUW
Note
From each of the above mentioned screens, you can return to the Jobs: SQL Script
Maintenance screen by choosing Back.
End of the note.
Note
As an alternative to the SQL Script Maintenance function, you can also use the DBA
Planning Calendar to execute a script by using the action SQL Script.
End of the note.
190
April 2010
Database Administration Using the DBA Cockpit: IBM DB2 for LUW
7 Alerts
The following sections provide information about alerts:
Alerts: Database System Monitoring in CCMS
Alerts: Configuring Database System Monitoring
Alerts: Alert Monitor
Alerts: Alert Message Log
Alerts: Alert Configuration
April 2010
Availability of the log files necessary to achieve the current state of the
database from the last available backup.
191
Database Administration Using the DBA Cockpit: IBM DB2 for LUW
Configuration parameters
Availability data of tablespaces and containers
Recommendation
We recommend that you check the information displayed on database system
monitoring daily in the alert monitor.
End of the recommendation.
More Information
Alerts: Configuring Database System Monitoring [page 192]
Alerts: Alert Message Log [page 194]
Alerts: Alert Configuration [page 196]
Background monitoring
192
April 2010
Database Administration Using the DBA Cockpit: IBM DB2 for LUW
List
Selected Entries
Edit
Display Change
7. In the SENDER line in the Parameter value column, enter a valid user for your SAP
system.
8. In the RECIPIENT line in the Parameter value column, enter a valid user for your
SAP system who will be notified in the event of an alert.
9. Save your changes.
Activating Background Monitoring
1. Call transaction RZ21.
2. Choose Technical Infrastructure
Dispatching .
Method Execution
Activate Background
Caution
If you do not enable your system for background monitoring, the system will not be
monitored at all.
End of the caution.
Configuring DB2-Specific Parameters
You can specify additional parameters, for example, assignment of logged values for given
alerts.
For more information about specifying these additional parameters, see Alerts: Alert
Configuration [page 196].
Alerts
Alert Monitor
in the
Note
You are able to directly display the message log for a certain alert by double-clicking
the corresponding item.
End of the note.
April 2010
193
Database Administration Using the DBA Cockpit: IBM DB2 for LUW
To start a detailed analysis, call transaction RZ20 and choose SAP CCMS Monitor
Templates Database DB2 Universal Database for NT/UNIX in the tree structure
CCMS monitor sets.
Note
If you want to use transaction RZ20 for remote database systems, choose SAP
CCMS Monitor Templates Remote Database DB2 for Linux, UNIX, and Windows
.
End of the note.
Data Displayed in the Alert Monitor Tree
Regardless of the view variant you choose, information about the following is displayed:
Space management
Performance
Backup/restore
SAP consistency
Health
The checked parameters are displayed in the following colors depending on the type of
message:
Message Type
Color
Information
Green
Warning
Yellow
Error
Red
Note
If a check resulted in a warning or an error, a short text is additionally displayed next to the
parameter.
End of the note.
194
April 2010
Database Administration Using the DBA Cockpit: IBM DB2 for LUW
Objects and Attributes fields enable restrictions to single attributes. Additionally, you can
specify a time period for which the messages are displayed. The messages of the last seven
days are displayed as default.
You can display more detailed information by selecting a line and choosing Details. The
Alerts: Alert Message Details screen appears. If you have selected more than one line, you
can use the page buttons on the screen to navigate between them.
The detail screen is divided into the following group boxes:
Alert Message Details
Complete description of the attribute as displayed in the alert monitor tree
Logged Data
Information on the message, for example, type of error, reported value, and date and
time when it occurred
Description
Description of the type of error and which value or parameter is being monitored
Deleting Alert Messages
You can delete messages from any given time period by selecting a line and choosing
Delete. If you choose Delete without selecting a line, a dialog box appears. In the Date field,
you can specify the date from which you want all messages to be deleted. You can also enter
the category or partition as selection criteria.
It is also possible to delete a selected alert message in the detail screen.
Caution
To ensure that the log table does not get too large, automatic clean-up programs run and
delete entries older than 30 days.
End of the caution.
Displaying Data in the Alert Monitor Tree
1. Call transaction RZ20.
The Alert Monitor Set screen appears.
2. Expand SAP CCMS Monitor Templates and double-click Database.
3. Expand DB2 Universal Database for NT/UNIX.
4. You can display information on:
April 2010
Space management
Performance
Backup/restore
SAP consistency
Health
195
Database Administration Using the DBA Cockpit: IBM DB2 for LUW
The checked parameters are displayed in the following colors depending on the type
of message:
Message Type
Color
Information
Green
Warning
Yellow
Error
Red
Normal State
Warning
Limited operation, for example, with reduced performance
196
April 2010
Database Administration Using the DBA Cockpit: IBM DB2 for LUW
Error
Normal operation is endangered if the error is not corrected.
In each of these group boxes you can configure three values according to which the
system is monitored:
o
Relational operators
You can specify how the defined comparison value should be compared with
the current given value. In addition to the relational operators, you may enter
whether a value should lie inside of or outside of a range of values. A full
colon ( : ) must separate the two values. You may also specify whether or not
discrete values are within a set of explicit values. Semicolons ( ; ) must
separate such values.
Comparison value
You can specify a value, a list of values or a value range depending on the
operator. This value will later be compared with the current measured value.
General (RZ21)
This tab page displays the scheduling data from the basic alert monitor configuration.
The values are displayed here for completeness. It is not possible to make changes
in this transaction. You can make changes using the general maintenance function
(transaction RZ21) in the alert monitor.
Administration
This tab page displays the user that made the last changes and tells you whether this
entry is currently active.
After you have made your changes, save them. Changes take effect immediately.
April 2010
197
Database Administration Using the DBA Cockpit: IBM DB2 for LUW
8 Diagnostics
The following sections provide information on diagnostics:
Diagnostics: Displaying the Audit Log [page 198]
The EXPLAIN Function [page 199]
Diagnostics: Missing Tables and Indexes [page 206]
Diagnostics: Deadlock Monitor [page 207]
Diagnostics: SQL Commands [page 213]
The Index Advisor [page 213]
Diagnostics: Cumulative SQL Trace [page 222]
Diagnostics: DBSL Trace Directory [page 223]
Diagnostics: Trace Status [page 223]
Diagnostics: Database Notification Log [page 224]
Diagnostics: Database Diag Log [page 225]
Diagnostics: DB2 Logs [page 227]
Diagnostics: Dump Directory [page 228]
Diagnostics: DB2 Help Center [page 228]
Diagnostics
Audit Log
The Diagnostics: Audit Log screen appears. The audit log consists of the following
fields:
Field
198
Description
Date
Time
System
Action
Command
April 2010
Database Administration Using the DBA Cockpit: IBM DB2 for LUW
Field
Description
Object
User
From System
3. By default, the system displays all audit entries logged during the current week. If you
want to display another week, double-click a day in the calendar.
To display more than one week, you can change the value in the field Number of
Days.
4. To display the details of an action, select the corresponding action and choose
Details.
In the lower half of the screen, the SQL statements that have been executed are
displayed.
April 2010
199
Database Administration Using the DBA Cockpit: IBM DB2 for LUW
Description
Original Statement
Optimized Statement
Access Plan
EXPLAIN Snapshot
200
April 2010
Database Administration Using the DBA Cockpit: IBM DB2 for LUW
You can:
Display or hide details of an operator by choosing the Open Node or Close Node icon
on the respective node
Expand or collapse subtrees by choosing the Show Child Node icon or the Hide Child
Node icon respectively
View operation details by double-clicking an operator in the graphical tree
Global details about an operator are displayed on the following tab pages:
o
General
Displays global details about the access plan
Predicates (Optional)
Displays filter predicates for the selected operator
Search for operators in a complex statement by choosing Find Nodes for Labels
Open an extra navigation window for complex access plans by choosing Toggle
Navigation Window
Print the graphic by choosing Print the Current Model
Configure the graphic before you print it by choosing Configure the Printout
Display or hide the quick details of all operators by choosing Collapse or Expand
Display global details about the access plan by choosing View Details
Display information about the JNet version used (can be required by SAP Support) by
choosing the help button
Note
For each index used in the access plan, the number of key columns that were really used
within the access plan is displayed. In the appropriate tool tip, the used index field names are
also displayed.
Volatile tables and indexes of volatile tables are marked with an extra volatile label. To
change and re-explain the SQL statement, choose Edit Statement.
End of the note.
April 2010
201
Database Administration Using the DBA Cockpit: IBM DB2 for LUW
202
April 2010
Database Administration Using the DBA Cockpit: IBM DB2 for LUW
The estimated execution time is displayed in timerons (arbitrary IBM time unit). All operators are
numbered, starting with zero. Operators can have the following extensions:
Extension
Description
[O]/[I]
(<Partition>)
Non-volatile tables and indexes of non-volatile tables are displayed in blue. Volatile tables
and indexes of volatile tables are displayed in orange.
For each index used in the access plan, the number of key columns, that means index fields
that were really used within the access plan, are displayed.
For further analysis of the displayed information, you can choose from various options in the
application tool bar. For more information, see EXPLAIN Options [Page 203].
See also:
For more information about the EXPLAIN function, see SAP Note 400938.
For more information, see the IBM documentation: Administration Guide: Chapter 26, SQL
Explain Facility.
Description
Details
Optimizer
April 2010
203
Database Administration Using the DBA Cockpit: IBM DB2 for LUW
DB Catalog
204
April 2010
Database Administration Using the DBA Cockpit: IBM DB2 for LUW
Dictionary
April 2010
205
Database Administration Using the DBA Cockpit: IBM DB2 for LUW
Tree Info
Edit
Source
The Collect function is no longer available. To collect EXPLAIN data, use the
db2support command line tool.
Description
206
April 2010
Database Administration Using the DBA Cockpit: IBM DB2 for LUW
Inconsistent objects
Other checks
Optional indexes
If the database structure has been changed since the last consistency check, choose
Refresh.
For the local system you can:
Create objects that are defined in the ABAP Dictionary, but not found in the database,
by selecting the object and choosing Create on DB
Display the definition of an object by double-clicking the object
April 2010
207
Database Administration Using the DBA Cockpit: IBM DB2 for LUW
Integration
The deadlock monitor is part of the Computing Center Management System (CCMS). You
can access the deadlock monitor by calling the DBA Cockpit and choosing Diagnostics
Deadlock Monitor in the navigation frame of the DBA Cockpit.
Activities
You can perform the following actions:
If it does not exist yet, you first have to create a deadlock monitor.
You analyze deadlock monitor information.
You stop the deadlock monitor by choosing Stop Monitor.
You reset the deadlock monitor by choosing Reset. The recorded data is deleted and
you can restart analyzing new deadlock situations.
You drop the deadlock monitor and all related tables by choosing
Monitor .
Monitor
Drop
Note
If you want to move the deadlock monitor tables into a different tablespace, you must
drop the deadlock monitor and re-create it.
End of the note.
Diagnostics
Diagnostics
Deadlock Monitor
Deadlock Monitor
screen appears.
208
April 2010
Database Administration Using the DBA Cockpit: IBM DB2 for LUW
5. On the second screen of the dialog box, choose the tablespace where the deadlock
monitor tables should reside. The dropdown list displays all the tablespaces that are
currently available.
Recommendation
The deadlock monitor works with an internal buffer that is allocated in the monitor
heap of the database. If this buffer runs out of space or if the deadlock monitor gets
flushed by the user, the recorded data is written to disk.
Depending on the system workload, the deadlock monitor tables can grow up to
several GB in size. We therefore recommend that you use a separate tablespace
managed by DB2s automatic storage management.
End of the recommendation.
6. Choose Create Monitor.
7. To start the deadlock monitor, choose Start Monitor.
Agent <Agent ID> (<Application Name>) waiting for Agent <Agent ID>
Client Process ID: <Process ID>
Host: <Host>
Authorization ID:<DB2 User>
Lock Agent is waiting for:
Table: <Schema>.<Table>
April 2010
209
Database Administration Using the DBA Cockpit: IBM DB2 for LUW
Description
Table Schema
Table Name
Lock Mode
If the Lock Status is Waiting, this is the lock mode that the agent is
intended to request.
Type of object to be locked
Status of lock request:
Lock Status
Granted
Waiting
Lock Escalation
Lock Count
Holds are placed on the locks by cursors registered with the WITH
HOLD clause and some DB2 utilities. Locks with holds are not released
when transactions are committed.
Lock Attributes
Lock attributes
210
April 2010
Database Administration Using the DBA Cockpit: IBM DB2 for LUW
Description
Timestamp when the statement was last executed
Displays the complete statement
Statement Text
If the statement does not fit completely in the column, choose Details or
double-click the row to get the complete statement text.
Isolation
This element shows the isolation value in effect for the statement while it
was being run.
Opt. Level
Optimization level
Query Degree
Statement Type
Dynamic
Static
To display more detailed information, select a row and choose Details. Alternatively, you can
double-click a field in a table row. As a result, the complete statement text is displayed in the
editor window.
In addition, the values bound to the SQL statement at execution time are displayed:
Column
Description
Val. Index
Val. Type
Data
Data
Null
Value is null.
Reopt
April 2010
211
Database Administration Using the DBA Cockpit: IBM DB2 for LUW
Description
Agent ID
Statement Text
If the statement does not fit completely in the column, choose Details
or double-click the row to get the complete statement text.
Isolation
This element shows the isolation value in effect for the statement while
it was being run.
Opt. Level
Optimization level
Query Degree
Statement Type
Dynamic
Static
To display more detailed information, select a row and choose Details. Alternatively, you can
double-click a field in a table row. As a result, the complete statement text is displayed in the
editor window.
In addition, the values bound to the SQL statement at execution time are displayed:
Column
Description
Val. Index
Val. Type
Data
Data
Null
Value is null.
Reopt
212
April 2010
Database Administration Using the DBA Cockpit: IBM DB2 for LUW
Diagnostics
Index Advisor
Activities
You use the index advisor to perform one of the following actions:
To evaluate the SQL statements in the dynamic SQL cache by receiving
recommendations for potential new indexes that might improve the overall system
performance
Based on the current content of the dynamic SQL cache, the DB2 Design Advisor
determines and recommends new indexes that might improve the overall system
performance.
For more information, see Retrieving Index Recommendations on the Dynamic SQL
Cache [page 214].
April 2010
213
Database Administration Using the DBA Cockpit: IBM DB2 for LUW
To determine and recommend new virtual indexes for a single SQL statement
On the basis of a given SQL statement, the DB2 Design Advisor determines and
recommends new indexes that might improve the performance of the query.
For more information, see Retrieving Index Recommendations for a Single SQL
Statement [page 217].
To create user-defined virtual indexes
If you are not satisfied with the recommendations of the DB2 Design Advisor, you
create a virtual index specifically tailored to your requirements. For more information,
see Defining Virtual User-Defined Indexes [page 219].
To include the indexes in the EXPLAIN function when explaining a query
You can check, for example, if the virtually defined indexes would improve the
performance of a query. For more information, see Validating Indexes Using the
EXPLAIN Function [page 220].
214
April 2010
Database Administration Using the DBA Cockpit: IBM DB2 for LUW
Description
Existing (not-used)
Index exists in the system catalog, but for the investigated SQL query it
is not identified as usable by the DB2 optimizer.
Recommended
Index is recommended by the DB2 Design Advisor. Recommended
indexes that do not exist are candidates for new indexes to be created.
Note
Indexes are displayed with the following background colors:
Type
Green
Recommended index that already exists and that the DB2
optimizer would use
White
Existing index that is, however, not appropriate for the
respective SQL statement
Red
Recommended index that does not yet exist
End of the note.
o
Yes
Index exists in the database.
Exists
o
No
Index is a virtual index.
Primary Key
Unique
Duplicates Allowed
Uniqueness
April 2010
215
Database Administration Using the DBA Cockpit: IBM DB2 for LUW
Column
Description
NLEAF
NLEVELS
Yes
Index supports reverse scans.
Rev. Scans
o
No
Index does not support reverse scans.
Columns
Number of columns in the key plus the number of included columns if there
have been any defined
INCLUDEs
Column
Names
3. To retrieve more information about which SQL statement would benefit from the
recommended indexes, select an index from the list.
The details are displayed in the following table in the content detail area:
Column
Description
SQL
Statement
Name of the SQL statement that is in the dynamic package cache and that
would benefit from the index
Frequency
Number of times the statement has been executed since it has entered the
dynamic SQL cache
Cost Saving
Cost Before
Cost After
You can find the complete output of the DB2 design on the Advisor Output tab page.
The complete output also includes the estimated space requirements of each
recommended index.
Note
If you do not want to display indexes that are not used, you can set a filter on the
table accordingly.
End of the note.
216
April 2010
Database Administration Using the DBA Cockpit: IBM DB2 for LUW
Description
Name of the index
o
Existing (not-used)
Index exists in the system catalog, but for the investigated SQL
query it is not identified as usable by the DB2 optimizer.
User-Defined
Index has been virtually defined by the user to determine whether
such an index could be used to improve the query performance.
Those indexes do not exist in the system catalog.
Type
Recommended
Index is recommended by the DB2 Design Advisor.
Recommended indexes that do not exist are candidates for new
indexes to be created.
Note
Indexes are displayed with the following background colors:
Green
Recommended index that already exists and that the DB2
optimizer would use
White
Existing index that is, however, not appropriate for the
respective SQL statement
April 2010
217
Database Administration Using the DBA Cockpit: IBM DB2 for LUW
Column
Description
Red
Recommended index that does not yet exist
End of the note.
o
Yes
Index exists in the database.
Exists
o
No
Index is a virtual index.
Table Name
Schema
Primary Key
Unique
Duplicates Allowed
Uniqueness
NLEAF
NLEVELS
Yes
Index supports reverse scans.
Rev. Scans
o
No
Index does not support reverse scans.
Columns
INCLUDEs
Column Names
Note
If you do not want to display indexes that are not used, you can set a filter on the
table accordingly.
End of the note.
218
April 2010
Database Administration Using the DBA Cockpit: IBM DB2 for LUW
April 2010
219
Database Administration Using the DBA Cockpit: IBM DB2 for LUW
220
April 2010
Database Administration Using the DBA Cockpit: IBM DB2 for LUW
April 2010
221
Database Administration Using the DBA Cockpit: IBM DB2 for LUW
In this case, the Replace Existing Unique Index dialog box appears instead of the Create
Index in ABAP Dictionary dialog box. If you replace the existing index, the system replaces
the index only on database level. This means that no changes are applied to the ABAP
Dictionary. The replacement is automatically scheduled as an SQL script in the DBA Planning
Calendar.
End of the note.
Description
Total Time
Count
Number of executions
Time/Stmt
Table
SQL Statement
If you want to display more detailed information, double-click a line or select a line and
choose Details. The Cumulative SQL Trace - Details screen appears providing information
on:
Statement Information
Displays the complete SQL statement, the application server where the statement was
executed and a list of all ABAP reports in which the statement can be found
Time Histograms
Displays the distribution times of the selected SQL statement
If you want to display the access plan for the execution of a single statement, select a line
and choose Explain. This function provides a detailed analysis of expensive SQL statements.
For more information, see The EXPLAIN Function [Page 202].
222
April 2010
Database Administration Using the DBA Cockpit: IBM DB2 for LUW
To display the ABAP source program where the statement was defined, choose one entry in
the list of ABAP reports. An editor screen appears, which contains the related source.
Since all trace data remains permanently in the database, you should delete
obsolete data before starting a new trace. To do this, choose Delete on the
Diagnostics: Cumulative SQL Trace screen.
For information on how to activate the cumulative SQL trace function, see SAP Note 139286.
Description
DBSL Trace
Trace Level
April 2010
223
Database Administration Using the DBA Cockpit: IBM DB2 for LUW
Cumulative Trace
Trace Level
Number of Entries
Deadlock Trace
Detection Interval
For each trace a status icon shows whether the trace is active or switched off.
In a local system you can activate or deactivate the trace function by clicking the
status icon. You can also maintain trace parameters in a local system.
224
April 2010
Database Administration Using the DBA Cockpit: IBM DB2 for LUW
To avoid unnecessary system workload, you can restrict the amount of data that is processed
on your screen by defining a time range and a severity level according to your requirements.
You can access the Database Notification Log by calling the DBA Cockpit and choosing
Diagnostics
Database Notification Log in the navigation frame of the DBA Cockpit. To
display more details of a log entry, double-click the corresponding log entry.
April 2010
225
Database Administration Using the DBA Cockpit: IBM DB2 for LUW
226
April 2010
Database Administration Using the DBA Cockpit: IBM DB2 for LUW
Diagnostics
DB2
To avoid unnecessary system workload, you can restrict the amount of data that is processed
on your screen by specifying the following in the Filter group box:
A Log Facility
A Record Type
The minimum impact level (Impact)
A time range (Messages From / To)
After you have made your selection, choose the Find pushbutton. Information according to
the specified values is displayed including the appropriate DB2 component. To display
additional details about a log entry, double-click an entry in the list.
More Information
IBM DB2 Administration Guide
April 2010
227
Database Administration Using the DBA Cockpit: IBM DB2 for LUW
228
April 2010
Database Administration Using the DBA Cockpit: IBM DB2 for LUW
9 Workload Management
Workload management is supported as of DB2 Version 9.5 for Linux, UNIX, and Windows. It
lets you distinguish and prioritize different types of work on the database. Workloads identify
the submitters of work by connection properties and assign incoming work to the service
classes. You use service classes to monitor and control resource consumption of the different
workloads.
Note
Setting up workload management is optional. If no workload management has been
configured, the database does not distinguish different types of work as known from previous
DB2 releases.
Accessing Workload Management in the DBA Cockpit
To access workload management, call the DBA Cockpit and choose Workload Management.
The following content areas are available:
Workloads and Service Classes
Critical Activities
SAP WLM Setup Status
Note
If you are using the SAP GUI-based user interface, the application starts in a
separate Web browser. By default, the Workloads and Service Classes content area
appears.
Workload Management in an SAP Environment
If you want to use workload management in an SAP environment, there is a proposed set of
workloads and service classes. To implement this proposed set of workloads and service
classes, use the guided procedure as described in Workload Management: SAP WLM Setup
Status [page 237].
A dedicated workload for each work process type in an SAP environment distinguishes
between different workloads on the database. Each workload is assigned to its own service
class. Therefore, you are able to monitor and prioritize each workload separately. The
following work process types are available in an SAP environment:
ABAP dialog
ABAP batch
ABAP spool
ABAP updater (primary and secondary)
Java (if available)
All work coming from outside the SAP system still resides in the default workload and default
service class of DB2.
April 2010
229
Database Administration Using the DBA Cockpit: IBM DB2 for LUW
The following figure provides an overview of the proposed set of workloads and service
classes:
Workloads
Service Subclasses
SAP_ABAPDIA_WL
SAP_ABAPDIA_SSC
SAP_ABAPBTC_WL
SAP_ABAPBTC_SSC
SAP_ABAPSPO_WL
SAP_ABAPSPO_SSC
SAP_ABAPUPD_WL
SAP_ABAPUPD_SSC
SAP_ABAPUPD2_WL
SAP_ABAPUPD2_SSC
SAP_JAVA_WL
SAP_JAVA_SSC
SAP_DIAGNOSTIC_WL
SAP_DIAGNOSTIC_SSC
Service Superclasses
SAP_SC
Note
The workload SAP_DIAGNOSTIC_WL was created for usage in later releases.
Currently, no work goes into this workload.
End of the note.
Extended Workload Management with the Enhanced Prioritization Scheme
In addition to the workload management setup that is based on the type of work processes,
you can create one additional workload and service class using the enhanced prioritization
scheme. The enhanced prioritization scheme allows you to create one group consisting of
one of the following:
SAP users
SAP transactions
SAP application servers
You can monitor and prioritize this special group separately from the workloads that are
based on types of work processes.
For more information, see Workload Management: SAP WLM Setup Status [page 237].
230
April 2010
Database Administration Using the DBA Cockpit: IBM DB2 for LUW
More Information
Workload Management: Workloads and Service Classes [page 231]
Workload Management: Critical Activities [page 234]
Workload Management: SAP WLM Setup Status [page 237]
Description
Position
Workload Name
Enabled
The following states are possible:
Gree n
April 2010
231
Database Administration Using the DBA Cockpit: IBM DB2 for LUW
Column
Description
The workload is enabled.
Red
Determines whether units of work (UOWs) that are associated with the
workload are rejected or not
Service Class
Description
Name of the service class
State of service class
The following states are possible:
Green
Enabled
The service class is enabled.
Red
The service class is disabled.
232
April 2010
Database Administration Using the DBA Cockpit: IBM DB2 for LUW
Agent Priority
Prefetch Priority
(Remarks)
When you select a single service class in the table, further details for this service class are
displayed. You are able to retrieve monitoring information for all work that has been going on
in that service class. You are also able to change the agent and prefetch priority of this
service class.
The following tab pages are available:
General
Displays details about the service class from the system catalog as well as the
configuration for collecting statistics on the service class
For more information about how to change the agent or prefetch priority for a service
class, see Changing Priorities of Service Classes later in this section.
Statistics
Displays monitoring information that is related to the service class
To switch the time frame for which monitoring data is aggregated, choose the
corresponding menu button indicating the time frame you have chosen. To analyze
slowdowns in the service class, you can also choose between different types of
diagrams:
o
For more information about the histogram types and all other monitoring counters
provided here, see Workload Management Monitor Elements in the IBM DB2 V9.5
Information Center at:
April 2010
233
Database Administration Using the DBA Cockpit: IBM DB2 for LUW
https://publib.boulder.ibm.com/infocenter/db2luw/v9r5/topic/com.ibm.db2.luw.admin.
mon.doc/doc/r0051833.html
Changing Priorities of Service Classes
By changing agent priorities or prefetch priorities of certain service classes, you can distribute
database resources among different types of workloads as follows:
1. On the Service Classes tab page, select one entry from the table.
The General tab page and the Statistics tab page are displayed in the lower half of
the screen.
2. On the General tab page, choose the Change Prioritization pushbutton.
3. To adjust the agent priority or prefetch priority, use one of the following pushbuttons:
o
234
April 2010
Database Administration Using the DBA Cockpit: IBM DB2 for LUW
April 2010
235
Database Administration Using the DBA Cockpit: IBM DB2 for LUW
Threshold Violations
In this screen area, a history of threshold violations on the database system is displayed:
Column
Description
Violation
Partition
Predicate
Violated Value
Application ID
Agent ID
By default, the history of such a threshold violation is kept for two weeks. To delete all
recorded threshold violations, choose the Reset Violation History pushbutton.
For more information about how to change the size of the violation history, see Performance
Warehouse: Configuration [page 92].
Threshold Violation Details
In this screen area, details about a selected threshold violation are displayed.
The following tab pages are available:
General
On this tab page, details about the activity that violated the threshold as well as about
the execution statistics for that particular activity are displayed.
SQL Statement(s)
On this tab page, the SQL statement that was executed within the activity is
displayed. In case of nested statement calls, for example, during the execution of
stored procedures, more than one SQL statement can be available. You can retrieve
additional information about the bind values and further details on a single SQL
statement as follows:
1. On the SQL Statement(s) tab page, select one statement from the list.
2. To retrieve a newly generated access plan of the selected SQL statement,
choose the EXPLAIN pushbutton.
236
April 2010
Database Administration Using the DBA Cockpit: IBM DB2 for LUW
Description
Indicates if the SAP-proposed workloads and service classes
have been set up:
If they have not yet been set up, you can choose the
Setup SAP Workloads and Service Classes pushbutton.
A wizard appears that guides you through the setup
process of the SAP-proposed workloads and service
classes.
If they have been set up, you can modify the enhanced
prioritization scheme, which had been configured on the
database system, by choosing the Modify Enhanced
Prioritization Scheme pushbutton. If you want to drop the
SAP workloads and service classes, choose the Drop
SAP Workloads and Service Classes pushbutton.
Event Monitor
Infrastructure
April 2010
237
Database Administration Using the DBA Cockpit: IBM DB2 for LUW
Area
Description
monitor tables, tablespace SAPEVENTMON was introduced.
To be able to distribute the event monitor tables if the database
system is using the database partitioning feature (DPF),
database partition group SAPEVENTMONGRP was introduced
containing tablespace SAPEVENTMON.
If the database partition layout changes, you must redistribute
the event monitor tables over all partitions by choosing the
Redistribute Event Monitor Infrastructure pushbutton.
Indicates if the WLM event monitors already exist and if the
stored procedure that cleans the event monitor tables was
scheduled. By default, event monitor data is kept for two weeks.
For more information, see Performance Warehouse:
Configuration.
If the WLM event monitors have not yet been created on the
database, you can do so by choosing the Setup WLM Event
Monitors pushbutton. A wizard appears that guides you through
the creation of a WLM event monitors.
Alternatively, you can choose the Activate Event Monitors or
Deactivate Event Monitors pushbutton to control the collection of
monitoring information in the event monitor tables. If you want to
drop the event monitors and the appropriate tables, choose the
Drop WLM Event Monitors pushbutton.
238
April 2010
Database Administration Using the DBA Cockpit: IBM DB2 for LUW
10 BW Administration
The following sections provide information on BW administration:
BW Administration: BW Data Distribution
BW Administration: MDC Advisor
BW Administration
More Information
For more information about the MDC advisor, see the Database Administration Guide: SAP
NetWeaver Business Warehouse 7.0 and Higher Administration Tasks: IBM DB2 for Linux,
UNIX, and Windows at:
http://service.sap.com/instguidesnw
Database-Specific Guides
April 2010
Operations
239
Database Administration Using the DBA Cockpit: IBM DB2 for LUW
240
April 2010
Database Administration Using the DBA Cockpit: IBM DB2 for LUW
A table of all configured NLS connections is displayed providing the following information:
Column
Description
Connection Name Name of the database connection that is used to access the database
DB Name
DB Server
Schema Name
User Name
Name of the database user that is used to connect to the NLS database
To maintain your NLS configurations, you can use the following pushbuttons from the
application toolbar:
To create a new NLS configuration entry, choose Add.
To change an existing NLS configuration, choose Change.
To delete an existing NLS configuration, choose Delete.
To perform these tasks, the standard maintenance screen for the configuration of database
connections [page 16] is used.
In all cases, a dialog box appears with a detailed maintenance screen for the database
connection related to the NLS database. To check the availability of the NLS connection,
choose Test Connection. The result of the connection test appears in the action message
window in the lower half of the screen.
Note
If you create the NLS connection using directly the database connection maintenance
functions without the NLS Configuration screen, the configuration data for the NLS
connection is not created. Make sure you use the NLS Configuration screen.
End of the note.
More Information
Adding a Database Connection [page 17]
Changing a Database Connection [page 19]
Deleting a Database Connection [page 19]
Testing a Database Connection [page 19]
April 2010
241
Database Administration Using the DBA Cockpit: IBM DB2 for LUW
Description
Name of the InfoProvider
Total size of all database tables of the InfoProvider in KB
Note
InfoProvider Size
(KB)
This size information is not newly calculated but retrieved from values
that were previously provided by the REORGCHK for All Tables job
and might therefore not be accurate. If you do not run the
REORGCHK for All Tables job, the displayed value is -1.
For more information, see Scheduling a REORGCHK for All Tables
[page 178].
NLS Connection
NLS Name
242
April 2010
Database Administration Using the DBA Cockpit: IBM DB2 for LUW
This value is only available if the NLS database has been configured
and properly set up for monitoring in the DBA Cockpit.
For more information, see Configuration of Systems for Remote
Monitoring [page 14] and Scheduling a REORGCHK for All Tables
[page 178].
Query Enabled
April 2010
243
Database Administration Using the DBA Cockpit: IBM DB2 for LUW
Caution
If you want to analyze a single NLS table, you cannot navigate to the Space: Single Table
Analysis screen by double-clicking a table cell in the right table of the NLS Details screen.
Instead, proceed as follows:
1. Select the NLS database system from the Currently Selected System dropdown list in
the system landscape toolbar of the DBA Cockpit.
2. In the navigation frame, choose
Space
3. On the Space: Tables and Indexes Details screen, enter the schema and the table
name of the NLS table in the appropriate fields.
End of the caution.
For more information, see Space: Single Table Analysis [page 106].
244
April 2010