IT 244 Database Management System

Slides:



Advertisements
Similar presentations
Chapter 10: Designing Databases
Advertisements

CSC 370 – Database Systems Introduction
Database Concepts Lec. 5. What Is a Database? Data are unprocessed raw facts that include text, number, images, audio, and video. Information is processed.
Distributed Databases Logical next step in geographically dispersed organisations goal is to provide location transparency starting point = a set of decentralised.
Ch1: File Systems and Databases Hachim Haddouti
Data Management I DBMS Relational Systems. Overview u Introduction u DBMS –components –types u Relational Model –characteristics –implementation u Physical.
©Silberschatz, Korth and Sudarshan1.1Database System Concepts Chapter 1: Introduction Purpose of Database Systems View of Data Data Models Data Definition.
Chapter 14 The Second Component: The Database.
Mgt 20600: IT Management & Applications Databases Tuesday April 4, 2006.
Copyright © 2007 Ramez Elmasri and Shamkant B. Navathe Slide 1- 1.
Dr. Kalpakis CMSC 461, Database Management Systems Introduction.
Chapter 1 Introduction to Databases
Database Management Systems (DBMS)
Chapter 1 Database and Database Users Dr. Bernard Chen Ph.D. University of Central Arkansas.
Software Development Unit 2 Databases What is a database? A collection of data organised in a manner that allows access, retrieval and use of that data.
Chapter 1 Database and Database Users Dr. Bernard Chen Ph.D. University of Central Arkansas Fall 2008.
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.
Relational Database M S
1 DATABASE TECHNOLOGIES BUS Abdou Illia, Fall 2007 (Week 3, Tuesday 9/4/2007)
Introduction to Databases
1 DATABASE TECHNOLOGIES BUS Abdou Illia, Fall 2012 (September 5, 2012)
CS370 Spring 2007 CS 370 Database Systems Lecture 2 Overview of Database Systems.
Copyright © 2003 by Prentice Hall Module 4 Database Management Systems 1.What is a database? Data hierarchy and data organization Field, record, file,
 Introduction Introduction  Purpose of Database SystemsPurpose of Database Systems  Levels of Abstraction Levels of Abstraction  Instances and Schemas.
