1 Chapter 3 Database Architecture and the Web Pearson Education © 2009.

Slides:



Advertisements
Similar presentations
Database Architectures and the Web
Advertisements

Database Environment Pertemuan 02 Matakuliah: M0564 /Pengantar Sistem Basis Data Tahun : 2008.
Chapter 3 Database Architectures and the Web Pearson Education © 2009.
Distributed components
Technical Architectures
Introduction to Databases
1 Chapter 2 Database Environment Transparencies © Pearson Education Limited 1995, 2005.
1 Pertemuan 02 Database environment Matakuliah: >/ > Tahun: > Versi: >
ISYS 546 Client/Server Database Application Development.
Chapter 2 Database Environment.
Distributed Database Management Systems
Introduction to Databases Transparencies
Chapter 12 Distributed Database Management Systems
McGraw-Hill/Irwin Copyright © 2007 by The McGraw-Hill Companies, Inc. All rights reserved. Chapter 17 Client-Server Processing, Parallel Database Processing,
Chapter 2 Database Environment Pearson Education © 2014.
Copyright © 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 2 Overview of Database Languages and Architectures.
Chapter 1 Introduction to Databases
DATABASE MANAGEMENT SYSTEMS 2 ANGELITO I. CUNANAN JR.
Client-Server Processing and Distributed Databases
Introduction to Databases Transparencies 1. ©Pearson Education 2009 Objectives Common uses of database systems. Meaning of the term database. Meaning.
DATABASE MANAGEMENT SYSTEM ARCHITECTURE
Chapter 3 Database Architectures and the Web Pearson Education © 2009.
Database Environment 1.  Purpose of three-level database architecture.  Contents of external, conceptual, and internal levels.  Purpose of external/conceptual.
Database Architectures and the Web
Client/Server Databases and the Oracle 10g Relational Database
Database System Concepts and Architecture Lecture # 3 22 June 2012 National University of Computer and Emerging Sciences.
©Ian Sommerville 2006Software Engineering, 8th edition. Chapter 12 Slide 1 Distributed Systems Architectures.
Database Architectures and the Web Session 5
Chapter 2 CIS Sungchul Hong
Chapter 1 Introduction to Databases Pearson Education ©
Lecture On Database Analysis and Design By- Jesmin Akhter Lecturer, IIT, Jahangirnagar University.
CSC271 Database Systems Lecture # 4.
Database Environment Chapter 2 AIT632 Sungchul Hong.
9/5/2012ISC329 Isabelle Bichindaritz1 Web Database Environment.
Lecture On Introduction (DBMS) By- Jesmin Akhter Assistant Professor, IIT, Jahangirnagar University.
Unit – I CLIENT / SERVER ARCHITECTURE. Unit Structure  Evolution of Client/Server Architecture  Client/Server Model  Characteristics of Client/Server.
Session-8 Data Management for Decision Support
Database Systems: Design, Implementation, and Management Tenth Edition Chapter 12 Distributed Database Management Systems.
Database Systems: Design, Implementation, and Management Ninth Edition Chapter 12 Distributed Database Management Systems.
Week 5 Lecture Distributed Database Management Systems Samuel ConnSamuel Conn, Asst Professor Suggestions for using the Lecture Slides.
The Client/Server Database Environment Ployphan Sornsuwit KPRU Ref.
Intro – Part 2 Introduction to Database Management: Ch 1 & 2.
Personal Computer - Stand- Alone Database  Database (or files) reside on a PC - on the hard disk.  Applications run on the same PC and directly access.
10 1 Chapter 10 Distributed Database Management Systems Database Systems: Design, Implementation, and Management, Sixth Edition, Rob and Coronel.
Lecture # 3 & 4 Chapter # 2 Database System Concepts and Architecture Muhammad Emran Database Systems 1.
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.
Distributed DBMSs- Concept and Design Jing Luo CS 157B Dr. Lee Fall, 2003.
Bayu Adhi Tama, M.T.I 1 © Pearson Education Limited 1995, 2005.
1 Pertemuan > > Matakuliah: >/ > Tahun: > Versi: >
Chapter 2 Database Environment Chuan Li 1 © Pearson Education Limited 1995, 2005.
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.
Distributed database system
Management Information Systems, 4 th Edition 1 Chapter 8 Data and Knowledge Management.
Chapter 2 Database Environment.
Lecture On Introduction (DBMS) By- Jesmin Akhter Assistant Professor, IIT, Jahangirnagar University.
IT 5433 LM1. Learning Objectives Understand key terms in database Explain file processing systems List parts of a database environment Explain types of.
Databases and DBMSs Todd S. Bacastow January 2005.
Database Architectures and the Web
The Client/Server Database Environment
Database Architectures and the Web
Copyright © 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 2 Database System Concepts and Architecture.
Chapter 2 Database Environment Pearson Education © 2009.
Data, Databases, and DBMSs
Database Architectures and the Web Transparencies
Introduction to Databases Transparencies
Database System Architecture
Database Environment Transparencies
Presentation transcript:

