Exclude Tables During a Database Replacement | Teradata Data Mover - Excluding Tables When Replacing a Database - Teradata Data Mover

Teradata® Data Mover User Guide - 20.01

Deployment
VantageCloud
VantageCore
Edition
Enterprise
IntelliFlex
Lake
VMware
Product
Teradata Data Mover
Release Number
20.01
Published
November 2023
Language
English (United States)
Last Update
2023-12-05
dita:mapPath
hlv1700545853003.ditamap
dita:ditavalPath
mpm1591127278842.ditaval
dita:id
don1467241476387
Product Category
Analytical Ecosystem
You can exclude a table when replacing a database by specifying the table name. Excluding a table that exists on the target does not remove the existing target table.

If the EXCLUDE TABLE clause is too long for the SQL buffer, an error occurs. The buffer length limit depends on how much data already exists in the SQL buffer. If an error occurs, modify the EXCLUDE TABLE list by reducing its size before resubmitting the job. Another workaround is to select all the tables instead of selecting a full database copy, so the exclude clause is not included.

  1. Set <replaceDatabase="true"> to replace the specified database.
  2. Set <table selection="excluded"> and then specify the table name.
In the following example the target database is replaced with the source database but the Customers table is not copied to the target.
If the Customers table already exists on the target, excluding it in the XML as shown here does not remove it from the target.
<database selection="included" replaceDatabase="true">
     <name>MyDatabase</name>
     <table selection="excluded">
        <name>Customers</name>
     </table>
</database>