Chapter 1 Database Access from Client Applications.

Slides:



Advertisements
Similar presentations
Database Systems: Design, Implementation, and Management
Advertisements

Database System Concepts and Architecture
Database Architectures and the Web
Transaction.
MIS 385/MBA 664 Systems Implementation with DBMS/ Database Management Dave Salisbury ( )
Chapter 13 (Web): Distributed Databases
Chapter 12 (Online): Distributed Databases
1 Minggu 12, Pertemuan 23 Introduction to Distributed DBMS (Chapter , 22.6, 3rd ed.) Matakuliah: T0206-Sistem Basisdata Tahun: 2005 Versi: 1.0/0.0.
Distributed Databases Logical next step in geographically dispersed organisations goal is to provide location transparency starting point = a set of decentralised.
Session – 6 DISTRIBUTED DATABASE ARCHITECTURE Matakuliah: M0184 / Pengolahan Data Distribusi Tahun: 2005 Versi:
Distributed Database Management Systems
DISTRIBUTED DATABASE. Centralized & Distributed Database  Single site database – centralized database –A database is located at a single site or distributed.
Chapter 9 : Distributed Database.
Overview Distributed vs. decentralized Why distributed databases
1 © Prentice Hall, 2002 Chapter 13: Distributed Databases Modern Database Management 6 th Edition Jeffrey A. Hoffer, Mary B. Prescott, Fred R. McFadden.
Chapter 12 Distributed Database Management Systems
Chapter 13 (Web): Distributed Databases
Definition of terms Definition of terms Explain business conditions driving distributed databases Explain business conditions driving distributed databases.
DISTRIBUTED DATABASE MANAGEMENT SYSTEM CHAPTER 07.
1 © Prentice Hall, 2002 The Client/Server Database Environment.
DATABASE MANAGEMENT SYSTEMS 2 ANGELITO I. CUNANAN JR.
Database Management Systems (DBMS)
Distributed Databases
Distributed Database and Replication. Distributed Database A logically interrelated collection of shared data and a description of this data physically.
Distributed Database The University of California Berkeley Extension Copyright © 2011 Patrick McDermott.
1 Distributed and Parallel Databases. 2 Distributed Databases Distributed Systems goal: –to offer local DB autonomy at geographically distributed locations.
IMS 4212: Distributed Databases 1 Dr. Lawrence West, Management Dept., University of Central Florida Distributed Databases Business needs.
1 © Prentice Hall, 2002 Chapter 8: The Client/Server Database Environment Modern Database Management 6 th Edition Jeffrey A. Hoffer, Mary B. Prescott,
MBA 664 Database Management Systems Dave Salisbury ( )
Database Design – Lecture 16
1 Chapter 13: Distributed Databases. Chapter 13 2 Definitions Distributed Database: A single logical database that is spread physically across computers.
Lecture 11 Distributed Databases and Cloud computing
Massively Distributed Database Systems - Distributed DBS Spring 2014 Ki-Joune Li Pusan National University.
Lecture 5: Sun: 1/5/ Distributed Algorithms - Distributed Databases Lecturer/ Kawther Abas CS- 492 : Distributed system &
Session-8 Data Management for Decision Support
10 1 Chapter 10 Distributed Database Management Systems Database Systems: Design, Implementation, and Management, Sixth Edition, Rob and Coronel.
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.
Distributed Database Systems Overview
G063 - Distributed Databases. Learning Objectives: By the end of this topic you should be able to: explain how databases may be stored in more than one.
10 1 Chapter 10 Distributed Database Management Systems Database Systems: Design, Implementation, and Management, Sixth Edition, Rob and Coronel.
Oracle's Distributed Database Bora Yasa. Definition A Distributed Database is a set of databases stored on multiple computers at different locations and.
Kjell Orsborn UU - DIS - UDBL DATABASE SYSTEMS - 10p Course No. 2AD235 Spring 2002 A second course on development of database systems Kjell.
Distributed Databases
ASMA AHMAD 28 TH APRIL, 2011 Database Systems Distributed Databases I.
1 Distributed Databases BUAD/American University Distributed Databases.
Databases Illuminated
INTRODUCTION TO DBS Database: a collection of data describing the activities of one or more related organizations DBMS: software designed to assist in.
Distributed database system
Topic Distributed DBMS Database Management Systems Fall 2012 Presented by: Osama Ben Omran.
MBA 664 Database Management Systems Dave Salisbury ( )
© 2011 Pearson Education, Inc. Publishing as Prentice Hall 1 Chapter 12 (Online): Distributed Databases Modern Database Management 10 th Edition Jeffrey.
Chapter 12 Distributed Data Bases. Learning Objectives What a distributed database management system (DDBMS) is and what its components are How database.
Introduction to Distributed Databases Yiwei Wu. Introduction A distributed database is a database in which portions of the database are stored on multiple.
Distributed Database Management Systems. Reading Textbook: Ch. 1, Ch. 3 Textbook: Ch. 1, Ch. 3 For next class: Ch. 4 For next class: Ch. 4 FarkasCSCE.
1 Lecture 10: Distributed Databases – Replication and Fragmentation Advanced Databases CG096 Nick Rossiter.
1 Lecture 8 Distributed Data Bases: Replication and Fragmentation.
1 Chapter 22 Distributed DBMS Concepts and Design CS 157B Edward Chen.
1 Information Retrieval and Use De-normalisation and Distributed database systems Geoff Leese September 2008, revised October 2009.
© 2009 Pearson Education, Inc. Publishing as Prentice Hall 1 Lecture 11 Distributed Databases Modern Database Management 9 th Edition Jeffrey A. Hoffer,
DISTRIBUTED DATABASES AND DDBMS. Learning Objectives  Describe various DDBMS implementations  Explain how database design affects the DDBMS environment.
Distributed Databases
Distributed Databases
1 Chapter 22 Distributed DBMSs - Concepts and Design Simplified Transparencies © Pearson Education Limited 1995, 2005.
LM 9. Distributed Database Dr. Lei Li 1. Note: The content of the slides including figures are mainly based on a publicly available textbook chapter:
The Client/Server Database Environment
Distributed Databases
Introduction of Week 14 Return assignment 12-1
Presentation transcript:

Chapter 1 Database Access from Client Applications

Query by Example (QBE) n No official standard n First pass at SQL n Interactive querying or updating n Usability hierarchy n objects n functions/expressions n macros n VBA n API

Building Queries using QBE n Visual image of the table is used for writing queries. n Result is a dynaset n not a base table n dynamic or virtual set n may or may not be updateable n Joins (relationships) based on relationship view or created in query

Joins n Inner (normal) join n instructors and sections they teach n Outer join n all classes and scheduled sections n Self join n students and their advisors

Nested Queries n Use first query to compute lists or statistics necessary for second query n which students have any status with MIS 320? n which students have no status with MIS 320? n which sections have two or more students (with any status)?

Access 97 Query Types n Select n SQL n Total:  group by, aggregate functions n Action: create, delete, update, append n Crosstab n Top(n)

Client Applications n Code generators n Switchboard: main menu form tied to special table n or, make your own n removing extraneous items

Reports n Banded report design n report header n page header n group header [repeatable] n detail n group footer n page footer n report footer

Access as a Front End n Access as the file server, uses built-in JET engine n ODBC with JET, translates queries from Access to server SQL n SQL pass-through, query must be written for server SQL n ODBCdirect, an extension to JET

Embedded SQL n SQL commands in 3GL programs n more flexible, accessible interface n improve performance n improve database security n Host program  precompiler  Source code and expanded SQL  compiler  Object code  linker/editor  Executable code

Visual Basic for Applications (VBA) n Benefits n complex functionality n error handling n faster execution n maintenance n OLE automation n more programmatic control n easier to read n Event-driven n event occurs n event detected n response generated

Chapter 2 Distributed Databases

Distributed Database n “A single logical database that is spread physically across computers in multiple locations that are connected by a data communications network.” n conditions that encourage use of distributed databases: n distribution and autonomy of business units n data sharing n data communications costs and reliability

Distributed Database Environments n Homogeneous n autonomous n non-autonomous n Heterogeneous n systems n full functionality n partial multi-database n gateways

Homogeneous Distributed Database Environment n Data distributed across all nodes n Same DBMS at each location n All data managed by the distributed DBMS n One global schema

DDBMS Objectives n Location transparency n Local autonomy n Synchronous or asynchronous n Advantages: n increased reliability n local control n modular growth n lower communications costs n faster response

Options for Distributing a Database n Data replication n Horizontal partitioning n Vertical partitioning n Combinations of the above

Data Replication n Advantages n reliability n fast response n less complicated integrity routines n node decoupling n reduced network traffic at prime time n Disadvantages n storage requirements n complexity and cost of updating

More on Data Replication n Schemes n snapshot replication n near real-time replication n pull replication n Replication favored when n process requests are read-only n data are relatively static

Partitioning (H or V) n Advantages n efficiency n local optimization n security n ease of querying n Disadvantages n inconsistent access speeds n backup vulnerability

Comparison of Strategies

Distributed DBMS n Functions n distributed data dictionary n retrieval and processing locations n translate from one DBMS to another n data management functions such as security n consistency across locations

DDBMS Architecture n Each site: n local DBMS n local database n distributed DBMS n distributed data repository n communications controller

DDBMS Objectives n Location transparency n as if all data located at a single node n Replication transparency n Failure transparency n detect … reconfigure … recover n transaction manager maintains log and concurrency control scheme n two-phase commit protocol n Concurrency transparency n timestamping