Ch. 1 데이터베이스시스템 (2). Ch.1 Database System 데이터베이스시스템 2 What to Learn Database System Overview Entity-Relationship diagram Relational Data Model  Structure.

Slides:



Advertisements
Similar presentations
1 Chapter 2 Database Environment Transparencies © Pearson Education Limited 1995, 2005.
Advertisements

1 Pertemuan 02 Database environment Matakuliah: >/ > Tahun: > Versi: >
Chapter 2 Database Environment.
Chapter 2 Database Environment. Agenda Three-Level ANSI-SPARC Architecture Database Languages Data Models Functions of DBMS Components of DBMS Teleprocessing.
Data Management I DBMS Relational Systems. Overview u Introduction u DBMS –components –types u Relational Model –characteristics –implementation u Physical.
Introduction to Databases Transparencies
Database Management Systems ISYS 464 David Chao. Introduction to Databases The most important component in an information system Created to support all.
Chapter 2 Database Environment Pearson Education © 2014.
1 Chapter 2 Database Environment. 2 Objectives of Three-Level Architecture u All users should be able to access same data u User’s view immune to changes.
Chapter 4 Relational Databases Copyright © 2012 Pearson Education, Inc. publishing as Prentice Hall 4-1.
Lecture Two Database Environment Based on Chapter Two of this book:
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.
Introduction to Databases Transparencies 1. ©Pearson Education 2009 Objectives Common uses of database systems. Meaning of the term database. Meaning.
Database Environment 1.  Purpose of three-level database architecture.  Contents of external, conceptual, and internal levels.  Purpose of external/conceptual.
Database System Concepts and Architecture Lecture # 3 22 June 2012 National University of Computer and Emerging Sciences.
Information storage: Introduction of database 10/7/2004 Xiangming Mu.
Ch. 1 데이터베이스시스템. Ch.1 Database System 데이터베이스시스템 2 What to Learn Database System Overview Entity-Relationship diagram Relational Data Model  Structure.
Chapter 2 CIS Sungchul Hong
Chapter 2 Database System Architecture. An “architecture” for a database system. A specification of how it will work, what it will “look like.” The “ANSI/SPARC”
Chapter 2 Database Environment
CSC271 Database Systems Lecture # 4.
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.
Database Environment Chapter 2 AIT632 Sungchul Hong.
Database System Concepts and Architecture
1 Introduction to Database Systems. 2 Database and Database System / A database is a shared collection of logically related data designed to meet the.
Chapter 1 An Overview of Database Management. 1-2 Topics in this Chapter What is a Database System? What is a Database? Why Database? Data Independence.
Chapter 2 Database Environment. Agenda Three-Level ANSI-SPARC Architecture Database Languages Data Models Functions of DBMS Components of DBMS Data Dictionary.
Lecture # 3 & 4 Chapter # 2 Database System Concepts and Architecture Muhammad Emran Database Systems 1.
Chapter 2 Database Systems Architecture. Copyright © 2004 Pearson Addison-Wesley. All rights reserved.2-2 Topics in this Chapter Three levels of architecture.
Lesson Overview 3.1 Components of the DBMS 3.1 Components of the DBMS 3.2 Components of The Database Application 3.2 Components of The Database Application.
8/31/2012ISC329 Isabelle Bichindaritz1 Database Environment.
Database Environment Chapter 2. Data Independence Sometimes the way data are physically organized depends on the requirements of the application. Result:
1 Database Management Systems (DBMS). 2 Database Management Systems (DBMS) n Overview of: ä Database Management Components ä Database Systems Architecture.
Database Environment Session 2 Course Name: Database System Year : 2013.
INTRODUCTION TO DBS Database: a collection of data describing the activities of one or more related organizations DBMS: software designed to assist in.
DATABASE MANAGEMENT SYSTEM ARCHITECTURE
1 Chapter 1 Introduction to Databases Transparencies.
Database System Architecture Prof. Yin-Fu Huang CSIE, NYUST Chapter 2.
Database Systems Lecture 1. In this Lecture Course Information Databases and Database Systems Some History The Relational Model.
Riyadh Philanthropic Society For Science Prince Sultan College For Woman Dept. of Computer & Information Sciences CS 340 Introduction to Database Systems.
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.
2) Database System Concepts and Architecture. Slide 2- 2 Outline Data Models and Their Categories Schemas, Instances, and States Three-Schema Architecture.
Database Environment Chapter 2. The Three-Level ANSI-SPARC Architecture External Level Conceptual Level Internal Level Physical Data.
RELATIONAL DATABASE MANAGEMENT SYSTEM - I Subject code : BCA-12 and PGDCA 1.
ISC321 Database Systems I Chapter 2: Overview of Database Languages and Architectures Fall 2015 Dr. Abdullah Almutairi.
Databases and DBMSs Todd S. Bacastow January 2005.
Introduction to Databases
Chapter 2 Database Environment.
Database Management System
Database System Concepts and Architecture
Copyright © 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 2 Database System Concepts and Architecture.
Introduction to Databases
Introduction to Databases
Chapter 2 Database Environment.
Chapter 2 Database Environment Pearson Education © 2009.
Introduction to Database Management System
Chapter 2 Database Environment Pearson Education © 2009.
Chapter 2 Database Environment.
Data Base System Lecture : Database Environment
Data, Databases, and DBMSs
Data Model.
Introduction to Databases
Chapter 2 Database Environment Pearson Education © 2014.
Chapter 2 Database Environment Pearson Education © 2009.
Chapter 2 Database Environment Pearson Education © 2009.
Presentation transcript:

Ch. 1 데이터베이스시스템 (2)

