SlideShare a Scribd company logo
1 of 25
1
© Prentice Hall, 2002
Chapter 10:Chapter 10:
The Internet DatabaseThe Internet Database
EnvironmentEnvironment
Modern Database Management
6th
Edition
Jeffrey A. Hoffer, Mary B. Prescott, Fred R.
McFadden
2Chapter 10
© Prentice Hall, 2002
Figure 10-1: Database-enabled intranet-internet environment
3Chapter 10
© Prentice Hall, 2002
Business on the InternetBusiness on the Internet
 Electronic Business (e-business)
– Development of integrated relationship with customers
and suppliers via the Internet
– Business-to-Consumer (B2C) – retail
– Business-to-Business (B2B) – interaction with
suppliers and vendors
 Electronic Commerce (e-commerce)
– Business transactions, including:
 Order processing/fulfillment
 Customer relations
 Electronic data interchange (EDI)
 Bill payments
4Chapter 10
© Prentice Hall, 2002
Web-Related TermsWeb-Related Terms
 World Wide Web (WWW)
– The total set of interlinked hypertext documents residing on Web
servers worldwide
 Browser
– Software that displays HTML documents and allows users to
access files and software related to HTML documents
 Web Server
– Software that responds to requests from browsers and transmits
HTML documents to browsers
 Web pages – HTML documents
– Static Web pages – content established at development time
Dynamic Web pages – content dynamically generated, usually
by obtaining data from database
5Chapter 10
© Prentice Hall, 2002
Communications TechnologyCommunications Technology
 IP Address
– 4 numbers that identify a node on the internet
– E.g. 131.247.152.18
 Hypertext Transfer Protocol (HTTP)
– Communication protocol used to transfer pages from Web server
to browser
– HTTPS is a more secure version
 Uniform Resource Locator (URL)
– Mnemonic Web address corresponding with IP address
– Also includes folder location and html file name
Figure 10-2:
Typical URL
6Chapter 10
© Prentice Hall, 2002
Internet-Related LanguagesInternet-Related Languages
 Hypertext Markup Language (HTML)Hypertext Markup Language (HTML)
– Markup language specifically for Web pages
 Standard Generalized Markup Language (SGML)Standard Generalized Markup Language (SGML)
– Markup language standard
 Extensible Markup Language (XML)Extensible Markup Language (XML)
– Markup language allowing customized tags
 XHTMLXHTML
– XML-compliant extension of HTML
 JavaJava
– Object-oriented programming language for applets
 JavaScript/VBScriptJavaScript/VBScript
– Scripting languages that enable interactivity in HTML documents
 Cascading Style Sheets (CSS)Cascading Style Sheets (CSS)
– Control appearance of Web elements in an HML document
Standards and Web
conventions
established by
World Wide WebWorld Wide Web
Consortium (W3C)Consortium (W3C)
7Chapter 10
© Prentice Hall, 2002
Web ServersWeb Servers
 Provide HTTP service
 Passing plain text via TCP connection
 Serve many clients at once
– Therefore, multithreaded and multiprocessed
 Load balancing approaches:
– Domain Name Server (DNS) balancing
 One DNS = multiple IP addresses
– Software/hardware balancing
 Request at one IP address is distributed to multiple servers
– Reverse proxy
 Intercept client request and cache response
8Chapter 10
© Prentice Hall, 2002
Server-Side ExtensionsServer-Side Extensions
Programs that interact directly with Web
servers to handle requests
e.g. database-request handling middleware
Figure 10-3: Web-to-database middleware
9Chapter 10
© Prentice Hall, 2002
Client-Side ExtensionsClient-Side Extensions
 Add functionality to the browser
 Plug-ins
– hardware./software modules that extend browser
capabilities by adding features (e.g. encryption,
animation, wireless access)
 ActiveX
– Microsoft COM/OLE components that allow data
manipulation inside the browser
 Cookies
– Block of data stored at client by Web server for later
use
10Chapter 10
© Prentice Hall, 2002
Web Server InterfacesWeb Server Interfaces
 Common Gateway Interface (CGI)
– Specify transfer of information between Web server and CGI
program
– Performance not very good
– Security risks
 Application Program Interface (API)
– More efficient than CGI
– Shared as dynamic link libraries (DLLs)
 Java Servlets
– Like applets, but stored at server
– Cross-platform compatible
– More efficient than CGI
11Chapter 10
© Prentice Hall, 2002
Web-to-Database ToolsWeb-to-Database Tools
 Active Server Pages (ASP)
– Microsoft server-side scripting language
– Generates dynamic Web pages
– Interfaces to databases in MS Windows-based Web servers
 Cold-Fusion
– Uses special server-side markup language CFML
– Modeled after HTML
– Interfaces to databases
 Embedded SQL
