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

Teradata Database SQL Data Definition Language Syntax and Examples

prodname
Teradata Database
vrm_release
15.10
created_date
December 2015
category
Programming Reference
featnum
B035-1144-151K

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;