File StructuresSNU-OOPSLA Lab.1 Chap 0. Background 서울대학교 컴퓨터공학부 객체지향시스템연구실 (SNU-OOPSLA-LAB) 김 형주 교수.

Slides:



Advertisements
Similar presentations
Chapter 10: Designing Databases
Advertisements

Lecture-7/ T. Nouf Almujally
By: Mr Hashem Alaidaros MIS 211 Lecture 4 Title: Data Base Management System.
2P13 Week 11. A+ Guide to Managing and Maintaining your PC, 6e2 RAID Controllers Redundant Array of Independent (or Inexpensive) Disks Level 0 -- Striped.
File Management Chapter 12. File Management File management system is considered part of the operating system Input to applications is by means of a file.
File Management Chapter 12. File Management A file is a named entity used to save results from a program or provide data to a program. Access control.
Advance Database System
Predecessor to the Database: Traditional File Processing Records are stored in files. Programs are customized to process the data.
Oct 31, 2000Database Management -- Fall R. Larson Database Management: Introduction to Terms and Concepts University of California, Berkeley School.
Database Management: Getting Data Together Chapter 14.
Databases and Processing Modes. Fundamental Data Storage Concepts and Definitions What is an entity? An entity is something about which information is.
©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.
“DOK 322 DBMS” Y.T. Database Design Hacettepe University Department of Information Management DOK 322: Database Management Systems.
File StructuresFile StructureSNU-OOPSLA Lab1 Chap1. Introduction to File Structures 서울대학교 컴퓨터공학부 객체지향시스템연구실 (SNU-OOPSLA-LAB) 김 형 주 교수 File Structures by.
Introduction to Database Management
Chapter 4 Relational Databases Copyright © 2012 Pearson Education, Inc. publishing as Prentice Hall 4-1.
Attribute databases. GIS Definition Diagram Output Query Results.
Databases and Database Management Systems
1 Chapter 2 Database Environment. 2 Chapter 2 - Objectives u Purpose of three-level database architecture. u Contents of external, conceptual, and internal.
Chapter 4 Relational Databases Copyright © 2012 Pearson Education 4-1.
IST Databases and DBMSs Todd S. Bacastow January 2005.
Introduction to DBMS Purpose of Database Systems View of Data
Database System Concepts and Architecture Lecture # 3 22 June 2012 National University of Computer and Emerging Sciences.
COMPUTING FOR BUSINESS AND ECONOMICS-III. Lecture no.6 COURSE INSTRUCTOR- Ms. Tehseen SEMESTER- Summer 2010.
Information storage: Introduction of database 10/7/2004 Xiangming Mu.
DATABASE MANAGEMENT SYSTEMS BASIC CONCEPTS 1. What is a database? A database is a collection of data which can be used: alone, or alone, or combined /
DATABASE MANAGEMENT SYSTEMS BASIC CONCEPTS 1. What is a database? A database is a collection of data which can be used: alone, or alone, or combined /
The McGraw-Hill Companies, Inc Information Technology & Management Thompson Cats-Baril Chapter 3 Content Management.
Database System Concepts and Architecture
Chapter 2 CIS Sungchul Hong
 Definition  Components  Advantages  Limitations Contents  DBMS DBMS  Functions Functions  Architecture Architecture.
