Chapter 1 Introduction to Databases. 1-2 Chapter Outline   Common uses of database systems   Meaning of basic terms   Database Applications  

Slides:



Advertisements
Similar presentations
Introduction to Databases
Advertisements

Introduction to Databases
Chapter 2 Database Environment.
Data Management I DBMS Relational Systems. Overview u Introduction u DBMS –components –types u Relational Model –characteristics –implementation u Physical.
Introduction to Databases Transparencies
Chapter 1 INTRODUCTION TO DATABASE.
Chapter 2 Database Environment Pearson Education © 2014.
1 Chapter 2 Database Environment. 2 Objectives of Three-Level Architecture u All users should be able to access same data u User’s view immune to changes.
Lecture Two Database Environment Based on Chapter Two of this book:
Chapter 1 Introduction to Databases
Introduction and Conceptual Modeling
1 Chapter 2 Database Environment. 2 Chapter 2 - Objectives u Purpose of three-level database architecture. u Contents of external, conceptual, and internal.
Introduction to Databases
Introduction to Databases Transparencies 1. ©Pearson Education 2009 Objectives Common uses of database systems. Meaning of the term database. Meaning.
DATABASE MANAGEMENT SYSTEM ARCHITECTURE
Introduction to Databases and Database Languages
Chapter 3 Data Models.
Database Environment 1.  Purpose of three-level database architecture.  Contents of external, conceptual, and internal levels.  Purpose of external/conceptual.
Sistem Basis Data (DATABASE) Siauw Yohanes Darmawan
Chapter 1 Introduction to Databases Pearson Education ©
1 Introduction to Database Systems. 2 Database and Database System / A database is a shared collection of logically related data designed to meet the.
Lecture On Introduction (DBMS) By- Jesmin Akhter Assistant Professor, IIT, Jahangirnagar University.
Chapter 1 : Introduction §Purpose of Database Systems §View of Data §Data Models §Data Definition Language §Data Manipulation Language §Transaction Management.
©Silberschatz, Korth and Sudarshan1.1Database System Concepts Chapter 1: Introduction Purpose of Database Systems View of Data Data Models Data Definition.
Chapter(1) Introduction and conceptual modeling. Basic definitions Data : know facts that can be recorded and have an implicit. Database: a collection.
1 Chapter 1 Introduction to Databases Transparencies Last Updated: Pebruari 2010 By M. Arief Updated by RSO Feb 2011
Lecture # 3 & 4 Chapter # 2 Database System Concepts and Architecture Muhammad Emran Database Systems 1.
Lesson Overview 3.1 Components of the DBMS 3.1 Components of the DBMS 3.2 Components of The Database Application 3.2 Components of The Database Application.
Database Environment Chapter 2. Data Independence Sometimes the way data are physically organized depends on the requirements of the application. Result:
Module 2: Database Environment
Database Environment Session 2 Course Name: Database System Year : 2013.
INTRODUCTION TO DBS Database: a collection of data describing the activities of one or more related organizations DBMS: software designed to assist in.
DATABASE MANAGEMENT SYSTEM ARCHITECTURE
1 Introduction to Databases. 2 Examples of Database Applications u Purchases from the supermarket u Purchases using your credit card u Booking a holiday.
1 Chapter 1 Introduction to Databases Transparencies.
Introduction Database integral part of our day to day life Collection of related database Database Management System : software managing and controlling.
Introduction to Databases Transparencies © Pearson Education Limited 1995, 2005.
Chapter 2 Database Environment.
1 Database Environment. 2 Objectives of Three-Level Architecture u All users should be able to access same data. u A user’s view is immune to changes.
1 Chapter 2 Database Environment Pearson Education © 2009.
Lecture On Introduction (DBMS) By- Jesmin Akhter Assistant Professor, IIT, Jahangirnagar University.
What is Database Administration ?
Introduction to Databases Transparencies
Introduction to Databases
Introduction to Databases Transparencies
Introduction to Databases
Introduction to DBMS Purpose of Database Systems View of Data
Introduction to Databases
Introduction to Databases
Introduction to Databases Transparencies
Introduction to Databases
Introduction to Databases Connolly and Begg
Introduction to Databases
Introduction to Databases
Introduction to Databases
Chapter 2 Database Environment Pearson Education © 2009.
Chapter 2 Database Environment.
Data Base System Lecture : Database Environment
Introduction to Databases
Introduction to Databases Transparencies
Database Environment Transparencies
Introduction to DBMS Purpose of Database Systems View of Data
Introduction to Databases
Introduction to Databases
Introduction to Databases
Introduction to Databases Transparencies
Chapter 2 Database Environment Pearson Education © 2014.
Chapter 2 Database Environment Pearson Education © 2009.
Chapter 2 Database Environment Pearson Education © 2009.
Presentation transcript:

Chapter 1 Introduction to Databases

1-2 Chapter Outline   Common uses of database systems   Meaning of basic terms   Database Applications   Database (D/B)   Database Management System (DBMS)   Major components of the DBMS environment   Typical functions of DBMS

