Introduction to Database Systems CIS 4301 Lecture Notes 1/10/2006.

Slides:



Advertisements
Similar presentations
Database System Concepts and Architecture
Advertisements

Data Modeling and Database Design Chapter 1: Database Systems: Architecture and Components.
IiWAS2002, Bandung, Indonesia Teaching and Learning Databases Dr. Stéphane Bressan National University of Singapore.
Introduction to Database Management  Department of Computer Science Northern Illinois University January 2001.
©Silberschatz, Korth and Sudarshan1.1Database System Concepts Chapter 1: Introduction Purpose of Database Systems View of Data Data Models Data Definition.
--What is a Database--1 What is a database What is a Database.
©Silberschatz, Korth and Sudarshan1.1Database System Concepts Chapter 1: Introduction Purpose of Database Systems View of Data Data Models Data Definition.
Introduction to Databases Transparencies
ICS (072)Database Systems Background Review 1 Database Systems Background Review Dr. Muhammad Shafique.
Copyright © 2007 Ramez Elmasri and Shamkant B. Navathe Slide 1- 1.
Dr. Kalpakis CMSC 461, Database Management Systems Introduction.
Introduction and Conceptual Modeling
Database Management Systems (DBMS)
Chapter 1 Database and Database Users Dr. Bernard Chen Ph.D. University of Central Arkansas.
Introduction to Databases and Database Languages
Copyright © 2007 Ramez Elmasri and Shamkant B. Navathe Slide 1- 1 Outline Types of Databases and Database Applications Basic Definitions Typical DBMS Functionality.
Introduction to DBMS Purpose of Database Systems View of Data
Copyright © 2007 Ramez Elmasri and Shamkant B. Navathe Slide 1- 1 Chapter 1 - Introduction: Databases and Database Users - Outline Types of Databases and.
Introduction. 
The Worlds of Database Systems Chapter 1. Database Management Systems (DBMS) DBMS: Powerful tool for creating and managing large amounts of data efficiently.
Module Title? DBMS Introduction to Database Management System.
Introduction to Database Systems Motivation Irvanizam Zamanhuri, M.Sc Computer Science Study Program Syiah Kuala University Website:
Database and Database Users. Outline Database Introduction An Example Characteristics of the Database Actors on the Scene Advantages of using the DBMS.
1 CS 430 Database Theory Winter 2005 Lecture 1: Introduction.
1 INTRODUCTION TO DATABASE MANAGEMENT SYSTEM L E C T U R E
 DATABASE DATABASE  DATABASE ENVIRONMENT DATABASE ENVIRONMENT  WHY STUDY DATABASE WHY STUDY DATABASE  DBMS & ITS FUNCTIONS DBMS & ITS FUNCTIONS 
