Hi All,

So I've been working on a Proof of Concept with the new Informix Warehouse Accelerator. Part of that is getting data from source systems , and often those source systems are on another Database system. When doing work with that you inevitably use an ETL tool of some sort, and the customer I'm working with uses IBM Datatastage.

I'm using an older version of Datastage, and the ODBC driver is slow. SO I was looking for a quicker way to load, while at the same time not taking up any space, except inside the database. So I wanted to share the method used:

  • on your Datastage server, create a pipe
        mkfifo /tmp/pipe1
  • Write your datastage job to write the output of the job to the pipe.
  • On your informix server, create a pipe
         mkfifio /tmp/pipe2
  • Get your pipe2 to write to pipe2
         ssh informix@dsserver 'cat /tmp/pipe1' > pipe2
  • Create your external table with the pipe
         create external table et_ sameas
         using (datafiles("PIPE:/tmp/pipe2"));
  • Kick off your datastage job
  • Load the external table
          insert into select * from et_


Now one thing to keep in mind is that if trusting is not enabled then the window doing the cat and redirect for the pipes may need a password entered. So far this has been at least 8x faster than ODBC, and note the other peice. I only used 1 pipe, Obviously you can use as many pipes as Datastage will allow. I also didn't use PDQ which would have increased performance for my fragmented table too.

Author: MarkJamison

Copyright © 2011. All rights reserved. Copyright


{mosgoogle}

{mos_sb_discuss:4}


 
Newsflash
IBM intends to offer NoSQL database capabilities inside of DB2 beginning early next year, according to a keynote speaker at IBM Information On Demand 2011.


Read more...
 

Title: Best Practices for Embedded Data Management
Date: Thursday, May 24, 2012
Time: 10:30 AM - 12:00 PM (Central Time), 16:30h Germany
Presented By: Pradeep Natarajan - Software Developer (IBM)
Registration: Best Practices for Embedded Data Management

Description:

 
A small footprint, a silent i...
Read more...
 
Ads