Example: Report DBQL Rule that Logs Specific User for Account 'finance' - Teradata Vantage

Teradata® VantageCloud Lake

Deployment
VantageCloud
Edition
Lake
Product
Teradata Vantage
Published
January 2023
ft:locale
en-US
ft:lastEdition
2024-12-11
dita:mapPath
phg1621910019905.ditamap
dita:ditavalPath
pny1626732985837.ditaval
dita:id
phg1621910019905

Search for a DBQL rule that logs user3 for the finance account.

SHOW QUERY LOGGING ON user3 ACCOUNT = 'finance';

The system finds possible matches at levels 2, 3, 4 and 5 of the rules hierarchy and determines that the best fit match is at level 4 (because there is no rule for user3 , but level 4 has a rule for ALL users and the finance account, so Vantage defaults to it), and returns the DBC.DBQRules row for Rule 2 as follows.

    Rule UserName   "ALL" (From an ALL rule)
      Rule UserId   00000000
          Account   (Rule for any Account)

       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