Database System Concepts and Architecture
Introduction: Databases and Database Users
Copyright © 2007 Ramez Elmasri and Shamkant B. Navathe Chapter 1 Introduction: Databases and Database Users.
1Mr.Mohammed Abu Roqyah. Introduction and Conceptual Modeling 2Mr.Mohammed Abu Roqyah.
Copyright © 2007 Ramez Elmasri and Shamkant B. Navathe Slide 1- 1.
Dr. T. Y. Lin | SJSU | CS 157A | Fall 2011 Chapter 1 THE WORLDS OF DATABASE SYSTEMS 1.
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.
Chapter 1 Introduction Yonsei University 1 st Semester, 2015 Sanghyun Park.
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  
Introduction to Database Systems1. 2 Basic Definitions Mini-world Some part of the real world about which data is stored in a database. Data Known facts.
Introduction to Database AIT632 Chapter 1 Sungchul Hong.
1-1 Chapter 1 Databases and Database Users 1.1 Introduction 1.2 An Example 1.3 Characteristics of the Database Approach 1.4 Actors on the Scene 1.5 Workers.
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
Characteristics of the Database Approach (Difference between traditional file processing and database approach) Redundancy Self-Describing nature of a.
Chapter 1 Introduction Yonsei University 1 st Semester, 2014 Sanghyun Park.
Database Systems Lecture 1. In this Lecture Course Information Databases and Database Systems Some History The Relational Model.
DBMS_Week 3-4 DBMS. Three-Schema Architecture – Internal schema (one view) describes physical storage structures access paths, indexes used Typically.
DataBase System Concepts and Architecture
ISC321 Database Systems I Chapter 1: Introduction to Databases Fall 2015 Dr. Abdullah Almutairi.
Copyright © 2007 Ramez Elmasri and Shamkant B. Navathe Chapter 1 Introduction: Databases and Database Users.
Chapter 1: Introduction. 1.2 Database Management System (DBMS) DBMS contains information about a particular enterprise Collection of interrelated data.
Copyright © 2004 Pearson Education, Inc. Chapter 1 Introduction and Conceptual Modeling.
Database System Concepts Introduction Purpose of Database Systems View of Data Data Models Data Definition Language Data Manipulation Language Transaction.
Database Management Systems By Dinesha L Lecturer, Dept. Of CSE SSIT, Tumkur Chapter-1.
Introduction: Databases and Database Systems Lecture # 1 June 19,2012 National University of Computer and Emerging Sciences.
10/3/2017.
CPSC-310 Database Systems
Introduction to DBMS Purpose of Database Systems View of Data
Databases and DBMSs Todd S. Bacastow January 2005.
Outline Types of Databases and Database Applications Basic Definitions
Unit 1: INTRODUCTION Database system, Characteristics Database Users
THE WORLDS OF DATABASE SYSTEMS
9/22/2018.
Data, Databases, and DBMSs
Chapter 1: Introduction
1.1 The Evolution of Database Systems
Introduction to DBMS Purpose of Database Systems View of Data
Chapter 1: Introduction
Chapter 1: Introduction
Database System Concepts and Architecture
Presentation transcript:

Introduction to Database Systems CIS 4301 Lecture Notes 1/10/2006

Lecture 1© CIS Spring What is a Database? Collection of related data items that are being stored for record-keeping & analysis Could be stored on cards in Rolodex, file cabinet, computer, … Computerized databases are managed by a Database Management System (DBMS) Persistent storage: Efficient, safe storage of large amounts of data Programming interface: High-level language for specifying operations user wishes to perform on data Transaction management: Concurrent access to data, provides recovery in light of failure

Lecture 1© CIS Spring Importance of DBMS Amount of electronically available data is exploding Cost of storage is continuously dropping Moore’s law: every 18 months, speed of processor|capacity of disk doubles or price goes down by half Value of data as an organizational asset is widely accepted High demand in industry for powerful, flexible data management systems to store data efficiently and get the most out of their large, complex data sets e.g., data warehousing, data mining Largest databases Federal Express, Wal-Mart, Kight-Ridder (Dialog), … Tables with 1 billion or more rows Approaching 10’s of TB of data Think of the consequences of storing this much data… ?

Lecture 1© CIS Spring Brief History of Data Management Early DBMSs (late 1960’s) evolved from file- based processing systems Need for supporting concurrent access to the data by many users, recovery, back-up, … Roots in airline reservation systems (SABRE), banking systems, corporate record-storage systems Visualize the data much as it was stored Tree-based (hierarchical model) Graph-based (network model) Cumbersome to use, require programming to access data DEPTS EMPSMGRITEMS NAMESS#

Lecture 1© CIS Spring Advent of Modern DBMS Early 1970’s Ted Codd invented new data model (=relational data model) and the concept of data abstraction Soon thereafter, team of IBM’ers invented SQL (Structured Query Language) Became de-facto standard for query languages based on the relational data model Commercial DBMS based on relational model are now widely accepted in industry e.g., Microsoft Access, Oracle 9i, Sybase Adaptive Server, … >10 billion dollar industry!