– SQL embedded in 3GL programs
– Provides flexible interface
– Improves performance
– Improves database security
12Chapter 10
© Prentice Hall, 2002
Figure 10-4: A
global.asa file
for an ASP
application
ASP applications include HTML extensions and additional
scripting (usually in VBScript, or in JavaScript)
ASP code embedded in <% %> tags are executed on the server,
instead of the client. This is how dynamic Web pages can be created
13Chapter 10
© Prentice Hall, 2002
Sample ASP CodeSample ASP Code (from Figure 10-5 Box E and F)(from Figure 10-5 Box E and F)
<%
REM Get list of Finishes
strSQL = “SELECT Product_Finish FROM PRODUCT_t GROUP BY Product_Finish;”
Set rsRes = con.Execute(strSQL)
%>
<TABLE>
<%
REM Display the list of finishes
While not rsRes.EOF
%>
<TR>
<TD align=center valign=top>
<%=rsRes(“Product Finish”>)%></TD>
<TD>
<FORM method=post action=“line.asp”>
<INPUT type=Hidden name=line
value=“<%=rsRes(“Product_Finish”))%>
<INPUT type=submit Value=GO!>
</TD>
</TR>
<%
rsRes.MoveNext
Wend
%>
</TABLE>
14Chapter 10
© Prentice Hall, 2002
Sample ASP CodeSample ASP Code (from Figure 10-5 Box E and F)(from Figure 10-5 Box E and F)
<%
REM Get list of Finishes
strSQL = “SELECT Product_Finish FROM PRODUCT_t GROUP BY Product_Finish;”
Set rsRes = con.Execute(strSQL)
%>
<TABLE>
<%
REM Display the list of finishes
While not rsRes.EOF
%>
<TR>
<TD align=center valign=top>
<%=rsRes(“Product Finish”>)%></TD>
<TD>
<FORM method=post action=“line.asp”>
<INPUT type=Hidden name=line
value=“<%=rsRes(“Product_Finish”))%>
<INPUT type=submit Value=GO!>
</TD>
</TR>
<%
rsRes.MoveNext
Wend
%>
</TABLE>
Code is within the <% %>
tags are executed on the
server, not the client…these
are interacting with the
database and creating
dynamic Web content
15Chapter 10
© Prentice Hall, 2002
Sample ASP CodeSample ASP Code (from Figure 10-5 Box E and F)(from Figure 10-5 Box E and F)
<%
REM Get list of Finishes
strSQL = “SELECT Product_Finish FROM PRODUCT_t GROUP BY Product_Finish;”
Set rsRes = con.Execute(strSQL)
%>
<TABLE>
<%
REM Display the list of finishes
While not rsRes.EOF
%>
<TR>
<TD align=center valign=top>
<%=rsRes(“Product Finish”>)%></TD>
<TD>
<FORM method=post action=“line.asp”>
<INPUT type=Hidden name=line
value=“<%=rsRes(“Product_Finish”))%>
<INPUT type=submit Value=GO!>
</TD>
</TR>
<%
rsRes.MoveNext
Wend
%>
</TABLE>
These lines are executing a query on the database server
using a middleware called Active Data Objects (ADO).
The concon variable is a connection to the database, which
was established in the code of Box C. The rsResrsRes variable
contains the result set of the query (the rows returned
from the query)
16Chapter 10
© Prentice Hall, 2002
Sample ASP CodeSample ASP Code (from Figure 10-5 Box E and F)(from Figure 10-5 Box E and F)
<%
REM Get list of Finishes
strSQL = “SELECT Product_Finish FROM PRODUCT_t GROUP BY Product_Finish;”
Set rsRes = con.Execute(strSQL)
%>
<TABLE>
<%
REM Display the list of finishes
While not rsRes.EOF
%>
<TR>
<TD align=center valign=top>
<%=rsRes(“Product Finish”>)%></TD>
<TD>
<FORM method=post action=“line.asp”>
<INPUT type=Hidden name=line
value=“<%=rsRes(“Product_Finish”))%>
<INPUT type=submit Value=GO!>
</TD>
</TR>
<%
rsRes.MoveNext
Wend
%>
</TABLE>
These lines of code cause the ASP application to loop
through the rows returned by the query until they reach
the end
17Chapter 10
© Prentice Hall, 2002
Sample ASP CodeSample ASP Code (from Figure 10-5 Box E and F)(from Figure 10-5 Box E and F)
<%
REM Get list of Finishes
strSQL = “SELECT Product_Finish FROM PRODUCT_t GROUP BY Product_Finish;”
Set rsRes = con.Execute(strSQL)
%>
<TABLE>
<%
REM Display the list of finishes
While not rsRes.EOF
%>
<TR>
<TD align=center valign=top>
<%=rsRes(“Product Finish”>)%></TD>
<TD>
<FORM method=post action=“line.asp”>
<INPUT type=Hidden name=line
value=“<%=rsRes(“Product_Finish”))%>
<INPUT type=submit Value=GO!>
</TD>
</TR>
<%
rsRes.MoveNext
Wend
%>
</TABLE>
These lines of code are retrieving the values of the
specified field from the current row of the query result
18Chapter 10
© Prentice Hall, 2002
Sample ASP CodeSample ASP Code (from Figure 10-5 Box E and F)(from Figure 10-5 Box E and F)
<%
REM Get list of Finishes
strSQL = “SELECT Product_Finish FROM PRODUCT_t GROUP BY Product_Finish;”
Set rsRes = con.Execute(strSQL)
%>
<TABLE>
<%
REM Display the list of finishes
While not rsRes.EOF
%>
<TR>
<TD align=center valign=top>
<%=rsRes(“Product Finish”>)%></TD>
<TD>
<FORM method=post action=“line.asp”>
<INPUT type=Hidden name=line
value=“<%=rsRes(“Product_Finish”))%>
<INPUT type=submit Value=GO!>
</TD>
</TR>
<%
rsRes.MoveNext
Wend
%>
</TABLE>
The Web page is being dynamically created, with one
HTML table row for each record obtained from the query.
Also, each Web table row includes a button that will link
to another ASP page
19Chapter 10
© Prentice Hall, 2002
Figure 10-8: Processing an embedded SQL program
Embedded SQL
statement begins
with EXEC SQL
Precompiler
translates
embedded SQL
into host program
language
Compiler and
linker generate
executable code
20Chapter 10
© Prentice Hall, 2002
Managing Website DataManaging Website Data
Web Security Issues
– Prevent unauthorized access and malicious
destruction
Privacy Issues
– Protect users’ privacy rights
Internet Technology Rate-of-Change Issues
– Deal with rapid advances in technology
21Chapter 10
© Prentice Hall, 2002
Website SecurityWebsite Security
 Planning for Web Security
– Risk assessment: nature, likelihood, impact, and
motivation of security risks
 Network Level Security
– Web server and DB server on separate LAN from other
business systems
– Minimize sharing of hard disks among network servers
– Regular monitoring of network and firewall logs
– Install probe-monitor software
22Chapter 10
© Prentice Hall, 2002
Website Security (continued)Website Security (continued)
Operating System Level Security
– Patch all known OS vulnerabilities
– Install anti-virus software with boot-time, file
download time, and email reception time virus
detection
– Monitor server logs for unauthorized activity
– Disable unrequired services to reduce risk of
unauthorized access
23Chapter 10
© Prentice Hall, 2002
Web Security (continued)Web Security (continued)
Web Server Security
– Restrict number of users on Web server
– Restrict access (minimize number of open
ports)
 http and https only, if possible
– Remove unneeded programs
 Restrict CGI scripts to one subdirectory
– For Unix, only install minimum software for
Web server
24Chapter 10
© Prentice Hall, 2002
Website Security (continued)Website Security (continued)
 FirewallFirewall – hardware/software security component
that limits external access to company’s data
 Proxy serverProxy server – firewall component that manages
Internet traffic to and from a LAN
 RouterRouter – intermediate device that transmits
message packets to correct destination over most
efficient pathway
 Intrusion detection system (IDS)Intrusion detection system (IDS) – system that
identifies attempt to hack or break into a system
25Chapter 10
© Prentice Hall, 2002
Figure 10-9: Establishing Internet security
Firewall to limit
external access to
data
Routers to transmit
message packets to
correct destination
IDS to monitor and
recognize security
breach attempts

