LiaoNing ShiHua University

Slides:



Advertisements
Similar presentations
Data Modeling and Database Design Chapter 1: Database Systems: Architecture and Components.
Advertisements

Database Systems: Design, Implementation, and Management Tenth Edition
Lecture-7/ T. Nouf Almujally
Database Management Systems 1 Ramakrishnan & Gehrke Introduction to Database Systems Chapter 1 Instructor: Mirsad Hadzikadic.
Management Information Systems, Sixth Edition
Introduction to Database Management  Department of Computer Science Northern Illinois University January 2001.
ICS (072)Database Systems: A Review1 Database Systems: A Review Dr. Muhammad Shafique.
--What is a Database--1 What is a database What is a Database.
Chapter 2 Database Environment.
1 Database Systems (Part I) Introduction to Databases I Overview  Objectives of this lecture.  History and Evolution of Databases.  Basic Terms in Database.
Introduction to Databases
Copyright © 2007 Ramez Elmasri and Shamkant B. Navathe Slide 2- 1.
1 Lecture 31 Introduction to Databases I Overview  Objectives of this lecture  History and Evolution of Databases  Basic Terms in Database and definitions.
ICS (072)Database Systems Background Review 1 Database Systems Background Review Dr. Muhammad Shafique.
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:
Dr. Kalpakis CMSC 461, Database Management Systems Introduction.
Chapter 1 Introduction to Databases
1 Chapter 2 Database Environment. 2 Chapter 2 - Objectives u Purpose of three-level database architecture. u Contents of external, conceptual, and internal.
Database Management COP4540, SCS, FIU An Introduction to database system.
Chapter One Overview of Database Objectives: -Introduction -DBMS architecture -Definitions -Data models -DB lifecycle.
Database Design and Introduction to SQL
IST Databases and DBMSs Todd S. Bacastow January 2005.
What is a Database Management System? 1. Manages very large amounts of data. 2. Supports efficient access to very large amounts of data. 3. Supports concurrent.
Database Environment 1.  Purpose of three-level database architecture.  Contents of external, conceptual, and internal levels.  Purpose of external/conceptual.
Database System Concepts and Architecture Lecture # 3 22 June 2012 National University of Computer and Emerging Sciences.
Information storage: Introduction of database 10/7/2004 Xiangming Mu.
CSC2012 Database Technology & CSC2513 Database Systems.
Module Title? DBMS Introduction to Database Management System.
Chapter 1 Databases Introduction The content 1).Database Application 2).Database concept 3).An example of database 4).Function of DBMS 5).DBMS product.
Chapter 2 CIS Sungchul Hong
Web-Enabled Decision Support Systems
CST203-2 Database Management Systems Lecture 2. One Tier Architecture Eg: In this scenario, a workgroup database is stored in a shared location on a single.
1 INTRODUCTION TO DATABASE MANAGEMENT SYSTEM L E C T U R E
Database System Concepts and Architecture
8/27/2012ISC 329 Isabelle Bichindaritz1 File Systems Introduction to Databases.
Introduction to Database Systems Fundamental Concepts Irvanizam Zamanhuri, M.Sc Computer Science Study Program Syiah Kuala University Website:
Lecture2: Database Environment Prepared by L. Nouf Almujally 1 Ref. Chapter2 Lecture2.
Lecture # 3 & 4 Chapter # 2 Database System Concepts and Architecture Muhammad Emran Database Systems 1.
Chapter 1 Introduction to Databases. 1-2 Chapter Outline   Common uses of database systems   Meaning of basic terms   Database Applications  
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.
8/31/2012ISC329 Isabelle Bichindaritz1 Database Environment.
1 Database Management Systems (DBMS). 2 Database Management Systems (DBMS) n Overview of: ä Database Management Components ä Database Systems Architecture.
Database Environment Session 2 Course Name: Database System Year : 2013.
1 Chapter 1 Introduction to Databases Transparencies.
Database Systems Lecture 1. In this Lecture Course Information Databases and Database Systems Some History The Relational Model.
Introduction to Databases
Copyright (c) 2014 Pearson Education, Inc. Introduction to DBMS.
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.
ASET 1 Amity School of Engineering & Technology B. Tech. (CSE/IT), III Semester Database Management Systems Jitendra Rajpurohit.
《数据库系统原理》 Principles of Database Systems. Textbook A First Course in Database Systems (Third Edition) J. D. Ullman, J. Widom 机械工业出版社, Lu Chaojun,
《数据库系统原理》 Principles of Database Systems. Textbook A First Course in Database Systems (Third Edition) J. D. Ullman, J. Widom 机械工业出版社, Lu Chaojun,
Chapter 1: Introduction. 1.2 Database Management System (DBMS) DBMS contains information about a particular enterprise Collection of interrelated data.
Database Management Systems By Dinesha L Lecturer, Dept. Of CSE SSIT, Tumkur Chapter-1.
Data Resource Management Data Concepts Database Management Types of Databases Chapter 5 McGraw-Hill/Irwin Copyright © 2007 by The McGraw-Hill Companies,
Management Information Systems by Prof. Park Kyung-Hye Chapter 7 (8th Week) Databases and Data Warehouses 07.
Fundamental of Database Systems
Databases and DBMSs Todd S. Bacastow January
Chapter 2 Database Environment.
An Introduction to database system
Database Management:.
Tools for Memory: Database Management Systems
Chapter 2 Database Environment.
Chapter 2 Database Environment Pearson Education © 2009.
Chapter 2 Database Environment.
Data Model.
Chapter 2 Database Environment Pearson Education © 2009.
Chapter 2 Database Environment Pearson Education © 2009.
Presentation transcript:

