Set Up a Database Repository
Introduction
The Desktop and Professional versions of Enterprise Architect use an MS JET database as the model repository.
If you purchase the Corporate, Business and Software Engineering, Systems Engineering or Ultimate edition, you can create and use any of the following data repositories:
- SQL Server 2000, 2005 or 2008
- MySQL 4 or 5
- PostgreSQL 7 or 8
- Adaptive Server Anywhere 8 or 9, or SQL Anywhere 10 or 11
- Access 2007
- Progress OpenEdge
- MSDE or
- Oracle 9i, 10g or 11g.
You upsize the Enterprise Architect models (either existing or template) to use your selected DBMS. The process of upsizing a model is straightforward and comprises the following steps:
- Install the DBMS software and create a database. Ensure that the collation is set to the alphabet you use, such as Latin or Cyrillic.
- Run a script supplied by Sparx Systems (www.sparxsystems.com/registered/reg_ea_corp_ed.html) to create the required tables.
- Open Enterprise Architect and use the Project Data Transfer function (select the Tools | Data Management | Project Transfer menu option) to move a model from a .EAP file to the DBMS repository.
Note: |
You cannot move a model from a source .EAP file of a version earlier than 3.5.0. |
Setting up a database repository is a two- or three-stage process: firstly, you set up an ODBC driver for your database; secondly, you create the repository tables using scripts downloaded from the Sparx Systems web site; and finally, you connect to the repository. Full instructions on all three stages are provided below.
Set Up an ODBC Driver
Setting up an ODBC driver is only necessary for MySQL, PostgreSQL, Progress OpenEdge and Adaptive Server Anywhere. The other supported databases connect using OLE DB, so this stage can be skipped. To find out how to set up an ODBC driver, go to:
Create a Repository
To find out how to download the scripts and create the data repository tables, go to:
- Create a MySQL Data Repository
- Create an Access 2007 Repository
- Create a SQL Server Data Repository
- Create an Oracle Data Repository
- Create a PostgreSQL Data Repository
- Create an Adaptive Server Anywhere Data Repository
- Create an MSDE Server Data Repository
- Create a Progress OpenEdge Data Repository
Connect to a Repository
Once the repository is created, you can connect to it. To find out how, go to:
- Connect to a MySQL Data Repository
- Connect to a SQL Server Data Repository
- Connect to an Oracle Data Repository
- Connect to a PostgreSQL Data Repository
- Connect to an Adaptive Server Anywhere Data Repository
- Connect to an MSDE Server Data Repository
- Connect to a Progress OpenEdge Data Repository.