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.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™

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.