SlideShare une entreprise Scribd logo
1  sur  57
Chapter 1 The Worlds

1   of Database Systems
    File Systems and Databases
     Prof. Sin-Min Lee
     Dept. of Computer Science
1
    Tuesday Thursday
      10:15 – 11:30
Your evaluation in this course is determined by:

                        30%




1
Class Presentation
Presentation report
                      10%
                        5%




                        ??!
1
1
Text Book


1    NARAYAN S.
    UMANATH &
    RICHARD W.
    SCAMELL, DATA
    MODELING AND
    DATABASE
    DESIGN, 2007
    Thomson
GOOD REFERENCE


    A. Silberschatz, H.F. Korth, S. Sudarshan: Database System
               Concepts, 5th Ed., McGraw-Hill, 2006.




1
The mediocre teacher tells.
     The good teacher explains.


1    The superior teacher
    demonstrates.
     The great teacher inspires.
Files and Databases
    File: A collection of records or documents dealing
    with one organization, person, area or subject
    (Rowley)


1      Manual (paper) files
       Computer files
    Database: A collection of similar records with
    relationships between the records (Rowley)
       Bibliographic, statistical, business data, images, etc.
Introducing the Database
    Major Database Concepts


1
     Data and information
       Data - Raw facts
       Information - Processed data

     Data management
     Database
     Metadata
     Database management system (DBMS)
1
1
Sales per Employee for Each of ROBCOR’S Two Divisions




1

       Figure 1.1
1
Database Systems
    Types of Database Systems
      Number of Users



1
        Single-user
          – Desktop database
        Multiuser
          – Workgroup database
          – Enterprise database
      Scope
        Desktop
        Workgroup
        Enterprise
Database Systems
    Types of Database Systems
      Location


1        Centralized
         Distributed

      Use
         Transactional (Production)
         Decision support
         Data warehouse
Database
    A Database is a collection of stored operational data
    used by the application systems of some particular
    enterprise (C.J. Date)


1      Paper “Databases”
          Still contain a large portion of the world’s knowledge
       File-Based Data Processing Systems
          Early batch processing of (primarily) business data
       Database Management Systems (DBMS)
Why DBMS?
    History
       50’s and 60’s all applications were custom built for particular
       needs



1      File based
       Many similar/duplicative applications dealing with collections
       of business data
       Early DBMS were extensions of programming languages
       1970 - E.F. Codd and the Relational Model
       1979 - Ashton-Tate and first Microcomputer DBMS
File Based Systems
      Application        File
       Delivery

1
                           Toys
         List       Addresses

        Coal
      Estimation    Naughty

       Just what
       asked for         Nice Toys
From File Systems to DBMS
    Problems with file processing systems
       Inconsistent data




1
       Inflexibility
       Limited data sharing
       Poor enforcement of standards
       Excessive program maintenance
DBMS Benefits
    Minimal data redundancy
    Consistency of data



1
    Integration of data
    Sharing of data
    Ease of application development
    Uniform security, privacy, and integrity controls
    Data accessibility and responsiveness
    Data independence
    Reduced program maintenance
Terms and Concepts
    Data independence
      Physical representation and location of data and the use of
      that data are separated



1
         The application doesn’t need to know how or where the
         database has stored the data, but just how to ask for it
         Moving a database from one DBMS to another should not have
         a material effect on application program
         Recoding, adding fields, etc. in the database should not affect
         applications
Database Environment




1   CASE
    Tools
                      User
                    Interface
                                Application
                                 Programs




    Repository
                    DBMS            Database
Database Components
                          DBMS
                       ===============
                        Design tools



1
                        Table Creation
                        Form Creation
                        Query Creation
                        Report Creation    Application
                          Procedural
 Database                  language
                                            Programs
                        compiler (4GL)
                       =============
                           Run time
Database contains:
                        Form processor
User’s Data             Query processor
                                              User