1 Chapter 3 Database Architecture and the Web Pearson Education © 2009

2 Chapter 3 - Objectives u Software components of a DBMS. u Client–server architecture and advantages of this type of architecture for a DBMS. u Function and uses of Transaction Processing Monitors. u Web-Services and Service-Oriented Architectures u Distributed DBMSs Pearson Education © 2009

3 Components of a DBMS u DBMS is partitioned into several software components/modules –Assigned with to specific operation –Design of a DBMS must take into account the interface between the DBMS and the OS Pearson Education © 2009

4 Components of a DBMS o Query processor o a major DBMS component that transform queries into a series of low-level instructions directed to the db manager. o Database Manager (DM) o accepts queries & examines the external & conceptual schemas to determine what conceptual records are required to satisfy the request o DM places a call to the file manager to perform the request. o File manager o manipulates the underlying storage files & manages the allocation of storage space on disk. o It establishes and maintains the list used, calls on the hashing functions to generate record addresses. o It passes the requests on to the appropriate access methods(either read or write data from system buffer) Pearson Education © 2009

5 Components of a DBMS o DML preprocessor o converts DML statements embedded in an application program into standard function calls in the host language o DML processor must interact with the query processor to generate the appropriate code o DDL compiler o converts DDL statements into a set of tables containing metadata. o These tables are then stored in the system catalog o Catalog manager o manages access to and maintains the system catalog Pearson Education © 2009

6 Components of Database Manager (DM) Pearson Education © 2009 Authorization control –this module checks & confirms whether the user has the necessary authorization to carry out the required operation Command processor –once the system confirmed the user has authority to carry out operation, control is passed to the command processor. Integrity checker –for an operation that changes the db, the integrity checker checks whether the requested operation satisfies all necessary integrity constraints. Query optimizer –determines an optimal strategy for the query execution Transaction manager –performs the required processing of operations that it receives from transactions Scheduler –responsible for ensuring that concurrent operations on the db proceed without conflicting with one another Recovery manager –ensures that the db remains in a consistent state in the presence of failure Buffer manager –responsible for the transfer of data between main memory & secondary storage (such as disk and tape)

7 Multi-User DBMS Architectures u Common architectures used to implement multi-user database management systems: –Teleprocessing –File-server –Client-server Pearson Education © 2009

8 Teleprocessing u Traditional architecture. u Single mainframe with a number of terminals attached. u User terminals – dumb –Incapable of functioning on their own Pearson Education © 2009

9 File-Server u File-server is connected to several workstations across a network. u Database resides on file-server. u DBMS and applications run on each workstation. u Disadvantages include: –Significant network traffic. –Copy of DBMS on each workstation. –Concurrency, recovery and integrity control more complex. Pearson Education © 2009

10 File-Server Architecture Pearson Education © 2009 The processing is distributed about the network (LAN) The file-server holds the files required by the applications and the DBMS Applications and the DBMS run on each workstation File-server acts as a shared hard disk drive

11 Traditional Two-Tier Client-Server  Client (tier 1) manages user interface and runs applications. (responsible for the presentation of data to the user)  Server (tier 2) holds database and DBMS. (responsible for supplying data services to the client) u Advantages include: –wider access to existing databases; –increased performance; –possible reduction in hardware costs; –reduction in communication costs; –increased consistency. Pearson Education © 2009

12 Traditional Two-Tier Client-Server Pearson Education © 2009 The client takes the user’s request, checks the syntax, and generates database requests in SQL Then transmits the message to the server, waits for a response, and formats the response for the end-user. The server accepts and processes the database requests, then transmits the results back to the client. The processing involves checking authorization, ensuring integrity, maintaining the system catalog, query and update processing.

13 Traditional Two-Tier Client-Server Pearson Education © 2009

14 Three-Tier Client-Server u In two tier client-server, client side presented two problems preventing true scalability: –‘Fat’ client, requiring considerable resources on client’s computer to run effectively. –Significant client-side administration overhead. u By 1995, three layers proposed, each potentially running on a different platform. Pearson Education © 2009

15 Three-Tier Client-Server u The three layers: –User interface layer –Business logic and data processing layer: Application Server –DBMS-stores data required by middle tier: Database Server Pearson Education © 2009

