Example: SCOPE Command Examples - Advanced SQL Engine - Teradata Database

Database Utilities

Product
Advanced SQL Engine
Teradata Database
Release Number
17.10
Published
July 2021
Language
English (United States)
Last Update
2021-07-27
dita:mapPath
xha1591998860283.ditamap
dita:ditavalPath
xha1591998860283.ditaval
dita:id
B035-1102
lifecycle
previous
Product Category
Teradata Vantageā„¢

The following command examples are representative of how the SCOPE command is normally used:

Command Action
Scope vproc ALL
Select all the AMPs on the system.
Scope vproc 4, vproc 6

or

Scope vproc (4,6)
Select vprocs 4 and 6.
Scope Table 400H 0 400H
Select table 400H 0 400H on all vprocs.
Scope Class (P, JRNL)

or

Scope Class P, Class JRNL
Select all the Permanent and Journal tables on all vprocs.
Scope Class P, Class JRNL, vproc 4
Select all the Permanent and Journal tables on vproc 4.
Scope Cyl (000100000000003C 0001000000000043)
Select cylinders 000100000000003C through 0001000000000043.
All cylinders specified in a single SCOPE command must belong to the same AMP.