Metadata                 Report Writer      Interface
Indexes                Language Run time   Applications
Application Metadata
Types of Database Systems
    PC databases
    Centralized database



1
    Client/server databases
    Distributed databases
    Database models
PC Databases
                   E.g.:
                   Access


1
                   FoxPro
                   Dbase
                   Etc.
Centralized Databases




1     Central
     Computer
Client Server Databases
                   Client




1
Client
                  Network

                            Database
                            Server
         Client
Distributed Databases
                             Location B
        Location C


1   computer
                      computer



                          Homogeneous
        computer          Databases
        Location A
Distributed Databases
Heterogeneous            Client
Or Federated                                Remote
Databases                                    Comp.

 1
Database
Server
                   Local Network

                                   Comm
                                   Server
                                        Remote
                Client                   Comp.
1
1
1
Introducing the Database
    Importance of DBMS
      It helps make data management more efficient


1
      and effective.
      Its query language allows quick answers to ad
      hoc queries.
      It provides end users better access to more and
      better-managed data.
      It promotes an integrated view of organization’s
      operations -- “big picture.”
      It reduces the probability of inconsistent data.
1
The DBMS Manages the Interaction
    Between the End User and the Database




1

     Figure 1.2
1
Introducing the Database
    Why Database Design Is Important?
      A well-designed database facilitates data


1     management and becomes a valuable information
      generator.
      A poorly designed database is a breeding ground
      for uncontrolled data redundancies.
      A poorly designed database generates errors that
      lead to bad decisions.
1
1
1
1
Historical Roots
    Why Study File Systems?
      It provides historical perspective.


1     It teaches lessons to avoid pitfalls of data
      management.
      Its simple characteristics facilitate understanding
      of the design complexity of a database.
      It provides useful knowledge for converting a file
      system to a database system.
Contents of the CUSTOMER File




1

    Figure 1.3
1
1
Table 1.1 Basic File Terminology
    Data     “Raw” facts that have little meaning unless they have been
             organized in some logical manner. The smallest piece of data
             that can be “recognized” by the computer is a single
             character, such as the letter A, the number 5, or some




1
             symbol such as; ‘ ? > * +. A single character requires one
             byte of computer storage.
    Field    A character or group of characters (alphabetic or numeric)
             that has a specific meaning. A field might define a telephone
             numbers, a birth date, a customer name, a year-to-date
             (YTD) sales value, and so on.
    Record   A logically connected set of one or more fields that describes
             a person, place, or thing. For example, the fields that
             comprise a record for a customer named J. D. Rudd might
             consist of J. D. Rudd’s name, address, phone number, date
             of birth, credit limit, unpaid balance, and so on.
    File     A collection of related records. For example, a file might
             contain data about ROBCOR Company’s vendors; or, a file
             might contain the records for the students currently enrolled
             at Gigantic University.
Contents of the AGENT File




1
     Figure 1.4
A Simple File System




1

    Figure 1.5
1
1
1
1
1
1
1
1

Contenu connexe

Tendances

Chapter-1 Introduction to Database Management Systems
Chapter-1 Introduction to Database Management SystemsChapter-1 Introduction to Database Management Systems
Chapter-1 Introduction to Database Management SystemsKunal Anand
 
Dbms role advantages
Dbms role advantagesDbms role advantages
Dbms role advantagesjeancly
 
Rdbms Practical file diploma
Rdbms Practical file diploma Rdbms Practical file diploma
Rdbms Practical file diploma mustkeem khan
 
Database design, implementation, and management -chapter02
Database design, implementation, and management -chapter02Database design, implementation, and management -chapter02
Database design, implementation, and management -chapter02Beni Krisbiantoro
 
Database design process
Database design processDatabase design process
Database design processTayyab Hameed
 
Five database trends - updated April 2015
Five database trends - updated April 2015Five database trends - updated April 2015
Five database trends - updated April 2015Guy Harrison
 
