16.20 - Example: Setting the Account to Change the Priority for a Request - Teradata Database - Teradata Vantage NewSQL Engine

Teradata Vantage™ SQL Data Definition Language Syntax and Examples

Product
Teradata Database
Teradata Vantage NewSQL Engine
Release Number
16.20
Published
March 2019
Content Type
Programming Reference
Publication ID
B035-1144-162K
Language
English (United States)
Last Update
2019-05-24

User B is submitting a series of large data mining queries using the user default account ‘$L0+DMIN&S&D&H’. The user wants to change to an account with a higher priority to run an emergency report for his manager.

SET SESSION ACCOUNT=‘$H0+EMRG&S&D&H’ FOR REQUEST

After running the emergency report, the account reverts to the default for User B, who continues with low priority data mining.

Changing the account string changes the access level for the session or request only if different workload management rules apply to the new account.