css/417 introduction to database management systems workshop 4

53
CSS/417 Introduction to Database Management Systems Workshop 4

Upload: letitia-melton

Post on 13-Jan-2016

217 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: CSS/417 Introduction to Database Management Systems Workshop 4

CSS/417

Introduction to Database Management Systems

Workshop 4

Page 2: CSS/417 Introduction to Database Management Systems Workshop 4

CSS/417 Workshop 4 2

“Enterprise” DB Implementation Network Centric approach Some considerations

Security Integrity Concurrency

Four overall techniques: File server Client server (Inter/intra)net Teleprocessing

Page 3: CSS/417 Introduction to Database Management Systems Workshop 4

CSS/417 Workshop 4 3

File Server DB Implementation

Access .mdb fileMS Access program

Files/Records

Workstation Server

File server example

Page 4: CSS/417 Introduction to Database Management Systems Workshop 4

CSS/417 Workshop 4 4

Client/Server DB Implementation

OracleMS Access program

SQL Commands

Client Server

Result sets

Client/server example

Page 5: CSS/417 Introduction to Database Management Systems Workshop 4

CSS/417 Workshop 4 5

Client/Server DB Implementation

SQL ServerWeb Browser

Client Servers

Web Serverw/ASP

http SQL

Intranet example

ResultsWeb page

Page 6: CSS/417 Introduction to Database Management Systems Workshop 4

Typical Web Server

Page 340Figure 13-1 © 2000 Prentice Hall

Page 7: CSS/417 Introduction to Database Management Systems Workshop 4

CSS/417 Workshop 4 7

Middleware

Accessing the database server ODBC OLE DB ADO JDBC Etc.

Page 8: CSS/417 Introduction to Database Management Systems Workshop 4

CSS/417 Workshop 4 8

ODBC

Open Database Connectivity;DBMS-independent means for

processing relational database data ORACLE SYBASE INFORMIX

Page 342

Page 9: CSS/417 Introduction to Database Management Systems Workshop 4

CSS/417 Workshop 4 9

MiddlewareODBC Logical Architecture (middleware)

Client DB2

Oracle

SQL Server

ODBC

Page 10: CSS/417 Introduction to Database Management Systems Workshop 4

ODBC Physical Architecture

Figure 13-5 © 2000 Prentice Hall

Page 11: CSS/417 Introduction to Database Management Systems Workshop 4

CSS/417 Workshop 4 11

ODBC Terminology Data source the database, its

associated DBMS, operating system, and network platform

Driver manager intermediary between the application and DBMS drivers

Driver processes ODBC requests and submits SQL statements to a data source

Page 343

Page 12: CSS/417 Introduction to Database Management Systems Workshop 4

Role of ODBC Standard

Page 340Figure 13-2 © 2000 Prentice Hall

Page 13: CSS/417 Introduction to Database Management Systems Workshop 4

CSS/417 Workshop 4 13

ODBC Data Source Types File shared among database users System local to a single computer User only available to the user

who created it

Page 346

Page 14: CSS/417 Introduction to Database Management Systems Workshop 4

CSS/417 Workshop 4 14

ODBC

ODBC Tools ODBC administrator in control panel Establishes “data source” on the

client Linked tables in Access

Page 15: CSS/417 Introduction to Database Management Systems Workshop 4

CSS/417 Workshop 4 15

OLE DB

Object Linking and Embedding Database;

Provides an object-oriented interface to data of almost any type and used as an interface to ODBC and non-relational data

Page 348

Page 16: CSS/417 Introduction to Database Management Systems Workshop 4

CSS/417 Workshop 4 16

Object Terminology Abstraction a generalization of

something Method actions that an object

can perform Property a characteristic of a

recordset abstraction Collection object that contains a

group of other objectsPage 348

Page 17: CSS/417 Introduction to Database Management Systems Workshop 4

Role of OLE DB

Page 341Figure 13-3 © 2000 Prentice Hall

Page 18: CSS/417 Introduction to Database Management Systems Workshop 4

OLE DB Goals

Page 349Figure 13-10 © 2000 Prentice Hall

Page 19: CSS/417 Introduction to Database Management Systems Workshop 4

OLE DB Data Providers

Page 350Figure 13-11 © 2000 Prentice Hall

Page 20: CSS/417 Introduction to Database Management Systems Workshop 4

CSS/417 Workshop 4 20

ADO

Active Data Objects;an interface that enables

programmers in almost any language (including scripting) to access OLE DB functionality

Page 351

Page 21: CSS/417 Introduction to Database Management Systems Workshop 4

Role of ADO

Page 342 Figure 13-4 © 2000 Prentice Hall

Page 22: CSS/417 Introduction to Database Management Systems Workshop 4

ADO Object Model

Page 352Figure 13-14 © 2000 Prentice Hall

Page 23: CSS/417 Introduction to Database Management Systems Workshop 4

CSS/417 Workshop 4 23

Enterprise Database Processing Architectures

Teleprocessing Systems Client-Server Systems File-Sharing Systems Distributed Database Systems

Page 377

Page 24: CSS/417 Introduction to Database Management Systems Workshop 4

CSS/417 Workshop 4 24

Teleprocessing

“All processing is done by one computer and one CPU while users operate dumb terminals that transmit transactions to the centralized computer”

Typical of high volume, OLTP mainframe applications

Traditionally over private SNA network

Page 25: CSS/417 Introduction to Database Management Systems Workshop 4

Teleprocessing Architecture

Page 378Figure 14-1 © 2000 Prentice Hall

Page 26: CSS/417 Introduction to Database Management Systems Workshop 4

