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

Security Administration

Product
Advanced SQL Engine
Teradata Database
Release Number
17.05
17.00
Published
September 2020
Language
English (United States)
Last Update
2021-01-23
dita:mapPath
ied1556235912841.ditamap
dita:ditavalPath
lze1555437562152.ditaval
dita:id
B035-1100
lifecycle
previous
Product Category
Teradata Vantageā„¢

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.