Procedure Using BTEQ - Advanced SQL Engine - Teradata Database

Database Administration

Product
Advanced SQL Engine
Teradata Database
Release Number
17.05
17.00
Published
June 2020
Language
English (United States)
Last Update
2021-01-22
dita:mapPath
rgu1556127906220.ditamap
dita:ditavalPath
lze1555437562152.ditaval
dita:id
B035-1093
lifecycle
previous
Product Category
Teradata Vantageâ„¢

Perform the following procedure to drop the tables for the query capture database using BTEQ. The procedure assumes that you have already created QCF_database_name. This procedure does not drop the views and macros on the specified QCD.

  1. Start BTEQ.
  2. Change your current database to the database from which the QCF tables are to be dropped as follows.
    DATABASE  QCD_database_name;

    where QCD_database_name is the name of the database you created for the QCD tables.

  3. Perform the following steps in order.
    1. .EXPORT FILE = file_name
    2. SELECT DelTable

      FROM systemfe.CleanupQCF

      ORDER BY SeqNumber;

    3. EXPORT RESET;
    4. .RUN FILE = file_name

      where file_name is the name of the file you create to contain the output of the SELECT request.