Database Management Systems ISYS 464

Slides:



Advertisements
Similar presentations
The Database Environment
Advertisements

Chapter 1: The Database Environment
Introduction to Databases
1 Chapter 2 Database Environment Transparencies © Pearson Education Limited 1995, 2005.
Chapter 2 Database Environment.
Database Management Systems ISYS 464 Fall 2004 David Chao.
1 Introduction The Database Environment. 2 Web Links Google General Database Search Database News Access Forums Google Database Books O’Reilly Books Oracle.
Data Management I DBMS Relational Systems. Overview u Introduction u DBMS –components –types u Relational Model –characteristics –implementation u Physical.
Introduction to Databases Transparencies
Chapter 1 INTRODUCTION TO DATABASE.
© 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.
Database Management Systems ISYS 464 David Chao. Introduction to Databases The most important component in an information system Created to support all.
Chapter 1: The Database Environment and Development Process
Chapter 2 Database Environment Pearson Education © 2014.
Managing Enterprise Database ISYS 464 David Chao.
Lecture Two Database Environment Based on Chapter Two of this book:
Chapter 1 Introduction to Databases
Chapter 1: The Database Environment
Introduction to Databases
Introduction to Databases Transparencies 1. ©Pearson Education 2009 Objectives Common uses of database systems. Meaning of the term database. Meaning.
Chapter 1 1 © Prentice Hall, 2002 Database Design Dr. Bijoy Bordoloi Introduction to Database Processing.
Database Environment 1.  Purpose of three-level database architecture.  Contents of external, conceptual, and internal levels.  Purpose of external/conceptual.
CHAPTER 1: THE DATABASE ENVIRONMENT AND DEVELOPMENT PROCESS Modern Database Management 11 th Edition Jeffrey A. Hoffer, V. Ramesh, Heikki Topi © 2013 Pearson.
CHAPTER 1: THE DATABASE ENVIRONMENT AND DEVELOPMENT PROCESS Modern Database Management 11 th Edition Jeffrey A. Hoffer, V. Ramesh, Heikki Topi © 2013 Pearson.
Chapter 1: The Database Environment and Development Process
Chapter 1: The Database Environment and Development Process
Module Title? DBMS Introduction to Database Management System.
Chapter 2 CIS Sungchul Hong
Web-Enabled Decision Support Systems
CSC271 Database Systems Lecture # 4.
MIS 385/MBA 664 Systems Implementation with DBMS/ Database Management Dave Salisbury ( )
Database System Concepts and Architecture
Introduction: Databases and Database Users
1 Introduction to Database Systems. 2 Database and Database System / A database is a shared collection of logically related data designed to meet the.
Architecture for a Database System
Lecture On Introduction (DBMS) By- Jesmin Akhter Assistant Professor, IIT, Jahangirnagar University.
© 2007 by Prentice Hall 1 Introduction to databases.
© 2009 Pearson Education, Inc. Publishing as Prentice Hall 1 Chapter 1: The Database Environment Modern Database Management 9 th Edition Jeffrey A. Hoffer,
Database System Introduction to Database Environment October 31, 2009 Software Park, Bangkok Thailand Pree Thiengburanathum College of Arts and Media Chiang.
Lecture # 3 & 4 Chapter # 2 Database System Concepts and Architecture Muhammad Emran Database Systems 1.
Database Management System Prepared by Dr. Ahmed El-Ragal Reviewed & Presented By Mr. Mahmoud Rafeek Alfarra College Of Science & Technology- Khan younis.
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.
Chapter 1 1 Lecture # 1 & 2 Chapter # 1 Databases and Database Users Muhammad Emran Database Systems.
CHAPTER 1: THE DATABASE ENVIRONMENT AND DEVELOPMENT PROCESS Modern Database Management 11 th Edition, International Edition Jeffrey A. Hoffer, V. Ramesh,
Chapter 1 Introduction to Databases © Pearson Education Limited 1995, 2005.
Database Environment Chapter 2. Data Independence Sometimes the way data are physically organized depends on the requirements of the application. Result:
Bayu Adhi Tama, M.T.I 1 © Pearson Education Limited 1995, 2005.
1 Introduction to Databases. 2 Examples of Database Applications u Purchases from the supermarket u Purchases using your credit card u Booking a holiday.
1 Chapter 1 Introduction to Databases Transparencies.
1 Database Systems Instructor: Nasir Minhas Assistant Professor UIIT PMAS-AAUR
© 2011 Pearson Education, Inc. Publishing as Prentice Hall 1 Chapter 1: The Database Environment and Development Process Modern Database Management 10.
Introduction to Databases Transparencies © Pearson Education Limited 1995, 2005.
Chapter 1 © 2013 Pearson Education, Inc. Publishing as Prentice Hall Chapter 1: The Database Environment and Development Process Modern Database Management.
Chapter 2 Database Environment.
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.
Lecture On Introduction (DBMS) By- Jesmin Akhter Assistant Professor, IIT, Jahangirnagar University.
Copyright © 2016 Pearson Education, Inc. CHAPTER 1: THE DATABASE ENVIRONMENT AND DEVELOPMENT PROCESS Modern Database Management 12 th Edition Jeff Hoffer,
Chapter 1 © 2013 Pearson Education, Inc. Publishing as Prentice Hall Chapter 1: The Database Environment and Development Process (Contd..) Modern Database.
Chapter 1: The Database Environment
CHAPTER 1: THE DATABASE ENVIRONMENT AND DEVELOPMENT PROCESS
Introduction to Databases Transparencies
CHAPTER 1: THE DATABASE ENVIRONMENT AND DEVELOPMENT PROCESS
Chapter 1: The Database Environment
Chapter 1: The Database Environment
The Database Environment
Chapter 1: The Database Environment
Chapter 1: The Database Environment
The Database Environment
Presentation transcript:

Database Management Systems ISYS 464 David Chao

Introduction to Databases The most important component in an information system Created to support all levels of business operations: Day-to-day operations TPS, CRM, ERP Decision-makings DSS, data warehouse Strategic plans

Definitions Database: organized collection of logically related data A group of related files Data: stored representations of meaningful objects and events Structured: numbers, text, dates Unstructured: images, video, documents Information: data processed to increase knowledge in the person using the data Metadata: data that describes the properties and context of user data

Example of Metadata

Traditional File-Based Systems A collection of application programs that perform services for the end-users. Each program defines and manages its own data.

Example

Limitations of the File-Based Approach Duplication of data Data inconsistency Limited data sharing Program-data dependence When file structure changed, all programs that access the file must be modified to conform to the new file structure. The definition of the data is embedded in the program. Fixed queries No facilities for asking unplanned, ad hoc queries

Problems with Program-Data Dependency Each application program needs to include code for the metadata of each file Each application program must have its own processing routines for reading, inserting, updating, and deleting data

Example: Comma-Delimited File It stores each data item with a comma separating each item and places double quotes around string fields. Student file with fields: SID, Sname, and GPA “S5”, ”Peter”, 3.0 “S1”, “Paul”, 2.5 Questions: How many students? What is average GPA?

Sequentially Accessing the Student File to Compute Average GPA Dim fileNumber, stCounter As Integer Dim SID, SNAME As String Dim gpa, sumGpa As Double fileNumber = FreeFile() FileOpen(fileNumber, "c:\stdata.txt", OpenMode.Input) Do While Not EOF(fileNumber) Input(fileNumber, SID) Input(fileNumber, SNAME) Input(fileNumber, gpa) sumGpa += gpa stCounter += 1 Loop MessageBox.Show(sumGpa / stCounter.ToString)

Database Approach Central repository of shared data The database holds not only the data but also a description of the data. System catalog (repository , data dictionary, or metadata) A central location where data descriptions are stored. Data about data Program-data independence

Advantages of the Database Approach Program-data independence The separation of data descriptions from the application programs that use the data. Allows the data to change without changing the application programs. Planned data redundancy Improved data consistency Improved data sharing Enforcement of standards

Database Management System (DBMS) A software that enables users to define, create, maintain, and control access to the database. Data Definition Language (DDL) Data Manipulation Language (DML) Control access: Security, integrity, concurrent access, recovery, support for data communication, etc. Utility services File import/export, monitoring facilities, etc. Support Ad Hoc queries

Database Management System A software system that is used to create, maintain, and provide controlled access to user databases Order Filing System Central database Contains employee, order, inventory, pricing, and customer data Invoicing System DBMS Payroll System DBMS manages data resources like an operating system manages hardware resources

