Regarding exporting datamodel

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

vijaykumar
Participant
Posts: 228
Joined: Tue Oct 03, 2006 7:08 pm

Regarding exporting datamodel

Post by vijaykumar »

Hi Gurus,

My friend has developed a datamodel, i have created a schema in oracle, i want to export the datamodel into my schema.Can anyone help me out.

cheers;
vijay
narasimha
Charter Member
Charter Member
Posts: 1236
Joined: Fri Oct 22, 2004 8:59 am
Location: Staten Island, NY

Post by narasimha »

Do you want to use Datastage to do this?
Narasimha Kade

Finding answers is simple, all you need to do is come up with the correct questions.
kumar_s
Charter Member
Charter Member
Posts: 5245
Joined: Thu Jun 16, 2005 11:00 pm

Post by kumar_s »

Hi Vijay,

Here, what are you referring to as schema?
Impossible doesn't mean 'it is not possible' actually means... 'NOBODY HAS DONE IT SO FAR'
I_Server_Whale
Premium Member
Premium Member
Posts: 1255
Joined: Wed Feb 02, 2005 11:54 am
Location: United States of America

Re: Regarding exporting datamodel

Post by I_Server_Whale »

vijaykumar wrote:My friend has developed a datamodel,
Was the datamodel created using any tool, for ex: ERwin, etc? How was the datamodel created?
Anything that won't sell, I don't want to invent. Its sale is proof of utility, and utility is success.
Author: Thomas A. Edison 1847-1931, American Inventor, Entrepreneur, Founder of GE
vijaykumar
Participant
Posts: 228
Joined: Tue Oct 03, 2006 7:08 pm

Post by vijaykumar »

Hi,
My friend used ERWIN tool to design the datamodel.
I created schema using command

create user username identified by password.
grant dba priviledges.

Now How can i export the created datamodel into schema.
Can i do with datastage, or should i go for any other tool.

cheers;
vijay
narasimha
Charter Member
Charter Member
Posts: 1236
Joined: Fri Oct 22, 2004 8:59 am
Location: Staten Island, NY

Post by narasimha »

Again, what do you mean by schema.
There is no out of the box solution do what you want, from datastage.
Why not use ERWIN to do the same?
Narasimha Kade

Finding answers is simple, all you need to do is come up with the correct questions.
kumar_s
Charter Member
Charter Member
Posts: 5245
Joined: Thu Jun 16, 2005 11:00 pm

Post by kumar_s »

So I assume its LDM to PDM (Logical Data model to Physical Data Model).
Impossible doesn't mean 'it is not possible' actually means... 'NOBODY HAS DONE IT SO FAR'
I_Server_Whale
Premium Member
Premium Member
Posts: 1255
Joined: Wed Feb 02, 2005 11:54 am
Location: United States of America

Post by I_Server_Whale »

kumar_s wrote:So I assume its LDM to PDM (Logical Data model to Physical Data Model).
Me too! And like Narasimha suggested, why not use Erwin to create the PDM.

Whale.
Anything that won't sell, I don't want to invent. Its sale is proof of utility, and utility is success.
Author: Thomas A. Edison 1847-1931, American Inventor, Entrepreneur, Founder of GE
vijaykumar
Participant
Posts: 228
Joined: Tue Oct 03, 2006 7:08 pm

Post by vijaykumar »

Hi Gurus,
I mean to say ,for eg: scott is the default schema name in oracle.
instead of working out with that schema, iam creating new schema by sql command

create user username identified by password.
grand dba priviledges.

Actually my requirement is:I was given a datamodel . Now what i want is that i want to fire SQL queries into that datamodel so as to validate all the relationships(entity relationships, primary key and foreign key relationships described are valid).

How can i do that.

cheers;
vijay
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

What in the world would any of this have to do with DataStage? Use TOAD or sql*plus.
-craig

"You can never have too many knives" -- Logan Nine Fingers
vijaykumar
Participant
Posts: 228
Joined: Tue Oct 03, 2006 7:08 pm

Post by vijaykumar »

Hi,
Sorry, since you are Gurus, i thought that you people would help me in getting the best optimized approach.

cheers;
vijay
narasimha
Charter Member
Charter Member
Posts: 1236
Joined: Fri Oct 22, 2004 8:59 am
Location: Staten Island, NY

Post by narasimha »

Craig already told you the optimal method.
Using Datastage for this will make things more difficult for you.
Narasimha Kade

Finding answers is simple, all you need to do is come up with the correct questions.
kumar_s
Charter Member
Charter Member
Posts: 5245
Joined: Thu Jun 16, 2005 11:00 pm

Post by kumar_s »

The optimized approach would be...
wrap the SQLs in a SQL file. Call that SQL through a shell script. Call that script through an Execute command Activity stage in Datastage. Call that JobControl using a BASIC Routine.
And finally Schedule it. :wink:
Impossible doesn't mean 'it is not possible' actually means... 'NOBODY HAS DONE IT SO FAR'
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

As others have noted, this is not an ETL task, and therefore DataStage is not the correct tool.

Whatever tool you used to develop the logical model ought to have the capability to create a physical model, and to generate DDL from that. If not, find a tool that can, such as ERwin, ER/Studio, Rational, and so on.

Such tools integrate more closely with IBM Information Studio, as they share a common repository.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
kduke
Charter Member
Charter Member
Posts: 5227
Joined: Thu May 29, 2003 9:47 am
Location: Dallas, TX
Contact:

Post by kduke »

There is a routine which creates DDL from DS_METADATA called KgdCreateDdlMetadata. It is on my tips page. You could easily modify this to do the same from hashed file of your choice. You need to extract the table names and column names into this hashed file.
Mamu Kim
Post Reply