Example: Setting the Account to Change the Priority for a Request - Advanced SQL Engine - Teradata Database

SQL Data Definition Language Syntax and Examples

Product
Advanced SQL Engine
Teradata Database
Release Number
17.05
Published
January 2021
Language
English (United States)
Last Update
2021-01-22
dita:mapPath
ncd1596241368722.ditamap
dita:ditavalPath
hoy1596145193032.ditaval
dita:id
B035-1144
lifecycle
previous
Product Category
Teradata Vantage™

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.