Rename a Database | Command Line | Teradata DSA - Renaming a Database - BAR - Data Stream Architecture

Teradata® DSA User Guide

Product
BAR
Data Stream Architecture
Release Number
17.00
Published
August 2020
Language
English (United States)
Last Update
2020-08-31
dita:mapPath
mas1575933453856.ditamap
dita:ditavalPath
vwp1576617377804.ditaval
dita:id
B035-3150
lifecycle
previous
Product Category
Software
Teradata Tools and Utilities
You can rename a database in a restore job by adding map_to to the table in the XML file containing the job definition. This option restores the database to the destination system using a new name for the database.
  1. Open the XML file containing the job definition information.
  2. Under objectinfo, identify the database to rename and add the new database name inside map_to.
    In the following example, the objects under database ABC are copied to database NEWBAR:
    <objectinfo>
       <object_name>ABC</object_name>
       <object_type>DATABASE</object_type>
       <parent_name>SYSTEMFE</parent_name>
       <parent_type>DATABASE</parent_type>
       <object_attribute_list>
           <map_to>NEWBAR</map_to>
       </object_attribute_list>
    </objectinfo>