I am attempting to move data between 2 DB2 Linux databases using a
pipe. I can't seem to get it working. Any assistance is appreciated.
I first issue:
mkfifo -m777 mypipe
db2 "connect to src_db"
db2 "export to mypipe of DEL MODIFIED BY COLDEL, MESSAGES exp.msg
select * from myschema.old_table"
Followed by:
db2 "connect to target_db"
db2 "import from mypipe of DEL MODIFIED BY COLDEL, MESSAGES imp.msg
replace into myschema.new_tbl"
The pipe gets created with proper permissions. I can issue a unix
"cat" command and the data comes back to the screen nice. The export
even completes successful when I issue the "cat".
However, When I issue the import commadn, I get the following on the
export side "
SQL3001C An I/O error (reason = "sqlofopn -2029060074") occurred while
opening the output file.
If I set up my test using an actual file instead of a pipe, it works
fine as well.
Any ideas are appreciated. Thanks.