Docsity

Understanding Databases:, Lecture notes of Data Warehousing

Partial preview of the text

Download Understanding Databases: and more Lecture notes Data Warehousing in PDF only on Docsity!

ISBS204 Database

Management Systems

Lecture 9

Database Design

Textbook Reading:

Chapter 9

After completing this lecture, you will be able to:

  • Describe the role of database design as the foundation of a successful information system
  • Describe the five phases in the Systems Development Life Cycle (SDLC)
  • Design databases using the six phases in the Database Life Cycle (DBLC) framework
  • Conduct evaluation and revision within the SDLC and DBLC frameworks
  • Distinguish between top-down and bottom-up approaches in database design
  • Distinguish between centralized and decentralized conceptual database design Learning Objectives
  • Performance factors of an information system
    • Database design and implementation
    • Application design and implementation
    • Administrative procedures
  • Database development
    • Process of database design and its implementation
    • The primary objective in database design is to create

complete, normalized, nonredundant (to the greatest

extent possible), and fully integrated conceptual, logical,

and physical database models.

  • The implementation phase includes creating the

database storage structure, loading data into the

database, and providing for data management.

The Information System (2/2)

  • Traces the history of an information system
    • Provides a picture within which database design and application development are mapped out and evaluated
  • Traditional SDLC is divided into five phases(figure 9.2)
    • Planning
    • Analysis
    • Detailed systems design
    • Implementation
    • Maintenance
  • Iterative rather than sequential process Systems Development Life Cycle (SDLC) (1/2)
  • Planning: yields a general overview of the company and its

objectives

  • For feasibility study, needs some assessment questions:-
    • Should the existing system be continued?
    • Should the existing system be modified?
    • Should the existing system be replaced?
  • If a new system is necessary, the next question is whether it is

feasible.

  • The feasibility study must address the following:
    • The technical aspects of hardware and software

requirements

  • The system cost
  • The operational cost--the cost of management and end-

user support needed

Planning

  • Analysis: problems defined during planning phase are examined in greater detail
  • A macro analysis must be made both of individual needs and organizational needs, addressing questions : - What are the requirements of the current system’s end users? - Do those requirements fit into the overall information requirements? - The existing hardware and software systems are also studied during the analysis phase. - End users and the system designer(s) must work together to identify processes and uncover potential problem areas. - The designer might use tools :data flow diagrams (DFDs), hierarchical input process output (HIPO) diagrams, entity relationship (ER) diagrams, and even some application prototypes. - The database design’s data-modeling activities take place at this point to discover and describe all entities and their attributes, and the relationships among the entities within the database.

Analysis

  • Implementation: hardware, DBMS software, and application programs are installed, and the database design is implemented
  • Coding, testing, and debugging until it is ready to be

delivered.

  • The actual database is created, and the system is

customized by the creation of tables and views, user

authorizations, and so on.

  • After testing is concluded, the final documentation is

reviewed and printed and end users are trained.

  • The system is in full operation at the end of this phase,

but it will be continuously evaluated and fine-tuned.

Implementation

  • As soon as the system is operational, end users begin to

request changes in it.

  • Those changes generate system maintenance activities, which

can be grouped into three types:

  • Corrective maintenance in response to systems errors
  • Adaptive maintenance due to changes in the business

environment

  • Perfective maintenance to enhance the system

Maintenance

  • Define Objectives
    • What is the proposed system’s initial objective?
    • Will the system interface with other existing or future systems in the company?
    • Will the system share the data with other systems or users?
  • Define Scope and Boundaries
  • The system’s scope defines the extent of the design according to operational requirements.
  • Will the database design encompass the entire organization,one or more departments within the organization, or one or more functions of a single department?
  • Knowing the scope helps define the required data structures, the type and number of entities, the physical size of the database, and so on.
  • Boundaries--the designer can choose the hardware and software that will best accomplish the system goals

The Database Life Cycle - Database initial study (2/13)

The Database Life Cycle ( 3 /13)

  • Database design : making sure that the final product meets user and system requirements - focuses on the design of the database model that will support company operations and objectives. - concentrate on the data characteristics required to build the database model. - two views of the data within the system: the business view of data as a source of information and the designer’s view of the data structure.(fig 9.5) - The database design does not constitute a sequential process. Rather, it is an iterative process that provides continuous feedback designed to trace previous steps. - The database design process is depicted in Figure 9.

The Database Life Cycle - Database design (5/13)

The Database Life Cycle --Database design (6/13)

  • Implementation and loading : DBMS is installed, database is created, and data is loaded or converted - The DBMS may be installed on a new server or on existing servers. - One current trend is called virtualization. - Virtualization is a technique that creates logical representations of computing resources that are independent of the underlying physical computing resources. - used in many areas of computing, such as the creation of virtual servers, virtual storage, and virtual private networks. - This refers the installation of a new instance of the DBMS on a virtual server running on shared hardware
  • Another common trend is the use of cloud database services-- Microsoft SQL Database Service or Amazon Relational Database Services (RDS).

The Database Life Cycle (8/13)

  • Implementation and loading
    • Create the Database(s)- In most modern relational DBMSs, a new database implementation requires the creation of special storage- related constructs to house the end user tables.
    • Load or Convert the Data- - After the database has been created, the data must be loaded into the database tables. » In some cases, data may have to be imported from other relational databases, nonrelational databases, flat files, legacy systems, or even manual paper-and-pencil systems. » If the data format does not support direct importing into the new database, conversion programs may have to be created to reformat the data for importing.

The Database Life Cycle (9/13)