Go Back   CORTEX Forums > Best Practices > Subject Matter Expertise > Data Integration Forum > Data Integration News Feeds
Register Blogs FAQ Members List Calendar Search Today's Posts Mark Forums Read

Kettle vs Oracle REF CURSOR

This is a discussion on Kettle vs Oracle REF CURSOR within the Data Integration News Feeds forums, part of the Data Integration Forum category; Dear Kettle fans, PDI-200 has been out there for a while now. *Jens created the feature request a little over 3 years ago. *I guess the main thing blocking this ...


Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old 17th November 2010, 10:20 AM   #1
News Bot
 
Join Date: Nov 2007
Posts: 15,067
Latest News Headlines is on a distinguished road
Post Kettle vs Oracle REF CURSOR

Dear Kettle fans,

PDI-200 has been out there for a while now. *Jens created the feature request a little over 3 years ago. *I guess the main thing blocking this issue was not as much a technical problem but more of a licensing and dependency one (Oracle JDBC dependency and distribution license).

However, now that we have the User Defined Java Class step we can work around those pesky problems. That is because the Java code in there only gets compiled and executed at runtime so it’s perfectly fine to create any sort of dependency in there you like.

The following transformation reads a set of rows from a stored procedure as described on this web page.

In short, our UDJC step executes the following code:
begin ? := sp_get_stocks(?); end;

The result is a set of rows and the parameter is in this case a single numeric value.



The step contains mostly Java code but thanks to configuration options you only need to do 2 things to make this work for your own REF CURSOR returning procedures…

First you need to specify the output fields of the rows…



And then you need to specify the parameters:



The source code for this sample transformation is over here and runs on Pentaho Data Integration version 4.x (or higher). *All in all it only took a few hours to write these 150 lines of Java so perhaps it can serve as inspiration for other similar problems you might have with Oracle or other databases.

Until next time,

Matt



More from Matt Casters on Data Integration (Pentaho) Blog...
Latest News Headlines is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiTweet this Post!
Reply With Quote
Reply

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On


LinkBacks (?)
LinkBack to this Thread: http://www.tbig.com.au/forums/data-integration-news-feeds/17350-kettle-vs-oracle-ref-cursor.html
Posted By For Type Date
foodmart.script oracle pentaho | BoardReader This thread Refback 22nd November 2010 05:24 PM

Similar Threads
Thread Thread Starter Forum Replies Last Post
Pentaho Kettle Solutions Overview Latest News Headlines Data Integration News Feeds 0 9th October 2010 07:07 AM
Kettle log text capturing Latest News Headlines Data Integration News Feeds 0 3rd March 2010 04:42 AM
Easter Eggs for MySQL and Kettle Latest News Headlines DWH Tip Feeds 0 28th January 2010 05:25 AM
Exporting a Kettle Repository to Files Latest News Headlines DWH Tip Feeds 0 25th November 2009 11:03 AM
Kettle 4 Logging architecture Latest News Headlines Data Integration News Feeds 0 25th November 2009 10:39 AM


All times are GMT +11. The time now is 05:51 PM.

© The Business Intelligence Group

Search Engine Optimization by vBSEO