Evolution of DB Systems

Database Schema External Schema Conceptual Schema Internal schema User Views Subsets of Conceptual Schema Conceptual Schema This level describes what data is stored in the database and the relationships among the data. View of the data administrator E-R models Internal schema Logical schema Underlying implementation and design Relational table design Physical Schema File organizations, indexes

Figure 2-7 Three-schema architecture Different people have different views of the database…these are the external schema The internal schema is the underlying design and implementation

Data Independence Data independence means that upper levels are unaffected by changes to lower levels. Logical data independence Changes to the conceptual level, such as the addition of new entities, attributes, or relationships, should be possible without having to change the existing external level design. Physical data independence Changes to the physical level, such as using a different file organization, indexes, should be possible without having to change the conceptual level design.

Three-Level Example Employee Entity Conceptual design: Employee entity with attributes: EmpID, EmpName, DateOfBirth, Salary, and Sex. Internal level: Logical schema: EmpID – 4 characters EmpName – 30 characters DateOfBirth – Date field 8 bytes Salary – Number(7,2) Sex – 1 character Physical schema: Record size = 4 + 30 + 8 + 7 +1 = 50 bytes Sequential file with index on EmpID field External level: EmpAgeView: EmpID, EmpName, Age=Year(Today()) – Year(DateOfBirth) EmpSalaryView: EmpID, EmpName, Salary

Benefits of Using Views Views provide a level of security. Views provide a mechanism to customize the appearance of the database. Views provide a consistent, unchanging picture of the database, even if the underlying database is changed.

Database Application It is a program that interacts with the database at some point in its execution by issuing an appropriate request (typically an SQL statement) to the DBMS. Database programming

The Range of Database Applications Personal databases: Desktop, PDA/Smart Phone Workgroup databases Departmental/divisional databases Enterprise database Enterprise Resource Planning (ERP) Integrate all enterprise functions (manufacturing, finance, sales, marketing, inventory, accounting, human resources) Data Warehouse Integrated decision support system derived from various operational databases

The three components in a database application 1. Presentation – user interface Menus, forms, reports, etc 2. Processing logic Business rules 3. Database

Categories of Database Applications One-Tier Legacy online transaction processing PC database application Two-Tier client/server Client-based presentation. Processing logic is buried either inside the user interface on the client or within the database on the server, or both. Three-Tier, N- tier Processing logic is separated from the interface and database.

Database Server: A high processing power computer with advanced DBMS. SQL queries Client Database Server Results Database Server: A high processing power computer with advanced DBMS. Client: A PC that runs database applications. SQL interface.

Client Functions Manages the user interface. Accepts and checks syntax of user input. Implements business rules. Generates database requests and transmits to server. Passes response back to user.

Database Server Functions Checks authorization. Accepts and processes database requests from clients. Ensures integrity constraints not violated. Performs query/update processing and transmits response to client. Provides concurrent database access, transaction management, and recovery control.

The Web as a Database Application Platform Three-tier architecture Browser, web server, database server, processing logic Advantages: Cross-platform support Graphical user interface

Figure 2-9 Three-tiered client/server database architecture

Major Database Management Activities Creating database Updating database Querying database

Creating Database Analysis Design System analysis Data Flow Diagram, UML Data modeling ERD Design Maps the data model on to a target database model. Implementation: Efficiently store and retrieve data File organization and index

Two Approaches to Database and IS Development SDLC System Development Life Cycle Detailed, well-planned development process Time-consuming, but comprehensive Long development cycle Prototyping Rapid application development (RAD) Cursory attempt at conceptual data modeling Define database during development of initial prototype Repeat implementation and maintenance activities with new prototype versions

Systems Development Life Cycle (see also Figures 2.4, 2.5) Planning Analysis Physical Design Implementation Maintenance Logical Design

Updating Database Insertions, deletions, modifications Update pattern: Insertion only, no modification Concurrent processing Read/Write Transaction management

Querying Database Relational algebra SQL QBE

New Developments in Database Object-Oriented database Object-Relational database Decision support with data warehouse Web based database applications XML database

Course Overview An introduction to the three-level database Conceptual level: Data modeling, ERD, Normalization Physical level: File organizations and index External level Relational algebra, SQL, QBE Other database management technologies