160 likes | 398 Views
CSIT313 Database Programming. Lecture 1: Database Design Methodology : Introduction. Learning Objectives. Database Design Terminology Purpose of Database Design Phases of Database Design. Database Application Lifecycle. DB Planning. System Definition. Requirements Collection and Analysis.
E N D
CSIT313 Database Programming Lecture 1: Database Design Methodology : Introduction
Learning Objectives • Database Design Terminology • Purpose of Database Design • Phases of Database Design
Database Application Lifecycle DB Planning System Definition Requirements Collection and Analysis Database Design Conceptual Design DBMS Selection Logical Design Application Design Physical Design Implementation Data Conversion & Loading Prototyping Testing Operational Maintenance
Database Application Lifecycle • Database Planning : Management activities that allow the stages of the database application to be realized as efficiently as possible • System Definition : The scope and boundaries of the application including its major application areas and user groups
Database Application Lifecycle • Application Design : Design of the user interface and the application programs that use and process the database. • Prototyping : Building a working model of a database application • Implementation : Physical realization of the database and application design
Database Application Lifecycle • Data Conversion and Loading : Transferring any existing data into the new database and converting any existing processes to run on the new database. • Testing : Process of executing the application programs with the intent of finding errors. • Operational Maintenance : Process of monitoring and maintaining the system following installation.
Overview of Database Design • Data Modeling : • Assist in understanding of the semantics of data • Facilitate the communication about information requirements • Criteria for Optimal Data Models:
Database Design Methodology • A structured approach that uses procedures, techniques, tools and documentation aids to support and facilitate the process of design DBDL Interaction with users Data-driven approach Data dictionary Structured methodology validate Repeat diagrams Structural and integrity considerations
Phases of Database Design • Conceptual Database Design • Process of constructing a model of the information used in an enterprise independent of all physical considerations • Logical Database Design • Process of constructing a model of information used in an enterprise based on a specific data model but independent of a particular DBMS or any other physical considerations • Physical Database Design • Description of the implementation of the database on secondary storage. It describes the storage structures and access methods for efficient access.
Conceptual Logical Physical Overview of Database Design • Build local conceptual data model for each user view • Build and Validate local logical data model for each user view • Build and validate global logical Model • Translate global logical model for target DBMS • Design Physical representation • Design Security Mechanisms • Monitor and Tune operational system
Conceptual Database Design • Build local logical data model for each user view 1.1 Identify entity types 1.2 Identify relationship types 1.3 Identify and associate attributes with entity or relationship types 1.4 Determine Attribute Domains 1.5 Determine candidate and primary key attributes 1.6 Specialize/generalize entity types 1.7 Draw Entity-Relationship Diagram 1.8 Review local conceptual data model with user
Logical Database Design • Build and validate local logical data model 2.1 Map local Conceptual data model to local local data model 2.2 Derive relations from local logical data model 2.3 Validate model using normalization 2.4 Validate model against user transactions 2.5 Draw Entity relationship Diagram 2.6 Define integrity constraints 2.7 Review Local logical data model with user
Logical Database Design • Build and Validate Global Logical data model 3.1 Merge local logical data models into global model 3.2 Validate global logical data model 3.3 Check for future growth 3.4 Draw final Entity Relationship diagram 3.5 Review global logical data model with users
Physical Database Design • Translate Global Logical Data Model for target DBMS 4.1 Design base relations for target DBMS 4.2 Design enterprise constraints for target DBMS • Design Physical Representations 5.1 Analyze transactions 5.2 Choose file organizations
Physical Database design 5.3 Choose secondary indexes 5.4 Consider introduction of controlled redundancy • Design Security Mechanisms 6.1 Design user views 6.2 Design access rules • Monitor and tuner operational system