Professional Documents
Culture Documents
Teradata TPUMP
Teradata TPUMP
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.
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;