15.10 - Example: Report a DBQL Rule That Logs All Queries for the MultiLoad Utility - 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

Search for a DBQL rule that logs all queries for the MultiLoad application.

     SHOW QUERY LOGGING ON APPLNAME = 'multload';

The system finds a possible match at level 1 of the rules hierarchy and determines that the best fit is that rule, which excludes logging for all users, but logs queries for the MultiLoad application, and returns the DBC.DBQRules row for Rule 6, as follows.

Rule UserName             “ALL”
Rule UserId               00000000
Account                   (Rule for any Account)
ApplicationName            MULTLOAD
WITH NONE (No DBQL Logging)