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.
Chapter 2: Using <strong>Teradata</strong> T<strong>Pump</strong><br />
Estimating Space Requirements<br />
IGNORE EXTRA ROWS;<br />
INSERT INTO TBL14TA VALUES (:ABYTEINT,:ASMALLINT,:AINTEGER,:ADECIMAL,<br />
:ACHAR,:ABYTE,:AFLOAT,:ADATE);<br />
.DML LABEL LABELB IGNORE DUPLICATE ROWS IGNORE MISSING ROWS<br />
IGNORE EXTRA ROWS;<br />
INSERT INTO TBL14TB VALUES (:ABYTEINT,:ASMALLINT,:AINTEGER,:ADECIMAL,<br />
:ACHAR,:ABYTE,:AFLOAT,:ADATE);<br />
.IMPORT INFILE ./tlnt014.dat<br />
LAYOUT LAY1A FROM 1 FOR 400<br />
APPLY LABELA WHERE ATEST = 1<br />
APPLY LABELB WHERE ATEST = 2;<br />
.END LOAD;<br />
.LOGOFF;<br />
From this script the space requirements can be calculated to be:<br />
• 200 bytes for initialization +<br />
• 200 bytes * 6 for support environment statements +<br />
• 200 bytes * 2 for DML SQL statements +<br />
• 400 bytes for the BEGIN/END load pair +<br />
• 200 bytes for the IMPORT<br />
which is a starting total of 2400 bytes.<br />
Further, assume that <strong>Teradata</strong> <strong>Data</strong>base can accept about 32 statements per second and that<br />
the load takes a little more than an hour to complete.<br />
The space for partial and complete checkpoints is calculated with the following steps:<br />
Calculating the Space for Checkpoints<br />
1 32 statements per second translates to 1920 statements per minute.<br />
2 1920 / 20 (the packing factor) = 93 partial checkpoints/minute<br />
3 Multiply by 15 (15 minute CP frequency) = 1395 partial checkpoint rows maximum.<br />
4 Each checkpoint row is 117 + (12 * 20) = 357 bytes so 498,015 bytes are in partial<br />
checkpoint rows.<br />
5 Given that the load takes just more than an hour, assume 5 checkpoints are written at<br />
300 bytes each.<br />
Now we have the grand total of space in the log table:<br />
2,400 + 498,015 + 1,500 = 517,980 bytes.<br />
<strong>Teradata</strong> <strong>Parallel</strong> <strong>Data</strong> <strong>Pump</strong> Reference 87