CST203-2 Database Management Systems Lecture 2. One Tier Architecture Eg: In this scenario, a workgroup database is stored in a shared location on a single.
Database System Concepts and Architecture Lecture # 2 21 June 2012 National University of Computer and Emerging Sciences.
Computers Data Representation Chapter 3, SA. Data Representation and Processing Data and information processors must be able to: Recognize external data.
Chapter 7: Database Systems Succeeding with Technology: Second Edition.
CHAPTER 8: MANAGING DATA RESOURCES. File Organization Terms Field: group of characters that represent something Record: group of related fields File:
Relational Databases (MS Access)
Chapter 1 : Introduction §Purpose of Database Systems §View of Data §Data Models §Data Definition Language §Data Manipulation Language §Transaction Management.
Lecture2: Database Environment Prepared by L. Nouf Almujally & Aisha AlArfaj 1 Ref. Chapter2 College of Computer and Information Sciences - Information.
©Silberschatz, Korth and Sudarshan1.1Database System Concepts Chapter 1: Introduction Purpose of Database Systems View of Data Data Models Data Definition.
1 Chapter 1 Introduction. 2 Introduction n Definition A database management system (DBMS) is a general-purpose software system that facilitates the process.
5-1 McGraw-Hill/Irwin Copyright © 2007 by The McGraw-Hill Companies, Inc. All rights reserved.
Fall 2000M.B. Ibáñez Lecture 22 File-System I File Concept.
5 - 1 Copyright © 2006, The McGraw-Hill Companies, Inc. All rights reserved.
 2001 Prentice Hall Business Publishing, Accounting Information Systems, 8/E, Bodnar/Hopwood A field may be a single character or number, or it.
INFORMATION MANAGEMENT Unit 2 SO 4 Explain the advantages of using a database approach compared to using traditional file processing; Advantages including.
Databases Shortfalls of file management systems Structure of a database Database administration Database Management system Hierarchical Databases Network.
DATABASE MANAGEMENT SYSTEMS CMAM301. Introduction to database management systems  What is Database?  What is Database Systems?  Types of Database.
Chapter 9 Database Systems Introduction to CS 1 st Semester, 2014 Sanghyun Park.
Data resource management
Chapter 10 Designing the Files and Databases. SAD/CHAPTER 102 Learning Objectives Discuss the conversion from a logical data model to a physical database.
Use of ICT in Data Management AS Applied ICT. Back to Contents Back to Contents.
Database Indexing 1 After this lecture, you should be able to:  Understand why we need database indexing.  Define indexes for your tables in MySQL. 
3/6: Data Management, pt. 2 Refresh your memory Relational Data Model
2/20: Ch. 6 Data Management What is data? How is it stored? –Traditional management storage techniques; problems –DBMS.
Copyright (c) 2014 Pearson Education, Inc. Introduction to DBMS.
1 Chapter 2 Database Environment Pearson Education © 2009.
ASET 1 Amity School of Engineering & Technology B. Tech. (CSE/IT), III Semester Database Management Systems Jitendra Rajpurohit.
Presentation on Database management Submitted To: Prof: Rutvi Sarang Submitted By: Dharmishtha A. Baria Roll:No:1(sem-3)
Chapter 1: Introduction. 1.2 Database Management System (DBMS) DBMS contains information about a particular enterprise Collection of interrelated data.
Databases Salihu Ibrahim Dasuki (PhD) CSC102 INTRODUCTION TO COMPUTER SCIENCE.
©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.
Data Resource Management Lecture 8. Traditional File Processing Data are organized, stored, and processed in independent files of data records In traditional.
Databases and Database User ch1 Define Database? A database is a collection of related data.1 By data, we mean known facts that can be recorded and that.
Introduction to DBMS Purpose of Database Systems View of Data
Chapter 9 Database Systems
Introduction to DBMS Purpose of Database Systems View of Data
Database Design Hacettepe University
Presentation transcript:

File StructuresSNU-OOPSLA Lab.1 Chap 0. Background 서울대학교 컴퓨터공학부 객체지향시스템연구실 (SNU-OOPSLA-LAB) 김 형주 교수

File StructuresSNU-OOPSLA Lab.2 Contents u Database Definitions u Database Organizations u DBMS Trend u Why File Structures? u Basic File Concepts Contents

File StructuresSNU-OOPSLA Lab.3 Database Definitions u One definition - anything conceivably useful in collecting, using, maintaing, or managing data u Webster’s Ninth New Collegiate Dictionary defines “a collection of data organized especially for rapid search and retrieval(as by computer)” u In addition to these, these are many definitions of “DataBase” u The common thread all of these definitions is data organization and easy retrieval Database Definitions

File StructuresSNU-OOPSLA Lab.4 Database Organization(1) u The organization of a database affects u the way the actual data is stored u what types of data operations are possible u the ease or difficulty of expressing requests (queries) u The organization even affects the way you think about your data Database Organization