LiaoNing ShiHua University Database Principles LiaoNing ShiHua University

Textbooks Required: Recommended: You may also want: A First Course in Database Systems,2nd, by Jeffrey D.Ullman Jennifer Widom. Recommended: 王珊,萨师煊. 数据库系统概论(第四版). 高等教育出版社, 2006 年 Books on SQL Server 2000 or 2005 You may also want: Books on design and programming : Powerbuilder, PowerDesigner, UML, VB, Delphi, VC, JAVA, C#, ASP, PHP, JSP etc.

Why Using English Textbook ? More computer English words More advanced and newest information Better information retrieval capability More international communication chance

What to learn in this unit ? Basic theories (basic) System and database design (designer) Application Programming (programmer) Database management and maintenance (database manager)

Syllabus Background and history of database management systems Fundamentals of using a database management systems: SQL Server2000. Database modeling Relational model: theoretical background and operations Database Language SQL Fundamentals of database management systems: transactions and security etc. Database system design and practice

Chapter 1 The Worlds of Database Systems Evolution of Database Systems Architecture of DBMS and DBS Future of Database Systems

1.1 Evolution of Database Systems 1.1.1 Some Basic notions Data Database (DB) Database Management System (DBMS) Database System (DBS). Database Administrator (DBA)

Basic Notions Data Database (DB) Distinct pieces of information represented in a form suitable for processing by computer. Data can exist in a variety of forms -- as digital numbers, text, image, sound, video and etc. Database (DB) In essence, it’s nothing more than a collection of information that exists over a long period of time. In common parlance, it refers to a collection of data managed by a database management system (DBMS) or just database system (DBS).

Example of Data and Database

Another example: University Database Students Sid Sname Ssex Sage sdept 0121001 Tom M 21 Cs 0121002 Mary F 20 0121025 Jack 18 0110033 Smith 19 Ma 0211010 Alane 22 Is Courses Enrolled cid Cname credit 1 Programming 4 2 English 6 3 Physics Dbms sid cid grade 0121002 4 92 3 88 0110033 1 70 0211010 85 2 95

DBMS Database Management System (DBMS) A collection of programs that enables you to store, modify, and extract information from a database. There are many different types of DBMSs, ranging from small systems that run on personal computers to huge systems that run on mainframes.

Basic functions of DBMS Data definition Allow creating new databases and specify their schema (logical structure of the data), via data definition language (DDL). Data manipulation Allow efficient access to the data, such as querying and modifying the data, via query language or data manipulation language (DML). Operation management of DB Support the storage of very large amounts of data over a long period of time, assuring data integrity, keeping data secure from accident or unauthorized use. Support concurrent, atomic access to data. Creation and maintenance of DB Such as inputting and transferring of Data, DB backup and recovery, performance monitoring, audit and analysis etc.

