Examples: Redirection of Inputs and Outputs - Parallel Data Pump

Teradata® Parallel Data Pump Reference

Product
Parallel Data Pump
Release Number
16.20
Published
September 2019
Language
English (United States)
Last Update
2019-10-11
dita:mapPath
dmq1512702641516.ditamap
dita:ditavalPath
Audience_PDF_include.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