MonitorSQLSteps Example - 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
select StepNum (format '99') Num,
Confidence (format '9') C,
EstRowCount (format '-99999999') ERC,
ActRowCount (format '99999999') ARC,
EstRowCountSkew (format '-99999999') ERCS,
ActRowCountSkew (format '99999999') ARCS,
EstRowCountSkewMatch (format '-99999999') ERCSM,
ActRowCountSkewMatch (format '99999999') ARCSM,
EstElapsedTime (format '99999') EET,
ActElapsedTime (format '99999') AET,
SQLStep
from table (MonitorSQLSteps(1, 1164, 30719)) as t2;
 *** Query completed. 33 rows found. 11 columns returned.
 *** Total elapsed time was 3 seconds.
Num C       ERC      ARC      ERCS     ARCS     ERCSM    ARCSM   EET   AET SQLStep
--- - --------- -------- --------- -------- --------- -------- ----- ----- ------------------------------------------------------------
 01 0  00000000 00000004  00000000 00000000  00000000 00000000 00000 00000 First, lock [DBId=0x0407]. for exclusive.
 02 0  00000000 00000001  00000000 00000001  00000000 00000001 00000 00000 Next, we lock DBC.[TBId=0x0130] for write on a row hash.
 03 0  00000000 00000001  00000000 00000001  00000000 00000001 00000 00000 We lock DBC.DBSpace for write on a row hash.
 04 0  00000000 00000001  00000000 00000001  00000000 00000001 00000 00000 We lock DBC.Parents for write on a row hash.
 05 0  00000000 00000001  00000000 00000001  00000000 00000001 00000 00000 We lock DBC.Owners for write on a row hash.
 06 0  00000000 00000001  00000000 00000001  00000000 00000001 00000 00000 We lock DBC.AccessRights for write on a row hash.
 07 0  00000000 00000004  00000000 00000000  00000000 00000000 00000 00000 We lock DBC.[TBId=0x0130] for write, we lock DBC.DBSpace for write, we lock DBC.Parents for write, we lock DBC.Owners for wri
te, we lock DBC.DBase for write on a row hash, we lock DBC.DBase for write on a row hash, we lock DB
 08 0  00000000 00000000  00000000 00000001  00000000 00000001 00000 00000 We do a Single-AMP ABORT test from DBC.DBase by way of the unique primary index. This step begins a parallel block of steps.
 08 0  00000000 00000000  00000000 00000001  00000000 00000001 00000 00000 We do a Single-AMP ABORT test from DBC.[TBId=0x0138] by way of the unique primary index. This step is performed in parallel.
 08 0  00000000 00000000  00000000 00000001  00000000 00000001 00000 00000 We do a Single-AMP ABORT test from DBC.DBase by way of the unique primary index. This step is performed in parallel.
 08 0  00000000 00000000  00000000 00000001  00000000 00000001 00000 00000 We do a Single-AMP ABORT test from DBC.DBase by way of the unique primary index. This step is performed in parallel.
 08 0  00000000 00000001  00000000 00000001  00000000 00000001 00000 00000 We do an INSERT step into table DBC.DBase. This step is performed in parallel.
 08 0  00000000 00000001  00000000 00000001  00000000 00000001 00000 00000 We do a Single-AMP UPDATE from DBC.DBase by way of the unique primary index. This step is performed in parallel.
 08 0  00000000 00000000  00000000 00000001  00000000 00000001 00000 00000 We do a Single-AMP RETRIEVE step from DBC.Parents by way of the primary index into Spool 54, which is redistributed by hash c
ode to few AMPs. This step ends a parallel block of steps.
 09 0  00000000 00000000  00000000 00000000  00000000 00000000 00000 00000 We do a MERGE into table DBC.Owners from Spool 54.
 10 0  00000000 00000001  00000000 00000001  00000000 00000001 00000 00000 We do an INSERT step into table DBC.Owners. This step begins a parallel block of steps.
 10 0  00000000 00000000  00000000 00000001  00000000 00000001 00000 00000 We do a Single-AMP RETRIEVE step from DBC.Parents by way of the primary index into Spool 55, which is redistributed by hash c
ode to few AMPs. This step ends a parallel block of steps.
 11 0  00000000 00000000  00000000 00000000  00000000 00000000 00000 00000 We do a MERGE into table DBC.Parents from Spool 55.
 12 0  00000000 00000001  00000000 00000001  00000000 00000001 00000 00000 We do an INSERT step into table DBC.Parents. This step begins a parallel block of steps.
 12 0  00000000 00000001  00000000 00000001  00000000 00000001 00000 00000 We do an INSERT step into table DBC.Accounts. This step is performed in parallel.
 12 0  00000000 00000025  00000000 00000000  00000000 00000000 00000 00000 We do a Single-AMP RETRIEVE step from DBC.AccessRights accessing a single partition by way of the primary index into Spool 56
, which is redistributed by hash code to few AMPs. This step ends a parallel block of steps.
 13 0  00000000 00000021  00000000 00000000  00000000 00000000 00000 00000 We do a Single-AMP RETRIEVE step from DBC.AccessRights accessing a single partition by way of the primary index into Spool 56
, which is redistributed by hash code to few AMPs. This step begins a parallel block of steps.
 13 0  00000000 00000000  00000000 00000000  00000000 00000000 00000 00000 We do an All-AMPs RETRIEVE step from DBC.AccessRights by way of an all-rows scan into Spool 57, which is redistributed by has
h code to all AMPs. This step ends a parallel block of steps.
 14 0  00000000 00000046  00000000 00000000  00000000 00000000 00000 00000 We do an All-AMPs JOIN step from DBC.Owners by way of an all-rows scan, which is joined to Spool 57. table Owners and Spool 5
7 are joined using a merge join . The result goes into Spool 56, which is redistributed by hash code
 15 0  00000000 00000046  00000000 00000000  00000000 00000000 00000 00000 We do a MERGE into table DBC.AccessRights from Spool 56. This step begins a parallel block of steps.
 15 0  00000000 00000001  00000000 00000001  00000000 00000001 00000 00000 We do an INSERT step into table [TBId=0x0130]. This step ends a parallel block of steps.
 16 0  00000000 00000000  00000000 00000000  00000000 00000000 00000 00000 We flush the DISKSPACE and AMPUSAGE caches.
 17 0  00000000 00000000  00000000 00000000  00000000 00000000 00000 00000 We do an All-AMPs ABORT test from DBC.DBSpace by way of the unique primary index.
 18 0  00000000 00000004  00000000 00000000  00000000 00000000 00000 00000 We do an INSERT step into table DBC.DBSpace.
 19 0  00000000 00000004  00000000 00000000  00000000 00000000 00000 00000 We do an All-AMPs UPDATE from DBC.DBSpace by way of the unique primary index.
 20 0  00000000 00000000  00000000 00000000  00000000 00000000 00000 00000 We flush the DISKSPACE and AMPUSAGE caches.
 21 0  00000000 00000001  00000000 00000001  00000000 00000001 00000 00001 We Spoil the parser's dictionary cache for the database.
 22 0  00000000 00000001  00000000 00000001  00000000 00000001 00000 00000 We send out an END TRANSACTION step to all AMPs involved in processing the request.