17.10 - Specifying Parameters to Narrow the Search of System Views - Advanced SQL Engine - Teradata Database

Teradata Vantage™ - Advanced SQL Engine Security Administration

Product
Advanced SQL Engine
Teradata Database
Release Number
17.10
Release Date
July 2021
Content Type
Administration
Security
Publication ID
B035-1100-171K
Language
English (United States)

You can focus the search of a system view by specifying critical parameters in the SQL statement, for example:

SELECT a.UserName, a.LogDate, a.LogTime, StatementText, LogonSource
FROM DBC.AccessLogV AS a, DBC.LogOnOffX AS b
WHERE a.UserName = 'DBADMIN'
AND a.SessionNo = b.SessionNo
ORDER BY 2, 3 ;

This query displays the SQL statements, along with the logon IP address and date/time information, for a particular username and session number.