Teradata NPARC (Named Pipe ARChive)

Posted by

Introduction to Teradata:
Teradata is a fully scalable relational database management system produced by Teradata Corp. It is widely used to manage large data warehousing operations.

The Teradata database system is based on off-the-shelf symmetric multiprocessing technology combined with communication networking, connecting symmetric multiprocessing systems, to form large parallel processing systems.

What happens when business data grows?

Sometimes, working in IT we need to upgrade entire configurations of our systems or servers to get in sync with business requirements. As a growing IT, data is also growing and for that, we may need to get rid of old configuration systems or servers, migrating the existing business data.

Moving/Migrating entire data-sets or say full system from one Teradata system to another or to any kind of data system like Oracle or SQL is a bothersome task even when the data is already present on the disk or tapes and we are provided with all the load utilities(Teradata fast export , Teradata MultiLoad, Teradata Parrallel Transporter or by Basic Teradata queries (i.e fexp, mload, tpt, bteq etc).

We often reach a scenario when there is no more disk space left to hold the entire dataset, we contact our respective IT team to add some more disk space onto the server and the IT team denies, but we still want to move data. Challenging, right? Is there any way to accomplish this? I believe yes.

Teradata Archive/Recovery Utility i.e Teradata ARC can be a solution here. One of the Teradata Archive/Recovey process named NPARC (Named Pipe ARC) serves this purpose. It is a way to get data from one platform to another platform or migrating data on the same machine without being concerened about the disk space.

What is NPARC and How does it work?

NPARC (Named Pipe ARChive) is an NCR utility that transfers data between two Teradata systems. It is basically ARC using named pipes instead of tape, making data transfers much faster. The “donor” system runs an ARC DUMP into the pipes and the “receiver” system runs an ARC COPY with the pipes as its input. The by-nets of both systems are connected via LAN cable through your node’s LAN ports.

Here are a few cases while moving data from one platform to another –

Scenario one: When we move the data within the system. Below NPARC steps help in it –

• Two different users with archive(dump) and restore access rights on the databases TeradataSource and TeradadatTarget.
• The user used for restore/copy should have additional access right i.e create table access right.
• Two databases(source and target). Source database is where the data is being archived and the target where the data is being restored/copied.
• A named pipe
• Dump/Archive and Restore/Copy scripts
• Teradata Server (any version) up and running
• Teradata arcmain installed on a Linux machine that can connect to the Teradata Server. Also,Windows machine can be used but requires few more softwares such as Teradata npaxsmod used to create a named pipe on Windows. Using Linux for simplicity.
Firstly, we create the source(TeradataSource) database and target(TeradataTarget) database:

create database TeradataSource as perm=10e7;
grant dump,restore on TeradataSource to TeradataSource;

create database TeradataSource as perm=10e7;
grant dump,restore on TeradataSource to TeradataSource;

Now, add some data to the source(TeradataSource) database:

A) create a table named t1 in TeradataSource database and collect the statistics as well.

create table TeradataSource.t1(i int, ch varchar(100));
insert into TeradataSource.t1(1,’aaaa’);
insert into TeradataSource.t1(2,’bbbb’);
insert into TeradataSource.t1(3,’cccc’);
insert into TeradataSource.t1(4,’dddd’);
insert into TeradataSource.t1(5,’eeee’);

collect stats on TeradataSource.t1 column i;
collect stats on t1 column ch;

B) create one more table t2 same as table t1.

create table TeradataSource.t2 as TeradataSource.t1 with data and stats;

Now, create arc login users:

create user arch1 as perm=0 and password=arch1;
grant dump, restore on TeradataSource to arch1;

create user arch2 as perm=0 and password=arch2;
grant dump, restore on TeradataTarget to arch2;
grant create table on TeradataTarget to arch2;


Named Pipe creation:
Using mknod command to create the named pipe, you can also use mkfifo command as well.

mknod NPARC p

Dump/Archive script(nparc.arc):

logon arch1,arch1;

archive data tables
(TeradataSource) all,
release lock,


Restore/Copy script(nparc.cpy):
logon arch2,arch2;

copy data tables
(TeradataTarget) (from(TeradataSource)),
release lock,


Note: Please make sure you keep all the scripts and the Named Pipe in the same directory.


Finally, run the arcmain jobs.

Note: please make sure you run consumer process first, it will block the producer process.

The consumer job:

arcmain < nparc.cpy


The producer job:

arcmain < nparc.arc


As you can see, the data has been migrated to the target database with ease and without much of the disk usage. This can be stretched to move data across Teradata systems.

Xavient Information Systems

Technical team:
Pankaj Chahar


Related Posts

  • Teradata Intelligent Memory (TIM)

    Overview of Teradata Teradata is a RDBMS (Relational Database Management System). This system is solely based on off-the-shelf (readymade) symmetric multiprocessing (SMP) technology combined with communication networking, connecting SMP systems…

  • Understanding Teradata Wallet

    Teradata Wallet is a facility for storage of sensitive/secret information, such as Teradata Database user passwords. Users are able to save and retrieve items by using this facility. Teradata wallet…

  • Oracle Goldengate

    Oracle GoldenGate is an Oracle proprietary software for real-time data integration and replication that supports different databases- Oracle, DB2, SQL Server, Ingres, MySQL etc. Even the source and target database…

  • Teradata and JSON – Monetizing the Internet of Things (IoT)Teradata and JSON – Monetizing the Internet of Things (IoT)

    The prevalent influence of technology has resulted in a widespread use of a variety of devices such as cell phones, sensors, web API’s and browsers. These devices generate huge volume…

  • Teradata Query Grid : With Database, NoSQL, HadoopTeradata Query Grid : With Database, NoSQL, Hadoop

    Teradata 15.0 has come up with various exciting features and enhanced capabilities, Teradata Query Grid being one of them. Teradata database is now able to connect Hadoop with this Query Grid,…

  • XML Data Processing in TeradataXML Data Processing in Teradata

    XML is a markup language that we can use to format data in a wide range of applications. Teradata Database version 14.10 supports XML as a native SQL data type.…


  1. I believe that is one of the such a lot significant
    information for me. And i’m happy studying
    your article. But should commentary on few normal things, The web site taste is perfect, the
    articles is really nice : D. Just right job, cheers

  2. You actually make it appear so easy along with your presentation however I in finding this matter to be actually something which I feel I would by no means understand. It kind of feels too complex and very vast for me. I’m taking a look forward for your next post, I will try to get the hang of it!

  3. Hello there, just became alert to your blog through Google, and found that it’s truly informative. I’m going to watch out for brussels. I’ll appreciate if you continue this in future. A lot of people will be benefited from your writing. Cheers!

  4. Hi, I do think this is a great site. I stumbledupon it 😉 I will return yet again since I book-marked it. Money and freedom is the greatest way to change, may you be rich and continue to help other people.

  5. It is appropriate time to make some plans for the future and it is time to be happy. I have read this post and if I could I want to suggest you some interesting things or tips. Maybe you can write next articles referring to this article. I want to read even more things about it!

  6. First of all I want to say terrific blog! I had a quick question which I’d like to ask if you do not mind. I was interested to find out how you center yourself and clear your mind before writing. I have had a tough time clearing my thoughts in getting my ideas out there. I do enjoy writing however it just seems like the first 10 to 15 minutes tend to be wasted just trying to figure out how to begin. Any suggestions or hints? Cheers!

  7. I think that is among the most significant info for me. And i’m happy studying your article. However should commentary on few normal issues, The site taste is ideal, the articles is truly nice : D. Good activity, cheers

Leave a Reply

Your email address will not be published. Required fields are marked *