Book a Demo

Author Topic: Reverse engineer from text DDL file  (Read 6554 times)

speekna

  • EA User
  • **
  • Posts: 25
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Reverse engineer from text DDL file
« on: October 30, 2006, 08:57:50 am »
Can EA reverse engineer from a DDL file instead of an ODBC connection?

Need:  I have several very large (3000 tables) databases that have not had referential integrity implemented - however I DO have Erwin models that show what the relationships should be.  The DBA's use ERwin to generate the DDL, but choose not to generate foreign keys.  

We are moving to an integrated modeling environment (a very good thing!) using UML & EA.  I would like to discontinue using ERwin, but I cannot afford to loose the knowledge invested in ERwin.  My plan is (was?) to generate the DDL - with RI - and import it into EA.


Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: Reverse engineer from text DDL file
« Reply #1 on: October 30, 2006, 09:57:16 am »
Hi speekna,

While the inability to reverse engineer from DDL is a big limitation in EA, why not just get your DBA(s) to create an empty DB (via DDL) with the foreign keys and reverse engineer that (via ODBC) into EA?

You can then reset the connection to the real DB and continue from there...

However, I suspect that until you get the RI keys into the real DB, you might have ongoing problems reverse engineering from the real DB - but that's not EA's fault.

HTH,
Paolo
Inconsistently correct systems DON'T EXIST!
... Therefore, aim for consistency; in the expectation of achieving correctness....
-Semantica-
Helsinki Principle Rules!

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: Reverse engineer from text DDL file
« Reply #2 on: October 30, 2006, 10:13:36 am »
AFAIK, not at this time.

There is a handy workaround though. Can you run the DDL file against your DBMS to create an empty schema? If so, just connect EA to that schema and import.

There was considerable discussion some time ago about adding extending EA to support updating preexisting databases. Your requirement and this feature share many common back end elements. This did not make it into 6.1 or 6.5. I don't remember for sure, but it might have been proposed for 7.0. Given the recent pace of EA evolution, that could well be out early next year.

HTH, David
No, you can't have it!

speekna

  • EA User
  • **
  • Posts: 25
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Re: Reverse engineer from text DDL file
« Reply #3 on: October 30, 2006, 10:37:38 am »
Thanks Paolo & David -
I thought indeed about generating an "empty" schema database & reverse engineering from that - it just seems like an unnecessary step, & all case tools from way back did this - even Visio (ugh!).   Besides, with 3000 tables, it's not trivial, and since it's mainframe DB2 I need to involve DBA's, which increases time & $$... i.e., a pain, lag, & expense - what we're all trying to avoid with agile methods.

Another capability I'm going to be testing soon (to your point David) is the ability to reverse engineer selected tables, then MERGE them into an existing database model, choosing what to keep & what not to keep - ERwin does this very, very well, and while I don't expect perfection in this area from EA, this capabiliity has saved tons and tons of time, and has made it possible to be much more responsive to projects.  

Here's yet another thing I'd like to do - maybe i should start a new thread -

Before we got UML going, I used ERwin logical models to do domain object modeling - i.e., where the boxes are business things representing business vocabulary, and may not develop into tables at all - they can be used to develop tables, but they're primarily for communication & getting people on the same page.  I have over 800 objects, & had been thinking if I could generate a database - even Access would do in this case - I could reverse engineer it into tables..

BUT THEN - what I really need is to transform that model from a database model to a domain object model!  I'm very impressed with EA's ability to go in the other direction - i.e. from domain objects to tables -


Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: Reverse engineer from text DDL file
« Reply #4 on: October 30, 2006, 02:24:51 pm »
If you can reverse the DDL into Visio, EA now has a Visio reader Add-in (see Resources part of the web site).  That might be a transitional process.

I haven't used the add-in myself, but it might be worth a look.

Also, you could build the DB with one of the free RDBMSs (offline) and then import from there...

HTH,
Paolo
« Last Edit: October 30, 2006, 02:25:02 pm by PaoloFCantoni »
Inconsistently correct systems DON'T EXIST!
... Therefore, aim for consistency; in the expectation of achieving correctness....
-Semantica-
Helsinki Principle Rules!

speekna

  • EA User
  • **
  • Posts: 25
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Re: Reverse engineer from text DDL file
« Reply #5 on: October 30, 2006, 02:43:07 pm »
I know I can generate to Visio (but 3000 tables?!?!?), but then I don't believe I'll get all the DB2 object assignments - databases, stogroups, tablespaces, etc...which the DBA's need.  We have SQL Server as well, & I could also do that.

BTW - if anyone's attempting to go from ERwin to EA - the MetaIntegration bridge (look up MetaIntegration.com) generates XMI from ERwin, which can be imported into EA - and EA release 799 gets ALL the definitions AND the ERwin supertype/subtypes!  

So... we might just go that route instead.  

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: Reverse engineer from text DDL file
« Reply #6 on: October 30, 2006, 03:54:18 pm »
Quote
I know I can generate to Visio (but 3000 tables?!?!?), but then I don't believe I'll get all the DB2 object assignments - databases, stogroups, tablespaces, etc...which the DBA's need.  We have SQL Server as well, & I could also do that.

BTW - if anyone's attempting to go from ERwin to EA - the MetaIntegration bridge (look up MetaIntegration.com) generates XMI from ERwin, which can be imported into EA - and EA release 799 gets ALL the definitions AND the ERwin supertype/subtypes!  

So... we might just go that route instead.  
Say no more!

I didn't realise ERWin had XMI output...

Paolo
Inconsistently correct systems DON'T EXIST!
... Therefore, aim for consistency; in the expectation of achieving correctness....
-Semantica-
Helsinki Principle Rules!

speekna

  • EA User
  • **
  • Posts: 25
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Re: Reverse engineer from text DDL file
« Reply #7 on: October 31, 2006, 07:01:23 am »
Just a note - ERwin has an XML export - but it's not XMI compliant.  CA does not provide this capability.

The Metaintegration bridge is from another company - MetaIntegration.  They have products that move metadata between almost every CASE /UML tool on the planet.  Worth looking at for folks using ERstudio, ERwin, & others.