Page 1 of 1

Oracle connect by functionality in DataStage

Posted: Wed Sep 19, 2007 7:59 am
by madhukar
Hi All,

How can i achieve Oracle connect by functionality in DataStage

regards
madhukar

Posted: Wed Sep 19, 2007 4:29 pm
by ArndW
The PX Documentation contains several chapters on connecting PX and Oracle via different methods on different platforms. What specifically are you asking?

Posted: Wed Sep 19, 2007 4:49 pm
by chulett
This, I assume:

http://www.psoug.org/reference/connectby.html

How to replicate this Oracle functionality strictly in a DataStage job.

Posted: Wed Sep 19, 2007 4:55 pm
by ArndW
Craig - thanks, I was so much in DataStage mode that I assumed the "connect" meant database connectivity. My bad.

Posted: Wed Sep 19, 2007 8:34 pm
by kduke
We did it in DataStage by running a job over and over until it selected 0 rows. What a mess. It is sort like drilling down one level at a time.

Posted: Wed Sep 19, 2007 10:14 pm
by chulett
Exactly. So, why the 'need' to replicate this in DataStage when your database can do it for you? And if a database isn't involved - get it involved. Load your hierarchical data into a work table (or tables) and source from there.

Posted: Wed Sep 19, 2007 10:22 pm
by Yuan_Edward
Do you guys think a parallel routine could achieve this? I will have a similiar requirement in our project.
kduke wrote:We did it in DataStage by running a job over and over until it selected 0 rows. What a mess. It is sort like drilling down one level at a time.

Posted: Wed Sep 19, 2007 10:31 pm
by Yuan_Edward
Well, in our project, the only reason that we want to do it in DataStage could be, I guess, we want to utilize the parallel processing capability of DataStage to handle huge volume of data.

Database like Oracle does have parallel processing ability but it is not as flexible as DS.
chulett wrote:Exactly. So, why the 'need' to replicate this in DataStage when your database can do it for you? And if a database isn't involved - get it involved. Load your hierarchical data into a work table (or tables) and source from there.

Posted: Thu Sep 20, 2007 12:44 pm
by madhukar
Actually, we need to achieve during our transformation part where data will be either in datasets or output of a processing stage.

We wanted to avoid putting into a table, do connect by and reprocess again for transformation

Regards,
Madhukar