Migrate Foreign Server Definitions | Teradata QueryGrid - Migrating 1.x Teradata Foreign Server Definitions to 2.x Teradata Connectors - Teradata QueryGrid

Teradata® QueryGrid™ Installation and User Guide

Product
Teradata QueryGrid
Release Number
2.19
Published
July 2022
Language
English (United States)
Last Update
2022-07-28
dita:mapPath
jpf1654813554544.ditamap
dita:ditavalPath
ft:empty
dita:id
lxg1591800469257
Product Category
Analytical Ecosystem
QueryGrid 2.x Teradata connectors are compatible with the SQL data manipulation language used for QueryGrid 1.x Teradata-to-X connectors. In QueryGrid 2.x, if you want to use the same SQL you use with your 1.x connectors, you can migrate your 1.x foreign server definitions for use with 2.x connectors.

The following procedure preserves the FOREIGN SERVER grants and access rights for users.

  1. Stop all queries running on the QueryGrid 1.x foreign server.
  2. For the FOREIGN SERVER used on QueryGrid 1.x, type the following to display the FOREIGN SERVER description, the list of custom clauses, and the import and export functions used for the FOREIGN SERVER:
    SHOW FOREIGN SERVER bock_classic2;
    CREATE FOREIGN SERVER TD_SERVER_DB.bock_classic2
    EXTERNAL SECURITY INVOKER TRUSTED UT1PROXY3 USING
    Hosttype  ('Teradata')
    remotehost  ('bock1.labs.teradata.com')
    ip_device  ('byn1')
    port  ('5000')
    read_timeout  (200 )
    listen_timeout  (60 )
    concurrentstreams  (1 )
    DO IMPORT WITH SYSLIB.LOAD_FROM_TD ,
    DO EXPORT WITH SYSLIB.LOAD_TO_TD ;
    
  3. Drop all old NVPs from the QueryGrid 1.x foreign server.
    ALTER FOREIGN SERVER TD_SERVER_DB.bock_classic2 DROP hosttype, drop remotehost, drop ip_device, drop port, drop read_timeout, drop listen_timeout, drop concurrentstreams, drop IMPORT, drop EXPORT;
  4. Add the new NVPs to the QueryGrid 1.x foreign server.
    ALTER FOREIGN SERVER TD_SERVER_DB.bock_classic2 ADD link(‘bock_ng’), add IMPORT WITH TD_SYSFNLIB.QGINITIATORIMPORT, add export with TD_SYSFNLIB.QGINITIATOREXPORT;
  5. Show the new QueryGrid 2.x FOREIGN SERVER.
    SHOW FOREIGN SERVER bock_classic2;
    CREATE FOREIGN SERVER TD_SERVER_DB.bock_classic2
    EXTERNAL SECURITY INVOKER TRUSTED UT1PROXY3 USING
    LINK(‘bock_ng’)
    DO IMPORT WITH TD_SYSFNLIB.QGINITIATORIMPORT,
    DO EXPORT WITH TD_SYSFNLIB.QGINITIATOREXPORT;
    
    For more information about configuring the 2.x foreign server with QueryGrid 2.x name value pairs, see: