15.10 - Example: Disabling Query Logging for MultiLoad Jobs - Teradata Database

Teradata Database SQL Data Definition Language Syntax and Examples

prodname
Teradata Database
vrm_release
15.10
created_date
December 2015
category
Programming Reference
featnum
B035-1144-151K

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.