16.10 - Example: Investigating Proxy User Activity in DBC.QryLogV - Teradata Database

Teradata Database Security Administration

Product
Teradata Database
Release Number
16.10
Release Date
June 2017
Content Type
Administration
Security
Publication ID
B035-1100-161K
Language
English (United States)
SEL ProxyUser(FORMAT 'X(10)'), ProxyRole(FORMAT 'X(10)'), querytext(FORMAT 'X(40)')
from DBC.QryLogV
where username='eCRM' order by StartTime, queryid;

 *** Query completed. 4 rows found. 3 columns returned.
 *** Total elapsed time was 1 second.

ProxyUser  ProxyRole  QueryText
---------- ---------- --------------------------------------------------------------
DG708      Web        SET QUERY_BAND = 'PROXYUSER=DG708’
DG708      Web        SEL * FROM table5;
DG708      Web        INS table5(c1Val,c2Val);
DG708      Web        SEL * FROM table5;
+--------+--------+--------+--------+--------+---------+--------+------+------+------

For more information on Query Logging, see Database Administration.