MonitorSQLText Syntax - Teradata VantageCloud Lake

Lake - Monitor Resources and Performance

Deployment
VantageCloud
Edition
Lake
Product
Teradata VantageCloud Lake
Release Number
Published
February 2025
ft:locale
en-US
ft:lastEdition
2025-11-21
dita:mapPath
wyu1683671641248.ditamap
dita:ditavalPath
pny1626732985837.ditaval
dita:id
wyu1683671641248
REPLACE FUNCTION SYSLIB.MonitorSQLText (
  HostIdIn SMALLINT,
  SessionNoIn INTEGER,
  RunVprocNo SMALLINT
) RETURNS TABLE (
    HostId SMALLINT,
    SessionNo INTEGER, 
    SeqNum SMALLINT,
    SQLTxt VARCHAR(31000) CHARACTER SET UNICODE
  )
  ...
;

Syntax Elements

HostIdIn
Logical ID of a host (or client) with sessions logged on.
SessionNoIn
Session number of the SQL to monitor.
RunVprocNo
PE vproc number where the session runs.
HostId
Host ID of the SQLtext.
SessionNo
Session number of the SQLtext.
SeqNum
Sequence number of the row. For example, if the SQL text exceeds 31,000 bytes, the system returns multiple rows.
SQLTxt
SQL text of the running request.