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

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)