CSC 411/511: DBMS Design 1 1 Dr. Nan WangCSC411_L1_Overview 1 Overview of Database Systems (Chapter 1)

Slides:



Advertisements
Similar presentations
©Silberschatz, Korth and Sudarshan4.1Database System Concepts Lecture-1 Database system,CSE-313, P.B. Dr. M. A. Kashem Associate. Professor. CSE, DUET,
Advertisements

1 Introduction to Database Systems CSE444 Instructor: Scott Vandenberg University of Washington Winter 2000.
Database Management Systems 1 Ramakrishnan & Gehrke Introduction to Database Systems Chapter 1 Instructor: Mirsad Hadzikadic.
Database: A collection of related data [Elmasri]. A database represents some aspect of real world called “miniworld” [Elmasri] or “enterprise” [Ramakrishnan].
Introduction to Databases
ICS (072)Database Systems: A Review1 Database Systems: A Review Dr. Muhammad Shafique.
Adapted from: ©Silberschatz, Korth and Sudarshan1.1Database System Concepts Chapter 1: Fly-over Introduction Purpose of Database Systems View of Data Data.
©Silberschatz, Korth and Sudarshan1.1Database System Concepts Chapter 1: Introduction Purpose of Database Systems View of Data Data Models Data Definition.
Database Management System (DBMS)
File Systems and Databases
Ch1: File Systems and Databases Hachim Haddouti
©Silberschatz, Korth and Sudarshan1.1Database System Concepts Chapter 1: Introduction Purpose of Database Systems View of Data Data Models Data Definition.
1 Introduction to Database Systems Ref. Ramakrishnan & Gehrke Chapter 1.
File Systems and Databases Hachim Haddouti
1 CENG 302 Introduction to Database Management Systems Nihan Kesim Çiçekli URL:
ICS (072)Database Systems Background Review 1 Database Systems Background Review Dr. Muhammad Shafique.
©Silberschatz, Korth and Sudarshan1.1Database System Concepts Chapter 1: Introduction Database Management Systems Purpose of Database Systems View of Data.
Chapter 1 Database Systems
Data Base Management System
CSCD34 - Data Management Systems,- A. Vaisman1 CSC D34 - Data Management Systems Instructor: Alejandro Vaisman University of Toronto.
 MODERN DATABASE MANAGEMENT SYSTEMS OVERVIEW BY ENGINEER BILAL AHMAD