16 Three-Tier Client-Server u Advantages: –‘Thin’ client, requiring less expensive hardware. –Application maintenance centralized. –Easier to modify or replace one tier without affecting others. –Separating business logic from database functions makes it easier to implement load balancing. –Maps quite naturally to Web environment. Pearson Education © 2009

17 Three-Tier Client-Server Pearson Education © 2009

18 Transaction Processing Monitors u Program that controls data transfer between clients and servers in order to provide a consistent environment, particularly for Online Transaction Processing (OLTP). u Middleware component that provides access to the services of a number of resource managers (DBMSs, OS, User interfaces, messaging software)  Provide a uniform interface for programmers who are developing transactional software (Software that guarantees that all appropriate databases are updated from a single transaction) Pearson Education © 2009

19 Transaction Processing Monitors u Advantages: –Transaction routing: increase scalability by directing transactions to specific DBMSs –Managing distributed transactions: manage transactions that require access to data held in multiple, possibly heterogeneous DBMSs. –Load balancing: balance client request across multiple DBMSs –Funneling: handle large users –Increased reliability: act as Transaction Manager, performing necessary actions to maintain the consistency of the database Pearson Education © 2009

20 TPM as middle tier of 3-tier client-server Pearson Education © 2009

21 Web Services u A software system designed to support interoperable machine-to-machine interaction over a network u Examples: –Microsoft Virtual Earth Web services –Amazon S3 –Geonames –DOTS web services Pearson Education © 2009

22 Web Services: Microsoft Virtual Earth Web services u Offer static map images u match addresses to the map, search for points of interest, integrate maps and imagery, return driving directions, and incorporate other location intelligence into your Web application. Pearson Education © 2009

23 Web Services: Microsoft Virtual Earth Web services Pearson Education © 2009

24 Web Services: Microsoft Virtual Earth Web services Pearson Education © 2009

25 Web Services: Microsoft Virtual Earth Web services Pearson Education © 2009

26 Web Services: Amazon S3 u Simple web services interface u Can be used to store and retrieve large amounts of data from anywhere on the web u Give developer access to the same highly scalable, reliable, fast, inexpensive data storage infrastructure Pearson Education © 2009

27 Web Services: Amazon S3 Pearson Education © 2009

28 Web Services: Geonames Pearson Education © 2009

29 Web Services: DOTS web services Pearson Education © 2009

30 Web Services: DOTS web services Pearson Education © 2009

Web Services u Use these technologies and standards: –XML –SOAP (Simple Object Access Protocol) – communication protocol for exchanging structured information over the Internet and uses a messages format based on XML –WSDL (Web Services Description Language) protocol – based on XML, used to describe and locate a Web service. –UDDI (Universal Discovery, Description and Integration) protocol – platform-independent, XML-based registry for businesses to list themselves on the Internet.

Web Services

33 Web Services Pearson Education © 2009 Web Service Web service directory (UDDI) XML Interface (WSDL) WSDL documents Client Application Client Application XML Interface (WSDL) Internet 2. Publish 1. Generate 3. Find 4. Invoke SOAP

SOAP request sent from customer to supplier SOAP response sent from supplier to customer

35 Web Services u The growing success of Web services is due to a number of factors, including those below. –Systems can interact with one another dynamically via standard Internet technologies. –Services are built once and reused many times. –Services can be implemented in any programming language. –Service consumers do not need to worry about firewalls because communication is carried over HTTP. –Systems can advertise their capabilities for other systems to use. Pearson Education © 2009

36 Distributed Database and DBMS u Distributed Database –A logically related collection of shared data (and description of this data), physically distributed over a computer network u Distributed DBMS –The software system that permits the management of the distributed database and makes the distribution transparent to user u Distributed Processing –A centralized database that can be accessed over a computer network Pearson Education © 2009

37 Distributed DBMS Pearson Education © 2009 Computer Network Site 1 Site 2 Site 3 DB

38 Characteristics of DDBMS u A collection of logically related shared data u Data split into a number of fragments u Fragments may be replicated u Fragments/replicas are allocated to sites u Sites are linked by a communication network u Data at each site is under control of a DBMS u DBMS at each site can handle local applications autonomously u Each DBMS participates in at least one global application Pearson Education © 2009

39 Data Warehousing u A consolidated/integrated view of corporate data drawn from disparate operational data sources and a range of end-user access tools capable of supporting simple to highly complex queries to support decision making Pearson Education © 2009

40 Data Warehousing Architecture Pearson Education © 2009 Warehouse Manager Load Manager Query Manager Operational Data Source 1 Archive/Back up Data Operational Data Source 2 Operational Data Source 3 Operational Data Source 4 Metadata Detailed Data Lightly Summarized Data Highly Summarized Data Reporting, query, application development and EIS tools OLAP tools Data Mining tools End-user Access Tools