MonitorSessionRate Function | Application Programming Reference | Teradata Vantage - MonitorSessionRate - Teradata Vantage - Analytics Database

Application Programming Reference

Deployment
VantageCloud
VantageCore
Edition
VMware
Enterprise
IntelliFlex
Product
Analytics Database
Teradata Vantage
Release Number
17.20
Published
June 2022
ft:locale
en-US
ft:lastEdition
2025-11-21
dita:mapPath
qld1628112131956.ditamap
dita:ditavalPath
qkf1628213546010.ditaval
dita:id
ajo1472244909562
lifecycle
latest
Product Category
Teradata Vantageā„¢

Returns session rate (duration of the collection period in seconds).

Syntax

REPLACE FUNCTION SYSLIB.MonitorSessionRate (
  HostIdIn SMALLINT,
  UserNameIn TD_ANYTYPE,
  SessionNoIn INTEGER
) RETURNS SMALLINT
  ...
;

Syntax Elements

HostIdIn
Logical ID of a host (or client) with sessions logged on.
A value of -1 indicates all hosts.
UserNameIn
User name of the specified sessions.
A value of -1 indicates all hosts.
SessionNoIn
Number of the specified session.
A value of zero indicates all sessions.

Usage Notes

Before you monitor the collection rate, you use the SetSessionRate function to set the collection rate for updating session-level statistics in memory.

The MonitorSessionRate function provides similar functionality to the PMPC Monitor Session request. For information about this interface, see MONITOR SESSION.

Example: Using MonitorSessionRate

SELECT MonitorSessionRate(1,'*',0);

Result:

 *** Query completed. One row found. One column returned.
 *** Total elapsed time was 7 seconds.
MonitorSessionRate(1, '*', 0)
-----------------------------
                          60