Data Modeling
Introduction to
INTRODUCTION
Data
Modeling
TO
DATA MODELING
Articles
Oracle Magazine
Oracle Technology Network (OTN)
Oracle Informant
PC Week (now E-Magazine)
Linux Journal
www.Linux.com
3
How Do We Do It?
We surround the application infrastructure:
Application Monitoring
Database Management
High Availability
Overview
Why do we Model?
Would you build an office without a blueprint?
The Architect will create the first high
level drawings to validate the concept
with the client and then make a more
detailed plan (i.e. the blueprint ) for the
Contractor
World of Modeling
End-user
IT Partner/Liaison Business Process Modeling
(BPM)
Business Analyst
System Architect
System Analyst
App Developer
Bus. Analyst
Data Architect
Data Analyst
DBA
DB Developer
DB Architect
Object-Oriented Modeling
(OOM - UML)
(PDM)
DB-specific model
Reverse engineer existing DB
Create/Update DB from model
Data Warehouse Modeling
11
Conceptual
Some shops
just treat this
as one big
Design task
Reengineer
Physical
Develop
Deploy
Monitor
&
Maintain
12
Entity Meta-Data
15
16
Attribute Meta-Data
Comment
Business Data Type
Optional or Mandatory
Part of Unique Identifier(s)
Checks
Minimum
Maximum
Default
Units
Format
Upper/Lowercase
Cannot Modify
List of Legal Values
Business Rules
NOTE - This represents the bulk of the work when data modeling
19
Meta-Data - Basic
20
Meta-Data UIDs
21
Meta-Data - Checks
22
Meta-Data Rules 1
23
Meta-Data Rules 2
24
26
http://www.quest.com/whitepapers/Reality_Requires-QDesigner.pdf
27
X means Exclusive
28
Super/Sub
Meta-Data
29
30
Relationship Meta-Data
33
role_name3
1 OR MORE4
1 AND ONLY 14
3
1
entity5
4
2
Example:
Each employee may open one or more account
Each account must be opened by one and only one employee
34
Dependent Relationships
In a dependent association,
one entity is partially
identified by another. Each
entity must have an
identifier. In some cases,
however, the attributes of an
entity are not sufficient to
identify an occurrence of the
entity. For these entities,
their identifiers incorporate
the identifier of another
entity with which they have
a dependent association.
35
Relationships Results
36
Employees can be
Customers right?
38
39
41
42
Example
DDL Script
Remember the
Conceptual models
meta-data?
44
Parting Thoughts
Data Modeling or CASE tools do not automatically = good
design
Must do complete business analysis
Must do adequate Conceptual -> Physical transformation
Must add required physical meta-data (tuning & insight)
More Information
Free 45-Day Trial of QDesigner
www.quest.com/QDesigner
Compete enterprise modeling solution
Business Process Modeling (BPM)
Object-Oriented (UML) Modeling (OOM)
Conceptual Data Modeling (CDM)
Physical Data Modeling (PDM)