Teradata Utilities
Teradata Utilities
Class Outline
CoffingDW education has been customized for every customer
for the past 20 years. Our classes can be taught either on site or
remotely via the internet.
Topics:
Teradata Utilities Introduction
Collect Statistics
Table Create and Data Types
Temporary Tables
BTEQ Batch Teradata Query
FastLoad
MultiLoad
TPump
FastExport
Teradata Parallel Transport (TPT)
Top SQL Commands Cheat Sheet
Prerequisites: None
Duration: 1-2 Days
Course Outline:
Chapter 6 - FastLoad
FastLoad
Block Level Utility Limits
FastLoad has Two Phases
FastLoad Phase 1
FastLoad Phase 2
A Sample FastLoad Script Created by Nexus SmartScript
Executing the FastLoad Script
The Nexus SmartScript Easily Builds Your Utilities
The Nexus SmartScript FastLoad Builder
Create and Execute Your FastLoad Scripts with Nexus
FastLoad to a NoPI Table
FastLoad and CHECKPOINT
Loading Multiple Input Files with FastLoad
Valid Data Types That Can Be Used in a FastLoad
A FastLoad that Converts Data Types
A FastLoad that Uses the NULLIF Statement
FastLoad and Referential Integrity Solutions
The Output Report from FastLoad
Recovering a FastLoad that has failed
A BTEQ Export and then a FastLoad
A FastExport and then a FastLoad Needs Indicators
Chapter 7 - MultiLoad
MultiLoad
Block Level Utility Limits
MultiLoad has Five Phases
MultiLoad has IMPORT and DELETE Tasks
A Sample MultiLoad Script Created by Nexus SmartScript
Referential Integrity and Load Utility Solutions
MultiLoad That Inserts and Updates from Two Different Files
A MultiLoad Example That UPSERTs
A MultiLoad DELETE MODE Example
MultiLoad DELETE Rules
Five Formats of MultiLoad Files
A NoPI Table Does Not Work with MultiLoad
Executing a MultiLoad Script
The Output Report from MultiLoad
Host Utility Locks (HUT Locks)
Troubleshooting MultiLoad
Chapter 8 - TPump
TPump
TPump is NOT a Block Level Utility and has No Limits
Limitations of TPump
A Sample TPump Script Created by Nexus SmartScript
Executing a TPump Script
TPump Begin Load Statement Options
Five Formats of TPump Files
TPump Script with Error Treatment Options
TPump UPSERT Script
The Output Report from TPump
Did you know Tera-Tom was a world-class athlete?
Chapter 9- FastExport
FastExport
New Rules for Block Utilities
A Sample FastExport Script Created by Nexus SmartScript
FastExport by Default places Null Indicators in Output
A Sample FastExport Script Created by Nexus SmartScript
No Spool Options with FastExport
FastExport with No Spool
FastExport that Joins Two Tables
FastExport Modes
How to Eliminate Indicators in your FastExport Script
Executing a FastExport Script
Chapter 10- Teradata Parallel Transport (TPT)
What is TPT?
TPT Producers Create Streams and Consumers Write Them
The Four Major Operators of TPT
TPT can read from multiple source files in Parallel
TPT can have more Operators than Consumers
TPT Operators and their Equivalent Load Utility
How to Run a TPT Script
Six Syntax Rules when Creating TPT Scripts
TPT Scripts are divided into two major sections
Three Required Define Statements in the Declarative Section
The Major Keys to Building TPT Scripts
Schemas
The DDL Operator
DDL Operator Example
The SQL Selector Operator
SQL_Selector Operator Export to Delimited File (1 of 3)
SQL_Selector Operator Export to Delimited File (2 of 3)
SQL_Selector Operator Export to Delimited File (3 of 3)
Another SQL_Selector Operator Export (1 of 3)
Another SQL_Selector Operator Export (2 of 3)
Another SQL_Selector Operator Export (3 of 3)
SQL Selector Example (1 of 3)
SQL Selector Example (2 of 3)
SQL Selector Example (3 of 3)
Another SQL Selector Example (1 of 3)
Another SQL Selector Example (2 of 3)
Another SQL Selector Example (3 of 3)
The Export Operator
Export Operator to Formatted Flat File Example (1 of 3)
Export Operator to Formatted Flat File Example (2 of 3)
Export a Table to a Formatted Flat File with Indicators (3 of 3)
Deferred Schema
Export a Table to a Binary Flat File (1 of 2)
Export a Table to a Binary Flat File (2 of 2)
The Load Operator
Load from Binary File (1 of 3)
Load from Binary File (2 of 3)
Load from Binary File (3 of 3)
Data Connectors
Another Import to Table from Binary File (1 of 3)
Another Import to Table from Binary File (2 of 3)
Another Import to Table from Binary File (3 of 3)
Load Table from Flat File (1 of 2)
Load Table from Flat File (2 of 2)
Load another Table from a Flat File
Update Operator
Teradata V14.10 Extended MultiLoad Protocol (MLOADX)
Update Operator Example (1 of 3)
Update Operator Example (2 of 3)
Update Operator Example (3 of 3)
Another Update Operator Example (1 of 3)
Another Update Operator Example (2 of 3)
Another Update Operator Example (3 of 3)
Stream Operator
Stream Operator Example (1 of 3)
Stream Operator Example (2 of 3)
Stream Operator Example (3 of 3)
Another Stream Operator Example (1 of 3)
Another Stream Operator Example (2 of 3)
Another Stream Operator Example (3 of 3)
Easy Loader Example (tdload)
TPT Utility Commands
OS Command Operator
Job Variables Example
Include Statement (1 of 2)
Include Statement (2 of 2)
Operator Templates
Using Operator Templates
Operator Template Example
Moving Data from Netezza to Teradata (1 of 2)
Moving Data from Netezza to Teradata (2 of 2)