15.10 - Example: Report a DBQL Rule That Logs All Users for Any Account String - Teradata Database

Teradata Database SQL Data Definition Language Syntax and Examples

Product
Teradata Database
Release Number
15.10
Published
December 2015
Language
English (United States)
Last Update
2018-06-05
dita:mapPath
SQL_DDL_15_10.ditamap
dita:ditavalPath
ft:empty

Search for a rule that logs all users for any account string.

     SHOW QUERY LOGGING ON ALL; 

The system searches level 5 of the rules hierarchy, finds an exact match, and returns Rule 1, 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