1 Copyright © 2010 Jerry Post. All rights reserved. Introduction to DBMS IS240 – DBMS Lecture #2 – 2010-01-20 M. E. Kabay, PhD, CISSP-ISSMP Assoc. Prof.

Slides:



Advertisements
Similar presentations
Chapter 10: Designing Databases
Advertisements

Data Modeling and Database Design Chapter 1: Database Systems: Architecture and Components.
©Silberschatz, Korth and Sudarshan4.1Database System Concepts Lecture-1 Database system,CSE-313, P.B. Dr. M. A. Kashem Associate. Professor. CSE, DUET,
Database Processing: Fundamentals, Design and Implementation, 9/e by David M. KroenkeChapter 1/1 Copyright © 2004 Please……. No Food Or Drink in the class.
Prentice Hall, Database Systems Week 1 Introduction By Zekrullah Popal.
Chapter 1: The Database Environment
©Silberschatz, Korth and Sudarshan1.1Database System Concepts Chapter 1: Introduction Purpose of Database Systems View of Data Data Models Data Definition.
Chapter 3 Database Management
Jerry Post Copyright © Database Management Systems Chapter 1 Introduction.
Database Management: Getting Data Together Chapter 14.
1 IS380 Class Agenda 01/11/05 Sock H. Chung 1.Syllabus 2.Chapter 1 3.Introduction 4. Request.
1 Introduction The Database Environment. 2 Web Links Google General Database Search Database News Access Forums Google Database Books O’Reilly Books Oracle.
DATABASE APPLICATION DEVELOPMENT SAK 3408 Introduction (week 1)
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.
Database Management Systems Chapter 1. Introduction What is a database? What is a database management system (DBMS)? Remind me to tell you about this:
Jerry Post McGraw-Hill/Irwin Copyright © 2005 by The McGraw-Hill Companies, Inc. All rights reserved. Database Management Systems Chapter 1.
© 2007 by Prentice Hall 1 Chapter 1: The Database Environment Modern Database Management 8 th Edition Jeffrey A. Hoffer, Mary B. Prescott, Fred R. McFadden.
Jerry Post McGraw-Hill/Irwin Copyright © 2005 by The McGraw-Hill Companies, Inc. All rights reserved. Database Management Systems Chapter 1 Introduction.
“DOK 322 DBMS” Y.T. Database Design Hacettepe University Department of Information Management DOK 322: Database Management Systems.
Based on G. Post, Database Management Systems University of Manitoba Asper School of Business 3500 DBMS Bob Travica Updated 2015 Chapter 1 Introduction.
Jerry Post Copyright © 2013 DATABASE 1 Database Management Systems Chapter 1 Introduction.
Chapter 1: The Database Environment
Database Management COP4540, SCS, FIU An Introduction to database system.
Chapter 1 1 © Prentice Hall, 2002 Database Design Dr. Bijoy Bordoloi Introduction to Database Processing.
Chapter 1 1 © Prentice Hall, 2002 Database Design Dr. Bijoy Bordoloi Introduction to Database Processing.
Introduction to Database
1 Introduction to Databases Lecture One Relational and Object-Oriented Database Concepts Introduction to Database Design and Techniques.
CS462: Introduction to Database Systems. ©Silberschatz, Korth and Sudarshan1.2Database System Concepts Course Information Instructor  Kyoung-Don (KD)
ADVANCED DATABASES WITH ORACLE 11g FOR ADDB7311 LEARNING UNIT 1 of 7.
1 Introduction to databases concepts CCIS – IS department Level 4.
Introduction to Databases
Database Design - Lecture 1
School of Computer & Communication of LNPU 辽宁石油化工大学计算机与通信工程学院 刘旸 1 数据库管理系统 Database Management Systems Chapter 1 Introduction 第一章 简介.
Copyright © 2003 by Prentice Hall Module 4 Database Management Systems 1.What is a database? Data hierarchy and data organization Field, record, file,
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:
Objectives Overview Define the term, database, and explain how a database interacts with data and information Define the term, data integrity, and describe.
Web-Enabled Decision Support Systems
1 INTRODUCTION TO DATABASE MANAGEMENT SYSTEM L E C T U R E
Jerry Post Copyright © Database Management Systems Chapter 1 Introduction.
MIS 385/MBA 664 Systems Implementation with DBMS/ Database Management Dave Salisbury ( )
Chapter 1 In-lab Quiz Next week
Architecture for a Database System
© 2009 Pearson Education, Inc. Publishing as Prentice Hall 1 Chapter 1: The Database Environment Modern Database Management 9 th Edition Jeffrey A. Hoffer,
Lecturer: Gareth Jones. How does a relational database organise data? What are the principles of a database management system? What are the principal.
Objectives Overview Define the term, database, and explain how a database interacts with data and information Describe the qualities of valuable information.
MIS 327 Database Management system 1 MIS 327: DBMS Dr. Monther Tarawneh Dr. Monther Tarawneh Week 2: Basic Concepts.
Dimu' Rumpak © 2009 by Prentice Hall 1 Getting Started Didimus Rumpak, M.Si. Database Concepts Chapter 1 1.
Chapter 1 Chapter 1: The Database Environment Modern Database Management 8 th Edition Jeffrey A. Hoffer, Mary B. Prescott, Fred R. McFadden © 2007 by Prentice.
5 - 1 Copyright © 2006, The McGraw-Hill Companies, Inc. All rights reserved.
INFO1408 Database Design Concepts Week 15: Introduction to Database Management Systems.
1 Database Systems Instructor: Nasir Minhas Assistant Professor UIIT PMAS-AAUR
1 Introduction to MIS Databases Chapter 5 and 6 in your textbook Relational Database Concepts.
Introduction to Database SEM I, AY Department of Information Technology Salalah College of Technology Chapter No.1.
Databases Salihu Ibrahim Dasuki (PhD) CSC102 INTRODUCTION TO COMPUTER SCIENCE.
IIS 645 Database Management Systems DDr. Khorsheed Today’s Topics 1. Course Overview 22. Introduction to Database management 33. Components of Database.
©Silberschatz, Korth and Sudarshan 1.1 Database System Concepts قواعد البيانات Data Base قواعد البيانات CCS 402 Mr. Nedal hayajneh E- mail
CSCI-235 Micro-Computers in Science Databases. Database Concepts Data is any unorganized text, graphics, sounds, or videos A database is a collection.
Chapter 1 Introduction.
An Introduction to database system
Unit 1: INTRODUCTION Database system, Characteristics Database Users
Database Management:.
Database Management System
Database Management Systems
Introduction to Database Management System
Introduction to DBMS IS240 – DBMS Lecture #2 –
Chapter 1: The Database Environment
Database Design Hacettepe University
Terms: Data: Database: Database Management System: INTRODUCTION
Presentation transcript:

1 Copyright © 2010 Jerry Post. All rights reserved. Introduction to DBMS IS240 – DBMS Lecture #2 – M. E. Kabay, PhD, CISSP-ISSMP Assoc. Prof. Information Assurance School of Business & Management, Norwich University V:

2 Copyright © 2010 Jerry Post. All rights reserved. Topics  DBMS: Database Management System  DBMS Features/Components  Advantages of Database Approach  Hierarchical Database  Network Database  Relational Database  Object-Oriented DBMS  Examples of Commercial DBMS  REQUIRED HOMEWORK

3 Copyright © 2010 Jerry Post. All rights reserved. DBMS: Database Management System  Database  A collection of data  stored in a standardized format,  designed to be shared by multiple users and  accessed through a standardized software interface  capable of managing multiple files as a single integrated entity.  Database Management System  Software that defines a database,  stores the data,  supports a query language,  produces reports, and  creates data entry screens.

4 Copyright © 2010 Jerry Post. All rights reserved. Goal: Build a Business Application Tools: Database Design SQL (queries) Programming Design SQL Program Design SQL Program Best: Spend your time on design and SQL. Worst: Compensate for poor design and limited SQL with programming.

5 Copyright © 2010 Jerry Post. All rights reserved. Application Development Feasibility Identify scope, costs, and schedule Implementation Install, t ransfer/load data, train, review Development Create tables, forms, reports, programs and help; test Design Define tables, relationships, forms, reports, programs Analysis Gather information from users tasks time

6 Copyright © 2010 Jerry Post. All rights reserved. 1. Identify business rules. 2. Define tables and relationships. 3. Create input forms and reports. 4. Combine as applications for users. DBMS Application Design

