HPlogo ALLBASE/SQL Performance and Monitoring Guidelines: HP 9000 Computer Systems > Chapter 6 Getting Started With SQLMON

Monitoring Tasks

» 

Technical documentation

Complete book in PDF
» Feedback

 » Table of Contents

 » Index

This section summarizes the monitoring tasks you can perform with SQLMON, giving the appropriate SQLMON screens and fields for each task. The tasks fall into the following categories:

  • disk usage

  • memory usage

  • tables

  • hash structures

  • indexes and referential constraints

  • transactions

  • sessions

  • I/O

  • logging

  • locking

For example, if you are interested in checking the size of a DBEFile, look at the tasks listed in Table 6-4 “Monitoring Disk Usage”. To perform the task, go to the screen listed in the Screens column and the fields listed in the Fields column. If you need more information on a screen's fields, see the corresponding section in the "SQLMON Screen Reference" chapter.

Table 6-4 Monitoring Disk Usage

TaskScreensFields
Determining log file capacityOverview

LOG FULL %

Used LgPgs

Max LgPgs

Determining DBEFile capacity in a DBEFileSetStatic DBEFile

DBEFILE

DBEFILE FULLNESS %

USED PAGES

MAX PAGES

Identifying DBEFile storage restrictionsStatic DBEFile

DBEFILE

TYP

BD

Determining DBEFileSet capacityStatic DBEFile

DBEFILESET

DBEFILESET FULLNESS %

FSUSED PAGES

FSMAX PAGES

Determining the size of database objects in a DBEFileSetStatic Size

DBEFILESET

OWNER.TABLE

TABLE PAGES

INDEX PAGES

TOTAL PAGES

Identifying detached DBEFiles Static DBEFile

DBEFILESET FULLNESS

DBEFILE FULLNESS

 

Table 6-5 Monitoring Memory Usage

TaskScreensFields
Identifying the size of the data buffer poolIOTOTAL DATA BUFFER PAGES
Identifying the size of the log buffer poolIOTOTAL LOG BUFFER PAGES
Determining the size of the runtime control blockOverview

RUNTIME CB %

Used Pages

Max Pages

Resolving memory problems

Lock Memory

Lock TabSummary

all fields

(hint: type HELP LOCK MEMORY TUNE 4 for more information)

 

Table 6-6 Monitoring Tables

TaskScreensFields
Identifying tables in a DBEFileSetStatic

DBEFILESET

OWNER.TABLE

Identifying tables stored in TurboIMAGE data setsStatic

OWNER.TABLE

IMAGE

Determining a table typeStatic

OWNER.TABLE

TYPE

Determining the number of indexes and referential constraints on a tableStatic

OWNER.TABLE

NUM INDEXES

Determining the size of a table

Static Size

Static Cluster

OWNER.TABLE

TABLE PAGES

Determining the number of rows in a table

Static Indirect

Static Cluster

OWNER.TABLE

TOTAL ROWS

Determining the percentage of indirect rows in a tableStatic Indirect

OWNER.TABLE

TABLE INDIRECT ROW %

Comparing the number of locks by tableLock TabSummary

OWNER.TABLE

G

TOTAL LOCKS

Identifying the locks on a tableLock

OWNER.TABLE

G

PAGE/ROW ID

LOCK QUEUE

(hint: use SET LOCKTABFILTER)

Monitoring table I/O

SampleIO Tables

SampleIO TabIndex

OWNER.TABLE

SWAPIN

SWAPOUT

TOTALIO

Identifying the tables currently residing in the data buffer poolSampleIO Objects

OWNER.TABLE

CURRENT PGS

 

Table 6-7 Monitoring Hash Structures

TaskScreensFields
Identifying hashed tables in a DBEFileSetStatic

DBEFILESET

OWNER.TABLE

HASH

Identifying hashed tables in a DBEFileSetStatic Hash

DBEFILESET

OWNER.TABLE>

(hint: only hashed tables are displayed)

Monitoring primary pagesStatic Hash

PRIMPAGES

PRIMDATA

PRIMOVERF

Monitoring overflow pagesStatic Hash

OVERPAGES

OVERFLOW CHAIN LNGTH

MAXOVERFLOW

AVGOVERFLOW

Identifying DBEFiles that are bound to hashed tablesStatic DBEFile

DBEFILE

BD

 

Table 6-8 Monitoring Indexes and Referential Constraints

TaskScreensFields
Identifying the indexes and referential constraints on a table or in a DBEFileSet

Static Size

Static Cluster

DBEFILESET

OWNER.TABLE

Determining the number of indexes and referential constraints on a table or in a DBEFileSetStatic

DBEFILESET

OWNER.TABLE

NUM INDEXES

Determining the size of an index or a referential constraintStatic Size

OWNER.TABLE

INDEX PAGES

Identifying locks on a referential constraintLock

OWNER.TABLE/CONSTRAINT

G

PAGE/ROW ID

LOCK QUEUE

(use SET LOCKTABFILTER)

Monitoring index and referential constraint I/O

SampleIO Indexes

SampleIO TabIndex

OWNER.TABLE[/INDEX,CONSTRAINT]

SWAPIN

SWAPOUT

TOTALIO

Identifying the indexes and referential constraints currently residing in the data buffer poolSampleIO Objects

OWNER.TABLE[/INDEX,CONSTRAINT]

CURRENT PGS

Determining the efficiency of index scan over an index or referential constraintStatic Cluster

CCOUNT

UNLOAD/LOAD SUGGESTED %

 

Table 6-9 Monitoring Transactions

TaskScreensFields
Determining the transaction identifier

Overview Program

Overview Session

Lock Session

Lock Object

Lock Impede

