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

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)