More Related Content

What's hot

Ch 7 Physical D B Design
Ch 7  Physical D B  DesignCh 7  Physical D B  Design
Ch 7 Physical D B Designguest8fdbdd
 
Proc SQL in SAS Enterprise Guide 4.3
Proc SQL in SAS Enterprise Guide 4.3Proc SQL in SAS Enterprise Guide 4.3
Proc SQL in SAS Enterprise Guide 4.3Mark Tabladillo
 
Module 02 teradata basics
Module 02 teradata basicsModule 02 teradata basics
Module 02 teradata basicsMd. Noor Alam
 
Lsmw ppt in SAP ABAP
Lsmw ppt in SAP ABAPLsmw ppt in SAP ABAP
Lsmw ppt in SAP ABAPAabid Khan
 
Bilir's Business Intelligence Portfolio SSIS Project
Bilir's Business Intelligence Portfolio SSIS ProjectBilir's Business Intelligence Portfolio SSIS Project
Bilir's Business Intelligence Portfolio SSIS ProjectFigen Bilir
 
Teradata 13.10
Teradata 13.10Teradata 13.10
Teradata 13.10Teradata
 
ELT Publishing Tool Overview V3_Jeff
ELT Publishing Tool Overview V3_JeffELT Publishing Tool Overview V3_Jeff
ELT Publishing Tool Overview V3_JeffJeff McQuigg
 
Agnes's SSIS Project Documentation
Agnes's SSIS Project DocumentationAgnes's SSIS Project Documentation
Agnes's SSIS Project Documentationagnestetter
 
Database performance tuning and query optimization
Database performance tuning and query optimizationDatabase performance tuning and query optimization
Database performance tuning and query optimizationUsman Tariq
 
Whitepaper tableau for-the-enterprise-0
Whitepaper tableau for-the-enterprise-0Whitepaper tableau for-the-enterprise-0
Whitepaper tableau for-the-enterprise-0alok khobragade
 
Introduction of Oracle
Introduction of Oracle Introduction of Oracle
Introduction of Oracle Salman Memon
 
Oracle Table Partitioning - Introduction
Oracle Table Partitioning  - IntroductionOracle Table Partitioning  - Introduction
Oracle Table Partitioning - IntroductionMyOnlineITCourses
 
SSIS Project Profile
SSIS Project ProfileSSIS Project Profile
SSIS Project Profiletthompson0421
 
Useful PL/SQL Supplied Packages
Useful PL/SQL Supplied PackagesUseful PL/SQL Supplied Packages
Useful PL/SQL Supplied PackagesMaria Colgan
 
Whitepaper Performance Tuning using Upsert and SCD (Task Factory)
Whitepaper  Performance Tuning using Upsert and SCD (Task Factory)Whitepaper  Performance Tuning using Upsert and SCD (Task Factory)
Whitepaper Performance Tuning using Upsert and SCD (Task Factory)MILL5
 
Learn SAS Programming
Learn SAS ProgrammingLearn SAS Programming
Learn SAS ProgrammingSASTechies
 
IBM Db2 11.5 External Tables
IBM Db2 11.5 External TablesIBM Db2 11.5 External Tables
IBM Db2 11.5 External TablesPhil Downey
 

What's hot (20)

Data warehouse
Data warehouseData warehouse
Data warehouse
 
Ch 7 Physical D B Design
Ch 7  Physical D B  DesignCh 7  Physical D B  Design
Ch 7 Physical D B Design
 
Proc SQL in SAS Enterprise Guide 4.3
Proc SQL in SAS Enterprise Guide 4.3Proc SQL in SAS Enterprise Guide 4.3
Proc SQL in SAS Enterprise Guide 4.3
 
Module 02 teradata basics
Module 02 teradata basicsModule 02 teradata basics
Module 02 teradata basics
 
Lsmw ppt in SAP ABAP
Lsmw ppt in SAP ABAPLsmw ppt in SAP ABAP
Lsmw ppt in SAP ABAP
 
Bilir's Business Intelligence Portfolio SSIS Project
Bilir's Business Intelligence Portfolio SSIS ProjectBilir's Business Intelligence Portfolio SSIS Project
Bilir's Business Intelligence Portfolio SSIS Project
 
Teradata imp
Teradata impTeradata imp
Teradata imp
 
Teradata 13.10
Teradata 13.10Teradata 13.10
Teradata 13.10
 
ELT Publishing Tool Overview V3_Jeff
ELT Publishing Tool Overview V3_JeffELT Publishing Tool Overview V3_Jeff
ELT Publishing Tool Overview V3_Jeff
 
Teradata a z
Teradata a zTeradata a z
Teradata a z
 
Agnes's SSIS Project Documentation
Agnes's SSIS Project DocumentationAgnes's SSIS Project Documentation
Agnes's SSIS Project Documentation
 
Database performance tuning and query optimization
Database performance tuning and query optimizationDatabase performance tuning and query optimization
Database performance tuning and query optimization
 
Whitepaper tableau for-the-enterprise-0
Whitepaper tableau for-the-enterprise-0Whitepaper tableau for-the-enterprise-0
Whitepaper tableau for-the-enterprise-0
 
Introduction of Oracle
Introduction of Oracle Introduction of Oracle
Introduction of Oracle
 
Oracle Table Partitioning - Introduction
Oracle Table Partitioning  - IntroductionOracle Table Partitioning  - Introduction
Oracle Table Partitioning - Introduction
 
SSIS Project Profile
SSIS Project ProfileSSIS Project Profile
SSIS Project Profile
 
Useful PL/SQL Supplied Packages
Useful PL/SQL Supplied PackagesUseful PL/SQL Supplied Packages
Useful PL/SQL Supplied Packages
 
Whitepaper Performance Tuning using Upsert and SCD (Task Factory)
Whitepaper  Performance Tuning using Upsert and SCD (Task Factory)Whitepaper  Performance Tuning using Upsert and SCD (Task Factory)
Whitepaper Performance Tuning using Upsert and SCD (Task Factory)
 
Learn SAS Programming
Learn SAS ProgrammingLearn SAS Programming
Learn SAS Programming
 
IBM Db2 11.5 External Tables
IBM Db2 11.5 External TablesIBM Db2 11.5 External Tables
IBM Db2 11.5 External Tables
 

Similar to The Database Environment Chapter 10

Internet Environment
Internet  EnvironmentInternet  Environment
Internet Environmentguest8fdbdd
 