Lecture 1© CIS Spring Characteristics of Modern Database Systems Support for concurrent access to data Safeguard data against accidentally loss Maintain integrity of database in light of changes Support for distributed data Control access to data More recently Support for non-standard data Support for heterogeneous data Support for decision-support and analysis

Lecture 1© CIS Spring Additional Requirements Increase usage and new applications for databases have resulted in additional requirements (since early days) High availability High reliability High throughput Low response time Extensible

Lecture 1© CIS Spring Some Recent Trends DBMS are getting smaller and smaller DBMS that can store GB of data can run on PC Databases are getting bigger and bigger Multiple TBs (terabyte = bytes) not uncommon Databases also able to store images, video, audio Database stored on secondary storage devices Use of Tertiary Storage in OLTPs Larger capacity disks but much slower response time (10-20 msec vs. several sec.) Tape, CD, etc. usually involves robotic conveyance DBMS Supporting Parallel Computing Speed-up query processing through parallelism (e.g., read data from many disks) However, need special algorithms to partition data correctly

Lecture 1© CIS Spring Types of DBMS General-purpose DBMS Multimedia DBMS Geographic information systems (GIS) Data warehouse DBMS Real-time DBMS Active DBMS

Lecture 1© CIS Spring Actors System Analyst Database Designer Application Programmer Project Manager Database Administrator System Administrator End Users Naïve end users Sophisticated end users

Lecture 1© CIS Spring When NOT to Use a DBMS Initial investment too high Too much overhead Application is simple, well-defined, not expected to change Stringent real-time requirements (use specialized real-time DBMS) Multi-user access to data is not required Alternative: collection of files managed by access programs

Lecture 1© CIS Spring Some Terminology Database (DB) Collection of related data that exists over a long period of time Database Management System (DBMS) Collection of programs that allows users to create a new database and specify its structure gives users the ability to query and modify the data efficiently keeps the data secure from accidents or unauthorized use controls the access to the data for many users at once Database System (DBS) The database and DBMS software together make up what is known as the Database System

Lecture 1© CIS Spring DBMS Languages Data Definition Language (DDL) Used to define the conceptual and internal schemas Includes constraint definition language (CDL) for describing conditions that database instances must satisfy Includes storage definition language (SDL) to influence layout of physical schema (some DBMSs) Data Manipulation Language (DML) Used to describe operations on the instances of a database Procedural DML (how) vs. declarative DML (what) e.g., Relational Algebrae.g., SQL Note, SQL includes a DML and a DDL in one! Host Language General-purpose programming language which lets users embed DML commands (data sublanguage) into their code

Lecture 1© CIS Spring Architecture of a DBMS Query Processor Storage Manager Transaction Subsystem Schema Modifications Queries Database System DBMS Software Data Definition (Metadata)

Lecture 1© CIS Spring Component Overview Data storage (incl. metadata) e.g., names of relations, attributes, data types, etc. Often, DBMS maintains an index Helps us find data items quickly given part of their value; how? Storage manager Handles requests from levels above, retrieves data from store and returns it in format requested by queries Query processor Processes not only queries but also requests for modifications, etc. Figures out best way to retrieve data Transaction subsystem Handles concurrent transactions against database Three types of input at top

Lecture 1© CIS Spring Transactional Requirements Maintain database consistency Database restrictions stored as integrity constraints Burden of the user/programmer to assure that transaction preserves all such constraints Guarantee that transaction is executed as a whole or not at all (atomicity guarantee) e.g., either deposit whole amount or no money at all Guarantee that no information is lost (durability) For multiple transactions running concurrently, guarantee that transactions do not interfere with each other (isolation guarantee) The effect of multiple, concurrent transactions on database should be the same as that of a serial execution of the transactions; why? Atomicity, durability, and isolation are guaranteed by transaction subsystem More on transactions later in semester