7 Copyright © 2010 Jerry Post. All rights reserved. DBMS Features/Components  Database engine  Storage  Retrieval  Update  Query Processor  Data dictionary  Utilities  Security  Report writer  Forms generator (input screens)  Application generator  Communications  3GL Interface

8 Copyright © 2010 Jerry Post. All rights reserved. DBMS Engine, Security, Utilities Data Tables Database Engine Product ItemIDDescription 887Dog food 946Cat food Order OrderIDODate Customer CustomerID Name 1195Jones 2355Rojas Product ItemIDInteger, Unique DescriptionText, 100 char Customer CustomerIDInteger, Unique NameText, 50 char Security User Identification Access Rights Utilities Concurrency and Lock Manager Backup and Recovery Administration Data Dictionary

9 Copyright © 2010 Jerry Post. All rights reserved. Database Tables (Access)

10 Copyright © 2010 Jerry Post. All rights reserved. Database Tables (Oracle)

11 Copyright © 2010 Jerry Post. All rights reserved. DBMS Input Forms All Data Database Engine Data Dictionary Query Processor Form Builder Input Form Design

12 Copyright © 2010 Jerry Post. All rights reserved. FieldCategoryAnimalID TableAnimal TotalsGroup ByCount SortDescending AnimalID Name Category Breed DBMS Query Processor Animal All Data Database Engine Data Dictionary Query Processor CategoryCountOfAnimalID Dog100 Cat47 Bird15 Fish14 Reptile6 Mammal6 Spider3

13 Copyright © 2010 Jerry Post. All rights reserved. DBMS Report Writer All Data Database Engine Data Dictionary Query Processor Report Writer Report Format and Query

14 Copyright © 2010 Jerry Post. All rights reserved. Report Writer (Oracle)

15 Copyright © 2010 Jerry Post. All rights reserved. DBMS Components All Data Database Engine Data Dictionary Security Query Processor Form Builder Report Writer Communication Network 3GL Connector Program Application Generator

16 Copyright © 2010 Jerry Post. All rights reserved. Advantages of Database Approach  Minimal data redundancy.  Data consistency.  Integration of data.  Sharing of data.  Enforcement of standards.  Ease of application development.  Uniform security, privacy and integrity.  Data independence.

17 Copyright © 2010 Jerry Post. All rights reserved. Database Management Approach  Data are most important  Data defined first  Standard format  Access through DBMS  Queries, Reports, Forms  Application Programs  3GL Interface  Data independence  Change data definition without changing code  Alter code without changing data  Move/split data without changing code All Data DBMS Program1Program2 Queries Reports

18 Copyright © 2010 Jerry Post. All rights reserved. Modifying Data with DBMS  Add cell number to employee table  Open table definition  Add data element  If desired, modify reports Use report writer No programming  Existing reports, queries, code will all run as before with no changes. Field NameData TypeDescription EmployeeIDNumberAutonumber.. TaxpayerIDTextFederal ID LastNameText FirstNameText... PhoneText... CellPhoneTextCellular...

19 Copyright © 2010 Jerry Post. All rights reserved. Drawbacks of Old File Methods  Uncontrolled Duplication of Data  Wastes space  Hard to update all files  Inconsistent data  Inflexibility  Hard to change data  Hard to change programs  Limited data sharing  Poor enforcement of standards  Poor programmer productivity  Excessive program maintenance

20 Copyright © 2010 Jerry Post. All rights reserved. File Method Problems  Files defined in program  Cannot read file without definition  Hard to find definition  Every time you alter file, you must rewrite code  Change in a program/file will crash other code  Cannot tell which programs use each file  Multiuser problems  Concurrency  Security Access Backup & Restore  Efficiency Indexes Programmer talent  System  Application

21 Copyright © 2010 Jerry Post. All rights reserved. Old File Method/3GL Data Definition File 1 … File 2 … Data Definition File A File 2 File C … Pay History Benefits Employee Choices Files Programs Payroll Benefits

22 Copyright © 2010 Jerry Post. All rights reserved. Example of File Method v DBMS  Add to file (e.g., include Cell phone)  Write code to copy employee file and add empty cell phone slot.  Find all programs that use employee file. Modify file definitions. Modify reports (as needed) Recompile, fix new bugs.  Easier: Keep two employee files?  BUT…. File Division 01 Employees 02 ID 02 Name 02 Address 01 Department 02 ID COBOL 112 Davy Jones 999 Elm Street Peter Smith 101 Oak St... Employee File More programs File Division 01 Employees Cell Phone

