306 63 4MB
Russian Pages [169]
«
»
. .
ALLFUSION MODELING SUITE. II ERwin Data Modeler
«
«
», «
»
2009
»,
. . II. Data Modeler. , 2009. - 167 .
.–
.:
.
AХХFusТШЧ MШНОХТЧР SuТtО. ERwin -
-
, AllFusion ERwin Data Modeler 7.2, , , . AllFusion ERwin Data Modeler 7.2. », « ,
: «
»(
«
,
-
», «
-
»). .
©
, 2009
© . .
2
.......................................................................................................................................................... 5 Ы
ЫALLFUSION ERWIN DM 7.2 ............................................. 5
ЯЫ
ЫALLFUSIONЫERWIN DM ..................................................................... 9
ЫALLFUSION
ERWIN DM 7.2 ............................................................................................................. 9 Ы(DISPLAY LEVEL) ............................................................................................ 17 Ы(SUBJECT AREA). ......................................................................................................................... 17 Ы Ы(STORED DISPLAY) .................................................................................................. 19 Ы Ы(MODEL EXPLORER) .......................................................................................................... 20 Ы Ы Ы(ACTION LOG) ................................................................................................... 25 ЫERWIN DM................................................................................................................................ 30
Ы
Ы
Ы
:ЫIDEF1X,ЫIE,ЫDM .................................................................. 31
Ы
Ы Ы
........................................................................................................ 31 33 Ы Ы Ы Ы ........................................................ 35
ЫIDEF1X ЫIE ....................................................................................................
Ы
Ы
Ы
Ы Ы Ы
Ы
Ы
Ы ЫERWIN DM............................................................ 37
Ы
Ы ЫALLFUSION ERWIN DM ..................................................................................... 37 ................................................................................................................................. 38 Ы Ы Ы ....................................................................................................... 40 ................................................................................................................................................. 40 .................................................................................................................................................. 44 ......................................................................................................................................................... 49 ..................................................................................................................................................... 69 Ы Ы ..................................................................................................... 71 Ы Ы Ы ....................................................................................................... 73 Ы ........................................................................................................................................ 73 ................................................................................................................................................... 74 .................................................................................................................................................... 75 ЫгView) ........................................................................................................................... 76 Ы Ыгmaterialized view) .............................................................. 76 Ы Ы Ы Ы Ы .............................................................................. 76 ................................................................................................................................................... 77 Ы Ы Ы ............................................................................................. 77 Ы Ы Ы ...................................................................................................... 78 Ы« Ы Ы Ы » ...................................................................................................... 79 Ы .......................................................................................................................................... 79 Ы ...................................................................................................................................... 83 Ы Ы Ы ЫCOMPLETE COMPARE ..................................................................................... 85 Ы ................................................................................................................................ 95 .............................................................................................................................................. 98 Ы Ы Ы ЫERWIN DM ................................................................................... 102 Ы Ы Ы ЫReportЫTemplateЫBuilder ............................................................... 103 Ы Ы Ы ЫяataЫBrowser .................................................................................. 106 Ы
Ы
Я 1. 2. 3. 4. 5. 6. 7. 8.
ERWIN DATA MODELER ...................................................................... 109
Ы
Ы Ы
Ы
Ы
Ы Ы
Ы Ы«
Ы
Ы Ы Ы
Ы
Ы
Ы Ы
Ы Ы
Ы
Ы Ы
Ы Ы
Ы
Ы
Ы Ы
Ы Ы
......................................................................................... 109 ................................................................................. 117 Ы .............................................................................. 119 Ы » .............................................................................. 121 Ы .......................................................................... 123 ............................................................................................. 131 Ы ......................................................................... 140 Ы Ы ........................................................................ 153
3
Ы Ы
9. 10.
Ы
Ы Ы
Ы
Ы
ЯЫ Ы Ы
Ы Ы Ы Ы .......................................................... 156 .................................................................................................... 160 ........................................................................................................................... 166 Ы
Я
Ы
................................................................................ 166
.................................................................................................................. 168
4
Fusion Modeling Suite;
All, -
, , AllFusion Process Modeler.
AllFusion ERwin Data Modeler –
.
. AllFusion ERwin Data Modeler (ERwin DM) – ,
ERаТЧ DM , . ERаТЧ DM , .
.
,
,
,
,
ERwin DM ,
,
-
,
, .
,
AllFusion ERwin DM . , ,
.
AllFusion ERwin DM 7.2
. ERаТЧ DM . Э -
.
(
. )
.
5
, -
.
. ERwin DM . ERwin DM , . . DШЦКТЧ NКЦТЧР StКЧНКrНs Editor DКtКtвЩО StКЧНКrНs Editor. . ,
-
,
Dictionary,
,
.
.
-
.
,
.
ERwin DM : Integration DEFinition for Information Modeling (IDEF1X), Information Engineering (IE), Dimensional Modeling (DM). . ERwin DM (SuЛУОМt ArОКs) (StШrОН DТsЩХКвs). , , . , . / (CoЦpХОЭО CoЦpКЫО). Э ,
. ,
ALTER
.
-
,
ERаТЧ DM .
. ERаТЧ DM
6
-
.
-
ERаТЧ DM
,
.
).
.
,
, ,
"
,
,
"
, .
, ERаТЧ DM Data Browser
-
.
,
,
/
.
/
"
.
. ERаТЧ DM
/
, ", , -
. ,
-
. ERаТЧ DM
-
(
ERаТЧ DM
DM
,
.
,
-
.
ERаТЧ .
(Model Explorer). Model Explorer – , . , Model Explorer . Undo/Redo. ERаТЧ DM « / » . Undo/Redo , , , . . , ,
. Report Template Builder –
7
-
,
.
: ERwin -
, TXT, PDF.
,
: HTML, RTF, .
ERаТЧ DM
-
AХХFusТШЧ / . AllFusion Saphir Option. ERP, SAP, SAP BА, PОШЩХОSШПt EЧtОrЩrТsО, PОШЩХОSШПt EЧtОrЩrТsО OЧО ( J.D. EНаКrНs OЧОАШrХН) SТОЛОХ, ERP. AХХFusТШЧ® Saphir Option , , AХХFusТШЧ ERаТЧ DM , , , , . AllFusion Data Model Validator (AllFusion DMV). AllFusion DMV , – . AllFusion DMV 80 , , , , . AllFusion ERwin API and Add-In Manager. ERаТЧ API Add-In Manager , AХХFusТШЧ Modeling Suite. AllFusion Model Manager. AllFusion ERwin DM AХХFusТШЧ Model Manager , , , , , . . ERwin DM
ETL/EII-
,
MS Excel, XSD, XMI, CWM,
,
BI/RОЩШrtТЧР, , Rational Data Architect, Oracle Designer, Sybase Power Designer 100 .
8
., –
-
. : 1. 2. 3.
ERwin DM. ERwin DM? ERwin DM.
AllFusion ERwin DM AllFusion ERwin DM 7.2 ERwin DM 7.2 АТЧНШаs, ERwin DM
7.2
,
. . 1.
:
ERwin DM 7.2
-
:
(ERwin Toolbar), o Model Manager (ModelMart Toolbar), o ERаТЧ (ERаТЧ Toolbox), o (Drawing Objects), o (ERwin Alignment Toolbar), o (Font&Color Toolbar), o (ERwin Transform Toolbar), o (Database Toolbar) ( ), , (Stored Display Tabs) (Action Log Pane), (Advisories Pane), (StКtus bar). (Model Explorer). ERwin DM. . (Status bar) : , . . 'RОКНв', , ERаТЧ DM . (Model Explorer) . o
9
ModelMart
Font&Color
ERwin
Х
Ж
. 1.
ERwin DM 7.2.
И
.
(AМtТon Log Pane) , (Model Explorer),
(AМtТon Log Pane) (Advisories Pane) . (
.
,
Save Advisories , ). -
), ( .
-
ERwin. . 1. AllFusion Model Manager
AllFusion Model Manager ( *.erwin, *.er1, *.xml,
-
,
AllFusion
Model Manager). ERwin Toolbox
AХХFusТШЧ ERwin
.
-
:
IE, DM) /
( ), -
. (Drawing Objects) ( . 2.
. 2.
. . 2).
,
(IDEF1x, , -
,
.
11
(ERwin Alignment Toolbar) . , , .
. . 3. Fonts&Colors Toolbar ERаТЧ DM. Font&Color Toolbar . 4.
-
( Object Font&Color ).
,
. Format, Default Fonts&Colors). (ERwin Transform Toolbar) .
fault Fonts&Colors (
,
, -
. . 5.
De-
-
(Database Toolbar) . . 6.
Database Toolbar
(StorОН DТspХaв Tabs)
. «
» HОХЩ.
; .
-
, ,
VТОа.
ERwin DM 1.
AХХFusТon ERwin DM 7.2.
File/New File/Open File/Save File/Print
12
-
Edit/Find Edit/Replace Tools/ Data Browser
DКtК Browser RОЩШrt TОЦЩХКtО BuТХНОr (
-
).
-
( ). ).
-
(
Tools/Report Template Builder Format/Display Level/Entity Format/Display Level /Attribute Format/Display Level /Definition Edit/Undo
-
Edit/Redo View/Zoom/Zoom Out
25%
View/Zoom/Zoom In
25% -
View/Zoom/ No Magnification , -
(
, ERаТЧ DM Subject Area ; 2)
1)
) -
View/Zoom/ Fit Model
View/Zoom/Select Rectangle to Fit -
-
Model/ Subject Area
Subject Area 1)
-
; 2) (
,
-
)
13
-
Model/Logical Model, Model/Physical Model
2. (Drawing Objects).
-
3. (ERwin Alignment Toolbar).
4.
(
3-
)
(
3-
)
(Font&Color Toolbar).
.
,
:
.
14
,
,
-
5. (ERwin Transform Toolbar). -
«
(
)
«
(
« .
»:
- Edit/SupertypeSubtype Identity Transform Edit/ SupertypeSubtype Rollup Transform
»:
«
»:
. . . ).
( (
).
(
). .
Edit/Many To Many Transform
»
). »
« .
-
-
.
Edit/ SupertypeSubtype Rolldown Transform - Edit/ Vertical Partition Transform Edit/Horizontal Partition Transform Edit/ Roll-Down Denormalization Transform Edit/Roll-Up Denormalization Transform - Edit/ Linked Col- umn Copy Transform
, MШНОХ
EбЩХШrОr
Show Source Objects.
15
Edit/ Show Transform Source Objects
(
).
.
Edit/ Show Transform Target Objects -
, MШНОХ Explorer Show Target Objects. (Reverse)
-
.
«
Explorer,
» ,
,
MШНОХ -
.
,
.
.
, ,
-
,
,
-
.
,
-
,
MШНОХ Explorer,
,
Edit/ Reverse All Transforms
.
6.
-
-
-
Edit/ Resolve All Transforms
Database Toolbar.
Tools/Forward Engineer/ Schema Generation
.
-
. Complete Com).
pare (
. ,
SQL.
16
Tools/Reverse Engineer Tools/Complete Compare Database/Choose Database Tools/Forward Engineer/ Check Model
(Display Level) ERаТЧ DM
,
(Display Level): , (
.
,
.
-
. 1).
-
,
Format/Display Level ,
.
,
.
Display Level, ERwin DM
.
EЧtТtв Display/Entity Icon.
.
. 7.
7
.
-
.
Entity Attribute
Definition
Primary Key Icon
(Subject Area). ,
(Subject Area)
,
17
-
.
,
,
,
,
Subject Areas ( ,
.
Model/Subject Areas ), «
Subject Area,
. 3.
ject Areas Subject Area Available Objects ( jects (
. 3). » .
Subject Areas. ).
.
(
, , .
).
18
Main Subject Area ( Sub. Members, ), Included Ob-
. -
Subject Area . Spanning Neighborhood ( . 4) (Descendants), (Ancestors).
-
. 4.
Spanning Neighborhood.
ERаТЧ DM , (
.
,
,
. .
. 1). Subject Area .
,
,
,
-
(Stored Display) (Subject -
(Stored Display)
Area).
Subject Area (Stored Display). , Subject Area, , .
( .
-
. 7),
Stored Displays (
Format/ Stored Display Settings). ,
, ,
. Subject Area (« tionships
nal (
General
(
. 5). »),
Stored Display. (Stored Display) . General Orthogonal).
19
,
-
. Show Dangling Rela-
Diago-
. 5.
Stored Display. (
Stored
. 1, 6). View
Display Tabs.
. 6.
.
(Model Explorer) Model Explorer – -
ERwin DM ( . 7). . View MШНОХ Explorer Ctrl + E.
20
:
;
;
-
; ;
«
»
-
.
, , Explorer,
.7.
.
,
,
. Model -
Go To Diagram. .
-
.
-
. 8. 8.
.
(
)
.
,
-
,
.(
-
.) ,
.
.
(
) .
« (
. 7).
»
,
.
, ,
Oracle,
21
,
-
, (
. 8). .
Oracle, .9
10 SQL Server 2000 SQL Server 2005 .
. 8. Oracle.
-
. 9. SQL server 2000. 2
: Model
Model Subject Area
.
(Tablespaces) -
Subject Area
22
.10. SQL server 2005. Subject Area. . ,
, (Subject Area).
Subject Area Model.
,
.
-
.
. . «
. 11): Go To Diagram ( ), Delete ( Properties (
»
, .11.
(
»
). Model Explorer ,
:
. ,
(
.
. 12). « ( . 13). ,
,
, (
), /
.
, (
,
«
),
. 14). -
,
-
» (
,
,
.
. 14).
, Property). -
.
, Property (
. Model Sources.
23
-
. 12.
.
. 13.
.
. 14.
. Model Explorer
:
24
-
1. Attributes ( ), 2. Columns ( ), 3. Default values ( 4. Domains ( ), 5. Entities ( ), 6. Materialized query tables ( 7. Materialized views ( 8. Physical storage objects ( 9. Relationships ( ), 10.Scripts ( ) 11.Stored displays ( 12.Stored procedures ( 13.Subject areas ( ), 14.Tables ( ), 15.Validation rules ( 16.Views ( ).
), ),
), ), ), ), ),
(Action Log) « ») (Action Log Pane) ,
. ,
(
-
(
-
/
, , , . 15, 16).
,
,
-
. 15. .
. 16.
. : Details
Details
25
Summary.
(
).
,
, ( Summary . «Session Summary»,
. 16).
.
.
(
.
. 15).
;
-
. , ,
Tools General, Generate on Model Close
, Options
*.csv. Options, Activity Summary Location ,
. 17).
Gener-
ERwin
. ate on Model Close
. 17.
,
.
(
-
csvcsvOptions
.
OЩtТШЧ.
26
, . 9. 9.
.
. (
) ).
, .
-
( .
Summary . ,
-
. ,
.
,
.
-
. .
( Find and Filter) .
(
)(
Summary Extended Find and Filter
:
-
. 18);
Data Browser (
. 20). (
Find and Filter)
Extended -
Metamodel Filter
,
.
model Filter
(
AМtТШЧLШР.МШЧПТР
.
)(
. 19); ( Extended
. Action Log Meta. 21. Save . 21) , -
C:\Documents and Settings\user\Application Data\CA\ AllFusion ERwin Data Modeler.
27
. 18.
Extended Find and Filter.
. 19.
Data Browser.
28
. 20.
Find Criteria
. 21.
.
Action Log Metamodel Filter.
29
ERwin DM AХХFusТШЧ Process Modeler , АТЧНШаs. « »,
« «Regedit»).
AХХFusТШЧ ERаТЧ DM , . .
-
», Regis-
try Editor. HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Nls\CodePa ge. 1250 1252, «c_1251.nls». , «Modify» : «c_1251.nls». Э , . . . . . . Format Default Fonts & Colors. Default Fonts & Colors, ( . 22). Entities (Tables ) – ( ). Attributes (Columns ) – ( ) . General – . Relationships – . Subtypes – « ». Drawing Object Text – . Drawing Object Colors – , , . Default Fonts & Colors Apply To : New Objects – , ( ). All Objects – : , .
30
. 22.
Default Fonts & Colors.
Current Objects –
–
-
.
. Font&Color Toolbar (
.
. 4).
-
: IDEF1X, IE, DM ERаТЧ DM 3 ( ): IDEF1X, IE, DM. IDEF1X - Integration DEFinition for Information Modeling ( ). Э 1993 . ( 1
,
,
-
.).1
SADT (Structured Analysis & Design Technique) . .
31
-
1960ICAM
IE - Information Engineering (
).
(IE),
.
. IE IDEF1X. DM - Dimensional Modeling ( , . : , ) . , , . ERаТЧ DM IDEF1Б, – : IE, IDEF1Б DM. , , IDEF1Б. tion Model Properties ( Model/Model Properties) (
. 23.
Notation
( IDEF1X (X=extended,
). ,
( : IE
. 23).
Nota-
Model Properties.
(integrated computer aided manufacturing). : IDEF0 ( 1981 .),
.
ICAM
.
SADT 1985
32
).
)
IDEF1
IDEF1X
«
IDEF1X ,
:
IDEF1X (
( .
IE
IE
. )
, .
)
. 24 IDEF1X
,
IDEF1Б , IE IDEF1X , 0, 1 ;
4
(
ERаТЧ DM».
1 );
Z
0
);
-
IE. (
. . 24
,
): -
, 1
( ,
-
.
. 24.
IDEF1X
33
IE.
, 25).
,
.Э –
–
IDEF1б
. 2
:
( (
IE .
:
,
, . , -
(
).
-
).
. 25.
IDEF1X.
. 10
IDEF1Б,
IE. 10.
IDEF1Б, IE.
-
IDEF1X
Э
-
IE
-
34
IDEF1X .
(
-
, -
.
(
, . 25).
): -
,
.
(
IE
) :
. IE
,
Э
). ,
.
, (
,
. 26)
-
. ,
-
( . .
-
,
.
.
. 26.
IE.
-
-
:
ERwin Toolbox .
35
,
-
. 11
. 12
.
11.
(IDEF1X)
(
(IE)
IDEF1Б, IE).
–
.
ERwin Toolbox
(
)
-
. . -
. ,
–
,
-
.
.
«
». .
ERаТn (IDEF1X)
(IE)
12.
(
(DM)
.
AХХFusТon IDEF1Б, IE, DM).
–
(
)
-
.
,
.
-
(materialized view) (materialized query table). , (Oracle 8 , DB2). .
(view).
-
. .
36
-
. .
ERwin DM AllFusion ERwin DM File New. Create Model – Select Template ( 27). cal/Physical ,
New Model Type : Logical ( . ,
), Physical ( ) Create Using Template ,
). File System
Browse AllFusion MM.
–
AХХFusТШЧ Model Manager.
. 27.
Logi.
Blank Model ( Browse *.erwin_tmpl,
Create Model – Select Template.
ERаТЧ DM .
37
.
*.erwinИtЦЩХ, ,
File/Save As.
, Database .
Version – , . (
;
Target Database: ,
Model_i,
. i–
, -
. Create Model – Select Template ,
ERаТЧ DM
-
. 28).
. 28. (
-
.
.
« .
AХХFusТШЧ ERwin DM»): , Model Properties (
Model/Model Properties).
3 (
,
. 29).
38
2
,
-
. 29.
. ,
.
, ERD
.
,
"
"
,
.
-
, ,
win DM
-
-
:
,
-
,
.
,
-
. -
,
.
,
. . ERwin DM
-
(Subject Area).
,
, . . ER-
.
39
ERwin DM
, ,
(
. 30):
( ).
,
.
.
.
,
: .
,
-
,
(
-
-
. 31).
. 30.
.
)
)
. 31.
.
. ,
"
,
,
, ,
-
"
. .
(
!)
40
. -
,
. Customer Customer_number, Customer_name Customer_address ( . 31). ( , ) ERаТЧ Toolbox, , , Entity Properties, Entities, , ( . 32).
. 32.
Definition
.Э
ERаТЧ Sample. Definition (
NШtО2
. 32)
,
(
ERаТЧ DM entity_name). Volumetrics (
NШtО, NШtО 2, NШtО 3, ) NШtО3
,
,
.
-
Entities.
Definition. UDP (User Defined Properties , . Query
-
,
-
CREATE COMMENT on . 33) :
Initial Rows –
,
41
.
Max Rows – Grow By –
(
. 33.
(
).
Volumetrics
Note
, Definition.
)
Entities. ,
Note -
,
,
.
-
Note 2 , , , . Note 2 . Note 3 ( ). , (UDP), AХХFusТШЧ Process Modeler ( . I ). UDP User Defined Properties ( Model/UDP Dictionary) ( . 34). , UDP ( , , . .), . , , . . ERаТЧ DM UDP : Date. . MM/DD/YY. . Int. . Real. .
42
. 34.
Text. List.
User Defined Properties (ASCII). .
з( Command.
)(
. 34). Command.
. 35. , Entities (
UDP UDP
User Defined Property
, .
UDP . 35). «D:\
. 34
Entities. , \
«
43
0.doc», 0.doc» (
-
). List,
,
( ,
.
. 35),
, ,
-
.
,
Icon
, .
Icon,
,
.
-
, Icons BMP. Entities (
Icon
Import . 36).
. 36. ERwin DM . .).
.
Icon
( History
, , Entities ( . 37) Comment ,
,
.
Entities.
, .
44
,
,
.
,
-
,
, Attributes (
Attributes.
. 37.
. 38.
History
General
Entities.
Attributes.
45
. 38).
ute
New, ,
.
New Attrib. General Primary Key.
utes Icon
Icons (
. 39).
General. ,
. Import,
. ,
Definition
Icons. .
(CREATE COMMENT on enti-
Attributes
ty_name.attribute name). Note .
Attrib,
Format/Display -
, ( Level/Attribute), , ( Format/Entity Display/Attribute Icon).
. 39.
-
, History
-
. ,
UDP . User Defined Property
.
46
-
,
Key Group (
. 40) .
. 40.
Key Group
Attributes.
IDEF1Б . 41): ,
( .
,
,
.
-
. 41.
. .
. .
, . . !);
,
, -
.
,
,
47
,
( .
, . . IDEF1Б
-
, ) tions (
Duplicate Names Tools/Names/Model Naming Options) ( :
. 42. (
.
, (
Model Naming Op. 42)
Model Naming Options.
Allow duplicate name – ). Automatically Rename duplicate names – ( ) , , Ask –
И2,
:
И3 (
.
, -
. .
-
). ERаТЧ DM
Unique Name . (
, Unique Name . 43).
. Disallow duplicate names –
ERаТЧ DM
,
48
. .
. 43.
Unique Name. ,
-
. Model Naming OЩtТШЧ
EНТt Naming Standards (
,-
2,
2-
. 2,3,4
,
1.
.
ERаТЧ DM . .
Verb Phrases) (
1
3, -
,
, . . .
, -
.
-
:
,
3,
5. ,
,
,
Tools/Names). DОПТЧТtТШЧ,
,
-
,
(
,
). , .
,
,
. (Relationship
. 44).
49
,
:
; .
. 44.
(Relationship Verb Phrases). , .
,
"
IDEF1Б )
Rela-
, Verb Phrase.
",
"
-
,
,
tionship DТsЩХКв
.
" "( .
"
. 11).
IE (
, ERаТЧ DM . (
, . .
.
(
)
. . 45). Э
. 45
,
.
. 45).
,
NOT NULL,
.
. 45.
.
50
-
. Э eign Key - FK) (
.
. - (For, -
,
.
. 46 -
, . .
,
-
. 46.
(
-
. 47.
.
. -
. (
. 46).
Relationships.
51
. 45),
-
:
ERwin (
. 11);
,
. :
. Relationship Properties. Relationships ( Verb Phrase), Relationship Type) ( . 47). (Verb Phrase) ,
(
General Cardinality),
( .
" ,
"
(
)
(Parent-to-Child) ( . 45, 46). " Parent-to-Child, CСТХН-to-Parent. (Cardinality) 4 , ,
, IDEF1Б
IE».
,
RОХКtТШЧsСТЩ DТsЩХКв (Relationship Type).
,
,
(
.
. -
«
CКrНТЧКХТtв. : .
,
-
,
.
Nulls No Nulls – . Nulls Allowed –
"
: NOT NULL, .
NULL.
-
.
46). Definition Relationships . RI Actions (referential integrity),
UDP .
52
,
User .
Defined Property ( tionship).
MШНОХ/UDP Dictionary) Rolename ( .48)
. 48.
Rolename ) " .
+ ,
.
Relationships.
( . 49,
(Rela-
,
.
",
.
,
)
(
,
, Rolename/Attribute. ,
,
,
. 49.
Entity Display (
.
53
. 49).
, -
, ,
.
-
. 50 .
. .
,
, -
, ,
:
,-
.
:
,
. 50
К
. ,
. 49 , (
(
.
,
.
. . 49 ). .
/
,
NOT NULL. Э
,
,
-
. 49 . (hierarchical recursion) ) ), ( . 51 ).
( (
54
. -
)
,
-
/
.
-
.
. 50.
.
-
-
. 51. (
,
. 51
. (network recursion)
),
,
. .Э
"
", "
", "
-
".
-
"
(
).
. 52 .
,
" "
" .
", "
", "
"
,
,
.
( К
. 53 ,
" ,
"
"
.
. 52. ,
-
"
. .
". -
.
+
), ,
, .
,
-
, .
55
, -
,
,
-
(
).
. 53.
. (RI - referential integrity) – , : (INSERT), (DELETE). »
, (UPDATE),
«
. ERаТЧ DM
, . Model/Model Properties) . :
RI Actions
-
, Model PrШЩОrtТОs (
,
,
. RI Actions
. 54.
Relationships (
RI Actions
56
. 54).
Relationships.
-
ERаТЧ DM
,
.
,
.
(
):
,
Restrict.
(
-
),
). (
(
,
)
Set null.
,
,
Null. Set default. ,
,
ERаТЧ DM
( Cascade. ,
,
(
,
(
(
No Action. ,
)
(
.
)
)
(
) ) (
-
)
-
)
-
) (
,
.
-
.
-
None.
.
Format
Relationship Display,
Referential Integrity. 13 . 13. . №
1 Parent Delete RESTRICT -
К
. 53
(
57
-
.Э К , ).
( . NULL).
-
, 2 Parent Delete CASCADE -
К
-
, К
. 53
.
. .Э
.
-
( . NULL). ,
,
,
.
,
.
. 46
3 Parent Delete SET NULL -
.
Э Null
(
.
-
NULL). . ,
NULL. Э , . 53
4 Parent Delete SET DEFAULT -
-
. .
. . (
.
)
5 Parent Delete NONE -
,
-
. К
-
. 53
.
. К
. "
58
. .
", . .
,
-
, (
.
,
«
Parent Delete NONE)
,
»
,
,
.
1
(
,
"
. 55
"
-
Parent Insert-CASCADE К . ( . 54) Parent Delete-CASCADE К ( . 54).
, -
(
"
«
. 55
/
". -
"
,
. 55.
"
,
"
.
ERwin,
,
).
RI-
-
,
, К
.
,
,
RI-
"
-
.
.
, -
,
.
.
,
.
:
НЛП-
«
-
,
»
».
,
" :
"). Э
.
59
.
,
.
"
.
" ,
"
", .
" Table
ERwin Transform Toolbar (
4
Next (
1И
.
"
. ).
. (
2.
-
"
.56).
"
«
-
-
».
«
.
»
И
,
, (
, ,
. 57.
. 55).
« ».) - Many-To-Many Transform Wizard,
, .
,
(
CrОКtО Association -
. 5). (
. 56.
,
ERаТЧ DM
,
».
60
. 57). ,
. 56.
«
-
,
.
.
,
(
-
.58),
-
.
. 58.
« ,
-
. -
,
(
И
,
(
,
«
(
, (
)
.
).
IDEF1Б, IE IE».
,
(
-
)
.
. 57.
).
. 56.
).
IDEF1X
».
(
,
. 59.
.
)
. 59). .
,
,
,
.
-
. -
.
(
) -
61
)
. . (
-
)(
-
. 60).
. 60.
. 61.
.
Subtype Properties. :
,
62
(
.
. 11); ;
,
/ )
. .)
.
Subtype Subtype Properties ( . 61) ( Discriminator) - In( Type: Complete/Incomplete -
Properties. complete
(
-
– ).
, К
(
. 62).
.
. ,
. ship ( ,
Type К NULL.
(
. 63).
. 62.
Subtype RelationComplete).
.
-
-
,
.
. 63. ) .64. , . .
-
63
(
),
-
( ).
.
. 64. : ,
,
,
, ,
,
.
.
(primary key) (
. 65).
. .
, .
,
. , General (
Primary Key
, -
,
Attributes . 38).
, ,
. (candidate key). ), . .
(
64
-
-
. 65.
«
». (
.
1. 2. 3.
. +
+
.
,
)
.
,
, .
. .
.
) +
.
, .
+
+
, . .
.
+
+
:
-
.
.
+ +
, . .
-
№ 3 (
,
, Ц
Ц
: -
(
;
+
. 65):
.
+
-
№3 + ,
, Ц
,
+
+
№ 1
№ 3.
.
,
,
-
65
№ 2 -
№2
. ,
№3
№2
.
,
. ,
3
. .
( ,
,
. )
,
,
.
.
-
, -
. . ,
, ,
.
-
,
. (Alternate Key) . ERаТЧ DM
, .
(Inversion Entry) -
,
,
,
.
-
-
-
. ERаТЧ DM ,
, Inversion Entry.
. -
-
ERаТЧ DM Key Groups ( . 66). Model Key Groups , (
),
,
,
. (AKЧ.Ц), . (AKЧ.Ц)
,
Key Groups. ( .
,m-
n.
66
.
). -
,
. 66.
Key Groups.
. 65 №2(
(IEЧ.Ц),
n,
))-
, № 1 ( 2).
IE1 ( ,
,
.
, 1), ,Ц-
)
,
, IE2 ( , IE3 ( .
, , Alternate Key Designator (AK).
Entity Display,
67
. -
. ,
,
-
(Foreign Key)
: (
, ).
(FK) (
.
-
. 65). -
. ,
,
Key Group ,
.
ERаТЧ DM
,
Attribute
. . Э
-
,
. ,
.
, .
,
,
,
, . , Relationships Migrated Key .
ship Properties, Rolename (
. ERаТЧ DM , Relation,
-
. 67).
. 67.
.
68
-
. ,
.
, .
, ERаТЧ DM
,
-
.
.
,
-
. ,
, . ERаТЧ DM : String, Number, Blob, Datetime.
.
,
-
MШНОХ
plorer. Domain Dictionary New.
. 68.
,
Domain Dictionary.
69
MШНОХ ExDomains, Properties. General ( . 68)
,
New Domain ( Logical Name. Physical Name,
. 69.
. 69) .
.
-
New Domain.
Domain Dictionary ( Domain Icon ,
General . 68), , , ( Icon Inherited by Attribute . 68). Name Inherited by Attribute , . ERwin DM. Datatype ( Not Nulls). Model Datatype Options Datatype Standards Editor ( Tools/Datatypes). Constraint – ( Validation Constraint) ( Default). . Definition, Note, UDP. Model Explorer
70
«
»
-
(
,
.
. 12).
, Name Inherited by Attribute Domain Dictionary. , %AttDomain , , %AttDomain %OwnerEntity, , « » , . . 12 « » , . Domain Dictionary . Edit Mode ( . 68) Physical. : General, SQL Server ( ), Constraint, Comment, UDP, . – .
,
. . .
–
6 »).
( .
(
.
Name)
-
« ). . 71 –
. 70 .
,
ERwin DM (
-
-
,
,
-
. «
– .
71
».
Unique -
. 70.
.
. 71.
(
« .
. 70)
). -
, ,
), (
» (3
(
. 71).
(
-
, join). .
-
. ,
,
. .
.
, -
ERwin DM , ,
. (
),
72
-
. , 38, 68). ,
.
,
ERwin DM
,
Logical Only. ( .
,
( Physical Only , ERwin DM ( . . 5), .( « ».)
, ERаТЧ DM
«
»
.
,
(
, ,
. 72):
, , ,
,
,
К
)
. ,
(
.
(
. 72.
DataBase . 73)
.
. ERаТЧ DM .
ERwin DM
. . 32, , ). -
, Choose DataBase.
73
,
-
,
(Null Option).
. 73. , ,
.
ERwin ( .
-
, ODBC/Generic.
. 73), ERwin DM , ,
.
ERwin DM. .
Model . , . 74 SQL Server 2000, SQL Server 2005 Oracle 11. Server 2000 : (Table Properties), (Columns), (Indexes), (Triggers), (Stored Procedures), (Pre & Post Scripts).
74
Tables. ,
-
SQL
. 74.
. (
, Table Table Model ,
Table Properties.
. 74) -
.
, Table ,
, Tables.
. 75 Server 2000, SQL Server 2005
. SQL
Table Oracle 11.
. 75.
Table.
Volumetrics, UDP, History EЧtТtв, DОПТЧТtТШЧ ( . « »). Table dation .
Table Comment Physical Properties . Vali-
. Columns. Columns Columns.
75
Model
-
General
Columns , SQL Server (
.
)
Null.
.
Default Values (
Validation Rules Comment
Constraint
,
.
.
.
-
MШНОХ).
UDP Index
History
.
-
(View) (View), ,
, ,
, .
,
. . Э
,
. ERаТЧ DM
-
-
. (materialized view) (materialized view)
,
,
.
,
, ,
–
.
,
.
) ERwin DM
.
.
/ ,
-
( ,
76
.
-
-
Validation Rules
.
Default Values MШНОХ Constraint
(
Attributes
Columns). ,
.
,
,
. –
.
,
.
, . ,
, ,
.
-
, .
.
, . ERаТЧ DM .
Indexes (
,
-
.
ERаТЧ DM .
.
ERаТЧ DM ,
.
-
, ,
,
-
ERаТЧ DM
,
, MШНОХ/Indexes). .
DКtКBКsО.
77
-
-
. , Informix 7.x – DBsЩКМО, Oracle 8i – Tablespace, Rollback Segment, Database ., SQL Server 2000 – Filegroup. –
SQL,
,
. ,
,
,
,
. -
,
.
,
,
. SQL,
.
ERwin DM DКtКЛКsО/Stored Procedures). (
Procedures (
,
.
,
.
SQL,
, INSERT, UPDATE, DELETE ,
,
, (
ERаТЧ DM ,
, ,
. .
(RI) .
78
.
,
SQL -
–
.
ERаТЧ DM
Stored ) ERwin DM. , -
,
.
-
,
, )
,
,
-
ERаТЧ DM
, ,
– ,
,
ERаТЧ
«
« . Scripts ( Level),
[2].
» «
SQL,
,
.
, SQL,
» (pre & post scripts)
ERаТЧ DM (pre & post schema generation). ERаТЧ DM », , ,
, .
-
Pre & Post ). Pre & Post Scripts ( DКtКЛКsО/PrО & Post Scripts/Model. , , ERаТЧ DM.
,
(Forward Engineering). ERwin DM , , .
,
-
Tools/Forward EngiDaneer/Schema Generation tabase Toolbar ( Forward Engineer Tools ). Forward Engineer Schema Generation, : Options, Summary, Comment. ( . 76). Options , , , , . . , . Summary , OЩtТШЧs. Summary , OЩtТШЧs. Comment .
79
. 76.
. 77.
Forward Engineer Schema Generation.
Schema Generation Preview.
80
.
,
,
-
Option Set Open, Save, Save As Delete Forward Engineer Schema Generation. Preview Schema Generation Preview ( . 77), SQL, ERаТЧ DM . Generate Schema Generation Preview, . Print Forward Engineer Schema Generation SQL, ERwin DM. Report ERS, SQL DDL. Э . Generate . SQL Server Connection ( . 78), . Connect, SQL.
. 78.
SQL Server Connection.
81
Stop If Failure. Э . . Abort Failure . 80
. 79.
(
Generate Database Schema, . 79). , Continue, . ,
.
Stop If .
Generate Database Schema.
. 80.
.
82
ERwin DM
(Reverse Engineering). , ) .
. (
Tools/Reverse Engineer Database Toolbar. Reverse Engineer - Template Selection, : , ( . 81).
. 81.
,
-
Reverse Engineer - Template Selection. Next Reverse Engineer - Set Options ( .
83
. 82),
-
. 82.
Browse
Reverse Engineer - Set Options. Reverse Engineer From – SQL(DDL), Items to Reverse Engineer
, OЩtТШЧ SОt
(
ERаТЧ DM .
. . Delete
Open, Save, Save As
. Options/Reverse Engineer ( ) System Objects) . Primary Keys
84
,
.
-
,
Options/Infer
. Options/Case Conversion
.
-
Relations, ERаТЧ DM
,
SQL-
-
.Э
-
.
-
,
,
.
-
Next. ,
-
.
Complete Compare ,
,
IDEF1, IDEF1 , IE, ERD, DFD, DM , , , . ,
. .,
(
CASE-
,
:
,
)
/ (
),
,
CASE, . ,
) CASE-
-
,
.
/
.
,
: -
:
.
.
(
,
,
,
,
. .
-
,
,
,
, ERwin Data Modeler (ERwin DM) Associates, www.ca.com). ERwin DM Compare ( ). Complete Compare
85
.
-
-
(Computer Complete ,
.
-
,
, . . Complete Compare
.
,
,
-
. HTML, DOC (АШrН), БLS (EбМОХ). , . . ERwin DM .
Tools/Complete / Compare, ,
. ALTER-
Complete Compare Database Toolbar Compare/Compare. ERаТЧ DM « » .
,
-
,
.
,
.
Complete БML-
(Option Set). CCS(Complete Compare Session) .Э ( , ).
:
,
). ( .)
(
( ). Э
Complete Compare.
SQL-
,
,
. -
(
-
Complete Compare
:
-
.
Complete Compare : – ( . 83), – SQL( . 84), – ( . 85), – SQL( . 86),
86
).
-
-
. 83.
«
–
CREATE TABLE _1 ( ИД_1 char(18) NOT NULL, И char(18) NULL) go ...
».
-
. 84.
«
– SQL-
».
–
».
-
. 85.
«
CREATE TABLE _1 ( ИД_1 char(18) NOT NULL, И char(18) NULL) go ...
CREATE TABLE _1 ( ИД_1 char(20) NOT NULL, И char(20) NULL) go ...
-
. 86.
«SQL-
– SQL-
».
«SQL-
–
».
«
–
».
CREATE TABLE _1 ( ИД_1 char(18) NOT NULL, И char(18) NULL) go ...
–
. 87.
–
. 88. SQL-
– –
( (
. 87), . 88).
87
SQL-
.
,
«
Complete Compare Complete Compare Model ( ) Right Model (
, –
».
-
Left ). Set selected models as read only,
, .
, -
Allow Demand Loading. , ( , )
. ERwin DM
.
). Resolve Differences ( .
(TвЩО Selection, Left Object Selection, Right Object Selection, Advanced Options). , « » . Complete Compare ( TвЩО Selection): Logical, Physical Database. LШРТМКХ PСвsТМКХ. , LШРТМКХ, . , PСвsТМКХ, DКtКЛКsО. PСвsТМКХ DКtКЛКsО , DКtКЛКsО ( , , , , UDP . .), . (LШРТМКХ), (PСвsТМКХ) , . Э r7. Compare Complete Compare , Resolve Differences ( ). Resolve Differences ; , -
88
(
,
),
-
,
.
. 89. ERаТЧ MD
Resolve Differences. (
7.2 . 89): :
Resolve Differences -
Standard Toolbar ,
o
( o
. 14). Impact Analysis Toolbar
RОsШХvО DТППОrОЧМОs,
,
,
( . 15). Known Differences Toolbar
o
(snapshot) (
-
. 16). Standard Filters Toolbar , ( . 17).
o
89
-
Navigation Toolbar ,
o
/
Object View,
. .
.
,
(
,
.
. 18).
-
,
-
,
.
Property View, Ob-
ject View; К
,
-
Details (
Details
.
. 90)
-
Resolve Differences. Status Bar
. 90.
-
Details. Resolve Differences . . Action Log,
/ ,
.
14. Resolve Differences Standard Toolbar .
Copy item to the left
-
.
90
Copy item to the right
.
)
.
.
Unmatch two items Undo
-
.
-
. . -
Redo
Help
(
.
Match two items
Show Report
-
. EбМОХ
RОЩШrt аОЛ-
-
АШrН,
. Resolve
Differences.
15. Impact Analysis Toolbar.
« Action Log
Message Log
,
Action Log
». ,
-
Resolve Differences. ( ) ERwin Data Browser. ,
. (alter script) .
Left Alter Generation Alter Script, Script/Schema Generation .) . Visual Studio Right Alter Script/Schema
91
.( ,
-
,
Schema , -
ERwin DM. (alter script) . -
Generation Generation Alter Script, .)
Schema , -
.(
.
, Visual Studio
ERwin DM.
16. Known Differences Toolbar.
Save Known Differences Into a Snapshot Load Known Differences From a Snapshot
Save
(Snapshot). Snapshot,
.
(Snapshot) Differences.
CNTR Mark/Unmark a Row as a Known Difference
Resolve Load Snapshot, . ( ) « » (Known Difference). , Resolve Differences. « », Resolve Dif-
ferences. (Snapshot). Show Known Difference Items
, Mark a Row as a Known Difference. , .
Show Differences that have changed since the last loaded Snapshot
, .
92
17. Standard Filters Toolbar.
Show Equal Items
-
.
Show Resolved Items
,
.
.
-
.
Show Not Equal
Resolve Differences.
Show Unaligned Objects on the Right
,
.
.
Show Unaligned Objects on the Left
.
.
Resolve Differences.
Navigation Toolbar.
(
Go to Previous (Next) Difference (
Find (Find Next) an Item Expand all (Collapse all)
HTML
-
Resolve Differences. , -
18.
Resolve Differences,
-
-
.
.
) .
(
)
RОЩШrt Dialog ( . 92.
93
)
-
. 91)
. 91.
.
Report Dialog
. 92.
HTML. -
Resolve Differences . , Complete Compare, win DM; base/Script Models ( Complete Compare. 1.
(
2. 3. . 93).
,
)
Finish
.( Complete Compare Complete Compare Close Models ,
(
ERAuto close DataAdvanced Options
.
: Resolve Differences
.)
,
Close, . 94).
94
Close. ,
-
. 93.
Close Models.
. 94.
,
:
Close.
Complete Compare ,
-
. Complete Compare,
, ERwin Data Modeler
(alter script), CASE-
.
,
– .
.
95
-
. 95.
.
,
-
.
.
(
.
ODBC
,
,
,
,
-
DB2
. (
-
.
,
.
-
.
.
,
,
,
Oracle.
. 95).
/
–
),
,
(
3-
,
. 96).
,
.
-
.
-
, ,
, ,
,
96
,
,
. .
-
,
.
,
. (DB2
.
Oracle), ,
. 96.
(
. Tools
ERwin DM
,
. 97). AНН MoНОХ SourМО ( ).
.
-
.
,
-
,
-
Derive New MoНОХ (
.
,
). -
,
.
-
97
. 97.
TШШХs.
Split L/P Model (
).
:
.
Sync with Model Source (
(
-
, ,
.
)
,
,
.
). -
).
. Sync with Model Source Resolve Differences
).
, -
Sync with Model Source . Link MoНОХ SourМО (
, Source, Derive Model, Source
-
. Link Model Source. Add Model Link Model ( /
Sync with Model Source tool. . ERwin DM 7.2 ( ) Add Model Source, Link Model Source, Derive New Model, Sync with Model Source, Complete Compare. : . . . (Naming Standard). « » . .
Resolve Differences, ERwin DM Model Sources PrШЩОrtТОs (
– ERаТЧ
, . .
).
,
.
98
-
,
.
. ERwin DM .
«
(
,
)
. ERwin DM .
: »
-
.
,
-
.
.
.
-
,
ERаТЧ Transform Toolbar ( . 19.
. 5). . 19
, -
. .
«
»
«
»
99
«
»
100
/
Transforms ( ,
. 98).
(
.
98.
,
.
Horizontal Partition (
ERwin DM
, "
, ,
,
"
.
, ,
Delete and Resolve Transform (
101
-
).
.
,
. Model Explorer
)
-
. ,
.
.
-
).
-
,
.
,
, . ,
.
-
,
,
,
,
Delete and Reverse Transform (
.
).
,
-
-
. ERwin DM
.
,
-
MШНОХ EбЩХШrОr Show Source Objects. ,
.
,
-
MШНОХ EбЩХШrОr Show Target Objects.
-
,
.
ERwin DM ,
: , ,
, – .
RОЩШrt TОЦЩХКtО Data Browser.
ERwin DM , Builder /
-
. ,
API –
ERwin DM
102
.
/ ERwin DM . .
API
Crystal Reports. ,
-
,
-
ERwin DM . RОport TОmpХКtО BuТХНОr
4.0 ERwin DM Process Modeler RОЩШrt TОЦЩХКtО BuТХНОr. Report Template Builder – Process Modeler ERwin Data Modeler . Report Template Builder , : HTML, RTF, TБT, PDF. «define once, reuse-everywhere» (« ») . RОЩШrt TОЦЩХКtО BuТХНОr ERwin DM Acrobat Reader, MS Excel, Word, FrontPage . . , , . ERwin Report Template Builder
Tools/Report Template Builder. (« Process MШНОХОr») Report Template Builder: Report Templates Report Template Builder; Report Template Builder; ; Report Template Builder; . /
port Template Builder ERwin DM,
,
:
DM.
103
Re;
. RОЩШrt TОЦЩХКtО BuТХНОr (Available Section),
. 99
-
ERwin -
,
, ERwin DM. Available Section ERwin DM AХХFusТШЧ PM, Available Section , Model Explorer.
,
. Report Template Builder
-
Available Section
, -
: Logical Model Validation, Physical Model Validation.
. 99.
.
ERwin Report Template Builder ERwin DM, . Templates list
-
Report Templates.
104
, . Available -
Fusion ERwin Data Modeler r7\RОЩШrts
, . .
. . 20 ERwin Report Template Builder. 20.
\Program Files\CA\ AllERаТЧ 7. . -
ERwin Report Template Builder.
№ 1 HTML
HTML Entity Primary Key.rtb
. – HTML,
.
,
. 2 HTML
HTML Physical Only Columns.rtb
-
,
.
Physical Only ( ). – HTML,
HTML Table Owner.rtb
-
,
RTF Entity Primary Key.rtb
RTF Physical Only Columns.rtb
. RTF
–
,
. .
-
Physical Only ( ). – RTF
. .
105
.
-
, 5 RTF
-
-
. – HTML, .
4 RTF
-
,
. 3 HTML
-
,
DКtК Browser Data Browser – Report Template Builder
. . Data
Browser:
,
,
, , Data Browser
Toolbar.
. 100.
;
,
;
. Tools/Data Browser ERаТЧ Data Browser ( . 100).
DКtК Browser.
DКtК Browser ,
:
, Data Browser,
,
(All Reports), All Reports, , ,
Browser.
Data Browser .
. 21.
;
AХХ RОports
106
Data Browser. Data Browser
DКtК
.
,
DКtК Browser
: -
,
-
; ; ;
;
.
AХХ RОports
DКtК Browser.
. 22. Data Browser.
21.
( (
.
)
) :
,
(
-
)
22.
All Reports.
107
. -
(
)
(
)
-
Data Browser Reports/Open Report File :\Program Files\CA\AllFusion ERwin Data Modeler r7\Reports\Standard.erp ( Reports.erp). , , AХХFusТШЧ ERаТЧ DM RОЩШrts AХХ RОЩШrts. RОЩШrts ( File/New Report), , ( ), ; Options , Definition , Note – ; . AХХ RОЩШrts , . RОЩШrts ( EНТt). Execute Report. AХХ RОЩШrts
-
, Data Browser.
( AХХ RОЩШrts) Edit –
: (
,
-
Save Report Format). AХХ RОЩШrts -
. Print – . Export – HTML, DDE, CSV, RPT win, BRS File ( MS АШrН DDE). Preview – ( ). Rename – . AХХ RОЩШrts , ERP Reports/Save Report File As.
108
-
: -
-
ERwin Data Modeler : «
».
ERаТЧ DM
I
« ,
,
[3] ».
-
-
.
«
, (
»
: -
),
(
).
ERаТЧ DM
: 1. 2. 3. 4. 5. 6. 7. 8. 9. 10.
. « .
. . ». . .
. .
.
1. .
-
, .
,
,
,
,
-
. 1. ERwin Data Modeler ( / / / AllFusion / ERwin Data Modeler r7 / ERwin Data Modeler r7). AllFusion ERwin Data Modeler Tips, Close. (Ч ERаТn DM, Show tips on startup.)
109
2.
Model Type
.
. ,
F1
File Create Model – Select Template : Logical (
ERаТЧ DM, Model Explorer.
HОХЩ.
. 101. 3. 4.
,
) ( .
.
. 102.
–
. Model/Model Properties. General MШНОХ PrШЩОrtТОs » «К ) ( . 102).
(
New. New . 101).
GОЧОrКХ
MШНОХ PrШЩОrtТОs.
110
-
5.
Definition (
. 103) ,
,
».
.
:
. 103.
Definition
.
,
:« , .
-
Model Properties. (
6. Notation ) IDEF1X ( . 104).
. 104. 7.
8. (
)
-
Notation
-
Model Properties.
Defaults Non-Key NuХХ OЩtТШЧ NШt NuХХ ( . 105), . , Model Properties. Format/Stored Display Settings. Stored Display General Author , Display Shadows ( ) ( . 106).
111
. 105.
. 106. 9. Stored Display name Stored Display « » ( . 107) 10. Display Level (
Defaults
Model Properties.
General
Stored Display. Display1. Rename. . Logical )
112
Re: Stored Display. Entity ( ),
Relationship Option ( Cardinality
. 108, .
)
Verb Phrase, ,
Stored Display.
. 107.
. 108.
Rename Stored Display.
Logical
11. . 23 (
4
Stored Display. .
23.
ERаТЧ Toolbox, Entity Properties). .
№ 1 Name Definition
113
.
Note Note 2 Note 3 2 Name Definition Note Note 2
Note 3
1 7; 2 3,
« » >=4; 1) 2)
1) . .,
;2 3 ;3 1
, 1 , . .; , 01.01.2008. «ERаТЧ Data Modeler 7», 14.07.2008, ERаТЧ 7;
2)
«BPwin 7», 07.09.2008, , Process Modeler 7»
3 Name Definition
. ., -
. . . 1
Note Note 2
№ 1: 1) 2) ERаТЧ
,
« »; « ». ERаТЧ 7?
№ 2:
Note 3
BPаТЧ?
4 Name Definition
.
Note
.
Note 2
-
Note 3
1) IDEF1 ; 0 ( 2) IE; 0( 3) IDEF0; 1 ( 4) DM; 0(
12.
-
№1 №1 №1
); ); ).
.
-
« ». « ». « ». № 1:
);
ERаТЧ Toolbox, . 109.
-
114
. 109.
. .
lationships ent-To-Child (
) .110.
. 110.
Relationship Properties. General. Verb Phrase », « Zero,
ReParCardinality One or More . 24.
General
115
Relationships.
24. №
1
.
Verb Phrase ParentChild-ToTo-Child Parent
2
1
-
-
0, 1
2
-
-
0, 1
3
-
4
-
MШНОХ Explorer, . 25: Name ( ent ( ), NКЦО Inherited by Attribute ( ), Datatype ( ), Null ( DОПТЧТtТШЧ ( ). DM . 13.
. 111 (
), Domain Par), DШЦКТЧ ERwin
). 25. Domain Dictionary.
№
Name Domain Parent Name Inherited by Attribute 1 Datatype Null Domain Definition Name Domain Parent Datatype 2 Null
Number %AttDomain %OwnerEntity Integer Not Null
Number Boolean Not Null
Domain Definition Name 3 Domain Parent Datatype
General General General Datatype Datatype Definition General General Datatype Datatype
: String VARCHAR(20)
116
.
Definition General General Datatype
Domain Definition
. .
Name Domain Parent 4 Datatype Domain Definition Name Domain Parent 5 Datatype Domain Definition Name Domain Parent 6 Datatype Domain Definition
:
,
General General Datatype Definition General General Datatype Definition General General Datatype Definition
String VARCHAR(100) 100 String VARCHAR(200) 200 Datetime Date
. 111. 14. «
1-
Definition
. -
».
2.
1.
«
ERwin DM , , 1-
117
.ОrаТn».
.
.
2. Tools ), (
Derive New MШНОХ ( Derive Model Target Model ) – Logical/Physical, Derive ( . 112). – SQL Server 2000, .
. 112. 3. -
. (
:
, (
,
): Model/Model Properties , ,
Display) ( Model Properties (
o
4. General 5. (
. 111 . 113). Model/Model Properties) :« -
. 113). -
.
); (Stored ),
(
o
-
».
MШНОХ Sources , ) -
(
118
. 113.
.
6.
«
2-
».
3. ,
.
Key Based model (KB) -
1. « 2. Stored Displays ( eral ,
2-
,
,
.ОrаТn». . Format/Stored Display Settings) GenNew. New Stored Display « » Stored Displays General. -
119
Author, Display Shadows. Logical. ) Primary Key ( ship Option Verb Phrase Option – Foreign Key Designator (FK) . 114. ,
. 114.
Logical Model, Display Level ( ), RelationCardinality, Entity Show Migrated Attributes Stored Displays.
«
3.
«НrКР & НrШЩ»: « .
». . »
,
(FK) ,
115). Font&Color Toolbar, ( Format/Default Fonts and Colors utes Foreign Key Inherit Font From PK Color From PK). . 115. 4.
«
3-
120
. 115.
(
AttribInherit .
».
.
. 115.
.
«
4. ,
" 1. 2.
Next form Definition " Next.
3.
. Transform Wizard. tion " Next. «
«
» " ERаТЧ DM. .erwin».
3-
,
.
Create Association Table. Many-To-Many Transform Wizard. . Trans: « "» " " " " Entity Name », Entity Definition : « :« » Next. . Finish, . , . ( . 116).
"
:« "
"
Entity Name », Entity Definition
121
- Many-To-Many Transform Defini" "» :
: «
-
»
Next. .
Finish,
,
-
. . 116).
(
. 116.
«
».
4. 5.
26.
.
«
4-
»
26.
.
№ 1 Name Definition
Note
-
. 1) 2)
.
,
-
. Note 2
Note 3
«4» «5»; 1) 10.11.2007 «4» 2) 19.11.2007
,
« »;
2 3, 2 4,
«Y»; «Z»
№1
№ 3,
37
№2
№ 8,
41
122
«5» 2 Name Definition
. 1)
Note
;
2)
;
3) Note 2
Note 3
№1 1) 2)
, ,
-
. № 2,
№2№4-
№1 №1
.
. №3
№3
-
№4
№3
-
.
5. , , Fully Attributed model (FA) . 4.erwin». 1. « 2. . Stored Display ( Format/Stored Display Settings) General New « » ; Author, Logical Model, Display Shadows. Logical. Display Level ( ) Attribute ( ), Relationship Option Verb Phrase Cardinality, Entity Option – Foreign Key Designator (FK), Alternate Key Designator (AK) Show Migrated Attributes . 117. , . . 3. 27. «drag & drop»: « » , . « » . 118.
123
. 117.
« 27.
». .
№
1 2 3 4 5 6 7 8 9 10 11 12 13 Number 14 Number 15
124
. . 118.
«
. 119.
«
4.
».
». -
,
. 27
2
125
. ty Option
Logical Attribute Domain
5.
)
( Validation Rules. New. Logical
.
118 . 119
-
. 27.
General (
. 121) ,
: « 6 : 0, 1, 2, 3, 4 Type ), Valid VКХuО : 0,1,2,3,4,5 – Quote ( ) . .
5». Valid Value Valid . 121. . 28 , -
Validation Rules. (
28.
).
№
3 4 5
-
New Validation Rule. Definition
1 2
119.
. Model Validation Rules New Validation Rule », Physical :« , : «Rule_ozenka » ( . 120), Validation Rules.
. 120.
List ( VКХuО
.
.
,
Enti-
Rule_ozenka 6 : 0, 1, 2, 3, 4 Valid Value List 0,1,2,3,4,5
126
5
. 121.
Validation Rules. Model Default Values New Default Value :«
Default Values. New. Logical Physical fault_ball», Definition К General
», : «De, Default Values. :« = 0, =0 . .». Default Value : «0». « », . 29 . 122. , Default Values. 29.
.
№
Default_ball 1
= 0, 0
127
=0
. .
Default_Pravilnost 2
, . . False 0
. 122. ,
Default Values. Default Values . 123).
(
MШНОХ Explorer. Validation Rules
. 123.
.
6. Constraint
-
(
. 30). Attribute
Validation Constraint ( . 124). Default
Default
128
(
Valid . 124).
30.
.
№
1
2
,
.
3
,
4
,
. 124.
,
,
«
129
-
».
7. ,
. Model
Key Groups.
Key Groups (
. 125.
Entity New.
. 125)
Key Groups.
New Key Group (Inversion Entry), ( . 126)
. 126. Members
: .
-
Key Group Type (Alternate Key) Key Group
New Key Group. Key Groups (
. 125)
Available
Attributes ,
(Key Group Members);
130
.
,
. 31. 31. №
.
К
1
-
-
К К К
2 3 4
. 127
«
».
. 127. 8.
«
« 5-
».
».
6. –
,
» ,
.
,
.erwin». . Format/Stored Display Settings) New , Logical Model Display Shadows ( Physical Stored Displays.
1. « 2. Stored Displays ( eral
,
-
5-
.
131
Gen« Author, . 128). . 129, -
. 128.
. 129.
General
Physical
Stored Display.
Stored Display.
132
3.
«
MШНОХ Domain Dictionary
, NКЦО Inherited by Column
»,
.
Domain DТМtТШЧКrв. General Domain . 130.
-
.
«
. 130.
»
» Columns «1,1»
. И
4. . MШНОХ
Null OЩtТШЧ И 1
И
И
И
Columns. Table , , SQL Server IDENTITВ ( ), . 131. . 1.
133
-
И
« Column
, . .
,
«
. 131.
И
».
(View)
5.
-
4 1. AХХFusТШЧ ERwin
.
View И4 1. ,
И
(
. 132).
. 132.
)
:
,
-
. , Database View Properties ( From . 133.
134
-
Views
,
From, (
. 134,
. 134.
From
View.
VТОа (
Select Select).
. 133
Available Tables/Views
View Columns (
32. К 1 2 3
From). .
(View).
. 133.
№
-
«
И И И
И
135
.
. 32). И4 1».
И
5 6 7
И И И
: И 135) +''+
И .
И New Expression И
+''+
. 135. View Columns
Where . И ( .К
)
(
И
New View Column ( ( И ), .
И
.
New View Column. ,
. 136. SQL) anН ( И = '4 1') ( SQLИ4 1,
, -
:(
И
. 137). ,
Distinct Where
. И
. И =
View .
И
SQL
=
) anН
VТОа (
.
138). ing Objects) : «4». И4 1,
4 1: 10.11.2008 «ERаТn Data MoНОХОr 7», , . 139.
136
(Draw№ 1 37 -
. 136.
Select
View.
. 137.
Where
View.
137
. 138.
SQL
View.
.
. 139. 6. . Defaults Set Default Owners (
MШНОХ/Model Properties Set Default Owners. . 140) Table Set Owner for all Objects.
138
(modeler1), ( . 141),
;
(
Yes.
, Close,
Set Default Owners;
(View) (
. 140.
142), .
,
-
. 140).
.
,
. 141.
.
. 142. .
, NuХХ
7. . Format/Stored Display Settings)
Table OЩtТШЧ .
Stored Display ( Stored Displays Physical NuХХ OЩtТШЧ, , -
,
.
139
8. NuХХ 9.
И
, NШt NuХХ (
И И
, NШt NuХХ.
, И
».
. 143.
). . 143. 6«
.
7. 1. (
2. / 3.
,
sвstОЦОгСТФ
. Microsoft SQL Server Enterprise Manager /Microsoft SQL Server/Enterprise Manager). SQL Server Enterprise Manager. SQL Server. (local) Start . 144. Connect. . 145, .
140
. 144.
. 145. 4.
NКЦО
.
.
. DКtКЛКsО NОа DКtКЛКsО ( . 146). DКtКЛКsО PrШЩОrtТОs , , Ivanov ( . 147), ( . 148).
141
GОЧОrКХ .
-
. 146.
. 147.
Database.
Database Properties.
142
. 148.
(Ivanov). .
5. Security
New Login (
Logins
. 149.
Logins
. 149).
Security.
SQL Server Login PrШЩОrtТОs GОЧОrКХ NКЦО «modeler1», SQL Server Authentication, «modeler1» ( . 150).
143
. 150.
(
General ,
. 152);
SQL Server Login Properties.
Database Access,
. Confirm Password (modeler1) ( . 151),
db_owner (
) -
.
. 151.
Confirm Password.
144
. 152.
Database Access
SQL Server Login Properties. . 153 (
Securi-
ty/ Logins).
. 153. modeler1 (
. . 154,
Database/Ivanov/Users).
145
. 154.
Ivanov. ,
6.
Tables, Views, Rules, Defaults, Us-
:
er Define Data Types. ================== 7. ERаТЧ 8. Server. Connection.
6-
«
ERwin.
ERаТЧ Database
;
==================== .ОrаТn», ,
SQL Database SQL Server Connection ( . 155) (SQL Server 2000), (modeler1), (Database authentication), ((local)), (modeler1), ( - Ivanov).
9.
,
( Tools/Forward Engineer/Schema Generation). Forward Engineer Schema Generation. 10. . . Index ( . 156) Other Option ( . 157). 11. SQL, ERаТЧ . Preview Forward Engineer Schema Generation. SQL Server Schema Generation Preview, , ERwin ( . 158).
146
. 155.
ERwin
. 156.
Index.
147
SQL Server.
. 157.
Other Option.
12. »,
SQL« / SQL SОrvОr. SQL Server Schema Generation Preview .
, ), Close, view. 13. ERаТЧ.
( . 159), ( (sql), . SQL Server Schema Generation Pre, Forward Engineer Schema Generation ( . 157) Generate. ERаТЧ , SQL Server. Generate Database Schema. -
Execution Successful, ( . 160). Generate Database Schema; Forward Engineer Schema Generation.
148
,
,
-
. 158.
SQL Server Schema Generation Preview.
.
. 159.
149
. 160.
Generate Database Schema. . ===========
================== 14. ,
ERаТЧ: . Tables ( . 161), Views ( . 162), Defaults ( . 163), Rules ( . 164), User Define Data Types ( . 165), ERаТЧ. , , . Tables, Design Table ( . 166). И 1. Views, И 1 Design View ( . 167).
150
,
. 161.
. 162.
. 163.
SQL SОrver.
,
SQL SОrvОr.
,
151
SQL SОrvОr.
,
. 164. 15. Connection, 16.
. 165.
. 166.
SQL SОrvОr. (
Disconnect). « 6-
Database/Database
».
,
SQL SОrvОr.
,
SQL SОrvОr.
152
,
. 167.
SQL SОrvОr.
8. 1. ERwin. Reverse Engineer. Template
(Server 2000)
Tools Reverse Engineer – Select (Logical/Physical), . 168,
Next. 2. Next. .
3. Connection. 155: (Database authentication), (modeler1), ( nect. ERwin
Reverse Engineer - Set Option ( . 169), SQL Server Connection , (SQL Server 2000), (modeler1), ((local)), - Ivanov), .
153
. SQL Server . Con-
. 168.
Reverse Engineer – Select Template.
154
. 169.
Reverse Engineer - Set Option.
4.
ERwin
. ,
,
. 170.
,
(
,
1)
:
, ,
2) 3) ,
,
(
5.
4)
.
-
, -
Display1). ):
(
);
,
;
;
-
(User Define Data Types); .
5) ,
.
155
. 170.
(
6.
«
»
8-
.
).
.
9.
Complete Compare, ,
6-
«
.erwin»
ERwin (« . -
.
.erwin»).
6-
,
,
.
. «
1. 2. . Compare. »,
,
6-
.
.erwin».
ERwin Tools/Complete Compare Right Model Selection « ( . 171).
156
,
. 171.
Right Model Selection.
3. SQL Server. Form
–
Load Database/Script, Allow Demand Loading . 171, Load. Reverse Engineer – Select Template (Physical) ( . 172), (Server 2000) Next.
. 172.
Reverse Engineer – Select Template.
Reverse Engineer - Set Option ; Next. SQL Server Connection ( (SQL Server 2000),
157
. 155):
(Da-
tabase authentication), (modeler1),
- Ivanov),
(modeler1), ((local)),
( Connect.
ERwin
-
.
Right Model Selection . 4. (Type Selection, Left Object Selection, Right Object Selection, Advanced Option). Compare, . 5. Resolve Differences : . , ( . 173) , . Finish, Resolve Differences, Close, Right Model Selection.
. 173. 6. 6-
Resolve Differences « -
.erwin»
.
),
, И
: _
( К
( И
.
);
-
. .
. 174.
158
. 174. .
7. 8.
».
.
.
9.
9-
«
-
2, 3, 4. Resolve Differences, (
.
. 175.
. -
. 175).
Resolve Differences
10. . (copy item to left)
, Resolve Differences . 175. .
Finish, Close, , ,
.
.
, Resolve Differences
Resolve Differences, Right Model Selection. К И
159
( ).
-
11.
«
.
9-
-
»
-
10. – ERwin DM
c : Report Template Builder
Data Browser. ERwin , . 1. « 6.erwin». 2. Report Template Builder ( Tools/Report Template Builder/Report Builder). 3. , ERwin. Report Templates ( ) Available Templates ( ) Standard.erp !, Reports.erp ( Standard.erp, Browse ERwin: :\Program Files\CA\AllFusion ERwin Data Modeler r7\Reports, К). Run ( . 176).
. 176.
Report Templates.
: Entity Reports-Entity-Definitions, Entity Reports-Entity-Primary Key, Attribute Reports-Attribute-Definition ( . 177), . . , ( . 178). . Import From ERP
160
. 177.
Import From ERP.
HTML.
. 178. 4.
RTF. New. Available Sections (
179
. 179
Report Templates Report Template Builder Entity, Picture
).
.
Properties ( ).
,
« ( File/Run). Available Subject Areas and Stored Display . ERwin
161
1» (
(
. 179). File/Save).
. -
Select All MS АШrН
:
« ),
1)
. 179.
:
!
(
,
(
2)
. port Template Builder.
»,
-
. 180).
: .
. 180. 5.
:
RFT. «
162
»
Re-
DКtК Browser (
6.
Tools/Data Brows-
er).
Data Browser. 7. Data Browser ( Reports/Open Report File, :\Program Files\CA\AllFusion ERwin Data Modeler r7\Reports\Standard.erp). AХХ RОЩШrts ( . 181). 8. , ERаТЧ Data Browser. AХХ rОЩШrts Entity Reports ( . 181) Entity/Definition. Data . 181. Browser , : (Name), nition), (Note, Note2, Note3). . 182 .
. 182.
,
All reports (Defi-
Entity/Definition. Entity NКЦО
. , Data Browser К
Entity DОПТЧТtТШЧ
, -
,
163
. .
, , -
9.
. Entity/Definition,
AХХ RОЩШrts
, Export result set (
. 183.
Entity/Definition.
Export ,
. 184. Word – New
. 183).
Export from Data Browser ( DDE, Export.
. 184)
-
Export from Data Browser.
DDE Targets,
(
. 185).
DКtК Browser. «
164
MS MS АШrН,
».
. 185. 10. Report)
DКtК Browser. Name . 186,
Domain,
. 186.
reports 11. reports .
DDE Targets.
«
, OЩtТШЧ
.
Reports ( »,
File/New Category -
Reports.
, AllFusion ERwin DM Reports/Domain Report. . Data Browser
165
All .
AХХ -
12. «Standard
DКtК Browser
»(
Reports/Save Report File As).
,
,
-
33. 33.
.
№
1 12 23 34 45 56 67 8 89 910 1 11 12 13 Standard
-
1. 2.
3. 4.
erwin erwin erwin erwin erwin erwin sql erwin erwin rtb doc doc erp
Д3].
ERаТЧ DM
ERwin
ERwin RTB
Data Browser
,
,
:
.
, RОЩШrt TОЦЩХКtО BuТХНОr DКtК Browser. ERаТЧ DM . .
SQL SОrver.
, ,
166
-
.
Complete Compare. .
1 2 3 4 5 6 7 8 9 10 10 10 10
-
5. Complete Compare. .
167
1.
.. –
.
.:
.
. . Modeling Suite. – 3. . .
2.
« .: .
4. 5.
6.
7.
8. 9.
-
, 2007. – 400 .
-
AХХFusТШЧ MШНОХТЧР SuТtО. MШНОХОr.
, 8», 2006. –1328 .
I. .–
, 2007. - 145 .
.:
:
.
AllFusion
AХХFusТШЧ PrШМОss . -
. . ERаТЧ DКtК MШНОХОr // .–2008.–№ 3.– .58-62. . . AХХFusТШЧ ERаТЧ DКtК ModelОr CASE// . – 2007. – № 6.– .20-21. . . AllFusion ERwin Data Modeler // . – 2008. – № 1.– .32-34. AllFusion ERwin Data Modeler 7.2 Methods Guide. – USA.: CA, 2007. – 102 . : http://www.idef.com http://www.interface.ru
168
:
ALLFUSION MODELING SUITE. II. Ы Ы ERWIN DATA MODELER
___________________________________________________________ .№ 9 . . 100 ___________________________________________________________ 101990,
,
.,7
169