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...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

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

EXECUTE<br />

For example:<br />

.DML LABEL DO INSERT FOR MISSING UPDATE ROWS ... ;<br />

EXECUTE UPDATE ;<br />

INSERT ;<br />

.DML LABEL DO INSERT FOR MISSING UPDATE ROWS ... ;<br />

UPDATE ;<br />

EXECUTE INSERT ;<br />

.DML LABEL DO INSERT FOR MISSING UPDATE ROWS ... ;<br />

EXECUTE UPDATE ;<br />

EXECUTE INSERT ;<br />

To allow for the use of predefined macros that take advantage of Atomic upsert, <strong>Teradata</strong><br />

T<strong>Pump</strong> command syntax supports an UPSERT macro:<br />

.DML LABEL ;<br />

EXECUTE UPSERT ;<br />

When using predefined macros for atomic upserts, the DML statement will have “Ignore<br />

Missing Update Rows” as a default option.<br />

Atomic upsert syntax is not backward compatible; thus it cannot be used until the <strong>Teradata</strong><br />

<strong>Data</strong>base server is updated to a compatible release. If <strong>Teradata</strong> <strong>Data</strong>base supports Atomic<br />

upsert, a <strong>Teradata</strong> T<strong>Pump</strong> run can handle a mix of both standard and Atomic upserts.<br />

Upserts are reported as UPDATEs and INSERTs in the statistics displayed by <strong>Teradata</strong> T<strong>Pump</strong><br />

(and passed to the NOTIFY EXIT routine), because an Atomic upsert that results in an<br />

UPDATE will be reported by <strong>Teradata</strong> <strong>Data</strong>base as an UPDATE activity type, and an Atomic<br />

upsert that results in an INSERT will be reported by <strong>Teradata</strong> <strong>Data</strong>base as an INSERT activity<br />

type.<br />

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

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

Saved successfully!

Ooh no, something went wrong!