Chapter 08 lecture notes for database systems., Lecture notes of Database Programming

Database systems lecture notes full.

Typology: Lecture notes

2016/2017

Uploaded on 11/12/2017

usama-ayub
usama-ayub šŸ‡µšŸ‡°

4.5

(2)

4 documents

1 / 42

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
Ā© 2013 Pearson Education, Inc. ī˜—Publishing as Prentice
Hall 1
CHAPTER 8:
CHAPTER 8:
DATABASE APPLICATION
DATABASE APPLICATION
DEVELOPMENT
DEVELOPMENT
Modern Database Management
11th Edition
Jeffrey A. Hoffer, V. Ramesh,
Heikki Topi
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e
pf1f
pf20
pf21
pf22
pf23
pf24
pf25
pf26
pf27
pf28
pf29
pf2a

Partial preview of the text

Download Chapter 08 lecture notes for database systems. and more Lecture notes Database Programming in PDF only on Docsity!

Ā© 2013 Pearson Education, Inc. Publishing as Prentice Hall 1

CHAPTER 8: CHAPTER 8:

DATABASE APPLICATION DATABASE APPLICATION

DEVELOPMENT DEVELOPMENT

Modern Database Management

th

Edition

Jeffrey A. Hoffer, V. Ramesh, Heikki Topi

Chapter 8 © 2013 Pearson Education, Inc. Publishing as Prentice Hall© 2013 Pearson Education, Inc. Publishing as Prentice Hall

OBJECTIVES OBJECTIVES

ļƒ’ (^) Define terms ļƒ’ (^) Explain three components of client/server systems: presentation, processing, and storage ļƒ’ (^) Distinguish between two-tier and three-tier architectures ļƒ’ (^) Describe how to connect to databases in 2-tier systems using VB.NET and Java ļƒ’ (^) Describe key components and information flow in Web applications ļƒ’ (^) Describe how to connect to databases in 3-tier applications using JSP, PHP, and ASP .NET ļƒ’ (^) Explain the purpose of XML ļƒ’ (^) See how XQuery can be used to query XML documents ļƒ’ (^) Explain how XML fosters Web services and SOAs

Chapter 8 © 2013 Pearson Education, Inc. Publishing as Prentice Hall© 2013 Pearson Education, Inc. Publishing as Prentice Hall

APPLICATION LOGIC IN C/S APPLICATION LOGIC IN C/S

SYSTEMS SYSTEMS

GUI Interface Procedures, functions, programs DBMS activities Processing Logic Processing Logic  (^) I/O processingI/O processing  (^) Business rulesBusiness rules  (^) Data managementData management Storage Logic Storage Logic  (^) Data storage/retrievalData storage/retrieval Presentation Logic Presentation Logic  (^) Input–keyboard/mouseInput–keyboard/mouse  (^) Output–monitor/printerOutput–monitor/printer

Chapter 8 © 2013 Pearson Education, Inc. Publishing as Prentice Hall© 2013 Pearson Education, Inc. Publishing as Prentice Hall

APPLICATION PARTITIONING APPLICATION PARTITIONING

ļƒ’

Placing portions of the application

code in different locations (client

vs. server) after it is written

ļƒ’

Advantages

Improved performance

Improved interoperability

Balanced workloads

Chapter 8 © 2013 Pearson Education, Inc. Publishing as Prentice Hall© 2013 Pearson Education, Inc. Publishing as Prentice Hall FIGURE 8-2 COMMON LOGIC FIGURE 8-2 COMMON LOGIC DISTRIBUTIONS DISTRIBUTIONS b) Three-tier and n -tier client-server environments Processing logic will be at application server or Web server.

Chapter 8 © 2013 Pearson Education, Inc. Publishing as Prentice Hall© 2013 Pearson Education, Inc. Publishing as Prentice Hall

TWO-TIER DATABASE SERVER TWO-TIER DATABASE SERVER

ARCHITECTURES ARCHITECTURES

ļƒ’ Client workstation is responsible for ļƒ’ (^) Presentation logic

Data processing logic

Business rules logic ļƒ’ Server performs all data storage, access, and processing ļƒ’ (^) Typically called a database server  DBMS is only on serverDBMS is only on server

