From the logical data model of the Atomic Warehouse Model
(AWM) or the Dimensional Warehouse Model (DWM), you can create a physical
data model.
Before you begin
A valid logical data model of your AWM or DWM in ERwin must exist.
About this task
The procedure below relates to ERwin
v9 or higher.
Procedure
-
Import the Glossary.
-
Right click on Naming Standards and select
New.
-
Right click on the new item and select Properties.
-
Check the Is Active radio button on the editor and select
Match Whole Words Only and then Import From CSV.
-
Close the dialogue.
-
Change the ERwin Model Naming
Options.
-
Go to .
-
In the General tab, select Use file: and browse
to select the NamingGlossary.nsm.
-
In the Logical tab, change the maximum length for
Relationships to 128.
-
In the Name Mapping tab, select the Use Glossary
check box for Entity to table, Domains and
Attribute to Column.
-
In the Macro Name cell for Entity to table, enter
%upper(%EntityName()).
-
In the Macro Name cell for Relationships, enter
FK_%RelId.
-
For Special Characters choose Replace in the
drop-down list.
-
Replace with _ (underscore) character.
-
On the Duplicate Names tab, select Automatically rename
Duplicate Names.
-
Click OK to close the dialog box.
-
Create the physical model.
-
Go to .
-
In the Target Model section select the Physical
radio button.
-
In the Target Model tab, select Physical and
specify the correct database and version.
-
Click Next.
Note: If a new screen pops up for Type Resolution, just click
Finish to go back to the Derive Model wizard.
-
In the Object Selection tab, select the relevant subject areas.
-
Click Derive to create a model in ERwin.
-
Save as an .Erwin file. For example, AWM_Physical.Erwin.
Results
This creates a physical data model file of your AWM or DWM.