16.20 - flush_option - Teradata Database - Teradata Vantage NewSQL Engine

Teradata Vantage™ SQL Data Definition Language Syntax and Examples

Product
Teradata Database
Teradata Vantage NewSQL Engine
Release Number
16.20
Published
March 2019
Language
English (United States)
Last Update
2019-05-24
dita:mapPath
wkf1512081455740.ditamap
dita:ditavalPath
TD_DBS_16_20_Update1.ditaval
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
  • USECOUNT
  • 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.

For more information, see “FLUSH QUERY LOGGING” in Teradata Vantage™ SQL Data Definition Language Detailed Topics , B035-1184

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.