Loading LOB Data into a Teradata Database Table from External Data Files - Parallel Transporter

Teradata® Parallel Transporter Reference

Product
Parallel Transporter
Release Number
16.20
Published
November 2020
Language
English (United States)
Last Update
2020-11-19
dita:mapPath
whl1527114222314.ditamap
dita:ditavalPath
whl1527114222314.ditaval
dita:id
B035-2436
lifecycle
previous
Product Category
Teradata Tools and Utilities

To load LOB data into a Teradata Database table from external data files, the Teradata PT script must use:

  • The Data Connector producer operator to read LOB data from an external data file, and
  • The Inserter operator to insert LOB data to a target table.

If the LOB columns are defined as BLOB (lengthBytes) or CLOB (lengthBytes) in the schema, data records in the external data file specified in the FileName attribute must have an 8-byte integer length indicator preceding the BLOB or CLOB data.

If the LOB columns are defined as BLOB (lengthBytes) AS DEFERRED BY NAME or CLOB (lengthBytes) AS DEFERRED BE NAME, data records in the external file specified in FileName attribute must have regular VARCHARs, known as LOB file locators, where the LOB columns are defined as deferred.

For a sample Teradata PT script in the <install-directory>/sample/userguide directory, see:

uguide03.txt: Loading BLOB and CLOB Data into Teradata Database.