CSS/417 Workshop 4 26

Client-Server Systems

“clients process application programs while servers process the database”

Page 377

Page 27: CSS/417 Introduction to Database Management Systems Workshop 4

Client-Server Architecture

Page 379Figure 14-2 © 2000 Prentice Hall

Page 28: CSS/417 Introduction to Database Management Systems Workshop 4

CSS/417 Workshop 4 28

File-Sharing

“Distributes to the users’ computers not only the application programs but also the DBMS”

“Execution takes place on the client workstation”

Page 379

Page 29: CSS/417 Introduction to Database Management Systems Workshop 4

File Sharing Architecture

Page 380Figure 14-3 © 2000 Prentice Hall

Page 30: CSS/417 Introduction to Database Management Systems Workshop 4

CSS/417 Workshop 4 30

Distributed DatabaseSystems

“Database itself is distributed among several computers”

Rare in commercial practice Often implemented, if at all, via

replication/synchronization

Page 31: CSS/417 Introduction to Database Management Systems Workshop 4

Distributed Database Architecture

Page 381Figure 14-4 © 2000 Prentice Hall

Page 32: CSS/417 Introduction to Database Management Systems Workshop 4

CSS/417 Workshop 4 32

Types of Distributed Databases

Vertical fragment

Horizontal fragment

Page 381

Page 33: CSS/417 Introduction to Database Management Systems Workshop 4

CSS/417 Workshop 4 33

Sharing Enterprise Data Some approaches to sharing

Downloading to user workstations File server Client server

Data Warehouses Data Marts (often on NT Server)

Analysis tools: OLAP, ROLAP Data administration

Page 34: CSS/417 Introduction to Database Management Systems Workshop 4

CSS/417 Workshop 4 34

Downloading Data

App2App1

GatewayOLTPDB

ExtractedFiles

File Server

DBMS DBMS

Page 35: CSS/417 Introduction to Database Management Systems Workshop 4

CSS/417 Workshop 4 35

Downloading Data

App2App1

Gateway +DBMS

OLTPDB

DatabaseExtracts

Client Server

ODBC ODBC

Page 36: CSS/417 Introduction to Database Management Systems Workshop 4

CSS/417 Workshop 4 36

Download Problems

Coordination Consistency Access Control

Page 385

Page 37: CSS/417 Introduction to Database Management Systems Workshop 4

CSS/417 Workshop 4 37

Downloading Data

“Can (should) be used for query and reporting purposes only”

Page 383

Page 38: CSS/417 Introduction to Database Management Systems Workshop 4

CSS/417 Workshop 4 38

Data Warehouses

Store of enterprise data for decision making

Components Data extract tools (ex: SQL Server DTS) Metadata (Repository) DBMS Analytical Tools (Brio, Cognos, etc.)

Pre-aggregated data Star schemas

Page 39: CSS/417 Introduction to Database Management Systems Workshop 4

Data Warehouse

Page 395Figure 14-18 © 2000 Prentice Hall

Page 40: CSS/417 Introduction to Database Management Systems Workshop 4

CSS/417 Workshop 4 40

Data WarehousesComponents

Dev ToolsCognosBrio

ExtractsWarehouse SourceData

Page 41: CSS/417 Introduction to Database Management Systems Workshop 4

CSS/417 Workshop 4 41

Typical Architecture For A Data Warehouse

Page 42: CSS/417 Introduction to Database Management Systems Workshop 4

CSS/417 Workshop 4 42

Typical Architecture For A Complex Data Warehouse

Page 43: CSS/417 Introduction to Database Management Systems Workshop 4

Data Warehouse Requirements

Page 397Figure 14-20 © 2000 Prentice Hall

Page 44: CSS/417 Introduction to Database Management Systems Workshop 4

CSS/417 Workshop 4 44

Data Warehouse Challenges Inconsistent Data Tool Integration Missing Warehouse Data

Management Tools Ad Hoc Nature of Requirements Caution: can be very expensive to

implementPage 397

Page 45: CSS/417 Introduction to Database Management Systems Workshop 4

CSS/417 Workshop 4 45

Data Mart

“Facility akin to a data warehouse but for a much smaller domain”

Page 401

Page 46: CSS/417 Introduction to Database Management Systems Workshop 4

CSS/417 Workshop 4 46

On Line Analytic Processing

OLAP; data is viewed in the form of a table or cube

Page 388

Page 47: CSS/417 Introduction to Database Management Systems Workshop 4

OLAP Table

Page 389Figure 14-11 © 2000 Prentice Hall

Page 48: CSS/417 Introduction to Database Management Systems Workshop 4

OLAP Cube

Page 390Figure 14-12 © 2000 Prentice Hall

Page 49: CSS/417 Introduction to Database Management Systems Workshop 4

OLAP Terminology

Page 390Figure 14-14 © 2000 Prentice Hall

Page 50: CSS/417 Introduction to Database Management Systems Workshop 4

CSS/417 Workshop 4 50

Emerging Technologies

New tools are emerging which: Build cubes on demand directly

from the operational data store Provide OLAP to end users Probably best for less intensive

queries

Page 51: CSS/417 Introduction to Database Management Systems Workshop 4

CSS/417 Workshop 4 51

Data Administration

“in some ways, data administration is to data what the controller is to money”

Page 402

Page 52: CSS/417 Introduction to Database Management Systems Workshop 4

Data Administration Challenges

Page 403Figure 14-25 © 2000 Prentice Hall

Page 53: CSS/417 Introduction to Database Management Systems Workshop 4

Data Administration Functions

Page 404

Figure 14-26

© 2000 Prentice Hall