About Query Bands - Teradata Data Mover

Teradata Data Mover User Guide

Product
Teradata Data Mover
Release Number
16.00
Published
December 2016
Language
English (United States)
Last Update
2018-03-29
dita:mapPath
rdo1467305237457.ditamap
dita:ditavalPath
ft:empty
dita:id
B035-4101
lifecycle
previous
Product Category
Analytical Ecosystem
The query band is a set of user-defined name-value pairs used to uniquely identify a session or transaction in the Teradata Database. Uses of the query band to tag a session or transaction include the following:
  • Grouping requests into arbitrary jobs for accounting and control purposes
  • Asserting a proxy user or proxy role for a trusted session
  • Debugging performance problems
  • Defining system variables

If you define a query band for a job, Data Mover uses that definition for all transactions on the source and target systems for the job.

Examples of the query band definition:
If query band definition is Because it

valid

follows syntactical rules: Job=payroll;Userid=aa1000000;Jobsession=1122;

invalid

uses the = character in the name: Job=payroll;User=id=aa1000000;Jobsession=1122;

The following query band names and values should not be used.
Reserved Query Band Names and Values
Name Value
UtilityName ARC
UtilityDataSize CSPLOAD
BlockCompression FASTEXP
TVSTemperature FASTLOAD
ProxyRole JDBCE
ProxyUser JDBCL
MULTLOAD
TPTEXP
TPTLOAD
TPTUPD
The table below lists what happens in certain scenarios.
Query Band Scenarios
Scenario Description
The query band contains
  • =
  • ;
  • \u0000 (the NULL character)
Returns an error
The query band exceeds 2048 characters, not counting white space padding Returns an error
The query band definition repeats a name in a name-value pair Returns an error
A name-value pair does not end with a ; Returns an error
The name is more than 128 characters Returns an error
The value is more than 256 characters Returns an error
The value is 0 characters Allows the query band definition, but does not pass a value for the associated name