15.10 - Example: Report a DBQL Rule That Logs a Specific User for All Accounts - Teradata Database

Teradata Database SQL Data Definition Language Syntax and Examples

prodname
Teradata Database
vrm_release
15.10
created_date
December 2015
category
Programming Reference
featnum
B035-1144-151K

Search for a rule that logs user1 for all accounts.

     SHOW QUERY LOGGING ON user1;

The system searches level 4 of the rules hierarchy, finds an exact match, and returns Rule 5, as follows.

    Rule UserName   user1
      Rule UserId   00001244
          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