Programming languages asp.net
Programming languages asp.netProgramming languages asp.net
Programming languages asp.netVasilios Kuznos
 
Ethical hacking Chapter 10 - Exploiting Web Servers - Eric Vanderburg
Ethical hacking   Chapter 10 - Exploiting Web Servers - Eric VanderburgEthical hacking   Chapter 10 - Exploiting Web Servers - Eric Vanderburg
Ethical hacking Chapter 10 - Exploiting Web Servers - Eric VanderburgEric Vanderburg
 
HTTP and Website Architecture and Middleware
HTTP and Website Architecture and MiddlewareHTTP and Website Architecture and Middleware
HTTP and Website Architecture and MiddlewareAbdul Jalil Tamjid
 
Introduction To Dot Net Siddhesh
Introduction To Dot Net SiddheshIntroduction To Dot Net Siddhesh
Introduction To Dot Net SiddheshSiddhesh Bhobe
 
Intro To Asp Net And Web Forms
Intro To Asp Net And Web FormsIntro To Asp Net And Web Forms
Intro To Asp Net And Web FormsSAMIR BHOGAYTA
 
Enterprise Software Architecture
Enterprise Software ArchitectureEnterprise Software Architecture
Enterprise Software Architecturerahmed_sct
 
DevNext - Web Programming Concepts Using Asp Net
DevNext - Web Programming Concepts Using Asp NetDevNext - Web Programming Concepts Using Asp Net
DevNext - Web Programming Concepts Using Asp NetAdil Mughal
 
Top 10 - ASP.NET Interview Questions And Answers 2023.pdf
Top 10 -  ASP.NET Interview Questions And Answers 2023.pdfTop 10 -  ASP.NET Interview Questions And Answers 2023.pdf
Top 10 - ASP.NET Interview Questions And Answers 2023.pdfRuddarpratap
 
Ruby On Rails Siddhesh
Ruby On Rails SiddheshRuby On Rails Siddhesh
Ruby On Rails SiddheshSiddhesh Bhobe
 
Migrating To Visual Studio 2008 & .Net Framework 3.5
Migrating To Visual Studio 2008 & .Net Framework 3.5Migrating To Visual Studio 2008 & .Net Framework 3.5
Migrating To Visual Studio 2008 & .Net Framework 3.5Jeff Blankenburg
 
Lotus Forms Webform Server 3.0 Overview & Architecture
Lotus Forms Webform Server 3.0 Overview & ArchitectureLotus Forms Webform Server 3.0 Overview & Architecture
Lotus Forms Webform Server 3.0 Overview & Architectureddrschiw
 
Lotus Forms Webform Server 3.0 Overview & Architecture
Lotus Forms Webform Server 3.0 Overview & ArchitectureLotus Forms Webform Server 3.0 Overview & Architecture
Lotus Forms Webform Server 3.0 Overview & Architectureddrschiw
 
Experiences with Oracle WebCenter 11g: Implementing SOA with a User Interface
Experiences with Oracle WebCenter 11g: Implementing SOA with a User InterfaceExperiences with Oracle WebCenter 11g: Implementing SOA with a User Interface
Experiences with Oracle WebCenter 11g: Implementing SOA with a User InterfaceLucas Jellema
 

Similar to The Database Environment Chapter 10 (20)

Internet Environment
Internet  EnvironmentInternet  Environment
Internet Environment
 
Programming languages asp.net
Programming languages asp.netProgramming languages asp.net
Programming languages asp.net
 
Ethical hacking Chapter 10 - Exploiting Web Servers - Eric Vanderburg
Ethical hacking   Chapter 10 - Exploiting Web Servers - Eric VanderburgEthical hacking   Chapter 10 - Exploiting Web Servers - Eric Vanderburg
Ethical hacking Chapter 10 - Exploiting Web Servers - Eric Vanderburg
 
Asp dot net long
Asp dot net longAsp dot net long
Asp dot net long
 
HTTP and Website Architecture and Middleware
HTTP and Website Architecture and MiddlewareHTTP and Website Architecture and Middleware
HTTP and Website Architecture and Middleware
 
PPT
PPTPPT
PPT
 
Introduction To Dot Net Siddhesh
Introduction To Dot Net SiddheshIntroduction To Dot Net Siddhesh
Introduction To Dot Net Siddhesh
 
C# Unit5 Notes
C# Unit5 NotesC# Unit5 Notes
C# Unit5 Notes
 
Intro To Asp Net And Web Forms
Intro To Asp Net And Web FormsIntro To Asp Net And Web Forms
Intro To Asp Net And Web Forms
 
Enterprise Software Architecture
Enterprise Software ArchitectureEnterprise Software Architecture
Enterprise Software Architecture
 
Asp.netrole
Asp.netroleAsp.netrole
Asp.netrole
 
DevNext - Web Programming Concepts Using Asp Net
DevNext - Web Programming Concepts Using Asp NetDevNext - Web Programming Concepts Using Asp Net
DevNext - Web Programming Concepts Using Asp Net
 
Top 10 - ASP.NET Interview Questions And Answers 2023.pdf
Top 10 -  ASP.NET Interview Questions And Answers 2023.pdfTop 10 -  ASP.NET Interview Questions And Answers 2023.pdf
Top 10 - ASP.NET Interview Questions And Answers 2023.pdf
 
ASP
ASPASP
ASP
 
Asp.net
Asp.netAsp.net
Asp.net
 
Ruby On Rails Siddhesh
Ruby On Rails SiddheshRuby On Rails Siddhesh
Ruby On Rails Siddhesh
 
Migrating To Visual Studio 2008 & .Net Framework 3.5
Migrating To Visual Studio 2008 & .Net Framework 3.5Migrating To Visual Studio 2008 & .Net Framework 3.5
Migrating To Visual Studio 2008 & .Net Framework 3.5
 
Lotus Forms Webform Server 3.0 Overview & Architecture
Lotus Forms Webform Server 3.0 Overview & ArchitectureLotus Forms Webform Server 3.0 Overview & Architecture
Lotus Forms Webform Server 3.0 Overview & Architecture
 
Lotus Forms Webform Server 3.0 Overview & Architecture
Lotus Forms Webform Server 3.0 Overview & ArchitectureLotus Forms Webform Server 3.0 Overview & Architecture
Lotus Forms Webform Server 3.0 Overview & Architecture
 