23 Copyright © 2010 Jerry Post. All rights reserved. Hierarchical Database Customers Orders ItemDescriptionQuantity 998Dog Food12 764Cat Food11 Items Customer Order Items Ordered To retrieve data, you must start at the top (customer). When you retrieve a customer, you retrieve all nested data.

24 Copyright © 2010 Jerry Post. All rights reserved. Network Database Customer Order Items Ordered Items Entry point

25 Copyright © 2010 Jerry Post. All rights reserved. Relational Database Customer(CustomerID, Name, … Order(OrderID, CustomerID, OrderDate, … ItemsOrdered(OrderID, ItemID, Quantity, … Items(ItemID, Description, Price, …

26 Copyright © 2010 Jerry Post. All rights reserved. Object-Oriented DBMS Customer CustomerID Name … Add Customer Drop Customer Change Address Order OrderID CustomerID … NewOrder DeleteOrder … OrderItem OrderID ItemID … OrderItem DropOrderItem … Item ItemID Description … New Item Sell Item Buy Item … Government Customer ContactName ContactPhone Discount, … NewContact Commercial Customer ContactName ContactPhone … NewContact

27 Copyright © 2010 Jerry Post. All rights reserved. Base Data Types for OODBMS  Numbers  Integers  Reals  Text  Length  International  Date/Time  Images  Bitmap  Vector  Sound  Samples  MIDI  Video Numbers, Text, and Dates Images Sound Video InputProcessOutput = pitch, volume time

28 Copyright © 2010 Jerry Post. All rights reserved. Examples of Commercial DBMS  Oracle  Informix (Unix)  DB2, SQL/DS (IBM)  Access (Microsoft)  SQL Server (Microsoft +)  Many older (Focus, IMS,...)  mySQL  ProgresSQL

29 Copyright © 2010 Jerry Post. All rights reserved. HOMEWORK GUIDELINES (1)  All homework must be prepared using a computer  No handwritten work accepted  All diagrams must be created using computer programs (e.g., PowerPoint, other drawing tools)  Top right corner of first page:  Student Name  IS240  Chapter #  Due date  All other pages have student name at top right

30 Copyright © 2010 Jerry Post. All rights reserved. HOMEWORK GUIDELINES (2)  Group work is helpful  Discuss problems  Help each other understand issues  Not a substitute for individual learning  Plagiarism is forbidden  Do not copy each other’s specific solutions  After discussion, write out your answers yourselves, independently, in your own words  Do not copy/paste words or diagrams from other students  Plagiarism will be reported to the Committee on Academic Integrity and may result in expulsion from the University

31 Copyright © 2010 Jerry Post. All rights reserved. REQUIRED HOMEWORK  Study Chapter 1 of your textbook in detail  EXERCISES TO HAND IN USING TO  Deadline: before Sunday 30 th January at 23:59  #1, 2, 7, 8, 11, 12, 13, 15, 16, 17, 18  You must hand in written answers to specific questions  You can use PDF files for reports  Or JPG screen shots pasted in a WORD or PowerPoint file (as you prefer) showing how you are responding to operational demands  NOT HOMEWORK:  Review Questions (next) help you learn

32 Copyright © 2010 Jerry Post. All rights reserved. Review /Study Questions 1.A manager asks you why you are using a DBMS as part of the design of a new inventory system. Explain the major advantages of the DBMS over older methods of data organization in a paragraph of simple language suitable for a non-technical manager. (5 pts) 2.Which part of the DBMS is responsible for a. Managing user data-entry? b. Returning sets of records in response to selection criteria? c. Formatting output for written display? d. Storing information about all the other components of the DBMS including characteristics of the data? 3.What is the most important functional difference between a hierarchical database and a network database? 4.What is the most widely-used DBMS model today? 5.Go online to the WWW and locate product descriptions for Oracle, DB2, Access, and mySQL. Find out how much it costs to license each product for a single computer (any type will do) and provide the URL for your information.

33 Copyright © 2010 Jerry Post. All rights reserved. DISCUSSION