Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Page 1 of 21
Forward Engineering
Reverse Engineering
Erwin Supports Data Modeling For A Wide Variety of Relational DBMS Software.
Physical
In This View, Data Model Represents Physical Structures Like Tables, Columns,
Data Types Etc.
Modelmart
Data Models Can Be Created From Existing Systems Like RDBMS, DBMS, Script
Files.
By Using Modelmart, Concurrent Users Can Work on The Same Data Model.
Starting CA-Erwin
In The Create Model Dialog Box Select Logical/Physical Option, And Any
Template if Available.
Select The Target Database As Oracle And Version As 10.x And Click OK.
NOTE
The Logical Model Does Not Allow The Target Database Selection.
The Physical Model Provides A List of Different Databases That Are Supported
By Erwin.
Setting Preferences
From The Format Entity Display Menu, Make Sure That Primary Key
Designator is Checked
From The Format Entity Display Menu, Make Sure That Foreign Key
Designator (FK) is Unchecked.
From The Format Entity Display Menu, Make Sure That Show Migrated
Attributes is Unchecked.
From The Format relationship Display, Make Sure That Verb Phrase is
Checked.
To Create A New Entity, Click on The Entity Icon on The Erwin Toolbar And Click
in The Display Area, OR Right-Click on The Entities Node in The Model
Navigator.
Notice That The Default Name For The New Entity is E/x, Where x is Sequence
Number of The Entity.
Select The Entity in The Display Area And Click on The Tab Key To Focus The
Cycle Between The Three Main Parts of The Entity
To Modify One of These Three Parts of The Entity, We Have To Press The Tab
Key To Cycle To The Appropriate Part of The Entity, Then Type To Add OR
Modify That Part of The Entity.
Once The Entity Name is Changed, Then Press The Tab Key Again To Move The
Focus To The Next Part of The Entity, To Add A Primary Key Attribute.
Type The Name of The Primary Key Attribute As Per The Requirement of The
System Being Designed.
Press The Tab Key After Adding The Primary Key Attribute, Which Will Help To
Add A Number of Non-Primary Key Attributes.
After Adding The Required Non-Primary Key Attribute Press The Enter Key, To
Add The Remaining Non Key Attributes.
Identifying Relationship.
Non-Identifying Relationship.
Many-To-Many Relationship.
One-To-One
One-To-Many
Many-To-Many
Identifying Relationship
A Solid Line With A Diamond OR A Filled Circle At Either End of The Line.
IE Notation
To Create An Identifying
Relationship Icon.
Click on The Parent Entity, Generally on The One Side of The Relationship Entity
And Then Click on The Child Entity on The Many Side of The Relationship Entity.
Relationship,
Click
First
on
The
Identifying
Note
The Relationship Dialog Box Has Features To Refine The Properties of The
Relationship.
In The Relationship Text Box The Relationship is Presented From Parent Entity
R/1 Child Entity.
The Verb Phrase Portion of This Box Allows To Define The Label To Place on The
Relationship in Place of R/1.
Note
Each of The Sub-Category Classifications Has All of The Properties of The Main
Category, But in Addition Have A Small Number of Specific Extra Attributes.
In Many Situations The Subtype Entities Do Not Contain Any Key Attributes.
The Attributes Registered in The Subtypes Are Only Registered To That Subtype
Entity And Should Not Be Part of The Main Type.
Steps in Erwin
To Indicate A Subtype of Main Type, Select The Subtype Icon, Click on The
Super Type Entity, Then on The Subtype Entity.
Once The Primary Keys Are Identified, We Should Define The Domain For Each
Attribute.
We Can Leave The Responsibility To Erwin For Converting The ER Diagram into
A Relational Schema.
Fundamental OR Strong Entities Are Those That Do Not Depend on Any Other
Entity For Their Primary Key.
Subtypes
The Sub-Types Do Not Contain Their Own Primary Keys, But They Inherit The
Primary Key From The Main Type.
Once The Primary Keys Are Identified For All The Strong Entities The Database
Schema Creation Can Be Commenced.
Datatype
Constraints
Constraint Can Set The Permitted Values Which Can Be Narrower Than
Defined By The Data Type Alone.
Specify The Required Options For Each Domain That Has To Be Created.
Type The Logical Name of The Domain As Identifier And Click OK.
Click on The Data Type Tab, And Choose The INTEGER Datatype For This
Domain.
After All The Required Domains Are Created, The Domains Are Individually
Attached To The Attributes.
The Final Step of Working With Domains is To Associate A Domain With Each
Attribute.
To Attach The Domain, Double-Click on One of The Entities in The E-R Diagram.
Click Format Entity Display in Menu And Check The Following Properties
o
To Transform The Logical ER Diagram into Physical Relational Schema Click And
Select The Physical Option.
We Can Use The Drawing Features To Enhance The Data Model Appearance And
Make it Easier To View And Understand.
Use Different Fonts And Colors To Identify New Objects From Old Objects in
The Model.
Select The Object For Which The Font And Color Has To Be Changed And Use
Object Font And Color Property
In Erwin The Color of An Object Can Be Related To The Color it Inherits From
Other Objects in The Diagram.
Select The Relation Line And Click Secondary Mouse Button And Choose Object
Font And Color.
A Stored Display Helps in Having Different Views For The Data Model Very
Quickly.
Select The Display Option Settings By Clicking The Property Tabs. Click OK To
Save.
A Subject Area is A Subset of Objects Taken From The Whole Pool of Objects in
The Model Diagram.
A New Data Model Includes One Subject Area Called The Main Subject Area,
Which Includes All of The Objects in The Data Model.
The Subject Areas Are Not Copies of The Data Model, But Are Dynamic Subsets
of The Data Model.
When A Members is Added To A Subject Area The Objects Are Added To The
Current Subject Area And The Main Subject Area.
Model Subject Areas OR Click The Subject Areas Button on The Toolbar.
Type A Name For The New Subject Area, And Click OK.
Click The Members Tab And Use The Arrows To Include The Objects in The New
Subject Area, Click OK.
Right-Click An Index Located Under A Table in The Model Explorer And Select
Properties (OR)
Click An Index Located Under A Table in The Model Explorer, And Then Click
The Property Editor Button.
In The Index Editor, Select The Index Columns From The Available Columns
List. Click OK.
Select Either New AK OR New IE, A New Folder With A Default Name is Added
To The Indexes List.
Document Prepared By The Technical Cell of
SkyEss Techno Solutions Pvt. Ltd., 80 / A, Flat No 201
Abhilash Towers, S.R. Nagar, Hyderabad : 500016. India
Phone : +91-040-23710047, info@skyessmail.com
Select The Index Columns From The Available Columns List, Click Close.
In AllFusion ERwin Data Modeler, A View Table And Relationship Line Are Both
Drawn With Dashed-Lines.
Click The Entity Button on The Allfusion Erwin DM Toolbox. Then Click in The
Diagram Window.
Copy A View From One Model And Paste it into Another Model.
Right-Click The Views Folder in The Model Explorer And Choose New.
A View Provides Restricted Access To The Data From The Actual Database Table
OR Tables.
Forward Engineering
Tables
Triggers
Stored Procedures
Indexes
Constraints
Select Open From The File Menu, And Open The Required Model For Schema
Generation.
Use The Model Type Indicator And Switch To The Physical Model.
Choose Forward Engineer, Schema Generation From The Tools Menu And Click
The Preview Button.
The Target Server We Select Determines The Options That Appear in The Editor.
In The Oracle Connection Dialog Box Enter A User Name, Password, And
Connect String.