Module 1: Introduction To Application Utilities
Module 1: Introduction To Application Utilities
After completing this module, you should be able to: Identify the Application Utilities. Describe how the Application Utilities interface with the Teradata database. State the advantage of using a utility over other access methods. Match Teradata Warehouse Builder operators with the corresponding Teradata utility.
Application Utilities
Host or Server
BTEQ /
Teradata SQL CLI Routines
Support Environment Support Environment Support Environment
FastLoad
MultiLoad
CLI Routines CLI Routines
FastExport
CLI Routines
TPump
CLI Routines
Operating System
Teradata Database
TDP 0
TDP 1
Host O.S.
Gateway
U N I X
P D E
AMP 0
PE
AMP 1
AMP 2
AMP 3
AMP 4
AMP 5
AMP 6
AMP 7
Application Development
More Input Modification Routines (INMODs) Flexibility
APPLICATION
Less Easy
UTILITIES
Ease of Use
Difficult
Selection of the right vehicle can be crucial to the success of the application: How difficult is it to implement? How difficult is it to maintain? Use the application utilities wherever possible: Offer the least complexity. Take full advantage of parallel processing.
Both Directions
HOST to Teradata
Teradata to HOST
Both Directions
BTEQ
Import/Export
FastLoad
MultiLoad
TPump
FastExport
Block
Block
Block
Block
Block
Block
Block
Block
Target table is empty, AND Source and target tables have same Primary Index.
Advantages of using optimized INSERT / SELECT:
Summary_Table store, region, SUM(sales), COUNT(sale_item) Region_1 1, 2 Summary_Table store, region, SUM(sales), COUNT(sale_item) Region_2 1, 2 ... Summary_Table store, region, SUM(sales), COUNT(sale_item) Region_N 1, 2
Region_1
Region_2
Region_N
FROM GROUP BY
FROM GROUP BY ;
Block
Free
Block
Free
Block
Free
Block
Free
DELETE achieves its highest performance with use of the ALL option. High performance is achievable because of:
Not using the Transient Journal. Doing DELETEs at the cylinder index / master index level.
An INMOD routine can perform various functions: Validate a data record. Read data directly from one or more database system data sets, allowing the creation of a composite input data record, and avoiding the need for an intermediate tape or disk. Select specific records for input to the Teradata Database. Perform data conversions not supported by the application utilities. Add or change data fields in the records.
Oracle User Written INMOD IMS
FASTLOAD, MULTILOAD, TPUMP. . .
Teradata
An OUTMOD is a user-written program that does post-processing of the data before giving the data to the the utility.
Easy to use Single SQL-like scripting language Script converter for easy migration Access to various data sources
Extensible
Open TWB API enable Third Party and user application integration, e.g.,
transformations.
UPDATE
MultiLoad
Utilizes the Teradata MultiLoad protocol to enable job based table updates. This allows highly scalable and parallel inserts and updates to a pre-existing table.
EXPORT
STREAM DataConnector
FastExport
TPump N/A
ODBC
N/A
To learn more about Teradata Warehouse Builder, take the Teradata Warehouse Builder WBT Course located at ... http://www.ncru.learnzone.ncr.com/learning/td/twb/
DDL Functions
DML Functions Multiple DML Multiple Tables Multiple Sessions Protocol Used Conditional Expressions Arithmetic Calculations
Data Conversion
Error Files Error Limits User-written Routines
FastExport transfers data from Teradata to the host. BTEQ INSERT/SELECT and DELETE (ALL) can provide a fast effective
method to perform some tasks.
Utilities offer the least complex solutions for an application, and can take
advantage of parallel processing.
Utilities permit the use of INMODs and/or OUTMODs for pre- or postprocessing data.
There is often more than one way to set up your application, but there may be
one that is fastest or most effective.
Teradata Warehouse Builder (TWB) can load data into and export data from
any accessible database object in the Teradata RDBMS or other data store for which there exists an access operator.
Review Questions
Answer True or False. 1. True or False. 2. True or False. 3. True or False. With MultiLoad, you can import and export data. In Teradata mode, a BTEQ DELETE ALL function does not use the Transient Journal. An INSERT/SELECT of 1,000,000 million rows into an empty table is only slightly faster than an INSERT/SELECT of 1,000,000 rows into a table with 1 row.
Match the Teradata Warehouse Builder operator with the corresponding Teradata utility.
1. ___ UPDATE
2. ___ STREAM 3. ___ LOAD 4. ___ EXPORT
A. MultiLoad
B. FastLoad C. FastExport D. TPump
Match the Teradata Warehouse Builder operator with the corresponding Teradata utility.
1. _A_ UPDATE
2. _D_ STREAM 3. _B_ LOAD 4. _C_ EXPORT
A. MultiLoad
B. FastLoad C. FastExport D. TPump