Copying Join and Hash Indexes - 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
When copying entire databases using ARC, join and hash indexes on the source database are not automatically copied to the target. You must copy join and hash indexes explicitly.
  1. Open the parameters.xml file that has the job definition information for the job.
  2. Create an <indices> section.
  3. Add the selection="included" attribute to an <index> element.
  4. Specify the name of the join or hash index using a <name> element.
  5. Specify the index type using an <index_type> element. The possible values are HASH_INDEX and JOIN_INDEX.

In the following example, the hash index DBName.Orders_hi associated with the DBName.Orders table is copied to the target when copying the database DBName.

<database selection="included">
	<name>DBName</name>
</database>
		<indices>
			<index selection="included">
				<name>Orders_hi</name>
				<index_database>DBName</index_database>
				<index_type>HASH_INDEX</index_type>
				<associate_table>
					<database>DBName</database>
					<table>Orders</table>
				</associate_table>
			</index>
		</indices>