Using an Oracle table as a lookup

Post questions here relative to DataStage Server Edition for such areas as Server job design, DS Basic, Routines, Job Sequences, etc.

Moderators: chulett, rschirm, roy

Post Reply
johnno
Participant
Posts: 50
Joined: Wed Mar 05, 2003 5:33 am

Using an Oracle table as a lookup

Post by johnno »

Hi all,

Using V6 on W2K. I want to use an Oracle table as a lookup to validate some data against, but it keeps asking for a table name. When I set this up using the ORAOCI9 stage, there is no where to enter a table name. Does this mean that the table name is set in the driver and that a new driver needs to be set up for each table you wish to access?

As usual, any help greatly appreciated.
tonystark622
Premium Member
Premium Member
Posts: 483
Joined: Thu Jun 12, 2003 4:47 pm
Location: St. Louis, Missouri USA

Post by tonystark622 »

Hi Johnno,

If you set the query type to "column generated", then click on the build button, you'll see the "From clause" text box. You can put the table name in there. Then change your query type back to what it was. You may want to copy the SQL before you do this, if you're using User-Defined SQL.

Good Luck,
Tony
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

It's there, just not in the most obvious place. It depends on your "Query Type".

*Fully Generated SQL Query. Click 'Build' and work thru the stupid [}:)][;)] query builder. Pick the table name(s), columns, etc from your imported metadata.
*Column Generated SQL Query. Click 'Build' and you'll something more intuitive to fill out - From, Where and Other clauses.
*User Defined SQL Query. All up to you.

-craig
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Or choose the Grid Style GUI [:D]

Ray Wurlod
Education and Consulting Services
ABN 57 092 448 518
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Oh yah - right-click and select the Original Recipe 'Grid Style'. Why is that the only way to 'inject' connection Parameters into the OCI stage? Who types in parameter names when you can click an 'Insert Parameter' button? [:D]
Post Reply