Teradata-Retrieve data from tables in Multiple databases

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
Aparna_A
Participant
Posts: 21
Joined: Wed Nov 09, 2005 11:16 pm

Teradata-Retrieve data from tables in Multiple databases

Post by Aparna_A »

Hi,

Using a Teradata Enterprise Stage, Could anyone pls. let me know how to retrieve data by joining tables available in different databases. :shock:

When Database option is not set, the stage tries to read from default user database, but I have to read data from 2 databases other than user default database.

When Database option is set, we cna read data from only a single database.

Pls. help.
Aparna
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

How would you do this outside of DataStage? In Oracle, for example, one would create a dblink between them, there must be a similar technique for Teradata.
-craig

"You can never have too many knives" -- Logan Nine Fingers
hamzaqk
Participant
Posts: 249
Joined: Tue Apr 17, 2007 5:50 am
Location: islamabad

Post by hamzaqk »

are you trying to export the data in the same stage ? specify the fully qualified SQL statement in the user defined SQL to fast export the data. Not sure why are you using this but would be a good idea to use the Multiload to do this.
Teradata Certified Master V2R5
Aparna_A
Participant
Posts: 21
Joined: Wed Nov 09, 2005 11:16 pm

Post by Aparna_A »

Hi,

I used fully qualified name and was able to retrieve data..
Can you elaborate how a multiload stage helps in this scenario..
Aparna
hamzaqk
Participant
Posts: 249
Joined: Tue Apr 17, 2007 5:50 am
Location: islamabad

Post by hamzaqk »

more flexible and less bugs as compared to the enterprise stage.
Teradata Certified Master V2R5
Post Reply