15.10 - flush_option - 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

Specifies which database query logging or Teradata workload management cache to flush:

  • ALL
  • ALLDBQL
  • ALLTDWM
  • DEFAULT
  • EXPLAIN
  • LOCK
  • OBJECTS
  • PARAMINFO
  • SQL
  • STATUSAGE
  • STEPINFO
  • SUMMARY
  • TDWMEVENT
  • TDWMEXCEPTION
  • TDWMHISTORY
  • XMLPLAN

ALL is mutually exclusive to all other options.

ALLDBQL is mutually exclusive to all other DBQL options.

ALLTDWM is mutually exclusive to all other TDWM options.

See “FLUSH QUERY LOGGING” in SQL Data Definition Language - Detailed Topics, B035-1184 for the meanings of each option.

Example

This example flushes the caches for all DBQL and TDWM logs.

     FLUSH QUERY LOGGING WITH ALL;

You cannot specify other cache flushing options if you specify ALL.

This example flushes all the caches of DBQL logs but does not flush any of the TDWM caches.

     FLUSH QUERY LOGGING WITH ALLDBQL;

You cannot specify any other DBQL cache flushing options if you specify ALLDBQL.

This example flushes all the caches of TDWM logs but does not flush any of the DBQL caches.

     FLUSH QUERY LOGGING WITH ALLTDWM;

You cannot specify other TDWM cache flushing options if you specify ALLTDWM.