Examples: Redirection of Inputs and Outputs - Parallel Data Pump

Teradata® Parallel Data Pump Reference

Product
Parallel Data Pump
Release Number
17.10
Published
June 2021
Language
English (United States)
Last Update
2021-07-01
dita:mapPath
oqw1608578437373.ditamap
dita:ditavalPath
ovd1619195504008.ditaval
dita:id
B035-3021
lifecycle
previous
Product Category
Teradata Tools and Utilities

The following examples show various ways to redirect stdin and stdout for the UNIX system.

Example 1

This example specifies both an input file and an output file. The Teradata TPump script is in /home/tpuser/tests/test1 and the job output is written to /home/tpuser/tests/out1.

tpump </home/tpuser/tests/test1 >/home/tpuser/tests/out1

Example 2

This example specifies only an input file. The Teradata TPump script is in /home/tpuser/tests/test1 and the job output is written to stdout, which ordinarily would be the terminal.

tpump </home/tpuser/tests/test1

Example 3

This example specifies only an output file. Enter the TPump script via stdin, normally at the terminal. When input is complete, type Ctrl-D to indicate end-of-file. Type Ctrl-D by simultaneously pressing the Control key and the letter D. The job output is written to /home/tpuser/tests/out1.

tpump >/home/tpuser/tests/out1

Example 4

This example specifies neither an input nor an output file. Teradata TPump commands are typed at a terminal via stdin and job output is written to the terminal via stdout.

tpump