Introduction and Conceptual Modeling
Database Systems: Design, Implementation, and Management Ninth Edition
Chapter 1 Database Systems. Good decisions require good information derived from raw facts Data is managed most efficiently when stored in a database.
Database Systems: Design, Implementation, and Management Ninth Edition
CS462: Introduction to Database Systems. ©Silberschatz, Korth and Sudarshan1.2Database System Concepts Course Information Instructor  Kyoung-Don (KD)
Database System Concepts, 5th Ed. ©Silberschatz, Korth and Sudarshan See for conditions on re-usewww.db-book.com Chapter 1: Introduction.
ADVANCED DATABASES WITH ORACLE 11g FOR ADDB7311 LEARNING UNIT 1 of 7.
Introduction to Databases
Database Design - Lecture 1
Module Title? DBMS Introduction to Database Management System.
Database Management Systems 1 Introduction to Database Systems Instructor: Xintao Wu Ramakrishnan & Gehrke.
1 INTRODUCTION TO DATABASE MANAGEMENT SYSTEM L E C T U R E
Database System Concepts and Architecture
Database Management Systems 1 Ramakrishnan & Gehrke Introduction to Database Systems Chpt 1 Instructor: Xintao Wu.
Database Management Systems 1 Ramakrishnan & Gehrke Introduction to Database Systems Chpt 1 Instructor: Weichao Wang.
Copyright © 2007 Ramez Elmasri and Shamkant B. Navathe Slide 1- 1.
ICS (072)Database Systems: An Introduction & Review 1 ICS 424 Advanced Database Systems Dr. Muhammad Shafique.
AL-MAAREFA COLLEGE FOR SCIENCE AND TECHNOLOGY INFO 232: DATABASE SYSTEMS CHAPTER 1 DATABASE SYSTEMS Instructor Ms. Arwa Binsaleh.
Database Systems: Design, Implementation, and Management Eighth Edition Chapter 1 Database Systems.
Mr.Prasad Sawant, MIT Pune India Introduction to DBMS.
ASET 1 Amity School of Engineering & Technology B. Tech. (CSE/IT), III Semester Database Management Systems Jitendra Rajpurohit.
Database Systems: Design, Implementation, and Management Eighth Edition Chapter 1 Database Systems.
Chapter 1: Introduction. 1.2 Database Management System (DBMS) DBMS contains information about a particular enterprise Collection of interrelated data.
Lecture on Database Management System
Database System Concepts Introduction Purpose of Database Systems View of Data Data Models Data Definition Language Data Manipulation Language Transaction.
Databases Salihu Ibrahim Dasuki (PhD) CSC102 INTRODUCTION TO COMPUTER SCIENCE.
Learning Outcomes  Understand the basics and concepts of database systems.  Design, implement and evaluate a computer-based system, process, component,
Database Management Systems 3ed, R. Ramakrishnan and J. Gehrke1 Database Management Systems Chapter 1.
1 CENG 351 CENG 351 Introduction to Data Management and File Structures Department of Computer Engineering METU.
©Silberschatz, Korth and Sudarshan 1.1 Database System Concepts قواعد البيانات Data Base قواعد البيانات CCS 402 Mr. Nedal hayajneh E- mail
Database System Concepts, 5th Ed. ©Silberschatz, Korth and Sudarshan See for conditions on re-usewww.db-book.com Chapter 1: Introduction.
Database Principles: Fundamentals of Design, Implementation, and Management Chapter 1 The Database Approach.
Introduction To DBMS.
Chapter 1: Introduction
Instructor: Elke Rundensteiner
Chapter 1: Introduction
Introduction to Database Systems
9/22/2018.
Database Management System (DBMS)
Chapter 1 Database Systems
Database Management Systems CSE594
Chapter 1 Database Systems
Chapter 1: Introduction
Chapter 1: Introduction
Chapter 1: Introduction
Introduction to Database Systems
Chapter 1: Introduction
Database Systems: Design, Implementation, and Management Tenth Edition
Presentation transcript:

CSC 411/511: DBMS Design 1 1 Dr. Nan WangCSC411_L1_Overview 1 Overview of Database Systems (Chapter 1)

CSC411_L1_OverviewDr. Nan Wang 22 Contents Data vs. Information What is a DBMS History of DBMS File Systems vs. DBMS Advantages of DBMS Describing and Storing Data using DBMS Transaction Structure of DBMS

CSC411_L1_OverviewDr. Nan Wang 3 Data 3

CSC411_L1_OverviewDr. Nan Wang 4 Data vs. Information Data are raw facts Information is the result of processing raw data to reveal meaning Information requires context to reveal meaning Raw data must be formatted for storage, processing, and presentation Data are the foundation of information, which is the bedrock of knowledge 4

CSC411_L1_OverviewDr. Nan Wang 5 Data vs. Information (cont’d.) Data: building blocks of information Information produced by processing data Information used to reveal meaning in data Accurate, relevant, timely information is the key to good decision making Good decision making is the key to organizational survival Data management: focuses on proper generation, storage, and retrieval of data 5 Database Systems, 10th Edition

CSC411_L1_OverviewDr. Nan Wang 6 What Is a DBMS? Data –Known facts that can be recorded and have an implicit meaning. Database –A very large, integrated collection of data. –Describe the activities of one or more related organizations Database models real-world enterprise. – Entities (e.g., students, professors, courses) – Relationships (e.g., Nicole is taking CSC411) A Database Management System (DBMS) is a software package designed to store and manage databases. –Design a database –Use a database (store and retrival) –Understand how a DBMS works DBMS Vendors: MySQL, IBM’s DB2, Oracle, Informix, Sybase

