Example: Report DBQL Rule that Logs Specific User for Account 'hr' - Teradata VantageCloud Lake

Lake - Working with SQL

Deployment
VantageCloud
Edition
Lake
Product
Teradata VantageCloud Lake
Release Number
Published
February 2025
ft:locale
en-US
ft:lastEdition
2025-11-21
dita:mapPath
jbe1714339405530.ditamap
dita:ditavalPath
pny1626732985837.ditaval
dita:id
jbe1714339405530

Search for a DBQL rule that logs user1 for the hr account.

SHOW QUERY LOGGING ON user1 ACCOUNT = 'hr';

The system finds possible matches at levels 2, 3, 4 and 5 of the rules hierarchy, determines that level 2 is an exact match, and returns the DBC.DBQRules row for Rule 3 as follows.

    Rule UserName   user1
      Rule UserId   00001244
          Account   HR

       DBQL RULE:
          Explain   F
           Object   F
              SQL   F
             Step   F
          XMLPlan   F
       StatsUsage   F
         UseCount   F
            Param   F
          Verbose   F
     StatsDetails   F
      UtilityInfo   F
          Summary   F
        Threshold   F
  Text Size Limit   200