Named Pipes
named pipes allow one to do such things as redirect data exports straight to a tape device, or to another load command. You can dump from one productline and immediately load into a second productline
Here is a Lawson procedure for dumping with named pipes:
- Create a fifo file
mknod named.pipe p
- Start the data load process. It will wait for input until the end of the process.
impexp -f productline named.pipe
- Open a second Lawson session.
- Start the unload process. This will write to the fifo file which in turn, routes the data to the load process.
expsysdb -s productline named.pipe
Dump and compress
Here is a procedure that dumps and compresses data from an Oracle export:
- mknod /tmp/exp_pipe p
- compress < /tmp/exp_pipe > productline.dmp.Z &
- exp file=/tmp/exp_pipe userid=username/password full=y
To import the data back in, you would need to uncompress:
- mknod /tmp/imp_pipe p
- uncompress < /tmp/imp_pipe > productline.dmp.Z & imp file=/tmp/imp_pipe userid=username/password
Dump and split
Here is a procedure that dumps data and splits it into files that are a maximum of 2GB in size:
- mknod expsysdb_pipe p
- split -b2047m expsysdb_pipe expsysdb.dmp_ &
- expsysdb prodline expsysdb_pipe
This will produce a series of files called expsysdb.dmp_XX, where XX starts out at "aa", then progresses through "ab", "ac", etc,...
To pull the data back in run:
- cat expsysdb.dmp_* > expsysdb_pipe &
- impexp prodline expsysdb_pipe
Home
|