Lock TabSummary

XID
Determining the isolation level

Overview Program

Overview Session

Lock Session

Lock Object

Lock Impede

Lock TabSummary

ISO
Determining the transaction priority

Overview Program

Overview Session

Lock Session

Lock Object

Lock Impede

Lock TabSummary

PRI
Determining the transaction label

Overview Program

Overview Session

Lock Session

Lock Object

Lock Impede

Lock TabSummary

LABEL
Determining the maximum number of active transactions

Overview

Load

MAX XACT
Determining the current number of active transactions

Overview

Load

ACTIVE XACT
Determining the number of active transactions waiting for a lock

Overview

Load

IMPEDE XACT
Determining the number of transactions waiting for a transaction slotLoadTHROTTLE WT
Monitoring throughput

Load

Load Session

Load Program

BEGIN WORK

COMMIT WORK

ROLLBK WORK

DEADLOCK

 

Table 6-10 Monitoring Sessions

TaskScreensFields
Determining the number of sessions

Overview

Overview Session

Overview Program

IO

IO Data Session

IO Data Program

IO Log Session

IO Log Program

Load

Load Session

Load Program

SESSIONS
Determining the process identifier of a sessionOverview Session

PID

LOGIN NAME

PROGRAM NAME

Determining the transaction information of a session

Overview Session

Lock Session

Lock Impede

Lock TabSummary

XID

ISO

PRI

LABEL

Identifying the program being run by a session

Overview Program

Lock Session

Lock Impede

Lock TabSummary

PID

LOGIN NAME

PROGRAM NAME

Identifying the sessions running a particular programOverview Program

PID

LOGIN NAME

PROGRAM NAME

Identifying all waiting sessions

Overview Session

Overview Program

PID

LOGIN NAME

STATUS

Monitoring session lock activityLock SessionAll fields
Monitoring session data buffer I/O

IO Data Session

IO Data Program

All fields
Monitoring session log buffer I/O

IO Log Session

IO Log Program

All fields
Comparing session throughput

Load

Load Session

Load Program

BEGIN WORK

COMMIT WORK

ROLLBK WORK

DEADLOCKS

 

Table 6-11 Monitoring I/O for Data

TaskScreensFields
Identifying the size of the data buffer poolIOTOTAL DATA BUFFER PAGES
Monitoring data buffer I/O

IO

IO Data Session

IO Data

Program

BUFF ACCESS

DATA DISK RD

DATA DISK WR

MISS RATE

Monitoring DBEFile I/OSampleIO

DBEFILE

SWAPIN

SWAPOUT

TOTALIO

Monitoring table I/O

SampleIO Tables

SampleIO TabIndex

OWNER.TABLE

SWAPIN

SWAPOUT

TOTALIO

Monitoring index and referential constraint I/O

SampleIO Indexes

SampleIO TabIndex

INDEX,CONSTRAINT

SWAPIN

SWAPOUT

TOTALIO

Determining the number of data buffer pages occupied by an objectSampleIO ObjectCURRENT PGS
Determining the percentage of indirect rows in a tableStatic Indirect

OWNER.TABLE

TABLE INDIRECT ROW %

Determining the efficiency of an index scan over an index or referential constraintStatic Cluster

CCOUNT

UNLOAD/LOAD SUGGESTED %

 

Table 6-12 Monitoring I/O for Logging

TaskScreensFields
Identifying the size of the log buffer poolIOTOTAL LOG BUFFER PAGES
Monitoring log buffer I/O

IO

IO Log Session

IO Log Program

LOG BUFF WR

LOG DISK RD

LOG DISK WR

Monitoring checkpointsIOCHECKPOINTS

 

Table 6-13 Additional Monitoring for Logging

TaskScreensFields
Determining log file capacityOverview

LOG FULL %

Used LgPgs

Max LgPgs

Identifying log mode

Overview

IO

Archive Mode
Detecting logging errorsOverviewLOG ERRORS

 

Table 6-14 Monitoring Locking

TaskScreensFields
Determining the size of a runtime control blockOverview

RUNTIME CB %

Used Pages

Max Pages

Monitoring DBEnvironment lock activityLoad

LOCK REQTS

LOCK WAITS

LOCK WAIT %

Comparing the number of locks by tableLock TabSummary

OWNER.TABLE

G

TOTAL LOCKS

Comparing the number of locks by sessionLock Memory

TABLE

PAGE

ROW

TOTAL

MAXTOTAL

Identifying locks on a table or referential constraintLock

OWNER.TABLE[/CONSTRAINT]

G

PAGE/ROW ID

LOCK QUEUE

(hint: use SET LOCKTABFILTER)

Determining the number of sessions that are accessing a particular lockLockLOCK QUEUE
Determining the number of transactions that are waiting for locks

Overview

Load

IMPEDE XACT
Determining the isolation level of a transaction

Overview Program

Overview Session

Lock Impede

Lock Object

Lock TabSummary

Lock Session

XID

ISO

PRI

LABEL

Identifying locks for which sessions are waitingLock

all fields

(hint: use SET LOCKFILTER)

Identifying sessions that have obtained a particular lockLock Object

GWC

MOD

PID

Identifying sessions that are waiting to obtain (or to convert) a particular lockLock Object

GWC

MOD

NEW

PID

Identifying lock activity for a particular sessionLock Sessionall fields
Identifying locks obtained by a particular session that are causing other sessions to waitLock Impedeall fields
Detecting deadlocks

Load

Load Session

Load Program

DEADLOCKS
Resolving deadlocks

Lock

Lock Object

Lock Impede

all fields

(hint: type HELP LOCK TUNE 13 for more information)

 

Feedback to webmaster