15.10 - Example: Logging Statistics Usage for All Requests by a User - Teradata Database

Teradata Database SQL Data Definition Language Syntax and Examples

Product
Teradata Database
Release Number
15.10
Published
December 2015
Content Type
Programming Reference
Publication ID
B035-1144-151K
Language
English (United States)

This request logs statistics usage data for all DML requests executed by user_1:

     BEGIN QUERY LOGGING WITH STATSUSAGE ON user_1;

This request logs statistics usage data and detailed query plan information for all DML and selected DDL requests executed by user user_1:

     BEGIN QUERY LOGGING WITH XMLPLAN, STATSUSAGE ON user_1;