1-3 An Example Of Database Applications   Checkout of purchasing goods from a supermarket   Use bar code to find the price of each purchase item from product database   Reduce the number of each purchase item in stock   Summarize and display the total price   Re-order an item if its number < its safety threshold   Purchase checkout using your credit card   Check if the card is in OK status from card database   Check if sufficient credit left   Authorize the purchase

1-4 Database Applications   At the center of these application examples is the database.   For the compter system to support the applications that the end-users want, it requires a suitably structured database.   The process producing this structure : database design.   A well-designed database will allow you to produce a system that satisfies the requirements of the users and provides acceptable performance.

Overview Database application systems Sales Tables Typical Architecture of DB Applications

1-6 Terminology Database   A shared collection of logically related data (and a description of the data), designed to meet the information needs of an organization.   Shared collection: can be used simultaneously by many departments and users.   Logically related: A DB comprises the important objects and the relationships between these objects.   Description of the data – the system catalog (meta-data) provides description of data to enable data independence.

1-7 Terminology DBMS (Database Management System):   A software system that enables users to define, create, and maintain databases and that provides controlled access to the databases. Database Application Programs:   Software programs that interact with the database by issuing appropriate requests (typically SQL statements) to the DBMS.

1-8 Three-level Database Architecture   Three levels of abstraction – external, conceptual, internal schemas   To alleviate problems with program maintenance (Handle change over time and hide complexity of DB structure)   Data needs of users may change over time   Can change logical structure without affecting all users, e.g., adding a new column or table   Can change data and file structures without affecting overall logical structure or users' views   Can change the physical aspects of storage without affecting database structure   Hides complexity of database storage structures

1-9 Three Schema Architecture and Data Independence 1.4 Architecture of DBMS

1-10 External Level Schema   This level concerns user view ( 使用者的觀看 )   The way users think about data   Consists of the models or views of many user from different departments   External records - records seen by users   May include calculated or virtual data   Used to create user interface

1-11 Conceptual Level Schema   This level concerns community view ( 整體企業的觀點 )   Include entire information structure of the database   Denote the logical meaning of the database   Collections of logically related records   Represented by entities, attributes, relationships   Includes data item types, record types, relationships, constraints, semantic information, security and integrity information   Relatively constant over time

1-12 Internal Level Schema   This level concerns storage view ( 儲存的觀點 ) of the DB   Define physical storage structures, i.e., the way the data is actually stored using standard data structures and file organizations used by DBMS   Depends on what DBMS is used   Define files, collections of data on a storage device such as a hard disk.   OS (Operating system) creates physical files and records

Level Example of DB Architecture 1.4 Architecture of DBMS ( 生日 ) ( 外觀 1) ( 外觀 2)

1-14 Five Components Of DBMS Environment   Hardware   The computer system(s) that the DBMS and the application programs run on. This can range from a PC, a single mainframe, to a network of computers.   Software   DBMS, operating system, network software (if necessary) and also the application programs.   Data   Operational data used by an organization   A description of the data, called meta-data

1-15 Five Components Of DBMS Environment   Procedures   Instructions and rules that govern the design and use of the database.   Examples: instructions on how to   Log on to the DBMS   Make backup copies of the database   Handle hardware or software failures   People   Database designer   Database administrator (DBA)   Application programmers   End users

1-16 Functions of DBMS   Data Storage, Retrieval and Update   The DBMS should hide the internal physical implementation details of databases (such as file organization and storage structure) from the users 1/10

1-17 Functions of DBMS   System Catalog   Holds data about the structure of databases, users, applications and so on.   Accessible to users and DBMS   Data in system catalog   Names, data type, and sizes of data items   Integrity constraints on the data   Names of authorized users who have access to the data 2/10

1-18 Functions of DBMS  Transaction Support  Transaction  An action, or a series of actions, carried out entirely by a single user or application program, which changes the contents of the database.  Ensure that either all the updates corresponding to a given transaction are made or that none of them are made.  Example:  Transfer money from one bank account to another bank account 3/10

1-19  Concurrency Control Services  Ensure that database is updated correctly when multiple users are updating the database concurrently.  Example:  An example of the lost update problem Functions of DBMS 4/10 in hard diskin memory

1-20 Functions of DBMS  Recovery (復原) Services  A mechanism for recovering the database to a previous consistent state  Transaction may fail because of  Users aborting a transaction before it completes  System crash  Storage media failure  A hardware or software error causing the DBMS to stop  Authorization (使用授權) Services  Ensure that only authorized users can access the database  Protection of the database against unauthorized access, either intentional or accidental 5, 6 / 10

1-21 Functions of DBMS  Support for Data Communication  Must be capable of integrating with network/communication software  Integrity Services  Database integrity: Correctness and consistency of stored data  Integrity is concerned with the quality of the data.  Integrity is expressed in terms of constraints  Example:  No member can rent more than 10 video tapes at one time 7, 8 / 10

1-22 Functions of DBMS  Services to Promote Data Independence  Achieved through a view mechanism  Logical Data Independence  Physical Data Independence  Utility Services  Data import/export facilities  Performance Monitoring & Tuning facilities 9, 10 / 10