IBM Books

Number of Successful Fetches


Snapshot Information Level
Application

API Structure(s)
sqlm_stmt

Monitor Group
Statement

Resettable

Yes

 

Event Information Level
Statement

API Structure(s)
sqlm_stmt_event

 

API Element Name
Element Type

fetch_count
counter

 

Description:  The number of successful fetches performed on a specific cursor.

Usage:  You can use this element to gain insight into the current level of activity within the database manager.

For performance reasons, an event is not generated for every FETCH statement. An event is only generated under the following conditions:

If, for example, your application performs 100 fetches and the first 99 fetches are successful, you will receive two statement events:

If, for example, your application performed 100 successful fetches followed by a CLOSE CURSOR, you will receive two statement events:

[ Top of Page | Table of Contents | Glossary | Index ]

[ DB2 List of Books | Search the DB2 Books ]