Experiences with Oracle WebCenter 11g: Implementing SOA with a User Interface
Experiences with Oracle WebCenter 11g: Implementing SOA with a User InterfaceExperiences with Oracle WebCenter 11g: Implementing SOA with a User Interface
Experiences with Oracle WebCenter 11g: Implementing SOA with a User Interface
 

More from Jeanie Arnoco

The Database Environment Chapter 15
The Database Environment Chapter 15The Database Environment Chapter 15
The Database Environment Chapter 15Jeanie Arnoco
 
The Database Environment Chapter 14
The Database Environment Chapter 14The Database Environment Chapter 14
The Database Environment Chapter 14Jeanie Arnoco
 
The Database Environment Chapter 13
The Database Environment Chapter 13The Database Environment Chapter 13
The Database Environment Chapter 13Jeanie Arnoco
 
The Database Environment Chapter 5
The Database Environment Chapter 5The Database Environment Chapter 5
The Database Environment Chapter 5Jeanie Arnoco
 
The Database Environment Chapter 4
The Database Environment Chapter 4The Database Environment Chapter 4
The Database Environment Chapter 4Jeanie Arnoco
 
The Database Environment Chapter 3
The Database Environment Chapter 3The Database Environment Chapter 3
The Database Environment Chapter 3Jeanie Arnoco
 
The Database Environment Chapter 2
The Database Environment Chapter 2The Database Environment Chapter 2
The Database Environment Chapter 2Jeanie Arnoco
 
The Database Environment Chapter 1
The Database Environment Chapter 1The Database Environment Chapter 1
The Database Environment Chapter 1Jeanie Arnoco
 
Introduction to BOOTSTRAP
Introduction to BOOTSTRAPIntroduction to BOOTSTRAP
Introduction to BOOTSTRAPJeanie Arnoco
 
Introduction to programming using Visual Basic 6
Introduction to programming using Visual Basic 6Introduction to programming using Visual Basic 6
Introduction to programming using Visual Basic 6Jeanie Arnoco
 
Hacking and Online Security
Hacking and Online SecurityHacking and Online Security
Hacking and Online SecurityJeanie Arnoco
 
(CAR)Cordillera Administrative Region
(CAR)Cordillera Administrative Region (CAR)Cordillera Administrative Region
(CAR)Cordillera Administrative Region Jeanie Arnoco
 
Quick sort-Data Structure
Quick sort-Data StructureQuick sort-Data Structure
Quick sort-Data StructureJeanie Arnoco
 
Quality Gurus Student
Quality Gurus StudentQuality Gurus Student
Quality Gurus StudentJeanie Arnoco
 
Partnering for Competition: External Partnership
Partnering for Competition: External PartnershipPartnering for Competition: External Partnership
Partnering for Competition: External PartnershipJeanie Arnoco
 
Partnering for Competition:Internal Partnership
Partnering for Competition:Internal PartnershipPartnering for Competition:Internal Partnership
Partnering for Competition:Internal PartnershipJeanie Arnoco
 
CROSBY’S PHILOSOPHY
CROSBY’S PHILOSOPHYCROSBY’S PHILOSOPHY
CROSBY’S PHILOSOPHYJeanie Arnoco
 
Deming’s 14 Points for Management
Deming’s 14 Points for ManagementDeming’s 14 Points for Management
Deming’s 14 Points for ManagementJeanie Arnoco
 

More from Jeanie Arnoco (20)

The Database Environment Chapter 15
The Database Environment Chapter 15The Database Environment Chapter 15
The Database Environment Chapter 15
 
The Database Environment Chapter 14
The Database Environment Chapter 14The Database Environment Chapter 14
The Database Environment Chapter 14
 
The Database Environment Chapter 13
The Database Environment Chapter 13The Database Environment Chapter 13
The Database Environment Chapter 13
 
The Database Environment Chapter 5
The Database Environment Chapter 5The Database Environment Chapter 5
The Database Environment Chapter 5
 
The Database Environment Chapter 4
The Database Environment Chapter 4The Database Environment Chapter 4
The Database Environment Chapter 4
 
The Database Environment Chapter 3
The Database Environment Chapter 3The Database Environment Chapter 3
The Database Environment Chapter 3
 
The Database Environment Chapter 2
The Database Environment Chapter 2The Database Environment Chapter 2
The Database Environment Chapter 2
 
The Database Environment Chapter 1
The Database Environment Chapter 1The Database Environment Chapter 1
The Database Environment Chapter 1
 
Introduction to BOOTSTRAP
Introduction to BOOTSTRAPIntroduction to BOOTSTRAP
Introduction to BOOTSTRAP
 
Introduction to programming using Visual Basic 6
Introduction to programming using Visual Basic 6Introduction to programming using Visual Basic 6
Introduction to programming using Visual Basic 6
 
Hacking and Online Security
Hacking and Online SecurityHacking and Online Security
Hacking and Online Security
 
(CAR)Cordillera Administrative Region
(CAR)Cordillera Administrative Region (CAR)Cordillera Administrative Region
(CAR)Cordillera Administrative Region
 
Quick sort-Data Structure
Quick sort-Data StructureQuick sort-Data Structure
Quick sort-Data Structure
 
Quality Gurus Student
Quality Gurus StudentQuality Gurus Student
Quality Gurus Student
 
QUALITY STANDARDS
QUALITY STANDARDSQUALITY STANDARDS
QUALITY STANDARDS
 
Partnering for Competition: External Partnership
Partnering for Competition: External PartnershipPartnering for Competition: External Partnership
Partnering for Competition: External Partnership
 
Partnering for Competition:Internal Partnership
Partnering for Competition:Internal PartnershipPartnering for Competition:Internal Partnership
Partnering for Competition:Internal Partnership
 
CROSBY’S PHILOSOPHY
CROSBY’S PHILOSOPHYCROSBY’S PHILOSOPHY
CROSBY’S PHILOSOPHY
 
Juran’s Trilogy
Juran’s TrilogyJuran’s Trilogy
Juran’s Trilogy
 
Deming’s 14 Points for Management
Deming’s 14 Points for ManagementDeming’s 14 Points for Management
Deming’s 14 Points for Management
 

Recently uploaded

How to Add a Tool Tip to a Field in Odoo 17
How to Add a Tool Tip to a Field in Odoo 17How to Add a Tool Tip to a Field in Odoo 17
How to Add a Tool Tip to a Field in Odoo 17Celine George
 
PANDITA RAMABAI- Indian political thought GENDER.pptx
PANDITA RAMABAI- Indian political thought GENDER.pptxPANDITA RAMABAI- Indian political thought GENDER.pptx
PANDITA RAMABAI- Indian political thought GENDER.pptxakanksha16arora
 
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptxHMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptxmarlenawright1
 