CSC411_L1_OverviewDr. Nan Wang 7 What Is a Database?

CSC411_L1_OverviewDr. Nan Wang 8 What will be covered in this book: 8

CSC411_L1_OverviewDr. Nan Wang 99 History of Database Early database Technology –Integrated data store The first general-purpose DBMS designed by Charles Bachman at General Electric in early 1960s Bachman was the first recipient of ACM’s (Association for Computing Machinery)Turing awardAssociation for Computing Machinery –Network data model Based on Integrated data model Strongly influenced database system through the 1960s –Hierarchical data model Based on Information Management System (IMS, IBM) Relational database model –By Edgar Codd at IBM’s San Jose Research Lab. Codd won 1981 Turing Award –Dominant DBMS paradigm –Standard SQL query language

CSC411_L1_OverviewDr. Nan Wang 10 History of Database Object-oriented applications –OODBMSs were introduced in late 1980’s and early 1990’s to cater to the need of complex data processing in CAD and other applications. –Their use has not taken off much. Data on the Web and E-commerce Applications –Web contains data in HTML (Hypertext markup language) with links among pages. –This has given rise to a new set of applications and E- commerce is using new standards like XML (eXtended Markup Language). James Gray won 1999 Turing award for his contributions to database transaction management

CSC411_L1_OverviewDr. Nan Wang 11 Extending Database Capabilities New functionality is being added to DBMSs in the following areas: –Scientific Applications –Image Storage and Management –Audio and Video data management –Data Mining –Spatial data management –Time Series and Historical Data Management The above gives rise to new research and development in incorporating new data types, complex data structures, new operations and storage and indexing schemes in database systems.

CSC411_L1_OverviewDr. Nan Wang 12 File Systems (vs. DBMS) Application must stage large datasets between main memory and secondary storage –Use a storage device if the main memory is not large enough –Even if the memory is large enough, we cannot refer directly to more than about 4GB of data on a system with 32-bit addressing Need special code for different queries –Complex for large datasets Must protect data from inconsistency due to multiple concurrent users How to support crash recovery How to handle security and access control

CSC411_L1_OverviewDr. Nan Wang 13 Role and Advantages of the DBMS DBMS is the intermediary between the user and the database –Database structure stored as file collection –Can only access files through the DBMS DBMS enables data to be shared DBMS integrates many users’ views of the data 13 Database Systems, 10th Edition

CSC411_L1_OverviewDr. Nan Wang 14 Database Systems, 10th Edition

CSC411_L1_OverviewDr. Nan Wang 15 Role and Advantages of the DBMS (cont’d.) Advantages of a DBMS: –Improved data sharing –Improved data security –Better data integration –Minimized data inconsistency –Improved data access –Improved decision making –Increased end-user productivity 15 Database Systems, 10th Edition

CSC411_L1_OverviewDr. Nan Wang 16 Why Use a DBMS? Data independence –DBMS provides an abstract view of data and hides details Efficient access –Use sophisticated techniques, e.g., indexing and data structure Data integrity and security Uniform data administration (group of users, DBA etc.) Concurrent access, recovery from crashes Reduced application development time

CSC411_L1_OverviewDr. Nan Wang 17 Types of Databases Databases can be classified according to: –Number of users –Database location(s) –Expected type and extent of use Single-user database supports only one user at a time –Desktop database: single-user; runs on PC Multiuser database supports multiple users at the same time –Workgroup and enterprise databases 17 Database Systems, 10th Edition

CSC411_L1_OverviewDr. Nan Wang 18 Types of Databases (cont’d.) Centralized database: data located at a single site Distributed database: data distributed across several different sites Operational database: supports a company’s day- to-day operations –Transactional or production database Data warehouse: stores data used for tactical or strategic decisions 18 Database Systems, 10th Edition

