Example: Logging Requests on All Users for the Default Table - Advanced SQL Engine - Teradata Database

SQL Data Definition Language Syntax and Examples

Product
Advanced SQL Engine
Teradata Database
Release Number
17.05
Published
January 2021
Language
English (United States)
Last Update
2021-01-22
dita:mapPath
ncd1596241368722.ditamap
dita:ditavalPath
hoy1596145193032.ditaval
dita:id
B035-1144
lifecycle
previous
Product Category
Teradata Vantage™

To monitor the usage of myuser in more detail, add another rule for myuser that logs STEPINFO and OBJECTS.

These requests create query logging rules on all users in the default table and specific logging of steps and database objects for myuser:

     BEGIN QUERY LOGGING ON ALL;
     BEGIN QUERY LOGGING WITH STEPINFO, OBJECTS ON myuser;