DFo 4 1
DFo 4 1
DFo 4 1
4-1
Oracle SQL Developer Data Modeler
Converting a
Logical Model
Oracle SQL
to a Relational
Developer
Model
Data Modeler
DFo 4-1 Copyright © 2015, Oracle and/or its affiliates. All rights reserved. 3
Oracle SQL Developer Data Modeler
Objectives
DFo 4-1 Copyright © 2015, Oracle and/or its affiliates. All rights reserved. 4
Oracle SQL Developer Data Modeler
Introduction to Oracle SQL Developer Data
Modeler
DFo 4-1 Copyright © 2015, Oracle and/or its affiliates. All rights reserved. 5
Oracle SQL Developer Data Modeler
Oracle SQL Developer Data Modeler
Interface: Example Overview
Main
Menu
DFo 4-1 Copyright © 2015, Oracle and/or its affiliates. All rights reserved. 6
Oracle SQL Developer Data Modeler
Building an ERD by Using Oracle SQL
Developer Data Modeler
DFo 4-1 Copyright © 2015, Oracle and/or its affiliates. All rights reserved. 7
Oracle SQL Developer Data Modeler
Case Scenario: An Introduction
Sean, I would like you to create a simplified
library database to manage the number of
reference books in our department. As a first
step, can you build a logical model using
Oracle SQL Developer Data Modeler that we
Faculty have installed in our student machines?
DFo 4-1 Copyright © 2015, Oracle and/or its affiliates. All rights reserved. 8
Oracle SQL Developer Data Modeler
Case Scenario: Identifying Entities
Books
Authors
Members Publishers
Book
Transactions
DFo 4-1 Copyright © 2015, Oracle and/or its affiliates. All rights reserved. 9
Oracle SQL Developer Data Modeler
Building an Entity Relationship Diagram
1
Navigate to the
Logical Tab
2
Create an Entity
3
Add Attributes to
the Entity
4
Set the Unique
Identifiers
5
Define the Relationship
Between the Entities
DFo 4-1 Copyright © 2015, Oracle and/or its affiliates. All rights reserved. 10
Oracle SQL Developer Data Modeler
Building an ERD: Step 1
DFo 4-1 Copyright © 2015, Oracle and/or its affiliates. All rights reserved. 11
Oracle SQL Developer Data Modeler
Building an ERD: Step 2
2. Create an entity.
a
b
DFo 4-1 Copyright © 2015, Oracle and/or its affiliates. All rights reserved. 12
Oracle SQL Developer Data Modeler
Building an ERD: Step 3
b
a
c
DFo 4-1 Copyright © 2015, Oracle and/or its affiliates. All rights reserved. 13
Oracle SQL Developer Data Modeler
Editing the Attribute Properties
DFo 4-1 Copyright © 2015, Oracle and/or its affiliates. All rights reserved. 14
Oracle SQL Developer Data Modeler
Building an ERD: Step 4
DFo 4-1 Copyright © 2015, Oracle and/or its affiliates. All rights reserved. 15
Oracle SQL Developer Data Modeler
Building an ERD: Step 5
DFo 4-1 Copyright © 2015, Oracle and/or its affiliates. All rights reserved. 16
Oracle SQL Developer Data Modeler
Building an ERD: Step 6
b c
DFo 4-1 Copyright © 2015, Oracle and/or its affiliates. All rights reserved. 17
Oracle SQL Developer Data Modeler
Case Scenario: Entity Types
DFo 4-1 Copyright © 2015, Oracle and/or its affiliates. All rights reserved. 18
Oracle SQL Developer Data Modeler
Creating the Supertype Entity
MEMBERS Supertype
DFo 4-1 Copyright © 2015, Oracle and/or its affiliates. All rights reserved. 19
Oracle SQL Developer Data Modeler
Creating the Arc Relationship
a
DFo 4-1 Copyright © 2015, Oracle and/or its affiliates. All rights reserved. 20
Oracle SQL Developer Data Modeler
Creating the Hierarchical Relationship
1:N Relationship
DFo 4-1 Copyright © 2015, Oracle and/or its affiliates. All rights reserved. 21
Oracle SQL Developer Data Modeler
Creating the Barred Relationship
Identifying
Relationship
DFo 4-1 Copyright © 2015, Oracle and/or its affiliates. All rights reserved. 22
Oracle SQL Developer Data Modeler
Creating the Recursive Relationship
Recursive
Relationship
DFo 4-1 Copyright © 2015, Oracle and/or its affiliates. All rights reserved. 23
Oracle SQL Developer Data Modeler
PROPERTIES
DFo 4-1 Copyright © 2015, Oracle and/or its affiliates. All rights reserved. 25
Oracle SQL Developer Data Modeler