Data & database administration hoffer
Data & database administration   hofferData & database administration   hoffer
Data & database administration hofferMohd Arif
 
Database Management Systems
Database Management SystemsDatabase Management Systems
Database Management SystemsGeorge Grayson
 
Week 7 Database Development Process
Week 7 Database Development ProcessWeek 7 Database Development Process
Week 7 Database Development Processoudesign
 
Tasks of database administrator
Tasks of database administratorTasks of database administrator
Tasks of database administratorAttia Qamar
 
Data and database administration(database)
Data and database administration(database)Data and database administration(database)
Data and database administration(database)welcometofacebook
 
Database User and Administrator
Database User and AdministratorDatabase User and Administrator
Database User and AdministratorA. S. M. Shafi
 

Tendances (20)

Chapter-1 Introduction to Database Management Systems
Chapter-1 Introduction to Database Management SystemsChapter-1 Introduction to Database Management Systems
Chapter-1 Introduction to Database Management Systems
 
Dbms role advantages
Dbms role advantagesDbms role advantages
Dbms role advantages
 
Rdbms Practical file diploma
Rdbms Practical file diploma Rdbms Practical file diploma
Rdbms Practical file diploma
 
Database design, implementation, and management -chapter02
Database design, implementation, and management -chapter02Database design, implementation, and management -chapter02
Database design, implementation, and management -chapter02
 
Distributed D B
Distributed  D BDistributed  D B
Distributed D B
 
Chapter 5
Chapter 5Chapter 5
Chapter 5
 
Database design process
Database design processDatabase design process
Database design process
 
Five database trends - updated April 2015
Five database trends - updated April 2015Five database trends - updated April 2015
Five database trends - updated April 2015
 
Data & database administration hoffer
Data & database administration   hofferData & database administration   hoffer
Data & database administration hoffer
 
Database Management Systems
Database Management SystemsDatabase Management Systems
Database Management Systems
 
Information Management
Information ManagementInformation Management
Information Management
 
Software
SoftwareSoftware
Software
 
Week 7 Database Development Process
Week 7 Database Development ProcessWeek 7 Database Development Process
Week 7 Database Development Process
 
Tasks of database administrator
Tasks of database administratorTasks of database administrator
Tasks of database administrator
 
Db trends final
Db trends   finalDb trends   final
Db trends final
 
Data and database administration(database)
Data and database administration(database)Data and database administration(database)
Data and database administration(database)
 
Database
DatabaseDatabase
Database
 
Database User and Administrator
Database User and AdministratorDatabase User and Administrator
Database User and Administrator
 
DBMS CS1-2
DBMS  CS1-2DBMS  CS1-2
DBMS CS1-2
 
Dbms2
Dbms2Dbms2
Dbms2
 

Similaire à 27 fcs157al1 (1) (20)

27 fcs157al1
27 fcs157al127 fcs157al1
27 fcs157al1
 
Database Management System 1
Database Management System 1Database Management System 1
Database Management System 1
 
27 fcs157 l1
27 fcs157 l127 fcs157 l1
27 fcs157 l1
 
Database management system
Database management systemDatabase management system
Database management system
 
DBMS Lec 1 & 2.ppt
DBMS Lec 1 & 2.pptDBMS Lec 1 & 2.ppt
DBMS Lec 1 & 2.ppt
 
Database Design and Implementation
Database Design and ImplementationDatabase Design and Implementation
Database Design and Implementation
 
Bab9
Bab9Bab9
Bab9
 
Lecture2 is331 data&infomanag(databaseenv)
Lecture2 is331 data&infomanag(databaseenv)Lecture2 is331 data&infomanag(databaseenv)
Lecture2 is331 data&infomanag(databaseenv)
 
Lecture-1.ppt
Lecture-1.pptLecture-1.ppt
Lecture-1.ppt
 
Chapter 1 Database Systems.pptx
Chapter 1 Database Systems.pptxChapter 1 Database Systems.pptx
Chapter 1 Database Systems.pptx
 