Copyright © 2003 by Prentice Hall Computers: Tools for an Information Age Chapter 13 Database Management Systems: Getting Data Together.
The Worlds of Database Systems Chapter 1. Database Management Systems (DBMS) DBMS: Powerful tool for creating and managing large amounts of data efficiently.
Database and Database Users. Outline Database Introduction An Example Characteristics of the Database Actors on the Scene Advantages of using the DBMS.
Web-Enabled Decision Support Systems
1 CS 430 Database Theory Winter 2005 Lecture 1: Introduction.
Introduction: Databases and Database Users
Components of Database Management System
CS 474 Database Design and Application Terminology Jan 11, 2000.
Chapter 7: Database Systems Succeeding with Technology: Second Edition.
1 Welcome: To the second learning sequence “ Data Base (DB) and Data Base Management System (DBMS) “ Recap : In the previous learning sequence, we discussed.
Architecture for a Database System
Database Management. ICT5 Database Administration (DBA) The DBA’s tasks will include the following: 1. The design of the database. After the initial design,
Dr. T. Y. Lin | SJSU | CS 157A | Fall 2011 Chapter 1 THE WORLDS OF DATABASE SYSTEMS 1.
I Information Systems Technology Ross Malaga 4 "Part I Understanding Information Systems Technology" Copyright © 2005 Prentice Hall, Inc. 4-1 DATABASE.
Discovering Computers Fundamentals Fifth Edition Chapter 9 Database Management.
The Worlds of Database Systems From: Ch. 1 of A First Course in Database Systems, by J. D. Pullman and H. Widom.
- Ahmad Al-Ghoul Data design. 2 learning Objectives Explain data design concepts and data structures Explain data design concepts and data structures.
5 - 1 Copyright © 2006, The McGraw-Hill Companies, Inc. All rights reserved.
Advantage of File-oriented system: it provides useful historical information about how data are managed earlier. File-oriented systems create many problems.
Copyright © by Curt Hill Database Introduction History Why we want to use them Other fun.
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.
INFO1408 Database Design Concepts Week 15: Introduction to Database Management Systems.
Introduction to database system What is a Database system? What is a Database system? Data System Components Data System ComponentsDataHardwareSoftwareUser.
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.
CIS/SUSL1 Fundamentals of DBMS S.V. Priyan Head/Department of Computing & Information Systems.
Introduction.  Administration  Simple DBMS  CMPT 454 Topics John Edgar2.
Mr.Prasad Sawant, MIT Pune India Introduction to DBMS.
CSC 370 – Database Systems Introduction Instructor: Alex Thomo.
CIS 250 Advanced Computer Applications Database Management Systems.
Data The fact and figures that can be recorded in system and that have some special meaning assigned to it. Eg- Data of a customer like name, telephone.
Lecture On Introduction (DBMS) By- Jesmin Akhter Assistant Professor, IIT, Jahangirnagar University.
CSCI-235 Micro-Computers in Science Databases. Database Concepts Data is any unorganized text, graphics, sounds, or videos A database is a collection.
1 Section 1 - Introduction to SQL u SQL is an abbreviation for Structured Query Language. u It is generally pronounced “Sequel” u SQL is a unified language.
Chapter 1 Database and Database Users
CPSC 603 Database Systems Lecturer: Laurie Webster II, Ph.D., P.E.
Introduction to DBMS Purpose of Database Systems View of Data
CS4222 Principles of Database System
Outline Types of Databases and Database Applications Basic Definitions
THE WORLDS OF DATABASE SYSTEMS
9/22/2018.
Dr. Awad Khalil Computer Science Department AUC
Introduction to DBMS Purpose of Database Systems View of Data
DATABASE TECHNOLOGIES
Dr. Awad Khalil Computer Science Department AUC
Database management systems
Presentation transcript:

IT 244 Database Management System Lecture 1 – 14 / 02 /07 Course Information & Introduction to Database & DBMS

Topic 1 – Introduction Evolution of Database Systems: Data >> Database vs Database Management Compare ways DATA is organized: Word processor (document production) Spreadsheets (numerical analysis) Traditional File Management (mini computers storage & retrieval) Database (data management) Advantages and Disadvantages

Ways data is organized in…

Spreadsheet Format – Store data in rows and columns : Several things to note about the above table: Data to be stored has uniform format. Same kind of information about each patient File size will increase as the number of patient records increases Frequently accessing the table for new or existing patients Table will be useful for all like the doctor or administrators Other people may need print out of the information .

Potential problems that can arise: Patients increase – file size too so access to the table will become slower and slow when access concurrently; Takes time to manipulate the table ie. Get specific information, correct an error, repetition of data will have to be dealt with.

Traditional File Systems Information system specialist became aware of the problems So they devised ways of managing them. Rather then keeping data in a single large file, Data was separated into many different files according to the nature of the information to be stored. Then special software programs were written to manage the files. These programs could perform tasks such as: add new records update old ones; search for selected data within files and deleted unwanted records.

Traditional File System Thus: The data about the Hospital patients in the spreadsheet can be separated into the following files under the traditional file system.   File Information Stored Patients - Surname, First name, age, date admitted, date discharged Doctor - Surname, First name, Phone contact Ward - Ward number, number of rooms Room - Room number, beds, ward number

Traditional method of file management

Traditional method of file management Although this is an improvement over the spreadsheet method of storing and accessing data, there are still some problems. For instance, information about the wards is closely related to the information about rooms but they are in different files. How do you link them ? Often extra programming effort. Not every organization can afford to have a programmer Getting access to the required information often takes a number of steps. To speed up the retrieval of information you can create indexes for the file and/or split it up to avoid repetition of information and reduce the total size of the file.

