Access two schemas in one stage

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
gomathy
Participant
Posts: 2
Joined: Fri Dec 06, 2002 5:17 am

Access two schemas in one stage

Post by gomathy »

Is it possible to access tables from two different schemas in a single stage.?
For instance in a ORAOCI8 plugin, the tables in the Input tab and Output tab of the plugin are in different schemas.
How do we pass the db access parameters since there is a facility to provide for only one in the ORAOCI8 plugin stage?
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Short answer is no.

Long answer is you can't access multiple schemas via a single plugin stage. You will have to use two different OCI8 stages. Depending on the situation, you may have to play some games to get it to work, but it certainly should be possible. Why don't you explain in detail what you are trying to do and we'll see if we can help?

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

Post by ray.wurlod »

The reason the answer is no is that the connection is a property of the stage, not of the link.
There ought to be no difficulty using two stages in your example, with just a link between them.
gomathy
Participant
Posts: 2
Joined: Fri Dec 06, 2002 5:17 am

Post by gomathy »

thanx..
the problem we faced was few columns of table1 needs to b updated from table2.
table1 is the output from a transformer stage..Instead of having table2 as lookup ,we tried giving it in the output tab of the oraoci8 plugin linked to transformer2 map the columns to b updated and here table1 is the output..this was thought about since lookup degrades performance.

Thanks,
Gomathy
mihai
Participant
Posts: 30
Joined: Thu Mar 13, 2003 5:24 am
Location: Hertfordshire

Post by mihai »

Alternatively, you could set some synonyms in schema1 pointing to tables in schema2. The down-side is that you will need to be careful with security (i.e. permissions/grants) in Oracle.

Mihai

_________________
desk: 01908448571
Post Reply