Query Banding for Pooled Sessions - Teradata Database

SQL Data Definition Language Syntax and Examples

Deployment
VantageCloud
VantageCore
Edition
VMware
Enterprise
IntelliFlex
Product
Teradata Database
Release Number
20.00
Publication Date
June 2025
Content Type
SQL Reference
Publication ID
B035-1144-200K
ft:locale
en-US
ft:lastEdition
2026-09-23
dita:mapPath
mbm1747160743883.ditamap
dita:ditavalPath
jlp1749501702948.ditaval
ft:sourceId
dita
dita:id
mdr1472255012272
lifecycle
latest

In a pooled session, the middle-tier application logs on to the system as a database user and establishes a connection pool. The application has a single set of database privileges. All application end users assume the identity and database privileges of the application.

You can use query banding to:
  • Identify end users, who otherwise all appear to the system as the application user.
  • Record resource accounting information, such as job number, application, or report type.
  • Determine session or request level access priority, by using the query bands as workload management rule criteria.