This section describes how to track query behavior by using Database Query Logging (DBQL). It also describes how to maintain DBQL logs, archive DBQL data, and shred the lock plan information in the XML Lock Log table, DBQLXMLLockTbl. For information about DBQL macros see DBQL Macros. For a list of DBQL tables, along with some brief information about them, see DBQL Tables. For a list of DBQL views, along with some brief information about them, see DBQL Views. For greater details about the DBQL views, see "Views Reference" in Teradata Vantage™ - Data Dictionary, B035-1092.