D I T211 Chapter 1 1
D I T211    Chapter 1 1D I T211    Chapter 1 1
D I T211 Chapter 1 1
 
DBMS
DBMSDBMS
DBMS
 
Lecture 01 introduction to database
Lecture 01 introduction to databaseLecture 01 introduction to database
Lecture 01 introduction to database
 
D I T211 Chapter 1
D I T211    Chapter 1D I T211    Chapter 1
D I T211 Chapter 1
 
DBMS
DBMSDBMS
DBMS
 
Db lecture 1
Db lecture 1Db lecture 1
Db lecture 1
 
Dbms mca-section a
Dbms mca-section aDbms mca-section a
Dbms mca-section a
 
Dbms9
Dbms9Dbms9
Dbms9
 
database
databasedatabase
database
 
WHAT IS A DBMS? EXPLAIN DIFFERENT MYSQL COMMANDS AND CONSTRAINTS OF THE SAME.
WHAT IS A DBMS? EXPLAIN DIFFERENT MYSQL COMMANDS AND  CONSTRAINTS OF THE SAME.WHAT IS A DBMS? EXPLAIN DIFFERENT MYSQL COMMANDS AND  CONSTRAINTS OF THE SAME.
WHAT IS A DBMS? EXPLAIN DIFFERENT MYSQL COMMANDS AND CONSTRAINTS OF THE SAME.
 

