Flushing the DBQL Caches Manually - Teradata VantageCloud Lake

Lake - Database Reference

Deployment
VantageCloud
Edition
Lake
Product
Teradata VantageCloud Lake
Release Number
Published
February 2025
ft:locale
en-US
ft:lastEdition
2025-11-21
dita:mapPath
ohi1683672393549.ditamap
dita:ditavalPath
pny1626732985837.ditaval
dita:id
ohi1683672393549
If you need to flush DBQL caches more quickly than the time defined by DBQLFlushRate, take one of the following actions:
  • Reduce the cache size.
  • Issue the FLUSH QUERY LOGGING request:
    FLUSH QUERY LOGGING WITH flush_option [;]

    where flush_option can be:

    Option Name Table Cache Flushed
    ALL DBQLogTbl, DBQLSQLTbl, DBQLStepTbl, DBQLObjTbl, DBQLXMLTbl, DBQLExplainTbl, DBQLXMLLockTbl, DBQLParamTbl,and DBC.ObjectUsage
    ALLDBQL DBQLogTbl, DBQLSQLTbl, DBQLStepTbl, DBQLObjTbl, DBQLXMLTbl, DBQLExplainTbl, DBQLXMLLockTbl, and DBQLParamTbl
    DEFAULT DBQLogTbl
    EXPLAIN DBQLExplainTbl
    LOCK DBQLXMLLockTbl
    OBJECTS DBQLObjTbl
    PARAMINFO DBQLParamTbl
    SQL DBQLSQLTbl
    STEPINFO DBQLStepTbl
    SUMMARY DBQLSummaryTbl
    USECOUNT DBC.ObjectUsage
    XMLPLAN DBQLXMLTbl
    This request:
    • Requires the EXECUTE privilege on DBC.DBQLAccessMacro
    • Is valid in BTET (Teradata) mode only
    • Cannot be part of a multiple-statement request
    • Cannot be used in a stored procedure
      This request is especially recommended when a system is not busy and caches are not filling up and written to Data Dictionary tables as frequently. This request can also flush Teradata dynamic workload management software caches. Only the DBQL options are described here. For the Teradata dynamic workload management software options, see FLUSH QUERY LOGGING .
  • Reset the value in the DBQLFlushRate to a faster rate.
    Changes to DBQLFlushRate also causes the summary/threshold cache to flush, which causes the summary/threshold collection time interval to change.