Download as rtf, pdf, or txt
Download as rtf, pdf, or txt
You are on page 1of 3

T-pump

Teradata parallel data pump provides an excellent utility for low volume
batch
maintenance of large TD databases.
T-PUMP is a data loading utility that helps you maintain
(update,delete,insert and
automatic upserts) the data in your TD-RDBMS.
Allows near real-time updates from transactional systems into the
warehouse.
Performs INSERT, UPDATE, and DELETE operations, or a combination,
from the same source.
Up to 63 DML statements can be included for one IMPORT task.
Alternative to MultiLoad for low-volume batch maintenance of large tables.
Allows target tables to:Have secondary indexes, join indexes, hash
indexes, and
Referential Integrity.Be MULTISET or SET.Be populated or empty.
Allows conditional processing (via APPLY in the .IMPORT statement).
Supports automatic restarts; uses Support Environment.
No session limit use as many sessions as necessary.
No limit to the number of concurrent instances.
Uses row-hash locks, allowing concurrent updates on the same table.
Can always be stopped and locks dropped with no ill effect.
Designed for highest possible throughput.User can specify how many
updates occur
minute by minute; can be changed as the job runs.
Tpump has 4 properties
1).PACK
2).Rate
3).Robust
4).Serializer
Pack: If we specify pack 500 then 500 records are put in a single macro for
insertion.
NOTE: Max value for pack is 600.

Rate: If we specify rate 500 in a minute of time it loads only 500records.


Robust: Whenever a macro is completed tpump notes a robust point in a log
table.
If the tpump is restarting after the failure it starts from recent robust point or
from general checkpoint which is closest to tpump.
Robust on/off;
serialize: whenever we specify serialize on tpump control goes to the flat
file and
Verifies the records under of same order and puts in a same macro.
Serialize on/off;
Tpump always takes checkpoint value in no. of minutes not more than
60min.
Tpump requires 1 log table, 1 error table

SAMPLE SCRIPT:
.LOGTABLE RETAIL.TPUMP_LOG;
.LOGON 192.168.1.6/DBC, DBC;
.BEGIN LOAD
ERRORTABLE RETAIL.ERRTABLE
PACK 100
RATE 100
ROBUST ON
SERIALIZE ON
SESSIONS 6
TENACITY 4
CHECKPOINT 50;
.LAYOUT LAY1;
.FIELD l_orderkey * VARCHAR(10) KEY;
.FIELD l_partkey * VARCHAR(44);
.DML LABEL LAB1
IGNORE DUPLICATE ROWS;
INSERT INTO RETAIL.itemfastload.*;
.IMPORT INFILE "C:\Documents and

Settings\prakash\Desktop\SQLAExport.TXT"
FORMAT VARTEXT '|'
LAYOUT LAY1
APPLY LAB1;
.END LOAD;
.LOGOFF;

You might also like