Teradata Parallel Data Pump
Teradata Parallel Data Pump Reference - Teradata Developer ...
Teradata Parallel Data Pump Reference - Teradata Developer ...
- No tags were found...
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
APPENDIX B<br />
<strong>Teradata</strong> T<strong>Pump</strong> Examples<br />
This appendix provides some examples of <strong>Teradata</strong> T<strong>Pump</strong> scripts and their corresponding<br />
output. Included are:<br />
• Simple Script Example<br />
• Restarted Upsert Example<br />
• Example Using the TABLE Command<br />
In the output examples, the lines that begin with 4-digit numbers (for example, 0001) are<br />
scripts, the rest are output.<br />
Simple Script Example<br />
The following is an example of a simple script.<br />
/***********************************************/<br />
/* Script Name: TP0623 */<br />
/* Description: WIN32 script. */<br />
/***********************************************/<br />
.LOGTABLE TPLOG0623;<br />
.LOGON HYIBMX01/BRUCEDB,BRUCE;<br />
DROP TABLE TPTBL0623;<br />
DROP TABLE TPERR0623;<br />
/***********************************************/<br />
/* STEP01 CREATES THE TABLES FOR THE T<strong>Pump</strong> JOB */<br />
/***********************************************/<br />
CREATE TABLE TPTBL0623, FALLBACK(<br />
F1 INTEGER,F2 CHAR(50),<br />
F3 VARCHAR(50),F4 FLOAT,<br />
F5 BYTE (10),F6 VARBYTE (10),<br />
F7 DECIMAL(8,2),F8 BYTEINT,<br />
F9 SMALLINT,F10 DATE,<br />
F11 BIGINT,F12 DECIMAL(38,0))<br />
UNIQUE PRIMARY INDEX (F1);<br />
/***********************************************/<br />
/* BEGIN LOAD WITH ALL THE OPTIONS SPECIFIED */<br />
/* SUCH AS ERRLIMIT, CHECKPOINT, SESSIONS, */<br />
/* TENACITY, etc. */<br />
/***********************************************/<br />
.BEGIN LOADCHECKPOINT 15SESSIONS 4 1<br />
TENACITY 2ERRORTABLE TPERR0623<br />
ERRLIMIT 10ROBUST OFF<br />
<strong>Teradata</strong> <strong>Parallel</strong> <strong>Data</strong> <strong>Pump</strong> Reference 235