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.

Chapter 3: <strong>Teradata</strong> T<strong>Pump</strong> Commands<br />

DML<br />

Sample Scripts<br />

<strong>Teradata</strong> T<strong>Pump</strong> converts INSERT, UPDATE, and DELETE statements into macro<br />

equivalents, and, depending on the packing specified, submits multiple statements in one<br />

request. <strong>Teradata</strong> T<strong>Pump</strong> also supports the EXECUTE statement, which can be used to bypass<br />

the macro creation step for frequently executed macros. For more information on the<br />

EXECUTE statement, refer to EXECUTE in this chapter.<br />

The maximum number of INSERT, UPDATE, and DELETE statements that can be referenced<br />

in an IMPORT is 128. The 128th DML which would cause the insertion of the DML sequence<br />

number of 128 for the DMLSEQ field in the error table could lead to <strong>Teradata</strong> <strong>Data</strong>base 3520<br />

error.<br />

At the end of an IMPORT, an environmental variable is established for each DML command<br />

executed. <strong>Teradata</strong> T<strong>Pump</strong> variables are not limited to 30 characters. These variables contain<br />

the activity counts associated with each statement. The variables created are of the form:<br />

&IMP __<br />

where<br />

n = the number of the IMPORT, from one through four.<br />

Apply label = the label of the clause containing the DML command in question.<br />

x = the number of the statement within the containing APPLY clause.<br />

Serialization<br />

The SERIALIZEON keyword allows serialization to be turned on for the specified fields. The<br />

SERIALIZEON keyword can be used before, after, or between any IGNORE or MARK<br />

statements.<br />

The SERIALIZEON keyword can also be used with the SERIALIZE keyword in the BEGIN<br />

LOAD command and with the KEY keyword in the FIELD command. When it is used in this<br />

way, the DML-level serialization ignores and overrides the BEGIN LOAD-level serialization.<br />

In addition, the DML serialized APPLYs can be mixed with nonserialized DML APPLYs in the<br />

same IMPORT command.<br />

See “BEGIN LOAD” and “FIELD” for details about these commands.<br />

The following is an example using the SERIALIZEON keyword:<br />

.LOGTABLE TPLOG01;<br />

.LOGON slugger/dbc,dbc;<br />

.BEGIN LOAD<br />

ERRLIMIT 100 50<br />

CHECKPOINT 15<br />

SESSIONS 20<br />

TENACITY 2<br />

ERRORTABLE TPERR01<br />

PACK 30<br />

ROBUST ON<br />

NOMONITOR;<br />

.LAYOUT LAY01;<br />

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

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

Saved successfully!

Ooh no, something went wrong!