CSC411_L1_OverviewDr. Nan Wang 19 Types of Databases (cont'd.) Unstructured data exist in their original state Structured data result from formatting –Structure applied based on type of processing to be performed Semistructured data have been processed to some extent Extensible Markup Language (XML) represents data elements in textual format –XML database supports semistructured XML data 19 Database Systems, 10th Edition

CSC411_L1_OverviewDr. Nan Wang 20 Why Database Design Is Important Database design focuses on design of database structure used for end-user data –Designer must identify database’s expected use Well-designed database: –Facilitates data management –Generates accurate and valuable information Poorly designed database: –Causes difficult-to-trace errors 20 Database Systems, 10th Edition

CSC411_L1_OverviewDr. Nan Wang 21 How many records does the file contain? How many fields are there per record? What problem would you encounter if you wanted to produce a listing by city? How would you solve this problem by altering the file structure? If you wanted to produce a listing of the file contents by last name, area code, city, state, or zip code, how would you alter the file structure? What data redundancies do you detect? How could those redundancies lead to anomalies

CSC411_L1_OverviewDr. Nan Wang 22 Solution The more you decompose the data into their component parts, the greater the search flexibility. Data that are decomposed into their most basic components are said to be atomic. 22

CSC411_L1_OverviewDr. Nan Wang 23 Identify and discuss the serious data redundancy problems exhibited by the file structure Looking at the EMP_NAME and EMP_PHONE contents in Figure P1.5, what change(s) would you recommend? what new files should you create to help eliminate the data redundancies found in the file 23

CSC411_L1_OverviewDr. Nan Wang 24 Data Models A data model is a collection of concepts for describing –data –data relationships –data semantics –data constraints A data model hides many low-level details A schema is a description of a particular collection of data, using a given data model. The relational model of data is the most widely used model today. – Main concept: relation, basically a table with rows and columns. – Every relation has a schema, which describes the columns, or fields.

CSC411_L1_OverviewDr. Nan Wang 25 Relational Model The central data description construct in this model is a relation, which can be thought of as a set of records. schema for a relation specifies its name, the name of each field (or attribute or column), and the type of each field 25

CSC411_L1_OverviewDr. Nan Wang 26 Student relations 26

CSC411_L1_OverviewDr. Nan Wang 27 Levels of Abstraction Many views, –Views describe how users see the data. Single conceptual (logical) schema and physical schema. – Conceptual schema defines logical structure – Physical schema describes the files and indexes used. * Schemas are defined using DDL (data definition language); * data is modified/queried using DML (data manipulation language). Physical Schema Conceptual Schema View 1View 2View 3

CSC411_L1_OverviewDr. Nan Wang 28 Example: University Database Conceptual schema: – Students(sid: string, name: string, login: string, age: integer, gpa:real) – Courses(cid: string, cname:string, credits:integer) – Enrolled(sid:string, cid:string, grade:string) Physical schema: – Relations stored as unordered files. – Index on first column of Students. External Schema (View): – Course_info(cid:string, enrollment:integer)

CSC411_L1_OverviewDr. Nan Wang 29 Conceptual schema 29

CSC411_L1_OverviewDr. Nan Wang 30 Data Independence * Applications are insulated from how data is structured and stored. –Data independence is achieved through three levels of data abstraction –One of the most important benefits of using a DBMS! Physical data independence –Protection from changes in physical structure of data. As long as the conceptual schema remains the same, we can change the storage details without altering applications. Performance might be different but the results are the same Logical data independence –Protection from changes in logical structure of data. If the underlying data is reorganized, the conceptual schema is changed, and the definition of a view relation can be changed so that the same relation is computed as before (the same result).

CSC411_L1_OverviewDr. Nan Wang 31 Database Applications Database Applications: –Banking: all transactions –Airlines: reservations, schedules –Universities: registration, grades –Sales: customers, products, purchases –Manufacturing: production, inventory, orders, supply chain –Human resources: employee records, salaries, tax deductions Databases touch all aspects of our lives

CSC411_L1_OverviewDr. Nan Wang 32 Logical three-tier client/server architecture.

CSC 411/511: DBMS Design 33 Dr. Nan WangCSC411_L1_Overview 33 Questions?