Copyright  Oracle Corporation, 1999. All rights reserved. 4 CMIS 570 - Powell Oracle Designer: Creating the Database Design CMIS 570 - Powell.

Slides:



Advertisements
Similar presentations
The Ribbon Standard to all Office 2007 applications Organized by feature and functionality Navigation Pane Access to all objects in the current database.
Advertisements

4 Oracle Data Integrator First Project – Simple Transformations: One source, one target 3-1.
AS ICT Building MS-Access Databases. Creating a Combo Box Drop Down List 1.When creating a Field requiring a Drop Down list in a Table, select the Lookup.
Advanced Order Copy with Online Availability Checking An Enhancement For iSeries 400 DMAS from  Copyright I/O International, 2005 Skip Intro.
Microsoft SQL Server 2008 From the Program menu choose: Microsoft SQL Server 2008 R2  SQL Server Management Studio. You may see a window indicating the.
McGraw-Hill/Irwin Copyright © 2013 by The McGraw-Hill Companies, Inc. All rights reserved. Extended Learning Module J (Office 2010 Version) Implementing.
McGraw-Hill/Irwin Copyright © 2013 by The McGraw-Hill Companies, Inc. All rights reserved. Extended Learning Module J (Office 2010 Version) Implementing.
US Army Corps of Engineers BUILDING STRONG ® Performing Data Migration USACE SDSFIE Training Prerequisites: Implementing a Local Adaptation.
Accounting System Design
Guide to Oracle10G1 Introduction To Forms Builder Chapter 5.
A Guide to Oracle9i1 Introduction To Forms Builder Chapter 5.
Extended Learning Module J (Office 2007 Version) Implementing a Database with Microsoft Access McGraw-Hill/Irwin Copyright © 2010 by the McGraw-Hill Companies,
Using ERWin to model your data Supplied by Computer Associates as part of AllFusion.
Chapter Extension 6 Using Microsoft Access © 2008 Pearson Prentice Hall, Experiencing MIS, David Kroenke.
® IBM Software Group © 2006 IBM Corporation The Eclipse Data Perspective and Database Explorer This section describes how to use the Eclipse Data Perspective,
Michael F. Price College of Business Chapter 6: Logical database design and the relational model.
Using ER/Studio.
5 Copyright © 2009, Oracle. All rights reserved. Defining ETL Mappings for Staging Data.
Database Systems Marcus Kaiser School of Computing Science Newcastle University.
PostgreSQL and relational databases As well as assignment 4…
DATA MODELING AND DATABASE DESIGN
Copyright  Oracle Corporation, All rights reserved. 5 CMIS Powell Oracle Designer: Design Editor and Building the Database and Table API CMIS.
MIS 385/MBA 664 Systems Implementation with DBMS/ Database Management Dave Salisbury ( )
Databases in Visual Studio. Database in VisualStudio An MS SQL database are built in Visual studio The Name can be something like ”(localdb)\Projects”
Copyright © 2007, Oracle. All rights reserved. Managing Concurrent Requests.
Mapping from Data Model (ERD) to Relational Model
PostgreSQL and relational databases As well as assignment 4…
Lesson 2.  To help ensure accurate data, rules that check entries against specified values can be applied to a field. A validation rule is applied to.
Management Information Systems MS Access MS Access is an application software that facilitates us to create Database Management Systems (DBMS)
Oracle Data Integrator Transformations: Adding More Complexity
MS Access 2007 Management Information Systems 1. Overview 2  What is MS Access?  Access Terminology  Access Window  Database Window  Create New Database.
Press Esc to Exit ©2011 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in.
McGraw-Hill/Irwin © 2008 The McGraw-Hill Companies, All Rights Reserved Plug-In T6: Basic Skills and Tools Using Access 2010 Business Driven Technology.
SQL: DDL. SQL Statements DDL - data definition language –Defining and modifying data structures (metadata): database, tables, views, etc. DML - data manipulation.
Intro to SQL| MIS 2502  Spacing not relevant › BUT… no spaces in an attribute name or table name  Oracle commands keywords, table names, and attribute.
5 Copyright © 2004, Oracle. All rights reserved. Creating a Master-Detail Form.
© 2002 by Prentice Hall 1 Database Processing with Microsoft Access David M. Kroenke Database Concepts 1e Appendix A.
Chapter 9: Logical Database Design and the Relational Model (ERD Mapping)
Copyright 2007, Paradigm Publishing Inc. ACCESS 2007 Chapter 2 BACKNEXTEND 2-1 LINKS TO OBJECTIVES Creating Related Tables Creating Related Tables Determining.
Creating Tables and Inserting Records -- Not easy to edit! -- check constraints! Create table test1 ( C1 char(5) primary key, C2 Varchar2(15) not null.
McGraw-Hill/Irwin © The McGraw-Hill Companies, All Rights Reserved TECHNOLOGY PLUG-IN T6 Basic Skills Using Access.
McGraw-Hill/Irwin ©2005 The McGraw-Hill Companies, All rights reserved ©2005 The McGraw-Hill Companies, All rights reserved McGraw-Hill/Irwin.
INFORMATION TECHNOLOGY DATABASE MANAGEMENT. Adding a new field 1Right click the table name and select design view 2Type the field information at the end.
Database Processing with Microsoft Access Appendix DAVID M. KROENKE’S DATABASE CONCEPTS, 2 nd Edition.
Chapter 9 Constraints. Chapter Objectives  Explain the purpose of constraints in a table  Distinguish among PRIMARY KEY, FOREIGN KEY, UNIQUE, CHECK,
Oracle 11g: SQL Chapter 4 Constraints.
Chapter 4 Constraints Oracle 10g: SQL. Oracle 10g: SQL 2 Objectives Explain the purpose of constraints in a table Distinguish among PRIMARY KEY, FOREIGN.
Chapter 9 Logical Database Design : Mapping ER Model To Tables.
13 Copyright © Oracle Corporation, All rights reserved. Maintaining Data Integrity.
Gold – Crystal Reports Introductory Course Cortex User Group Meeting New Orleans – 2011.
Constraints Lesson 8. Skills Matrix Constraints Domain Integrity: A domain refers to a column in a table. Domain integrity includes data types, rules,
1 ER Modeling BUAD/American University Mapping ER modeling to Relationships.
McGraw-Hill/Irwin Copyright © 2013 by The McGraw-Hill Companies, Inc. All rights reserved. Extended Learning Module J (Office 2007 Version) Implementing.
Copyright  Oracle Corporation, All rights reserved. 6 CMIS Powell Oracle Designer: Prototype Application Generation CMIS Powell.
DATA MODELING AND DATABASE DESIGN DATA MODELING AND DATABASE DESIGN Part 2.
Ch 3. Working with Tables and Views. Data type Specify type of data to be entered into a column (text, number, datetime, etc) Unicode (National) Datatypes.
Oracle Business Intelligence Foundation – Testing and Deploying OBI Repository.
Copyright  Oracle Corporation, All rights reserved. 1 CMIS Powell Oracle Designer: Process Modeling CMIS Powell.
IT 5433 LM3 Relational Data Model. Learning Objectives: List the 5 properties of relations List the properties of a candidate key, primary key and foreign.
4 Copyright © 2006, Oracle. All rights reserved. Managing OWB Life-Cycle Changes.
Copyright © 2014 Pearson Canada Inc. Ext. 5b-1 Copyright © 2014 Pearson Canada Inc. Application Extension 5b Using Microsoft Access Part 2: Using Information.
2 Copyright © 2008, Oracle. All rights reserved. Building the Physical Layer of a Repository.
11 Copyright © 2009, Oracle. All rights reserved. Enhancing ETL Performance.
Getting started with Accurately Storing Data
Basic Database Concepts
ORACLE SQL Developer & SQLPLUS Statements
COP5725 DATABASE MANAGEMENT POSTGRESQL TUTORIAL
Constraints.
CIS16 Application Programming with Visual Basic
Presentation transcript:

Copyright  Oracle Corporation, All rights reserved. 4 CMIS Powell Oracle Designer: Creating the Database Design CMIS Powell

7-2 Copyright  Oracle Corporation, All rights reserved. Setting the Scene Surely, we must be ready to begin the database design. You’re right. Let’s begin. We don’t have to do this by hand, do we?

7-3 Copyright  Oracle Corporation, All rights reserved. Overview Final checks are important! Data model transformation – Entities and attributes – Relationships Primary and foreign key constraints Benefits of automating the process The Database Design Transformer (DDT) Final checks are important! Data model transformation – Entities and attributes – Relationships Primary and foreign key constraints Benefits of automating the process The Database Design Transformer (DDT)

7-4 Copyright  Oracle Corporation, All rights reserved. Final Checks! Check each Entity: – Should have a set of attributes – Should be in at least one relationship – Should have a primary key – Should be used by at least one function Check each Entity: – Should have a set of attributes – Should be in at least one relationship – Should have a primary key – Should be used by at least one function

7-5 Copyright  Oracle Corporation, All rights reserved. Final Checks! Check each Attribute: – Should have at least format, length, and optionality specified Check each Relationship: – Should be accurate in its degree and optionality Check each Attribute: – Should have at least format, length, and optionality specified Check each Relationship: – Should be accurate in its degree and optionality

7-6 Copyright  Oracle Corporation, All rights reserved. Repository Reports for Final Checks “Quality” Reports: Entity Completeness Checks Function Completeness Checks “E/R Modeling” Reports: Entity Definition Attribute Definition Attributes in a Domain

7-7 Copyright  Oracle Corporation, All rights reserved. Final Checks! Based on the checklist, we need to: – Add a unique identifier to the COPY entity Let’s call it COPY NUMBER and set it as: Mandatory, Primary, VARCHAR2 length of 6 – Add a unique identifier to the SUPPLIER entity Let’s call it SUPPLIER ID and set it as: Mandatory, Primary, VARCHAR2 length of 6 Let’s do it now... Based on the checklist, we need to: – Add a unique identifier to the COPY entity Let’s call it COPY NUMBER and set it as: Mandatory, Primary, VARCHAR2 length of 6 – Add a unique identifier to the SUPPLIER entity Let’s call it SUPPLIER ID and set it as: Mandatory, Primary, VARCHAR2 length of 6 Let’s do it now...

7-8 Copyright  Oracle Corporation, All rights reserved. Where We Have Come From CUSTOMER # ID * LAST NAME... ORDER # ID * ORDER DATE... originator of for

7-9 Copyright  Oracle Corporation, All rights reserved. Where We Are Going CUSTOMERS # * ID * LAST_NAME... ORDERS # * ID * ORDER_DATE... * CTR_ID Table Primary key column Columns Foreign key Foreign key column

7-10 Copyright  Oracle Corporation, All rights reserved. The Data Design Model DDT does not generate SQL Data Design Model consists of table definitions Table definitions are later input to the Database Generator to create the SQL to define the physical database DDT does not generate SQL Data Design Model consists of table definitions Table definitions are later input to the Database Generator to create the SQL to define the physical database ERD Analysis Model ERD Analysis Model Data Design Model Data Design Model DDT

7-11 Copyright  Oracle Corporation, All rights reserved. Transforming Entities and Attributes Analysis Model Design Model + Entity + CUSTOMER + Attributes + LAST NAME + Unique Identifier + Table + CUSTOMERS + Columns + Primary Key + LAST_NAME CUSTOMERS #* ID *LAST_NAME *STREET oPOSTAL_CODE CUSTOMER #ID * LAST NAME *STREET oPOSTAL CODE

7-12 Copyright  Oracle Corporation, All rights reserved. Transforming Relationships CUSTOMER ORDER # ID... originator of for CUSTOMERS ORDERS # * ID * CTR_ID... # ID... Mandatory Not Null ORD_CTR_FK

7-13 Copyright  Oracle Corporation, All rights reserved. Transforming a Foreign Key A foreign key column is created in the “many” table – Matches the primary key of the referenced table – Foreign key column is named: _ A foreign key constraint is created and associated with the new foreign key column – Constraint object is named: _ _FK A foreign key column is created in the “many” table – Matches the primary key of the referenced table – Foreign key column is named: _ A foreign key constraint is created and associated with the new foreign key column – Constraint object is named: _ _FK

7-14 Copyright  Oracle Corporation, All rights reserved. Transforming a Foreign Key CUSTOMERS ID # * ID * LAST_NAME... ID is a primary key column: – Identifies a customer uniquely – Cannot be null ORDERS CTR_ID # * ID... CTR_ID CTR_ID is a foreign key column: – Same size and type as CUSTOMERS.ID CTR_ID is a foreign key column: – Same size and type as CUSTOMERS.ID ORD_CTR_FK is the foreign key constraint

7-15 Copyright  Oracle Corporation, All rights reserved. Benefits of an Automated Tool Enforces standards – Naming conventions – Standard results Saves development time Eliminates repetitive work Eliminates careless errors Allows for changes in analysis Enforces standards – Naming conventions – Standard results Saves development time Eliminates repetitive work Eliminates careless errors Allows for changes in analysis

7-16 Copyright  Oracle Corporation, All rights reserved. Selecting Entities to Transform Entities 5 Tables (Mapped) All entities Selected entities ERD Front panel ITEM * ORDER #

7-17 Copyright  Oracle Corporation, All rights reserved. Using the Tool Customize the Database Design Transformer Settings Run the Transformer in Default Mode Mode Run Help Show Run Set Selected entities All entities Customize the Database Design Transformer Run options Settings that rarely change Modes for entity selection Summary of run set 0 Entities 5 Tables (Mapped) Run options

7-18 Copyright  Oracle Corporation, All rights reserved. How We Will Run The DDT Initiate from the Designer launchpad Select “Default Mode” and “All Entities” Click “Run” to initiate the DDT When DDT has finished processing: – Close the “Output” window – Select “Customize the DDT” to access the “Table Mappings” and “Other Mappings” tabs –Here, you can see the detailed results of the DDT run Initiate from the Designer launchpad Select “Default Mode” and “All Entities” Click “Run” to initiate the DDT When DDT has finished processing: – Close the “Output” window – Select “Customize the DDT” to access the “Table Mappings” and “Other Mappings” tabs –Here, you can see the detailed results of the DDT run

7-19 Copyright  Oracle Corporation, All rights reserved. Viewing the Results Output Window Mappings tabs ITEMS PRICED_PRODU Table Mappings Entity PRODUCT PRICED PRODUCT ORDER ITEM ORDERS PRODUCTS PRICED_PRODU ITEMS CUSTOMER CUSTOMERS Other Mappings committing changes… committed successfully updating dialog… Loading Tables from the Reposi CUSTOMERS ITEMS ORDERS PRICED_PRODUCT PRODUCTS …………………………………... …………………………………... Waiting for Close to be pressed.. committing changes… committed successfully updating dialog… Loading Tables from the Reposi CUSTOMERS ITEMS ORDERS PRICED_PRODUCT PRODUCTS …………………………………... …………………………………... Waiting for Close to be pressed..

7-20 Copyright  Oracle Corporation, All rights reserved. Summary Transform the analysis data model into a data design (i.e. table definitions) DDT automates the process Transform the analysis data model into a data design (i.e. table definitions) DDT automates the process EntityUIDAttributeRelationshipTable Primary or unique key Column Foreign key column and constraint

7-21 Copyright  Oracle Corporation, All rights reserved. Practice 1 1.View the entity relationship model 2.Write down your expected DDT results using Design Editor... 3.After running the DDT, examine the result – using Design Editor... 1.View the entity relationship model 2.Write down your expected DDT results using Design Editor... 3.After running the DDT, examine the result – using Design Editor...

7-22 Copyright  Oracle Corporation, All rights reserved. Intro to the Design Editor Tool 1.Initiate Design Editor from the Designer launchpad 2.Select “Server Model” (the default) and UN-check “Use a Guide” 3.Expand “Relational Table Definitions” 4.Use the shift key to select all 3 tables 5.Drag them to the “work surface” at right 6.Maximize the work surface window to study your model 7.Print this model out if you want to 1.Initiate Design Editor from the Designer launchpad 2.Select “Server Model” (the default) and UN-check “Use a Guide” 3.Expand “Relational Table Definitions” 4.Use the shift key to select all 3 tables 5.Drag them to the “work surface” at right 6.Maximize the work surface window to study your model 7.Print this model out if you want to