Overview Environment for Internet database connectivity

Slides:



Advertisements
Similar presentations
Introduction to HTML, XHTML, and CSS
Advertisements

4. Internet Programming ENG224 INFORMATION TECHNOLOGY – Part I
Section 10.1 Identify how Web sites are structured Explain the role of URLs Describe the function of HTTP Section 10.2 Explain how the Web has affected.
Getting Familiar with Web Pages 1 2 The Internet Worldwide collection of interconnected computer networks that enables businesses, organizations, governments,
TCP/IP Protocol Suite 1 Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Chapter 22 World Wide Web and HTTP.
Chapters 14 & 15 Internet Databases. E-Commerce  Bringing new products, services, or ideas to market, supporting and enhancing business operations 
DT228/3 Web Development WWW and Client server model.
1 Introduction to XML. XML eXtensible implies that users define tag content Markup implies it is a coded document Language implies it is a metalanguage.
Project 1 Introduction to HTML.
Chapter Concepts Review Markup Languages
© 2010, Robert K. Moniot Chapter 1 Introduction to Computers and the Internet 1.
15 Chapter 15 Web Database Development Database Systems: Design, Implementation, and Management, Fifth Edition, Rob and Coronel.
Web Databases CS263 Lecture The Internet environment Following Fig. Shows the basic environment needed to set up both Intranet and Internet database-enabled.
The Application Layer Chapter 7. Electronic Mail Architecture and Services The User Agent Message Formats Message Transfer Final Delivery.
INTERNET DATABASE Chapter 9. u Basics of Internet, Web, HTTP, HTML, URLs. u Advantages and disadvantages of Web as a database platform. u Approaches for.
© 2007 by Prentice Hall 1 Chapter 10: The Internet Database Environment Modern Database Management 8 th Edition Jeffrey A. Hoffer, Mary B. Prescott, Fred.
Week 2 IBS 685. Static Page Architecture The user requests the page by typing a URL in a browser The Browser requests the page from the Web Server The.
INTERNET DATABASE. Internet and E-commerce Internet – a worldwide collection of interconnected computer network Internet – a worldwide collection of interconnected.
Introduction to Web Interface Technology (CSE2030)
Introduction to Web Interface Technology (CSE2030)
Introduction 2: Internet, Intranet, and Extranet J394 – Perancangan Situs Web Program Sudi Manajemen Universitas Bina Nusantara.
WWW and Internet The Internet Creation of the Web Languages for document description Active web pages.
© 2004, Robert K. Moniot Chapter 1 Introduction to Computers and the Internet.
1st Project Introduction to HTML.
COMPUTER TERMS PART 1. COOKIE A cookie is a small amount of data generated by a website and saved by your web browser. Its purpose is to remember information.
The Internet Database Environment Chapter 3 1. Outline Characteristics of Web-Based Database Applications Database-enabled intranet/internet environment.
HTML 1 Introduction to HTML. 2 Objectives Describe the Internet and its associated key terms Describe the World Wide Web and its associated key terms.
Chapter ONE Introduction to HTML.
INTRODUCTION TO WEB DATABASE PROGRAMMING
CS 299 – Web Programming and Design CS299: Web Programming and Design Instructor: Dr. Fang (Daisy) Tang.
The Internet Database Environment
MIS 385/MBA 664 Systems Implementation with DBMS/ Database Management Dave Salisbury ( )
FALL 2005CSI 4118 – UNIVERSITY OF OTTAWA1 Part 4 Web technologies: HTTP, CGI, PHP,Java applets)
Chapter 10 © 2009 Pearson Education, Inc. Publishing as Prentice Hall 1 Chapter 10: The Internet Database Environment Modern Database Management 9 th Edition.
Architecture Of ASP.NET. What is ASP?  Server-side scripting technology.  Files containing HTML and scripting code.  Access via HTTP requests.  Scripting.
Copyright © cs-tutorial.com. Introduction to Web Development In 1990 and 1991,Tim Berners-Lee created the World Wide Web at the European Laboratory for.
Week 7 Lecture Web Database Development Samuel Conn, Asst. Professor
Chapter 16 The World Wide Web Chapter Goals Compare and contrast the Internet and the World Wide Web Describe general Web processing Describe several.
Basics of Web Databases With the advent of Web database technology, Web pages are no longer static, but dynamic with connection to a back-end database.
2013Dr. Ali Rodan 1 Handout 1 Fundamentals of the Internet.
© 2009 Pearson Education, Inc. Publishing as Prentice Hall 1 Chapter 10: The Internet Database Environment Modern Database Management 9 th Edition Jeffrey.
© 2002 by Prentice Hall 1 David M. Kroenke Database Processing Eighth Edition Chapter 14 Networks, Multi-Tier Architectures, and XML.
Internet, intranet, and multimedia database processing l Database processing across local and wide area networks l Alternative architectures for distributing.
11/16/2012ISC329 Isabelle Bichindaritz1 Web Database Application Development.
Chapter 17 - Deploying Java Applications on the Web1 Chapter 17 Deploying Java Applications on the Web.
HTML, XHTML, and CSS Sixth Edition Chapter 1 Introduction to HTML, XHTML, and CSS.
Web Design (1) Terminology. Coding ‘languages’ (1) HTML - Hypertext Markup Language - describes the content of a web page CSS - Cascading Style Sheets.
Database Systems: Design, Implementation, and Management Eighth Edition Chapter 14 Database Connectivity and Web Technologies.
1 MSCS 237 Overview of web technologies (A specific type of distributed systems)
WEB SERVER SOFTWARE FEATURE SETS
ASP. ASP is a powerful tool for making dynamic and interactive Web pages An ASP file can contain text, HTML tags and scripts. Scripts in an ASP file are.
HTML Concepts and Techniques Fifth Edition Chapter 1 Introduction to HTML.
ASP-2-1 SERVER AND CLIENT SIDE SCRITPING Colorado Technical University IT420 Tim Peterson.
Chapter 1 Introduction to HTML, XHTML, and CSS HTML5 & CSS 7 th Edition.
Introduction to the World Wide Web & Internet CIS 101.
Database application development 1. Chapter 8 © 2013 Pearson Education, Inc. Publishing as Prentice Hall OBJECTIVES  Define terms  Explain three components.
1 LM 6 Database Applications Dr. Lei Li. Learning Objectives Explain three components of a client-server system Describe differences between a 2-tiered.
TCP/IP Protocol Suite 1 Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Chapter 22 World Wide Web and HTTP.
Web Page Design The Basics. The Web Page A document (file) created using the HTML scripting language. A document (file) created using the HTML scripting.
HTML PROJECT #1 Project 1 Introduction to HTML. HTML Project 1: Introduction to HTML 2 Project Objectives 1.Describe the Internet and its associated key.
1 Chapter 1 INTRODUCTION TO WEB. 2 Objectives In this chapter, you will: Become familiar with the architecture of the World Wide Web Learn about communication.
CS299: Web Programming and Design Instructor: Dr. Fang (Daisy) Tang
Project 1 Introduction to HTML.
WWW and HTTP King Fahd University of Petroleum & Minerals
Chapter 1 Introduction to HTML.
Project 1 Introduction to HTML.
Chapter 10: The Internet Database Environment
CMP Creating Your Personal and Small Business Web Sites
Introduction of Week 11 Return assignment 9-1 Collect assignment 10-1
Introduction to World Wide Web
Presentation transcript:

IS 4420 Database Fundamentals Chapter 10: The Internet Database Environment Leon Chen

Overview Environment for Internet database connectivity Internet-based business environment Client-side and server-side extensions Web services and their use for e-commerce Explain ASP code Provide an overview of XML Describe issues for Web-site management Discuss Web security and privacy issues

Database-enabled intranet-internet environment

Business 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 Consumer-to-Consumer (C2C) – For example: eBay Electronic Commerce (e-commerce) Business transactions, including: Order processing/fulfillment Customer relations Electronic data interchange (EDI) Bill payments

Web-Related Terms World Wide Web (WWW) Browser Web Server 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

Communications Technology IP Address Four 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) Web address corresponding with IP address Also includes folder location and html file name

Internet-Related Languages 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 Java Object-oriented programming language for applets 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 Consortium (W3C)

World Wide Web Consortium (W3C) An international consortium of companies working to develop open standards that foster the deployment of Web conventions so that Web documents can be consistently displayed on all platforms See www.w3c.org

Web 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

Server-Side Extensions Programs that interact directly with Web servers to handle requests e.g. database-request handling middleware Web-to-database middleware

Web 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

Client-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

Web Services Web Service Components: Challenges for Web Services Set of emerging XML-based standards that define protocols for automatic communication between applications over the Web. Extends and supplants traditional EDI Web Service Components: Universal Description, Discovery, and Integration (UDDI) Technical specification for distributed registries of Web services and businesses open to communication on these services Web Services Description Language (WSDL) XML-based grammar for describing Web services and providing public interfaces for these services Simple Object Access Protocol (SOAP) XML-based communication protocol for sending messages between applications via the Internet Challenges for Web Services Lack of mature standards Lack of security

Web-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 and database security

ASP 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

Sample ASP Code <% 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>

Sample ASP Code (from Figure 10-7 Box E and F) (cont.) <% REM Get list of Finishes strSQL = “SELECT Product_Finish FROM PRODUCT_t GROUP BY Product_Finish;” Set rsRes = con.Execute(strSQL) %> These lines execute a query on the database server using a middleware called Active Data Objects (ADO). The con variable is a connection to the database, which was established in the code of Box C. The rsRes variable contains the result set of the query (the rows returned from the query)

Sample ASP Code (from Figure 10-7 Box E and F) (cont.) <% 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

Sample ASP Code (from Figure 10-7 Box E and F) (cont.) <% 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 retrieve the values of the specified field from the current row of the query result

Sample ASP Code (from Figure 10-7 Box E and F) (cont.) <% 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 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

Embedded SQL statement begins with EXEC SQL Precompiler translates embedded SQL into host program language Compiler and linker generate executable code

XML Overview Becoming the standard for E-Commerce data exchange A markup language (like HTML) Uses elements, tags, attributes Includes document type declarations (DTDs), XML schemas, comments, and entity references Provides a template for definition of data set across the Internet But not how to present data

XML Schema is a record definition, analogous to the Create SQL statement, and therefore provides metadata

Sample XML Document Data XML data involves elements and attributes defined in the schema, and is analogous to inserting a record into a database.

Managing Website Data Web Security Issues Privacy 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

Website Security Planning for Web Security Network Level 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

Website Security (continued) Operating System Level Security Patch all known OS vulnerabilities Install antivirus software with boot-time, file download time, and e-mail reception time virus detection Monitor server logs for unauthorized activity Disable unrequired services to reduce risk of unauthorized access

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

Website Security (continued) Firewall – hardware/software security component that limits external access to company’s data Proxy server – firewall component that manages Internet traffic to and from a LAN Router – intermediate device that transmits message packets to correct destination over most efficient pathway Intrusion detection system (IDS) – system that identifies attempt to hack or break into a system

Establishing Internet security IDS to monitor and recognize security breach attempts Routers to transmit message packets to correct destination Firewall to limit external access to data Establishing Internet security