15.00 - Restrictions on Creating a Secondary Index on a Table Concurrent With Dynamic AMP Sample Emulation on That Table - Teradata Database

Teradata Database SQL Data Definition Language Detailed Topics

Product
Teradata Database
Release Number
15.00
Content Type
Programming Reference
Publication ID
B035-1184-015K
Language
English (United States)

Restrictions on Creating a Secondary Index on a Table Concurrent With Dynamic AMP Sample Emulation on That Table

You cannot create a secondary index for a table while that table is subject to dynamic AMP sample emulation. Otherwise, the request aborts and the system returns an error to the requestor.

To disable dynamic AMP sampling, use the DIAGNOSTIC HELP SAMPLES statement (see “DIAGNOSTIC HELP SAMPLES” in SQL Data Manipulation Language) to determine which samples have been set, then use the DIAGNOSTIC SET SAMPLES statement (see “DIAGNOSTIC SET SAMPLES” in SQL Data Manipulation Language) to disable them.

If you want to use dynamic AMP sampling on the table with a new secondary index, you must use the following general procedure:

1 Create the new secondary index on the table on the target system.

2 Extract a fresh dynamic AMP sample from the target system.

3 Apply the fresh sample to the source system.