connecting/extracting from multiple schemas

Post questions here relative to DataStage Enterprise/PX Edition for such areas as Parallel job design, Parallel datasets, BuildOps, Wrappers, etc.

Moderators: chulett, rschirm, roy

Post Reply
tostay2003
Participant
Posts: 97
Joined: Tue Feb 21, 2006 6:45 am

connecting/extracting from multiple schemas

Post by tostay2003 »

Hi there,


I dont have a parallel version with me, but have a doubt regarding it while discussing with my friend.

Can we extract data by using single oracle stage from two different schemas using SQL statements??? Can one stage be used to connect to two schemas?

eg :

select A.id,
A.dat1,
A.dat2,
B.id,
B.dat1

from
schema1 A,
schema2 B

where
A.id=B.id

Can we do this??

Regards
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

If yopu can execute this SQL statement with your query tool, then you can do so in PX as well.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Two schemas in the same instance? Sure. Two instances would require dblinks.
-craig

"You can never have too many knives" -- Logan Nine Fingers
Post Reply