27 fcs157al1 (1)

  • 1. Chapter 1 The Worlds 1 of Database Systems File Systems and Databases Prof. Sin-Min Lee Dept. of Computer Science
  • 2. 1 Tuesday Thursday 10:15 – 11:30
  • 3. Your evaluation in this course is determined by: 30% 1 Class Presentation Presentation report 10% 5% ??!
  • 4. 1
  • 5. 1
  • 6. Text Book 1 NARAYAN S. UMANATH & RICHARD W. SCAMELL, DATA MODELING AND DATABASE DESIGN, 2007 Thomson
  • 7. GOOD REFERENCE A. Silberschatz, H.F. Korth, S. Sudarshan: Database System Concepts, 5th Ed., McGraw-Hill, 2006. 1
  • 8. The mediocre teacher tells. The good teacher explains. 1 The superior teacher demonstrates. The great teacher inspires.
  • 9. Files and Databases File: A collection of records or documents dealing with one organization, person, area or subject (Rowley) 1 Manual (paper) files Computer files Database: A collection of similar records with relationships between the records (Rowley) Bibliographic, statistical, business data, images, etc.
  • 10. Introducing the Database Major Database Concepts 1 Data and information Data - Raw facts Information - Processed data Data management Database Metadata Database management system (DBMS)
  • 11. 1
  • 12. 1
  • 13. Sales per Employee for Each of ROBCOR’S Two Divisions 1 Figure 1.1
  • 14. 1
  • 15. Database Systems Types of Database Systems Number of Users 1 Single-user – Desktop database Multiuser – Workgroup database – Enterprise database Scope Desktop Workgroup Enterprise
  • 16. Database Systems Types of Database Systems Location 1 Centralized Distributed Use Transactional (Production) Decision support Data warehouse
  • 17. Database A Database is a collection of stored operational data used by the application systems of some particular enterprise (C.J. Date) 1 Paper “Databases” Still contain a large portion of the world’s knowledge File-Based Data Processing Systems Early batch processing of (primarily) business data Database Management Systems (DBMS)
  • 18. Why DBMS? History 50’s and 60’s all applications were custom built for particular needs 1 File based Many similar/duplicative applications dealing with collections of business data Early DBMS were extensions of programming languages 1970 - E.F. Codd and the Relational Model 1979 - Ashton-Tate and first Microcomputer DBMS
  • 19. File Based Systems Application File Delivery 1 Toys List Addresses Coal Estimation Naughty Just what asked for Nice Toys
  • 20. From File Systems to DBMS Problems with file processing systems Inconsistent data 1 Inflexibility Limited data sharing Poor enforcement of standards Excessive program maintenance
  • 21. DBMS Benefits Minimal data redundancy Consistency of data 1 Integration of data Sharing of data Ease of application development Uniform security, privacy, and integrity controls Data accessibility and responsiveness Data independence Reduced program maintenance
  • 22. Terms and Concepts Data independence Physical representation and location of data and the use of that data are separated 1 The application doesn’t need to know how or where the database has stored the data, but just how to ask for it Moving a database from one DBMS to another should not have a material effect on application program Recoding, adding fields, etc. in the database should not affect applications
  • 23. Database Environment 1 CASE Tools User Interface Application Programs Repository DBMS Database
  • 24. Database Components DBMS =============== Design tools 1 Table Creation Form Creation Query Creation Report Creation Application Procedural Database language Programs compiler (4GL) ============= Run time Database contains: Form processor User’s Data Query processor User Metadata Report Writer Interface Indexes Language Run time Applications Application Metadata
  • 25. Types of Database Systems PC databases Centralized database 1 Client/server databases Distributed databases Database models
  • 26. PC Databases E.g.: Access 1 FoxPro Dbase Etc.
  • 27. Centralized Databases 1 Central Computer
  • 28. Client Server Databases Client 1 Client Network Database Server Client
  • 29. Distributed Databases Location B Location C 1 computer computer Homogeneous computer Databases Location A
  • 30. Distributed Databases Heterogeneous Client Or Federated Remote Databases Comp. 1 Database Server Local Network Comm Server Remote Client Comp.
  • 31. 1
  • 32. 1
  • 33. 1
  • 34. Introducing the Database Importance of DBMS It helps make data management more efficient 1 and effective. Its query language allows quick answers to ad hoc queries. It provides end users better access to more and better-managed data. It promotes an integrated view of organization’s operations -- “big picture.” It reduces the probability of inconsistent data.
  • 35. 1
  • 36. The DBMS Manages the Interaction Between the End User and the Database 1 Figure 1.2
  • 37. 1
  • 38. Introducing the Database Why Database Design Is Important? A well-designed database facilitates data 1 management and becomes a valuable information generator. A poorly designed database is a breeding ground for uncontrolled data redundancies. A poorly designed database generates errors that lead to bad decisions.
  • 39. 1
  • 40. 1
  • 41. 1
  • 42. 1
  • 43. Historical Roots Why Study File Systems? It provides historical perspective. 1 It teaches lessons to avoid pitfalls of data management. Its simple characteristics facilitate understanding of the design complexity of a database. It provides useful knowledge for converting a file system to a database system.
  • 44. Contents of the CUSTOMER File 1 Figure 1.3
  • 45. 1
  • 46. 1
  • 47. Table 1.1 Basic File Terminology Data “Raw” facts that have little meaning unless they have been organized in some logical manner. The smallest piece of data that can be “recognized” by the computer is a single character, such as the letter A, the number 5, or some 1 symbol such as; ‘ ? > * +. A single character requires one byte of computer storage. Field A character or group of characters (alphabetic or numeric) that has a specific meaning. A field might define a telephone numbers, a birth date, a customer name, a year-to-date (YTD) sales value, and so on. Record A logically connected set of one or more fields that describes a person, place, or thing. For example, the fields that comprise a record for a customer named J. D. Rudd might consist of J. D. Rudd’s name, address, phone number, date of birth, credit limit, unpaid balance, and so on. File A collection of related records. For example, a file might contain data about ROBCOR Company’s vendors; or, a file might contain the records for the students currently enrolled at Gigantic University.
  • 48. Contents of the AGENT File 1 Figure 1.4
  • 49. A Simple File System 1 Figure 1.5
  • 50. 1
  • 51. 1
  • 52. 1
  • 53. 1
  • 54. 1
  • 55. 1
  • 56. 1
  • 57. 1