Lecture - 1: The Database Environment
Lecture - 1: The Database Environment
• File-Sharing Database
• Distributed Database
• Multi-Database
• Parallel Databases
TELEPROCESSING DATABASE
Micro terminal Micro terminal Micro terminal
Phone
• Dumb terminals (just monitors)
communication lines
are micro terminals
OSTP
OSDB
• Communication lines are phone
lines
DB database
• Screen formatting are transmitted
File-Sharing Database
• Aps and DBMS on micros clients
(PCs) AP1 AP2 AP3
Clients
• File-Server on micro server DBMS DBMS
• Clients and file-server communicate OSNET OSNET
via LAN
Clients and file server
• High traffic on LAN. So, files must be connected via LAN
sent to DBMS on clients for processing
OSNET Micro
• Extensive lock contention for extended server
OSDB
periods of time for the same request
• Good for extensive query processing
for downloaded snapshot data DB
Client-Server Database - Basic
- The client requests services from a server that performs the required
services and returns the results to the client.
• Application Programs run on the client PCs
• DBMS playing its role on a server. AP1 AP2 AP3
OSNET OSNET
• Multiple servers allowed without
LAN
data replication
OSNET
• Clients and database-server Micro(s) or
DBMS
Mainframe
communicate via LAN OSDB
• less traffic on LAN and less lock
Database
contention than with file-server DB
Client-Server Database: with Caching
• DBMS on server and clients DBMS for
queries
• Database-server is primary update site update
AP1 AP2 AP3
• Downloaded queries are cached on micros
clients DBMS DBMS
OSNET OSNET
• Cached queries are updated
incrementally
LAN
• Less traffic on LAN than with basic DB DB
client-server database because the OSNET
micro(s) or
initial query result is only downloaded DBMS
mainframe
• Less lock contention than with basic OSDB
DBMS
client-server database for same reason for sit
updat
e Data base
DB
Two-tier client-server Architecture
• User Interface Programs and Application Programs run on the client side
• Interface Programs called ODBC (Open Database Connectivity):
- Provides an Application program interface (API) allow client programs to
call the DBMS.
- Most DBMS vendors provide ODBC drivers.
application
program
ODBC
Interface
Three-tier client-server Architecture
• Common for Web applications (Web applications server)
• Intermediate Layer called Application Server or Web Server
• stores the web connectivity software to access the right amount of data from the
database server
• acts like a channel for sending partially processed data between the database server and
the client.
• Three-tier Additional Features- Security:
• encrypt the data at the server before transmission
• decrypt data at the client
Distributed Database
• One database distributed on multi storage AP1 AP2 AP3
micros(s) or
• APs and DDBMS on multiple micros DDBMS DDBMS mainframes
OSNET&DB OSNET&DB
Communication via LAN or WAN
network
• Fragmentation and replication are
allowed and performed in transparence external external external
mnner
conceptual
• Data replication improves query
processing internal
P processor
M memory
disk
Parallel Databases - Shared Disk
• processors share disk via interconnection
P network
M
• memory bus not a bottleneck
M P
• fault tolerance wrt. processor or memory failure
M P • scales better than shared memory
• interconnection network to disk subsystem is a
M P
bottleneck
• used in Oracle DB
Parallel Databases - Shared Nothing
M P