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

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.