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.05
Published
January 2021
Language
English (United States)
Last Update
2021-01-22
dita:mapPath
ncd1596241368722.ditamap
dita:ditavalPath
hoy1596145193032.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)