MonitorSessionRate - Teradata Database - Teradata Vantage NewSQL Engine

Application Programming Reference

Product
Teradata Database
Teradata Vantage NewSQL Engine
Release Number
16.20
Published
March 2019
Language
English (United States)
Last Update
2019-05-02
dita:mapPath
vwf1492987142269.ditamap
dita:ditavalPath
changebar_rev_16_20_exclude_audience_ie.ditaval
dita:id
B035-1090
lifecycle
previous
Product Category
Teradata Vantage™

Purpose

Returns session rate.

Definition

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

Input Parameters

Parameter Description
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.

An asterisk (*) indicates all users.

SessionNoIn Number of the specified session.

A value of zero indicates all sessions.

Usage Notes - MonitorSessionRate

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.

Return Value

This function returns the collection rate (that is, the duration of the collection period in seconds).

Example: Using MonitorSessionRate

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