Prev | Next |
Create a Project in an Oracle Database
To create a project in a repository on Oracle 9i, 10g, 11g or 12c, you work through these stages:
- Stage 1: Create a new Oracle database user to own the Enterprise Architect tables
- Stage 2: Connect to the Oracle repository; Sparx Systems recommends using Oracle Provider for OLE DB - connecting with either Microsoft OLE DB Provider for ODBC or Microsoft OLE DB Provider for Oracle could cause unexpected behavior or performance issues due to known limitations of those drivers
- Stage 3: Set up initial model data
Prerequisites
- A machine with Oracle 9i, 10g, 11 g or 12c installed and running
- Oracle Client installed on the client machine, please ensure that the OLE/DB drivers are installed (you can download the drivers from the Oracle Technology Network web site, as part of the Oracle Data Access Components (ODAC) package; see Learn more)
1. Create Database Repository
Step |
Action |
See also |
---|---|---|
1.1 |
Create a new Oracle database user to own the Enterprise Architect tables. |
Create an Oracle Repository |
1.2 |
Open your SQL management console of choice (such as Oracle SQL Developer) and connect to the newly create Enterprise Architect repository. |
|
1.3 |
Load the EASchema_1220_Oracle.sql file from the Sparx Systems website. |
|
1.4 |
Run the script to create the required database schema. |
2. Set up Oracle connection
2.1 |
In order for a OLE/DB connection to connect to an Oracle based Enterprise Architect repository an entry in each user's local TNSNAMES.ORA needs to be defined, stating the server name, port etc of the Oracle server. |
3. Set up Initial Data
Enterprise Architect repositories requires a basic amount of reference data to function correctly.
Setting up this initial data can be achieved in 2 different ways:
- Transferring the entire contents of an existing model into the new repository, or
- Load Initial data using a SQL Script
3.1 Load Initial Data - Transfer existing model
Step |
Action |
See also |
---|---|---|
3.1.1 |
In Enterprise Architect, open the existing repository and select 'Configure > Model > Integrity > Project Integrity' in the ribbon. |
|
3.1.2 |
Ensure that the Action is set to 'Report Only' and that all items in 'Checks to Run' are enabled, then click the . |
|
3.1.3 |
If Enterprise Architect detects that the existing model contains integrity issues then these will be listed, these should be corrected before continuing with the Project Transfer. |
|
3.1.4 |
With Enterprise Architect open, ensure that it there is no Project loaded, by selecting 'Close Project' from the |
|
3.1.5 |
Select the 'Configure > Model > Transfer > Project Transfer' ribbon option. The 'Project Transfer' dialog displays. |
|
3.1.6 |
In the 'Transfer Type' panel, select 'File to DBMS'. |
|
3.1.7 |
At the right of the 'Source Project' field, click on the If the file has Replication enabled, this must be removed before performing the transfer. |
Remove Replication |
3.1.8 |
At the right of the 'Target Project' field, click on the The 'Datalink Properties' dialog displays. |
|
3.1.9 |
Select 'Oracle Provider for OLE DB' from the list. Click on the . |
|
3.1.10 |
On the 'Connection' page of the 'Datalink Properties' dialog, enter the Oracle service name in the 'Data Source' field, and the user name and password as required. Click on the . The 'Project Transfer' dialog redisplays. |
|
3.1.11 |
If required, select the 'Logfile' checkbox and type a path and filename for the data transfer log file. |
|
3.1.12 |
Click on the to begin the data transfer process. |
|
3.1.13 |
When the process is complete, you have created a project on a Oracle database and can now connect to it and open it from Enterprise Architect. |
Connect to an Oracle Repository (OLE DB) |
3.2. Load Initial Data - SQL Script
3.2.1 |
Open your SQL management console of choice (such as SQL Developer), log in as the owner of the newly create Enterprise Architect repository. |
3.2.2 |
Load the EABase_1220_Oracle.sql file from the Sparx Systems website. |
3.2.3 |
Run EABase_1220_Oracle.sql to create the required database schema. |
Notes
- When transferring a project to Oracle you must have access rights to execute the CREATE SEQUENCE command