Syntax Elements
- HostId
- Logical Host ID associated with a PE or session.
- SessionNo
- Number of the current session. With a given host ID, a session number uniquely identifies a session on the database system. This value is assigned by the host (or client) at logon time.
- LogonPENo
- Vproc number of the PE the session is logged on to, which identifies the PE that has control responsibility for the session. Typically, this is the PE that processed the logon request; but if that PE goes offline, this is the PE to which the session was switched.
- RunVprocNo
- Vproc number of the AMP or PE assigned to process the session requests.
- PartName
- Name of the session partition associated with this session. Following a successful logon request by a session or as part of a connect request, the session identifies the partition with which the user wants the session to be associated. FASTLOAD, Teradata SQL, MONITOR, INTERNAL are examples of valid partition names.
- PEstate
- Current state of the session within the PE. See the MONITOR SESSION PEState field for a list of the PEState values.
- LogonTime
- Date and time portion of the information recorded by Session Control when a session logs on, typically formatted for display as yyyy/mm/dd 99:99:99.99, which represents the year, month, day, hours: minutes: seconds.
- UserId
- User or internal ID of a user for this session. Within the database, UserId is equivalent to Database ID. Typically, UserId is used when the associated record is known to be a user name, and Database ID is used when the associated record is known to be a database. However, UserId can identify either a given user or database name.
- LSN
- Logon Sequence Number (LSN) associated with a session when the session logs on, which identifies a collection of sessions performing a related activity. For example, in a FastLoad job, a user is logged on as a Teradata SQL session and n FastLoad sessions with the same user name. Therefore, n+1 sessions (1 Teradata SQL and n FastLoad) with the same LSN are all associated with the given FastLoad job. To see how the FastLoad job is doing, the user can pick out all sessions reported with the same LSN number.
- UserName
- User name of the session.
- UserAccount
- Current account for the session.
- PECPUsec
- CPU time (in seconds) used in a PE by the associated session for parsing and dispatching requests, accurate to the second.
This value is valid only when associated with Teradata SQL and MONITOR partition sessions.
- XActCount
- Number of explicit and implicit transactions run by the session.
- ReqCount
- Number of requests (Tequel Start Request [TSR] messages) initiated by the session.
- ReqCacheHits
- Number of times this session processed a request using information from the Teradata SQL Parser request cache (number of times there was a request cache hit).
- AMPState
- Current state of the associated session in AMP vprocs in
decreasing priority:
State Description ABORTING Transaction being rolled back; session aborting. BLOCKED Background activity in progress; last request on hold until background activity is completed. ACTIVE Normal, on-going activity. IDLE No work in progress on any AMP. UNKNOWN No recorded activity since monitoring began. - AMPCPUSec
- Current elapsed CPU time, in seconds, used on all AMPs by the associated session for executing requests. For example, for Teradata SQL requests, this is the time spent by the database actively working or rolling back an aborted transaction. This does not include any PDE CPU time spent handling database requests.
- AMPIO
- Current number of logical Reads and Writes issued across all AMPs by the associated session.
- ReqSpool
- Current spool used by current request across all AMPs, expressed in bytes.
- Blk1HostId
- Blk2HostId
- Blk3HostId
- Logical host ID of a session causing a block. This value is derived from equating the transactions causing a database lock conflict to the sessions that issued those transactions. The Blk_x_HostId, in combination with Blk_x_SessNo, uniquely identifies the session that is causing a block.
- Blk1SessNo
- Blk2SessNo
- Blk3SessNo
- Number of the session causing a block. This value is derived from associating the transactions causing a lock conflict to the sessions that issued those transactions. The Blk_x_SessNo, in combination with Blk_x_HostId, uniquely identifies the session causing a block.
- Blk1UserId
- Blk2UserId
- Blk3UserId
- ID of the user or host utility job preventing the session from being granted a lock. The user ID is the only information available about who placed the lock.
- Blk1Lmode
- Blk2Lmode
- Blk3Lmode
- Mode (severity) of the lock involved in causing a
block:
- E = Exclusive
- W = Write
- R = Read
- A = Access
- Blk1Otype
- Blk2Otype
- Blk3Otype
- Type of object whose lock is causing the session described
by the associated row to be blocked:
- D = Database
- T= Table
- R = Row hash
- TP = Table Partition range
- RP = RowHash in Partition range
- RK = RowHash in one partition
- RN = RowKey range
- Blk1ObjDBID
- Blk2ObjDBID
- Blk3ObjDBID
- Unique ID of the database object over which a lock conflict is preventing the session from being granted a lock.
- Blk1ObjTID
- Blk2ObjTID
- Blk3ObjTID
- Unique ID of the table object over which a lock conflict is preventing the session from being granted a lock.
- Blk1Status
- Blk2Status
- Blk3Status
- Status of lock causing a block:
- W= Waiting
- G = Granted
- MoreBlockers
- Indicator of more lock conflicts:
- Blank = Blk x information is a complete list of sessions blocking the session described.
- Asterisk (*) = Additional sessions are blocking the session described.
- LogonSource
- Logon source information. At logon time, this information is optionally supplied by the Teradata Director Program or the Gateway to further identify the physical or logical location of the session, the logon user name, and the interface under which the session was initiated. (For example, the data string may include DBC as the user ID and BTEQ as the interface.)
- HotAmpnCPU
- Where n in [1, 3]: CPU time of the nth highest CPU used AMP during the collection interval.
- HotAmpnCPUId
- Where n in [1, 3]: Vproc ID of the nth highest CPU used AMP for the last session collection interval.
- HotAmpnIO
- Where n in [1, 3]: I/O count of the nth highest I/O used AMP during the collection interval.
- HotAmpnIOId
- Where n in [1, 3]: Vproc ID of the nth highest I/O used AMP for the last session collection interval.
- LowAmpnCPU
- Where n in [1, 3]: CPU time of the nth lowest CPU used AMP during the collection interval.
- LowAmpnCPUId
- Where n in [1, 3]: Vproc ID of the nth lowest CPU used AMP for the last session collection interval.
- LowAmpnIO
- Where n in [1, 3]: I/O count of the nth lowest I/O used AMP during the collection interval.
- LowAmpnIOId
- Where n in [1, 3]: Vproc ID of the nth lowest I/O used AMP for the last session collection interval.
- AvgAmpCPUSec
- Average AMP CPU usage for the last session collection interval. The average is calculated as the sum of CPU usage for all amps participating divided by the number of online AMPs.
- AvgAmpIOCnt
- Average AMP I/O usage for the last session collection interval. The average is calculated as the sum of I/O usage for all AMPs participating divided by the number of online AMPs.
- AmpCount
- Current number of AMPs executing on the associated node.
- TempSpaceUsg
- Total amount, in bytes, of temporary space used by the session.
- ReqStartTime
- Date and time of the current request on the session started, typically formatted for display as yyyy/mm/dd 99:99:99.99, which represents the year, month, day hours: minutes: seconds.
- ReqCPU
- Total CPU usage by the current SQL request on the session on all AMPs. This value contains proper request-level statistics for DBC/SQL sessions running SQL requests only. Ignore the value returned in this field for other types of sessions, such as DBC/SQL sessions linked to a utility job.
- ReqIO
- Total number of accesses by the current SQL request for the session on all AMPs. This value contains proper request-level statistics for DBC/SQL sessions running SQL requests only. Ignore the value returned in this field for other types of sessions, such as DBC/SQL sessions linked to a utility job.
- WlcId
- Workload ID associated with the specified request.
- DontReclassifyFlag
- Flag indicating that the next request on the session is not classified, but uses the workload ID (WlcId) already assigned to the session. This occurs if this is a utility session or a WlcId was assigned to the session using the TDWMAssignWD function or the TDWM WD ASSIGNMENT request. See Teradata Dynamic Workload Management APIs: PM/APIs.
- ProxyUser
- Name of the proxy user in a trusted session.
- CPUDecayLevel
- Current most severe decay level, as reached due to CPU usage.
- IODecayLevel
- Current most severe decay level, as reached due to I/O usage.
- TacticalCPUException
- Number of nodes that encountered a CPU exception.
- TacticalIOException
- Number of nodes that encountered an I/O exception.
- ReqIOKB
- Total logical I/O usage in KB.
- ReqPhysIO
- Number of physical I/Os.
- ReqPhysIOKB
- Physical I/O usage in KB.
- ReqStepsCompletedCnt
- Count of completed steps for the current request. No change in ReqStepsCompletedCnt from the previous Monitor Session collection indicates no new steps completed.
- RedriveProtection
- Redrive protection type:
- ' ' = No Redrive protection. The session does not participate in Redrive and database restarts are not transparent to applications and users.
- MN = Memory-based Redrive protection, no fallback spools
- CurrentRedriveParticipation
- Indicates if the session is participating in Redrive. Sessions that use Redrive can enable or disable the functionality using the REDRIVE reserved query band. Possible values:
- T = Redrive functionality is enabled (database restarts are transparent to applications and users)
- F = Redrive functionality is disabled (database restarts are not transparent to applications and users)
- ReqRedriveSpoolSpace
- Persistent spool space for the current request.
- BlockerSessionCnt
- Total number of blocker sessions for the session. Unlike the MONITOR SESSION request, this field returns only the first three blocker sessions in the record parcel. There are no additional blocker sessions if there are more than three blocker sessions.
- ReqTblOpBytesIn
- The total number of bytes transferred into the database from a foreign server for the current request through one or more table operators.
- ReqTblOpBytesOut
- The total number of bytes transferred out of the database and into a foreign server for the current request through one or more table operators.
- ProxyUserId
- The user ID charged for SPOOL and TEMP space if being charged to the proxy user.
- ZoneId
- The unique identifier of the zone.
- ReqHotAmpCPU
- The CPU time of the highest CPU used AMP during the life of the current request on the session.
- ReqHotAmpCPUId
- Vproc ID of the highest CPU used AMP for the current request.
- ReqHotAmpIO
- I/O count of the highest I/O used AMP during the life of the current request on the session.
- ReqHotAmpIOId
- Vproc ID of the highest I/O used AMP for the current request.
- ReqInvolvedAMPCnt
- The number of AMPs involved in processing the current request.
- ReqFirstRespTime
- Date and time that the first response of the current request on the session is ready. The response may be held to meet the TASM Minimum Response Time.
- ReqLocalQueryStatus
- The current state of the Unified Data Architecture (UDA) query.
- ReqRemoteHostId
- Host ID of the remote system.
- ReqRemoteSessionId
- Session ID of the executing remote query.
- ReqRemoteRequestId
- Request ID of the executing remote query.
- ReqRemoteQueryId
- Query ID of the executing remote query.
- ReqHotAmpSpool
- Spool value of the highest spool used AMP during the life of the current request on the session.
- ReqHotAmpSpoolId
- Vproc ID of the highest spool used AMP for the current request.
- ReqMapNo
- Map number for the largest map the request is using.
- ReqMaxNumMapAMPs
- Number of AMPs in the largest contiguous map used by the request.
- ReqMinNumMapAMPs
- Number of AMPs in the smallest contiguous map used by the request.
- ReqSysDefNumMapAMPs
- Number of AMPs in the system-default map used by the request.
- ReqRemoteHostIp
- Host IP address of the remote system.
- ReqServerName
- Name of the foreign server.
- ReqFlexReleased
- The TDWM Flex Throttle feature detects available system resources, overrides existing workload throttle limits, and automatically releases queries from the delay queue. This minimizes the DBA manually managing the TASM delay queue. Only Workload throttles are overridden; all System level throttles are still honored.
- ReqAdmissionTime
- Returns the date and time when a request is admitted into the system by TDWM.
- QueryID
- Query ID of the session being monitored.
- CollectionTime
- Database time of when the session cache was last refreshed.