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

Teradata Vantage™ - SQL Data Definition Language Syntax and Examples

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

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;