Chapter 8 © 2013 Pearson Education, Inc. Publishing as Prentice Hall© 2013 Pearson Education, Inc. Publishing as Prentice Hall

CHARACTERISTICS OF TWO-TIER CHARACTERISTICS OF TWO-TIER

CLIENT/SERVER SYSTEMS CLIENT/SERVER SYSTEMS

ļƒ’ Departmental in scope (few users) ļƒ’ Not mission-critical ļƒ’ Low transaction volumes ļƒ’ Common programming languages:

Java, VB .NET, C# ļƒ’ Interface database via middleware, APIs

Chapter 8 © 2013 Pearson Education, Inc. Publishing as Prentice Hall© 2013 Pearson Education, Inc. Publishing as Prentice Hall

MIDDLEWARE AND APIS MIDDLEWARE AND APIS

ļƒ’ (^) Middleware – software that allows an application to interoperate with other software without requiring user to understand and code low-level operations ļƒ’ (^) Application Program Interface (API) – routines that an application uses to direct the performance of procedures by the computer’s operating system ļƒ’ (^) Common database APIs – ODBC, ADO .NET, JDBC

Chapter 8 © 2013 Pearson Education, Inc. Publishing as Prentice Hall© 2013 Pearson Education, Inc. Publishing as Prentice Hall

Chapter 8 © 2013 Pearson Education, Inc. Publishing as Prentice Hall© 2013 Pearson Education, Inc. Publishing as Prentice Hall

THREE-TIER ARCHITECTURES THREE-TIER ARCHITECTURES

Thin Client

 (^) PC just for user interface and a little application processing. Limited or no data storage (sometimes no hard drive) GUI interface (I/O processing) Browser Business rules Web Server Data storage DBMS

Client Client

Application server Application server

Database server Database server

Chapter 8 © 2013 Pearson Education, Inc. Publishing as Prentice Hall© 2013 Pearson Education, Inc. Publishing as Prentice Hall

THIN CLIENT THIN CLIENT

An application where the client (PC)

accessing the application primarily

provides the user interfaces and some

application processing, usually with no

or limited local data storage.

Usually, thin client application is a Web

browser and the 3-tier architecture

involves a Web application.

Figure 8-7 A database-enabled intranet/Internet environment Chapter 8 © 2013 Pearson Education, Inc. Publishing as Prentice Hall© 2013 Pearson Education, Inc. Publishing as Prentice Hall

Chapter 8 © 2013 Pearson Education, Inc. Publishing as Prentice Hall© 2013 Pearson Education, Inc. Publishing as Prentice Hall

LANGUAGES FOR CREATING WEB LANGUAGES FOR CREATING WEB

ļƒ’ PAGES^ PAGES

Hypertext Markup Language (HTML) ļƒ’ (^) Markup language specifically for Web pages ļƒ’ (^) Standard Generalized Markup Language (SGML) ļƒ’ (^) Markup language standard ļƒ’ (^) Extensible Markup Language (XML) ļƒ’ (^) Markup language allowing customized tags ļƒ’ (^) XHTML ļƒ’ (^) XML-compliant extension of HTML ļƒ’ (^) JavaScript/VBScript ļƒ’ (^) Scripting languages that enable interactivity in HTML documents ļƒ’ (^) Cascading Style Sheets (CSS) ļƒ’ (^) Control appearance of Web elements in an HML document ļƒ’ (^) XSL and XSLT ļƒ’ (^) XMS style sheet and transformation to HTML Standards and Web conventions established by World Wide Web World Wide Web Consortium (W3C) Consortium (W3C)

Chapter 8 © 2013 Pearson Education, Inc. Publishing as Prentice Hall© 2013 Pearson Education, Inc. Publishing as Prentice Hall

PROCESSING IN 3-TIER PROCESSING IN 3-TIER

APPLICATIONS APPLICATIONS

Static page requests

ļƒ’ (^) .htm or .html requests handled by the Web server

ļƒ’ Dynamic page requests

ļƒ’ (^) .jsp, .aspx, and .php requests are routed to the application server ļƒ’ (^) Server-side processing by JSP servlet, ASP .NET application, ColdFusion, or PHP ļƒ’ (^) Database access via JDBC, ADO .NET, or other database middleware