Disadvantages of TFM Since data is stored in many related files you can end up with:   Data redundancy – keeping many copies of the same type of data Data inconsistency – updating some of the copies but not the others Data Dependency – data access is tied to the program so change in data will also change in programs Excessive maintenance and upgrade costs – Modifying the programs and structure of the data files require a lot of effort.

The Evolution of Database System What is a database:- is nothing more than a collection of information that exists over a long period of time. The term database refers to a collection of data that is managed by a DBMS

DATABASE A collection of data that is managed and organized by a DBMS. Not all collection of data are databases. Databases have the following characteristics:  They represent some aspects of the real world Hospital patients They are logically coherent and have some meaning Related in some way Information has some meaning. They are created for specific purposes. Information for a specific purposes.

Database Approach User 1 Database Management System Patients User 3 Doctors User 6 Ward User 9 Room User 12 Data are all in one database but kept in a separate logical units or tables. The DBMS provides users with one interface to access the database and present the database information to each users according to preferences.

Advantages of Database approach Data independence – data items no longer tied to the programs Reduction of data redundancy and inconsistency – Only one copy of each data item is stored Consolidation of data management – Just one software program DBMS to manage access to the database Can be used in multi-user environment – More people can used at once Security restrictions can be applied. – Security features can be build into the DBMS to restrict and protect the data. The integrity of the data can be maintained – accuracy and reliability of the data Standard can be enforced – adhere to organizational policies

What is a Database Management System (DBMS) A Database Management System (DBMS) is a software system designed to store, manage, and facilitate access to databases. In other words: A collection of programs that enables you to store, modify, and extract information from a database. (Webopedia Computer Dictionary)

DBMS DBMS is a powerful tool for creating and managing large amounts of data efficiently and allowing it to keep over long periods of time safely These systems are among the most complex types of software available.

Capabilities that a DBMS provides Persistent Storage – like a file system – support very large amounts of data that exists independently of any processes that are using the data. - DBMS goes far beyond the file system in providing flexibility, such as data structures that support efficient access to very large amounts of data

Capabilities that a DBMS provides Programming Interface :- DBMS allows the user or an application program to access and modify data through a powerful query language - Again the advantage of a DBMS over a file system is the flexibility to manipulate stored data in much more complex ways than the reading and writing of files.

Capabilities that a DBMS provides Transaction Management :- DBMS support concurrent access to data –i.e. simultaneous access by many distinct processes (called transactions) at once

DBMS was expected to:- Allow user to create new database and specify schema Give users the ability to query the data Support the storage of very large amount of data Control access to data from many users at once

Early Database Management System First commercial database management systems appeared in the late 1960’s These systems evolved from file system (File systems store data over a long period of time and they allow the storage of large amounts of data)

Application of DBMS Airline Reservation Systems In this type of System, the item of data include:- - Reservations by customers Information about flights – (airports they fly from and to, departure and arrival time, aircraft flown etc) Information about tickets (such as prices, requirements and availability)

Application of DBMS Banking Systems - Include names and addresses of customers, accounts, loans etc. - as with airlines reservation system, we expect many tellers and staff or customers querying and modifying the bank’s data at once

Summary Course administrative matters How the concept of Database approach developed Files structure Users Database DBMS

End of Lecture

Problems EDBMS File systems do not generally guarantee that data can not be lost if it is not backed up They do not support efficient access to data items whose location in a particular file is not known File systems do not directly support a query language for the data files

Problems EDBMS Their support for a schema for the data is limited to the creation of directory structures for files File system do not satisfy concurrent access to files by several users or processes

Simultaneous access Avoiding consequences of simultaneous access DBMS support i) isolation: - the appearance that transactions execute one at a time ii) atomicity:- the requirement that transactions either completely or not at all iii) durability:- the ability to recover from failure or errors of many types

