Example: Disabling Query Logging for MultiLoad Jobs - 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™

This request disables logging for MultiLoad jobs, where ALL users are logged:

     BEGIN QUERY LOGGING WITH NONE ON APPLNAME ='MULTLOAD';

To resume logging for MultiLoad jobs, submit the following request and then submit a BEGIN QUERY LOGGING request to enable logging for MultiLoad jobs:

     END QUERY LOGGING ON APPLNAME ='MULTLOAD';

Instead of ending the logging of MultiLoad jobs and then submitting a BEGIN QUERY LOGGING request to begin logging them again, submit a REPLACE QUERY LOGGING request to redefine the existing rule. See “REPLACE QUERY LOGGING."

The WITH NONE specification in the BEGIN QUERY LOGGING request creates a rule in DBC.DBQLRuleTbl. Submit an END QUERY LOGGING request to remove the rule.