File StructuresSNU-OOPSLA Lab.5 Database Organization(2) u Traditionally there has been 3 ways of database reorganizations u Hierarchical database organization u Network database organization u Relational database organization u Nowadays u Object-oriented database organization u Object-relational database organizaton Database Organization

File StructuresSNU-OOPSLA Lab.6 DBMS Trend u 70 년 대 : Network & Hierarchical DBMS u 80 년 대 : Relational DBMS u 90 년 대 : RDBMS 확장형, Object-Oriented DBMS u 98 년 이후 : Object-Relational DBMS u 2000 년 대 : Next-Generation DBMS u Multimedia, Intelligence, WEB support DBMS Status

File StructuresSNU-OOPSLA Lab.7 Why File Structures? Why File Structures

File StructuresSNU-OOPSLA Lab.8 Basic File Concepts(1) u Entity & Attributes u Entity : data object u Attributes : charaters of the entity e.g. employee = (name, address, id_number, department,...) u Data field, data item u Information is not data Basic File Concepts

File StructuresSNU-OOPSLA Lab.9 Basic File Concepts(2) u Records u Record : method of storing an entity using fields collection of data values that describes an entity record employee = name : array [1..30] of char; address : array [1..40] of char; id : array [1..9] of char; dept : (executive, management, sales, research, support) salary : integer; end u Record type u Record instance (= record occurrence) Basic File Concepts

File StructuresSNU-OOPSLA Lab.10 Basic File Concepts(3) u Fixed-length record u Variable-length record u Variable length fields u Variable-length record u Variable length fields NameAddressIdDeptSalary 30bytes40bytes9bytesinteger NameAddressIdDeptSalary 30bytes40bytes9bytesinteger NameAddressId 30bytes25bytes9bytes DeptSalary integer Basic File Concepts

File StructuresSNU-OOPSLA Lab.11 Basic File Concepts(4) u variable format records : Pascal’s variant records(e.g. hourly, monthly, yearly salary) NameAddressIdDeptSalaryMonthly RateType=“S”NameAddressIdDeptSalaryHourly RateType=“H”Hours Worked u repeating groups : multiply occurring fields Emp Nbr Insurance Type Dependent Name Dependent BirthDate Dependent Name Dependent BirthDate Name... Basic File Concepts

File StructuresSNU-OOPSLA Lab.12 Basic File Concepts(5) u Key u Keys : attributes to select or order records within a file u Primary keys : should uniquely distingush the records; often basis for ordering records physically within a file u e.g. employee id # or vehicle id # or ju-min # u Secondary key : e.g. name to access alphabetically, dept-name u External key : artificially assigned, record number within file, independent of attributes values Basic File Concepts

File StructuresSNU-OOPSLA Lab.13 Basic File Concepts(6) u File u File : group of all records representing entities of the same type collecting of records about similar entities u File Structure : A method of structuring (or organizing) records of a file on secondary storage device u Data Structure : A method of structuring (or organizing) records of a file on main memory Continued.. Basic File Concepts

File StructuresSNU-OOPSLA Lab.14 Basic File Concepts(6) u Phsical database : A collection of inter-connected file structures; an implementation of a logical database FordFairmontAB789V6silver1978 HondaAccordQXJ55V4red1988 BuickRegalA21MV8red1982 u Why use file concept? u Data set is too large to store all in main memory u Program access part of all data set in specific time u To keep data independence (it can be shared by application program) Basic File Concepts

File StructuresSNU-OOPSLA Lab.15 Basic File Concepts(7) u Classification of File u By function u master file u transaction file u report file u work file u program file u By access type of program u input file u output file u input/output file Continued.. Basic File Concepts

File StructuresSNU-OOPSLA Lab.16 Basic File Concepts(8) u Classification of File(Continued) u By organizing method u sequential file u B-Tree file u Hashing file u Grid file Basic File Concepts

File StructuresSNU-OOPSLA Lab.17 LET’S REVIEW!! u Database Definitions u Database Organizations u DBMS Trend u Why File Structures? u Basic File Concepts Contents