Application of DBMS The first important applications of DBMS were one where:- - Data was composed of many small items - Many queries or modifications were made

Application of DBMS IT IS VITAL THAT SIMULTANEOUS ACCESSES TO AN ACCOUNT NOT CAUSE THE EFFECT OF A TRANSACTION TO BE LOST. FAILURE CANNOT BE TOLERATED.

Relational Database Systems Following a famous paper written by Ted Codd in 1970’s Database system changed significantly Codd proposed that database systems should present the user with a view of data organized as tables called relations

Relational Database Systems Behind the scenes, there might be a complex data structure that allow rapid response to a variety of queries. But unlike the user of earlier database systems, the user of a relational system would not be concern with the storage structure. Queries could be expressed in a very high-level language, which greatly increased the efficiency of database programmers

Relational Database Systems Relations and Tables - Columns are headed by attributes which describe the entries in the column Eg. A relation named Accounts recording Bank Account, Balance and Type might look like: Acc No Balance Type 123 100.00 Sav 456 2000.00 Check …

Relational Database Systems Heading the columns are the attributes - Account No - Balance -Type

Relational Database Systems Below the attributes are the Rows or Tuples The table show two tuples of the relation explicitly, and the dots below them suggest that there would be many more tuples.

Relational Database Systems Suppose we want to know the balance of account 456. We could ask this query in SQL as follows SELECT account No FROM Accounts WHERE accountNo = 456

Relational Database Systems Do NOT expect that this example is enough to make you an expert SQL programmer, but it should convey the high-level nature of the SQL “Select-From-Where” statement

Relational Database Systems In principle, they ask the DBMS to: 1. Examine all the tuples of the Relation Accounts mentioned in the FROM clause 2. Pick out those tuples that satisfy some criterion indicated in the WHERE clause and 3. Produce as an answer certain attributes of those tuples as indicated in the SELECT clause In practice, the system must “optimize” the query and find an efficient way to answer the query, even though the relations involved in the query may be very large.

Smaller and Smaller Systems Originally, DBMS were large, expensive software running on large computers Size was necessary because to store large amount of data require large computer system To day many gigabytes fit on a single disk Size Decrease, Capacity and power increases.

Bigger and Bigger Systems On the other hand, a gigabyte isn’t much data. Corporate database often occupy hundreds of gigabyte As storage become cheaper people find new reasons to store greater amount of data Database no longer focus on storing simple data item (integer or short string of characters) – but can store images, audio and video and many other kind of data.

Bigger and Bigger Systems Handling such large database require technological advances eg. Database of modest size are today stored on arrays of disks which are called secondary storage device. (compared to main memory which is primary storage) The fact that database systems routinely assume data is too big to fit in main memory and must be located primarily on disk at all times

Bigger and Bigger Systems Trends that allow database systems to deal with large amounts of data faster: - Tertiary Storage:- - tertiary storage devices perhaps storing a tera-byte each. - require much more time to access a given item than does a disk - involve transporting an object, upon which the desired data item is stored to a reading device

Bigger and Bigger Systems - Parallel Computing - the ability to store enormous volumes of data is important but it would be of little use if we could not access large amounts of data quickly - thus very large databases also require speed enhancers. - parallel Computing handle such problem

Client Server and Multi-Tier Architectures Client – server architecture (Two-Tier) – a request by one process (the client) are send to another process (the server) for execution N-Tier –DBMS continues to act as a server, but its client is typically an application server.

Client Server and Multi-Tier Architectures Application server in a N-Tier manage connections to the database, transactions, authorization and other aspects. Application Servers in turn have clients such as Web servers, which support end-users or other application.

Summary The worlds of Database Systems The evolution of Database Systems Early Database Management Systems Relational Database System Smaller and Smaller Systems Bigger and Bigger Systems Client Server and Multi-Tier Architecture