Ch.1 Database System 데이터베이스시스템 2 What to Learn Database System Overview Entity-Relationship diagram Relational Data Model  Structure & Constraints  SQL language How to use Commercial DBMS’s  MS Access  MS SQL Server Normalization ( 정규화 ) Transaction & Concurrency ( 동시성 )

Ch.1 Database System 데이터베이스시스템 3 What to Learn Database and Database system Modeling a real world  Conceptual Modeling  Data Modeling  Data Structuring File processing system Advantages of database system

Ch.1 Database System 데이터베이스시스템 4 What to Learn Components of a Database system  Database  Software (DBMS)  Users Application Programmers, End users, DBA's  Hardware (computer) ANSI database architecture Various types of database system  Central vs. distributed systems  Client/server system

Ch.1 Database System 데이터베이스시스템 5 Components of a database system Database  A collection of data to store Software  Database management system (DBMS)  Handles all the access to the database Hardware  Computers and hard disks Users  Application programmer  End user  Database administrator (DBA)

Ch.1 Database System 데이터베이스시스템 6 components of a database system Real World system boundary E-R diagram conceptual modeling logical schema (conceptual view) physical schema (internal view) stored database Operating system DBMS DDL DML view view view External view

Ch.1 Database System 데이터베이스시스템 7 1. Database Logical database NAMEST_NOADDRESSDEPTGRADE 송치윤 사당동컴퓨터 3.3 김구완 홍제동정보통신 3.1 최재석 양재동정보관리 3.5  Field, Column, Attribute  Record, Row, Tuple  File, Table, Relation  Record type, Table heading, Relation schema (type)  Records, Table body, Relation instance (state) Physical database Data dictionary (system catalog)

Ch.1 Database System 데이터베이스시스템 8 2. Software (DBMS) (1) shielding database users from hardware-level details Functions of DBMS  Data definition Save the schema in the data dictionary schema detailed definition of the overall database design logical schema, physical schema, external/conceptual mapping, (p.48) conceptual/internal mapping Data definition language (DDL) (p.41)

Ch.1 Database System 데이터베이스시스템 9 components of a database system Real World system boundary E-R diagram conceptual modeling logical schema (conceptual view) physical schema (internal view) stored database Operating system DBMS DDL DML view view view External view

Ch.1 Database System 데이터베이스시스템 Software (DBMS) (2)  Data manipulation Data manipulation language (DML, 데이터 조작어 ) (p.42) Retrieve, Select ( 검색 ), Insert ( 삽입 ), Delete ( 삭제 ), Update ( 수정 )  Other functions Query optimization ( 질의 최적화 ) Concurrency control ( 동시성 제어 ) Recovery ( 복구 ) Security ( 보안 ) Integrity ( 무결성 )

Ch.1 Database System 데이터베이스시스템 Software (DBMS) (3)  Example of query optimization Students(St_No, Name, Year), 10,000 rows Enroll(St_No, Subject, Grade) 50,000 rows Select the enrollment state of first year students. 1) match Student and Enroll tables 50,000 rows select first year students12,500 rows 2) select first year strudents 2,500 rows match Student and Enroll tables 12,500 rows

Ch.1 Database System 데이터베이스시스템 Software (DBMS) (4)  Example of concurrency control Sales(Prod_No, sale_amount), current value = 30 Agent A sold 30, Agent B sold 20 The correct value should be = 80 1) Agent A reads the current value 30, calculates Agent B reads the current value 30, calculates Agent A updates the record to 60, Agent B updates the record to 50. The sale of 30 is lost. 2) Agent A requests a lock, and reads 30, calculates Agent B requests a lock, but waits until the lock is released. Agent A updates the record to 60, releases the lock Agent B gets a lock, and reads 60, calculates Agent B updates the record to 80, releases the lock

Ch.1 Database System 데이터베이스시스템 Software (DBMS) (5) p.55

Ch.1 Database System 데이터베이스시스템 Users (1) Application programmers write database application programs in general programming language host language : general programming language like C++, Visual Basic, C#, Java embedded language : the language used to send DML to a DBMS End users ad hoc (unplanned) query user : use a program with which a user directly send DML command to DBMS canned (planned) query user ; use an easy-to-use program which was developed by application programmers Database Administrator (DBA) responsible for the overall control of the database system at a technical level c.f. : data administrator

Ch.1 Database System 데이터베이스시스템 Users (2) p.43

Ch.1 Database System 데이터베이스시스템 Users (3) DBA’s tasks  Define the logical schema  Define the physical schema  Define security and integrity constraints  Define backup/recovery policies  Assist users : provide technical education, analyze the information requirements of users, consult application design balance conflicting user requirements  Monitor performance and respond to changing requirements

Ch.1 Database System 데이터베이스시스템 17 Goals of database systems Reduce redundancy through integration Sharing Standardization Enhance security and integrity Data independence Data abstraction

Ch.1 Database System 데이터베이스시스템 18 Goals of database systems Data independence  Immunity of applications to change in physical representation and access technique  Possible changes in data representation numbers (real, integer, fixed, floating point) remember Y2k problem characters (ASCII, Unicode) coding system (M or F, 0 or 1) changes in record structure product(Prod_No, Prod_Name, cost, price, monthlyproduction, monthlysales) Data abstraction  Easy to use (do not worry about physical structures) select Prod_Name, price, monthlysales from product;

Ch.1 Database System 데이터베이스시스템 19 ANSI/SPARC Architecture p.48

Ch.1 Database System 데이터베이스시스템 20 Centralized vs. Distributed database

Ch.1 Database System 데이터베이스시스템 21 Centralized vs. Distributed database p.58

Ch.1 Database System 데이터베이스시스템 22 Client-Server system p.60 2-tier vs. 3-tier model