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.00
Published
September 2020
Language
English (United States)
Last Update
2021-01-23
dita:mapPath
wgr1555383704548.ditamap
dita:ditavalPath
lze1555437562152.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;