Documente Academic
Documente Profesional
Documente Cultură
Environment
Client/Server Systems
Networked
computing model
Processes distributed between clients and
servers
Client Workstation (usually a PC) that
requests and uses a service
Server Computer (PC/mini/mainframe)
that provides a service
For DBMS, server is a database server
2
Logic
Input keyboard/mouse
Output monitor/printer
Processing
Logic
I/O processing
Business rules
Data management
Storage
Logic
GUI Interface
Procedures, functions,
programs
DBMS activities
Data storage/retrieval
Client/Server Architectures
File
Server Architecture
Database
Client does
extensive processing
Server Architecture
Three-tier Architecture
FAT CLIENT
approach
Client is responsible for
I/O processing logic
Some business rules logic
Server
Advantages of
Stored Procedures
Compiled SQL statements
Reduced network traffic
Improved security
Improved data integrity
Thinner clients
8
Thinn
er
client
s
DBMS only
on server
9
Three-Tier Architectures
Three
layers:
Client
GUI interface
(I/O processing)
Browser
Application server
Business rules
Web Server
Database server
Data storage
DBMS
Thin
Client
PC
Three-tier architecture
Thinnest
clients
Business rules on
separate server
DBMS only on
DB server
11
Advantages of Three-Tier
Architectures
Scalability
Technological
flexibility
Long-term cost reduction
Better match of systems to business needs
Improved customer service
Competitive advantage
Reduced risk
12
Challenges of Three-tier
Architectures
High
short-term costs
Tools and training
Experience
Incompatible standards
Lack of compatible end-user tools
13
Application Partitioning
Placing
Parallel Computer
Architectures
Tightly
Coupled
Loosely
Coupled
Parallel query
18
Middleware
Software
RPC
Types of Middleware
Message-Oriented
Middleware (MOM)
Publish/Subscribe
push technology server sends information to client when available
Object
SQL-oriented
Data Access
20
Database Middleware
ODBC
OLE-DB
Microsoft enhancement of ODBC
JDBC
Client/Server Security
Network
22
Query-by-Example (QBE)
Direct-manipulation
database language
Graphical
approach
Available in MS Access
MS Access translates QBE to SQL and vice
versa
Useful for end-user database programming
Good for ad hoc processing and prototyping
23
QBE view of
a 2-table join
query
Equivalent
query in SQL
24
Simple processes
Foundation of MS Access
25
Required parameters:
ODBC driver
Back-end server name
Database name
User id and password
Additional information:
Data source name (DSN)
Windows client computer name
Client application programs executable name
Java Database Connectivity (JDBC) is similar to ODBC built specifically for Java applications
26
ODBC Architecture
27