Introduction to TechSoup’s Digital Marketing Services and Use Cases
Introduction to TechSoup’s Digital Marketing  Services and Use CasesIntroduction to TechSoup’s Digital Marketing  Services and Use Cases
Introduction to TechSoup’s Digital Marketing Services and Use CasesTechSoup
 
Details on CBSE Compartment Exam.pptx1111
Details on CBSE Compartment Exam.pptx1111Details on CBSE Compartment Exam.pptx1111
Details on CBSE Compartment Exam.pptx1111GangaMaiya1
 
What is 3 Way Matching Process in Odoo 17.pptx
What is 3 Way Matching Process in Odoo 17.pptxWhat is 3 Way Matching Process in Odoo 17.pptx
What is 3 Way Matching Process in Odoo 17.pptxCeline George
 
Economic Importance Of Fungi In Food Additives
Economic Importance Of Fungi In Food AdditivesEconomic Importance Of Fungi In Food Additives
Economic Importance Of Fungi In Food AdditivesSHIVANANDaRV
 
dusjagr & nano talk on open tools for agriculture research and learning
dusjagr & nano talk on open tools for agriculture research and learningdusjagr & nano talk on open tools for agriculture research and learning
dusjagr & nano talk on open tools for agriculture research and learningMarc Dusseiller Dusjagr
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...Nguyen Thanh Tu Collection
 
Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...
Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...
Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...EADTU
 
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...Nguyen Thanh Tu Collection
 
Tatlong Kwento ni Lola basyang-1.pdf arts
Tatlong Kwento ni Lola basyang-1.pdf artsTatlong Kwento ni Lola basyang-1.pdf arts
Tatlong Kwento ni Lola basyang-1.pdf artsNbelano25
 
QUATER-1-PE-HEALTH-LC2- this is just a sample of unpacked lesson
QUATER-1-PE-HEALTH-LC2- this is just a sample of unpacked lessonQUATER-1-PE-HEALTH-LC2- this is just a sample of unpacked lesson
QUATER-1-PE-HEALTH-LC2- this is just a sample of unpacked lessonhttgc7rh9c
 
AIM of Education-Teachers Training-2024.ppt
AIM of Education-Teachers Training-2024.pptAIM of Education-Teachers Training-2024.ppt
AIM of Education-Teachers Training-2024.pptNishitharanjan Rout
 
Spellings Wk 4 and Wk 5 for Grade 4 at CAPS
Spellings Wk 4 and Wk 5 for Grade 4 at CAPSSpellings Wk 4 and Wk 5 for Grade 4 at CAPS
Spellings Wk 4 and Wk 5 for Grade 4 at CAPSAnaAcapella
 
How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17Celine George
 
Simple, Complex, and Compound Sentences Exercises.pdf
Simple, Complex, and Compound Sentences Exercises.pdfSimple, Complex, and Compound Sentences Exercises.pdf
Simple, Complex, and Compound Sentences Exercises.pdfstareducators107
 

Recently uploaded (20)

How to Add a Tool Tip to a Field in Odoo 17
How to Add a Tool Tip to a Field in Odoo 17How to Add a Tool Tip to a Field in Odoo 17
How to Add a Tool Tip to a Field in Odoo 17
 
PANDITA RAMABAI- Indian political thought GENDER.pptx
PANDITA RAMABAI- Indian political thought GENDER.pptxPANDITA RAMABAI- Indian political thought GENDER.pptx
PANDITA RAMABAI- Indian political thought GENDER.pptx
 
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptxHMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
 
Introduction to TechSoup’s Digital Marketing Services and Use Cases
Introduction to TechSoup’s Digital Marketing  Services and Use CasesIntroduction to TechSoup’s Digital Marketing  Services and Use Cases
Introduction to TechSoup’s Digital Marketing Services and Use Cases
 
Details on CBSE Compartment Exam.pptx1111
Details on CBSE Compartment Exam.pptx1111Details on CBSE Compartment Exam.pptx1111
Details on CBSE Compartment Exam.pptx1111
 
What is 3 Way Matching Process in Odoo 17.pptx
What is 3 Way Matching Process in Odoo 17.pptxWhat is 3 Way Matching Process in Odoo 17.pptx
What is 3 Way Matching Process in Odoo 17.pptx
 
Economic Importance Of Fungi In Food Additives
Economic Importance Of Fungi In Food AdditivesEconomic Importance Of Fungi In Food Additives
Economic Importance Of Fungi In Food Additives
 
dusjagr & nano talk on open tools for agriculture research and learning
dusjagr & nano talk on open tools for agriculture research and learningdusjagr & nano talk on open tools for agriculture research and learning
dusjagr & nano talk on open tools for agriculture research and learning
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
 
Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...
Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...
Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...
 
Our Environment Class 10 Science Notes pdf
Our Environment Class 10 Science Notes pdfOur Environment Class 10 Science Notes pdf
Our Environment Class 10 Science Notes pdf
 
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
 
Tatlong Kwento ni Lola basyang-1.pdf arts
Tatlong Kwento ni Lola basyang-1.pdf artsTatlong Kwento ni Lola basyang-1.pdf arts
Tatlong Kwento ni Lola basyang-1.pdf arts
 
QUATER-1-PE-HEALTH-LC2- this is just a sample of unpacked lesson
QUATER-1-PE-HEALTH-LC2- this is just a sample of unpacked lessonQUATER-1-PE-HEALTH-LC2- this is just a sample of unpacked lesson
QUATER-1-PE-HEALTH-LC2- this is just a sample of unpacked lesson
 
AIM of Education-Teachers Training-2024.ppt
AIM of Education-Teachers Training-2024.pptAIM of Education-Teachers Training-2024.ppt
AIM of Education-Teachers Training-2024.ppt
 
Spellings Wk 4 and Wk 5 for Grade 4 at CAPS
Spellings Wk 4 and Wk 5 for Grade 4 at CAPSSpellings Wk 4 and Wk 5 for Grade 4 at CAPS
Spellings Wk 4 and Wk 5 for Grade 4 at CAPS
 
How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17
 
Simple, Complex, and Compound Sentences Exercises.pdf
Simple, Complex, and Compound Sentences Exercises.pdfSimple, Complex, and Compound Sentences Exercises.pdf
Simple, Complex, and Compound Sentences Exercises.pdf
 