Database System (DBS) Database System (DBS). User Application Systems DB, DBMS, Development Tools, DB applications, DB Administrator (DBA) and users DB OS DBMS Developing Tools DB applications User DBA Hardware Operating System DBMS, Compiling System Developing Tools Application Systems DBMS in Computer System

Database Administrator DBA Person who is responsible for management and maintenance of DB. Tasks Database contents and structures Storage structure and access methods Database security and integration Monitor and improve database performance

1.1.2 History of Data management File systems Problems: limited support to definition of data schema, no directly support to DML (Data Manipulate Language), no support to efficient concurrent, secure access etc. Early DBMS The first commercial DBMS appeared in the late 1960’s, evolved from file systems. The early DBMS’s used several data models for describing structure of DB: hierarchical model and network model. Problems: no support to high-level query languages.

History of Data management (cont.) Relational DBMS A famous paper by Ted Codd in 1970, “A relational model for large shared data banks” in Comm. ACM. Data organized as tables called relations. Unlike the user of early DBS, user of a relational system won’t be concerned with the storage structure, and queries are expressed in a very high-level language (SQL). Today used in most DBMS's.

Relational Model Attributes (column headers) Tuples (rows) Based on tables, such as: Attributes (column headers) acct # name balance 12345 Sally 1000.21 34567 Sue 285.48 … Tuples (rows)

Query Languages Employee Name Dept Department Manager SELECT Manager FROM Employee, Department WHERE Employee.name = "Clark Kent” AND Employee.Dept = Department.Dept ;

History of Data Model Hierarchical model 60’s 70's 80's 90’s now abstraction of data features in real world into computer world. Hierarchical model 60’s 70's 80's 90’s now Relational model Choice for most new applications Object Bases model Knowledge Bases model Network model

Relational model or not? Relational model is good for: Large amounts of data —> simple operations Navigate among small number of relations Difficult Applications for relational model: VLSI Design (CAD in general) CASE: Computer-Aided Software Engineering Graphical Data Where number of "relations" is large, relationships are complex Object Data Model Logic Data Model

Other Data Models Object data model Logic data model Usually find objects via explicit navigation, also query language in some systems Complex Objects – Nested Structure (pointers or references) Encapsulation, set of Methods/Access functions Object Identity Inheritance – Defining new classes like old classes Logic data model Prolog, Datalog More power than relational

The DBMS Marketplace Relational DBMS companies – Oracle, Sybase – are among the largest software companies in the world. IBM offers its relational DB2 system. With IMS, a nonrelational system, IBM is by some accounts the largest DBMS vendor in the world. Microsoft offers SQL-Server, plus Microsoft Access for the cheap DBMS on the desktop, answered by “lite” systems from other competitors. Relational companies also challenged by “object-oriented DB” companies. But countered with “object-relational” systems, which retain the relational core while allowing type extension as in OO systems.

1.2 Architecture of DBMS Major components of a DBMS Schema Queries Data Metadata Storage Manager Query Processor Transaction Manager Schema Modifications Queries Schema (logical structure of the data); Metadata(data of data)

Architecture of DBS Three Schema Architecture of DBS External Schema: user schema or subschema Defines one view of the data as seen by a specific set of application or end users. There may be many external schemas in a DB. Schema: conceptual schema, logical schema Defines data from perspective systems designer; Independent of end users & data storage mechanism There is only one conceptual schema in a DB. Internal Schema: storage schema Defines how data is organized, stored and manipulated inside the system. Totally dependent on particular implementation. There is only one internal schema in a DB.

Three Schema Architecture (cont.) Application A External Schema 1 Schema Internal DB B D E C External Schema 2 External Schema 3

Independence of Data and Program Logical Independence Via Reflection of External Schema/Schema One Schema corresponds to many External schemas; every Ex-Schema has an Ex-Schema/Schema Reflection. When Schema changes, DBA changes the Ex-Schema/Schema reflections, so application programs needn’t been changed. Physical Independence Via Reflection of Schema/Internal Schema Schema/Internal Schema Reflection is unique. When Internal Schema changes, DBA changes the Schema/ Internal Schema Reflection, so application programs needn’t been changed.

Three Aspects to Studying DBMS's Modeling and design of databases Allows exploration of issues before committing to an implementation. Application programming SQL: queries and DB operations like update. Host language and Embedded SQL DBMS implementation Storage, query processing, transaction, …