25.09.2015 Views

Teradata Parallel Data Pump

Teradata Parallel Data Pump Reference - Teradata Developer ...

Teradata Parallel Data Pump Reference - Teradata Developer ...

SHOW MORE
SHOW LESS
  • 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: <strong>Teradata</strong> T<strong>Pump</strong> Examples<br />

Example Using the TABLE Command<br />

Candidate records considered:........ 400....... 800<br />

Apply conditions satisfied:.......... 400....... 600<br />

Records logable to error table:...... 0....... 0<br />

Candidate records rejected:.......... 0....... 0<br />

** Statistics for Apply Label : LABEL0734B<br />

Type <strong>Data</strong>base Table or Macro Name Activity<br />

U LYDIADB TPTBL0734 200<br />

I LYDIADB TPTBL0734 200<br />

**** 16:52:50 UTY0821 Error table LYDIADB.TPERR0734 is EMPTY, dropping table.<br />

0028 .LOGOFF;<br />

========================================================================<br />

= =<br />

= Logoff/Disconnect =<br />

= =<br />

========================================================================<br />

**** 16:52:54 UTY6216 The restart log table has been dropped.<br />

**** 16:52:55 UTY6212 A successful disconnect was made from the RDBMS.<br />

**** 16:52:55 UTY2410 Total processor time used = '0.21875 Seconds'<br />

. Start : 16:51:54 - TUE OCT 06, 2009<br />

. End : 16:52:55 - TUE OCT 06, 2009<br />

. Highest return code encountered = '0'.<br />

Example Using the TABLE Command<br />

This example script uses the TABLE command and “INSERT .*” feature.<br />

.LOGTABLE TPLOG0096;<br />

.LOGON ESSNLX14/KRCDB,KRCDB;<br />

DROP TABLE TPTBL0096;<br />

DROP TABLE TPERR0096;<br />

CREATE TABLE TPTBL0096, FALLBACK(<br />

F0 integer, F1 integer,<br />

F2 integer, F3 CHAR(38))<br />

UNIQUE PRIMARY INDEX (F0);<br />

.BEGIN LOAD SESSIONS 8;<br />

.LAYOUT LAY0096;<br />

.TABLE TPTBL0096;<br />

.DML LABEL LABEL0096 ;<br />

INSERT INTO TPTBL0096.*;<br />

.IMPORT INFILE datafile1<br />

LAYOUT LAY0096<br />

APPLY LABEL0096 FROM 1 THRU 111;<br />

.END LOAD;<br />

.LOGOFF;<br />

produces the following results. When looking at the following results, notice that the output<br />

fields generated by the TABLE command includes the “KEY” modifier for the field coming<br />

from the primary index of the table. This is what enables the use of the “SERIALIZE” option:<br />

0001 .LOGTABLE TPLOG0096;<br />

0002 .LOGON ESSNLX14/KRCDB,;<br />

**** 17:07:35 UTY8400 <strong>Teradata</strong> <strong>Data</strong>base Release: 13.10g.00.53<br />

<strong>Teradata</strong> <strong>Parallel</strong> <strong>Data</strong> <strong>Pump</strong> Reference 243

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!