VAMOS CUIDAR DO NOSSO PLANETA! .
VAMOS CUIDAR DO NOSSO PLANETA!                    .VAMOS CUIDAR DO NOSSO PLANETA!                    .
VAMOS CUIDAR DO NOSSO PLANETA! .
 
OS-operating systems- ch05 (CPU Scheduling) ...
OS-operating systems- ch05 (CPU Scheduling) ...OS-operating systems- ch05 (CPU Scheduling) ...
OS-operating systems- ch05 (CPU Scheduling) ...
 

The Database Environment Chapter 10

  • 1. 1 © Prentice Hall, 2002 Chapter 10:Chapter 10: The Internet DatabaseThe Internet Database EnvironmentEnvironment Modern Database Management 6th Edition Jeffrey A. Hoffer, Mary B. Prescott, Fred R. McFadden
  • 2. 2Chapter 10 © Prentice Hall, 2002 Figure 10-1: Database-enabled intranet-internet environment
  • 3. 3Chapter 10 © Prentice Hall, 2002 Business on the InternetBusiness on the Internet  Electronic Business (e-business) – Development of integrated relationship with customers and suppliers via the Internet – Business-to-Consumer (B2C) – retail – Business-to-Business (B2B) – interaction with suppliers and vendors  Electronic Commerce (e-commerce) – Business transactions, including:  Order processing/fulfillment  Customer relations  Electronic data interchange (EDI)  Bill payments
  • 4. 4Chapter 10 © Prentice Hall, 2002 Web-Related TermsWeb-Related Terms  World Wide Web (WWW) – The total set of interlinked hypertext documents residing on Web servers worldwide  Browser – Software that displays HTML documents and allows users to access files and software related to HTML documents  Web Server – Software that responds to requests from browsers and transmits HTML documents to browsers  Web pages – HTML documents – Static Web pages – content established at development time Dynamic Web pages – content dynamically generated, usually by obtaining data from database
  • 5. 5Chapter 10 © Prentice Hall, 2002 Communications TechnologyCommunications Technology  IP Address – 4 numbers that identify a node on the internet – E.g. 131.247.152.18  Hypertext Transfer Protocol (HTTP) – Communication protocol used to transfer pages from Web server to browser – HTTPS is a more secure version  Uniform Resource Locator (URL) – Mnemonic Web address corresponding with IP address – Also includes folder location and html file name Figure 10-2: Typical URL
  • 6. 6Chapter 10 © Prentice Hall, 2002 Internet-Related LanguagesInternet-Related Languages  Hypertext Markup Language (HTML)Hypertext Markup Language (HTML) – Markup language specifically for Web pages  Standard Generalized Markup Language (SGML)Standard Generalized Markup Language (SGML) – Markup language standard  Extensible Markup Language (XML)Extensible Markup Language (XML) – Markup language allowing customized tags  XHTMLXHTML – XML-compliant extension of HTML  JavaJava – Object-oriented programming language for applets  JavaScript/VBScriptJavaScript/VBScript – Scripting languages that enable interactivity in HTML documents  Cascading Style Sheets (CSS)Cascading Style Sheets (CSS) – Control appearance of Web elements in an HML document Standards and Web conventions established by World Wide WebWorld Wide Web Consortium (W3C)Consortium (W3C)
  • 7. 7Chapter 10 © Prentice Hall, 2002 Web ServersWeb Servers  Provide HTTP service  Passing plain text via TCP connection  Serve many clients at once – Therefore, multithreaded and multiprocessed  Load balancing approaches: – Domain Name Server (DNS) balancing  One DNS = multiple IP addresses – Software/hardware balancing  Request at one IP address is distributed to multiple servers – Reverse proxy  Intercept client request and cache response
  • 8. 8Chapter 10 © Prentice Hall, 2002 Server-Side ExtensionsServer-Side Extensions Programs that interact directly with Web servers to handle requests e.g. database-request handling middleware Figure 10-3: Web-to-database middleware
  • 9. 9Chapter 10 © Prentice Hall, 2002 Client-Side ExtensionsClient-Side Extensions  Add functionality to the browser  Plug-ins – hardware./software modules that extend browser capabilities by adding features (e.g. encryption, animation, wireless access)  ActiveX – Microsoft COM/OLE components that allow data manipulation inside the browser  Cookies – Block of data stored at client by Web server for later use
  • 10. 10Chapter 10 © Prentice Hall, 2002 Web Server InterfacesWeb Server Interfaces  Common Gateway Interface (CGI) – Specify transfer of information between Web server and CGI program – Performance not very good – Security risks  Application Program Interface (API) – More efficient than CGI – Shared as dynamic link libraries (DLLs)  Java Servlets – Like applets, but stored at server – Cross-platform compatible – More efficient than CGI
  • 11. 11Chapter 10 © Prentice Hall, 2002 Web-to-Database ToolsWeb-to-Database Tools  Active Server Pages (ASP) – Microsoft server-side scripting language – Generates dynamic Web pages – Interfaces to databases in MS Windows-based Web servers  Cold-Fusion – Uses special server-side markup language CFML – Modeled after HTML – Interfaces to databases  Embedded SQL – SQL embedded in 3GL programs – Provides flexible interface – Improves performance – Improves database security
  • 12. 12Chapter 10 © Prentice Hall, 2002 Figure 10-4: A global.asa file for an ASP application ASP applications include HTML extensions and additional scripting (usually in VBScript, or in JavaScript) ASP code embedded in <% %> tags are executed on the server, instead of the client. This is how dynamic Web pages can be created
  • 13. 13Chapter 10 © Prentice Hall, 2002 Sample ASP CodeSample ASP Code (from Figure 10-5 Box E and F)(from Figure 10-5 Box E and F) <% REM Get list of Finishes strSQL = “SELECT Product_Finish FROM PRODUCT_t GROUP BY Product_Finish;” Set rsRes = con.Execute(strSQL) %> <TABLE> <% REM Display the list of finishes While not rsRes.EOF %> <TR> <TD align=center valign=top> <%=rsRes(“Product Finish”>)%></TD> <TD> <FORM method=post action=“line.asp”> <INPUT type=Hidden name=line value=“<%=rsRes(“Product_Finish”))%> <INPUT type=submit Value=GO!> </TD> </TR> <% rsRes.MoveNext Wend %> </TABLE>
  • 14. 14Chapter 10 © Prentice Hall, 2002 Sample ASP CodeSample ASP Code (from Figure 10-5 Box E and F)(from Figure 10-5 Box E and F) <% REM Get list of Finishes strSQL = “SELECT Product_Finish FROM PRODUCT_t GROUP BY Product_Finish;” Set rsRes = con.Execute(strSQL) %> <TABLE> <% REM Display the list of finishes While not rsRes.EOF %> <TR> <TD align=center valign=top> <%=rsRes(“Product Finish”>)%></TD> <TD> <FORM method=post action=“line.asp”> <INPUT type=Hidden name=line value=“<%=rsRes(“Product_Finish”))%> <INPUT type=submit Value=GO!> </TD> </TR> <% rsRes.MoveNext Wend %> </TABLE> Code is within the <% %> tags are executed on the server, not the client…these are interacting with the database and creating dynamic Web content
  • 15. 15Chapter 10 © Prentice Hall, 2002 Sample ASP CodeSample ASP Code (from Figure 10-5 Box E and F)(from Figure 10-5 Box E and F) <% REM Get list of Finishes strSQL = “SELECT Product_Finish FROM PRODUCT_t GROUP BY Product_Finish;” Set rsRes = con.Execute(strSQL) %> <TABLE> <% REM Display the list of finishes While not rsRes.EOF %> <TR> <TD align=center valign=top> <%=rsRes(“Product Finish”>)%></TD> <TD> <FORM method=post action=“line.asp”> <INPUT type=Hidden name=line value=“<%=rsRes(“Product_Finish”))%> <INPUT type=submit Value=GO!> </TD> </TR> <% rsRes.MoveNext Wend %> </TABLE> These lines are executing a query on the database server using a middleware called Active Data Objects (ADO). The concon variable is a connection to the database, which was established in the code of Box C. The rsResrsRes variable contains the result set of the query (the rows returned from the query)
  • 16. 16Chapter 10 © Prentice Hall, 2002 Sample ASP CodeSample ASP Code (from Figure 10-5 Box E and F)(from Figure 10-5 Box E and F) <% REM Get list of Finishes strSQL = “SELECT Product_Finish FROM PRODUCT_t GROUP BY Product_Finish;” Set rsRes = con.Execute(strSQL) %> <TABLE> <% REM Display the list of finishes While not rsRes.EOF %> <TR> <TD align=center valign=top> <%=rsRes(“Product Finish”>)%></TD> <TD> <FORM method=post action=“line.asp”> <INPUT type=Hidden name=line value=“<%=rsRes(“Product_Finish”))%> <INPUT type=submit Value=GO!> </TD> </TR> <% rsRes.MoveNext Wend %> </TABLE> These lines of code cause the ASP application to loop through the rows returned by the query until they reach the end
  • 17. 17Chapter 10 © Prentice Hall, 2002 Sample ASP CodeSample ASP Code (from Figure 10-5 Box E and F)(from Figure 10-5 Box E and F) <% REM Get list of Finishes strSQL = “SELECT Product_Finish FROM PRODUCT_t GROUP BY Product_Finish;” Set rsRes = con.Execute(strSQL) %> <TABLE> <% REM Display the list of finishes While not rsRes.EOF %> <TR> <TD align=center valign=top> <%=rsRes(“Product Finish”>)%></TD> <TD> <FORM method=post action=“line.asp”> <INPUT type=Hidden name=line value=“<%=rsRes(“Product_Finish”))%> <INPUT type=submit Value=GO!> </TD> </TR> <% rsRes.MoveNext Wend %> </TABLE> These lines of code are retrieving the values of the specified field from the current row of the query result
  • 18. 18Chapter 10 © Prentice Hall, 2002 Sample ASP CodeSample ASP Code (from Figure 10-5 Box E and F)(from Figure 10-5 Box E and F) <% REM Get list of Finishes strSQL = “SELECT Product_Finish FROM PRODUCT_t GROUP BY Product_Finish;” Set rsRes = con.Execute(strSQL) %> <TABLE> <% REM Display the list of finishes While not rsRes.EOF %> <TR> <TD align=center valign=top> <%=rsRes(“Product Finish”>)%></TD> <TD> <FORM method=post action=“line.asp”> <INPUT type=Hidden name=line value=“<%=rsRes(“Product_Finish”))%> <INPUT type=submit Value=GO!> </TD> </TR> <% rsRes.MoveNext Wend %> </TABLE> The Web page is being dynamically created, with one HTML table row for each record obtained from the query. Also, each Web table row includes a button that will link to another ASP page
  • 19. 19Chapter 10 © Prentice Hall, 2002 Figure 10-8: Processing an embedded SQL program Embedded SQL statement begins with EXEC SQL Precompiler translates embedded SQL into host program language Compiler and linker generate executable code
  • 20. 20Chapter 10 © Prentice Hall, 2002 Managing Website DataManaging Website Data Web Security Issues – Prevent unauthorized access and malicious destruction Privacy Issues – Protect users’ privacy rights Internet Technology Rate-of-Change Issues – Deal with rapid advances in technology
  • 21. 21Chapter 10 © Prentice Hall, 2002 Website SecurityWebsite Security  Planning for Web Security – Risk assessment: nature, likelihood, impact, and motivation of security risks  Network Level Security – Web server and DB server on separate LAN from other business systems – Minimize sharing of hard disks among network servers – Regular monitoring of network and firewall logs – Install probe-monitor software
  • 22. 22Chapter 10 © Prentice Hall, 2002 Website Security (continued)Website Security (continued) Operating System Level Security – Patch all known OS vulnerabilities – Install anti-virus software with boot-time, file download time, and email reception time virus detection – Monitor server logs for unauthorized activity – Disable unrequired services to reduce risk of unauthorized access
  • 23. 23Chapter 10 © Prentice Hall, 2002 Web Security (continued)Web Security (continued) Web Server Security – Restrict number of users on Web server – Restrict access (minimize number of open ports)  http and https only, if possible – Remove unneeded programs  Restrict CGI scripts to one subdirectory – For Unix, only install minimum software for Web server
  • 24. 24Chapter 10 © Prentice Hall, 2002 Website Security (continued)Website Security (continued)  FirewallFirewall – hardware/software security component that limits external access to company’s data  Proxy serverProxy server – firewall component that manages Internet traffic to and from a LAN  RouterRouter – intermediate device that transmits message packets to correct destination over most efficient pathway  Intrusion detection system (IDS)Intrusion detection system (IDS) – system that identifies attempt to hack or break into a system
  • 25. 25Chapter 10 © Prentice Hall, 2002 Figure 10-9: Establishing Internet security Firewall to limit external access to data Routers to transmit message packets to correct destination IDS to monitor and recognize security breach attempts