Week 7 Lecture Web Database Development Samuel Conn, Asst. Professor

Slides:



Advertisements
Similar presentations
Overview Environment for Internet database connectivity
Advertisements

Lecture plan Information retrieval (from week 11)
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.
9 Review Hachim Haddouti. 9 2 Hachim Haddouti and Rob & Coronel, Final Review How modern databases evolved from files and file systems File Systems vs.
Chapter 9 Comparing Web Technologies. Agenda Browser Hypertext Markup Language (HTML) Common Gateway Interface Web Application Server Plug-in.
Chapter Concepts Review Markup Languages
15 Chapter 15 Web Database Development Database Systems: Design, Implementation, and Management, Fifth Edition, Rob and Coronel.
Introduction to ASP.NET. 2 © UW Business School, University of Washington 2004 Outline Static vs. Dynamic Web Pages.NET Framework Installing ASP.NET First.
ACTIVE X By Ethan Huang. OUTLINE What is ActiveX? Component of ActiveX Why ActiveX? ActiveX and Java Security Issue.
DATABASE APPLICATION DEVELOPMENT SAK 3408 The Web and DBMS.
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.
Introduction to Web Database Processing
Lecture 2 Web application architecture. Themes Architecture : The large scale structure of a system, especially a computer system Design choice: The need.
Outline IS400: Development of Business Applications on the Internet Fall 2004 Instructor: Dr. Boris Jukic Server Side Web Technologies: Part 1.
14 1 Chapter 14 Database Connectivity and Web Development Database Systems: Design, Implementation, and Management, Seventh Edition, Rob and Coronel.
DT211/3 Internet Development Application Internet Development Application.
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)
Multiple Tiers in Action
Technologies for EC/EB Walt Scacchi FEMBA 290 Winter 2003.
Introduction to Web Based Application. Web-based application TCP/IP (HTTP) protocol Using WWW technology & software Distributed environment.
Copyright © 2002 Pearson Education, Inc. Slide 4-1 Choosing the Hardware for an E-commerce Site  Hardware platform  Refers to all the underlying computing.
1 CS6320 – Why Servlets? L. Grewe 2 What is a Servlet? Servlets are Java programs that can be run dynamically from a Web Server Servlets are Java programs.
14 1 Chapter 14 Database Connectivity and Web Development Database Systems: Design, Implementation, and Management, Seventh Edition, Rob and Coronel.
Introduction to Web Interface Technology (CSE2030)
14 1 Chapter 14 Database Connectivity and Web Development Database Systems: Design, Implementation, and Management, Seventh Edition, Rob and Coronel.
Database Systems Design, Implementation, and Management Coronel | Morris 11e ©2015 Cengage Learning. All Rights Reserved. May not be scanned, copied or.
Chapter 14 Database Connectivity and Web Technologies
14 Chapter 14 Databases and The Internet Database Systems: Design, Implementation, and Management 4th Edition Peter Rob & Carlos Coronel.
Electronic Commerce Last Week Internet utility programs
Web-Enabling the Warehouse Chapter 16. Benefits of Web-Enabling a Data Warehouse Better-informed decision making Lower costs of deployment and management.
Client-Server Processing and Distributed Databases
Web-based Software Development - An introduction.
Copyright © 2002 Pearson Education, Inc. Slide 4-1.
1 Web Database Processing. Web Database Applications Static Report Publishing a report is prepared from a database application and exported to HTML DB.
INTRODUCTION TO WEB DATABASE PROGRAMMING
Database Systems: Design, Implementation, and Management Tenth Edition
Introduction to ASP.NET. Prehistory of ASP.NET Original Internet – text based WWW – static graphical content  HTML (client-side) Need for interactive.
Databases and the Internet. Lecture Objectives Databases and the Internet Characteristics and Benefits of Internet Server-Side vs. Client-Side Special.
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.
Introduction to Internet Programming (Web Based Application)
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.
E-Learning Material Web Application Design 3. Web Application Design Architecture Which objects go where? The final model notation Summary.
Fundamentals of Database Chapter 7 Database Technologies.
Implementation - Part 2 CPS 181s March 18, Pieces of the Site-building Puzzle Page 180, figure 4.1.
2-1 WEB DATABSE INTERFACING Colorado Technical University IT420.
Web Pages with Features. Features on Web Pages Interactive Pages –Shows current date, get server’s IP, interactive quizzes Processing Forms –Serach a.
1 CS122B: Projects in Databases and Web Applications Spring 2015 Notes 03: Web-App Architectures Professor Chen Li Department of Computer Science CS122B.
_______________________________________________________________________________________________________________ E-Commerce: Fundamentals and Applications1.
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)
Active Server Pages Server-Side Scripting and Client-Side Scripting.
Web Pages with Features. Features on Web Pages Interactive Pages –Shows current date, get server’s IP, interactive quizzes Processing Forms –Serach a.
DB MidWare CSIS 4490 N-Tier Client/Server Dr. Hoganson Database Middleware Early client/server database systems –Two tier –Server does business logic (data.
14 1 Chapter 14 Web Database Development Database Systems: Design, Implementation, and Management, Sixth Edition, Rob and Coronel.
Copyright © 2003 T. Trappenberg Overview B 1 B. Some tools of the trade Module 1 Technology: GR01E - Electronic Commerce Overview.
WEB SERVER SOFTWARE FEATURE SETS
Database Connectivity and Server-Side Scripting Chapter 12.
ASP-2-1 SERVER AND CLIENT SIDE SCRITPING Colorado Technical University IT420 Tim Peterson.
Database Systems: Design, Implementation, and Management Eighth Edition Chapter 14 Database Connectivity and Web Technologies.
Electronic Commerce Semester 1 Term 1 Lecture 7. Introduction to the Web The Internet supports a variety of important tools, such as file transfer, electronic.
Lect5.ppt - 02/23/06 CIS 4100 Systems Performance and Evaluation Lecture 6 by Zornitza Genova Prodanoff.
A S P. Outline  The introduction of ASP  Why we choose ASP  How ASP works  Basic syntax rule of ASP  ASP’S object model  Limitations of ASP  Summary.
Chapter 10 1 Figure 10-1: Database-enabled intranet-internet environment.
Netscape Application Server
Chapter 15 Database Connectivity and Web Technologies
Introduction of Week 11 Return assignment 9-1 Collect assignment 10-1
Presentation transcript:

Week 7 Lecture Web Database Development Samuel Conn, Asst. Professor Professor’s Notes In this lecture you will study how databases can be used on the world wide web. Implementation of database applications on the Internet is proliferating at an amazing rate, and the need for Internet database administration continues to grow. The lecture covers the basics of web database development. Samuel Conn, Asst. Professor

In this lecture, you will learn: How Internet databases are typically used About the architecture of Web-to-database middleware How Web-to-database middleware is used to integrate databases with the Internet What special considerations govern Web database development 2 In this lecture, you will learn: How Internet databases are typically used About the architecture of Web-to-database middleware How Web-to-database middleware is used to integrate databases with the Internet What special considerations govern Web database development Here are the key points to be covered in this lecture. You will study how Internet databases are used, the middleware architecture used to implement databases on the web, and the special considerations that are associated with web database development. 2

Web Database Connectivity Allows rapid response to competitive pressures New services New products Customer support enhanced Fast effective information dissemination Universal access Local Around the globe 3 Web Database Connectivity Allows rapid response to competitive pressures New services New products Customer support enhanced Fast effective information dissemination Universal access Local Around the globe Connecting your businesses database to the web can offer several advantages. New services and products can be quickly introduced to the marketplace. Customer support can be enhanced and Customer Relationship Management (CRM) applications can be used. It is also a great way to deliver information around the world. 3

Typical Uses of Internet 4 Typical Uses of Internet Table 15.2 Here are some of the typical uses of the Internet in the facilitation of business processes…… Table 15.2 4

Characteristics/Benefits of Internet Technology Hardware & software independence Cost savings Uses existing equipment Platform independence and portability No need for multiple platform development Common simple user interface Reduced training Reduced support 5 Characteristics/Benefits of Internet Technology Hardware & software independence Cost savings Uses existing equipment Platform independence and portability No need for multiple platform development Common simple user interface Reduced training Reduced support Internet technology has several benefits and distinguishing characteristics. It is independent of hardware and software that currently exists in the business enterprise. You can use existing equipment and develop into the Internet as an extension of your existing platform. The user interface is essentially thin client technology, and requires no special support or training. 5

Characteristics/Benefits of Internet Technology (con’t.) Location Independence Global access through Internet Reduced costs for dedicated connections Rapid development at manageable costs Development tools Low entry costs Available software & access tools 6 Characteristics/Benefits of Internet Technology (con’t.) Location Independence Global access through Internet Reduced costs for dedicated connections Rapid development at manageable costs Development tools Low entry costs Available software & access tools You can have locations around the globe, so geographic location is not a barrier. And you can develop and implement on the web very quickly and with relatively low cost. 6

Web-to-Database Middleware Server-side extension Interacts directly with Web server Handles specific requests Also known as Web-to-database middleware Examples ColdFusion CGI API 7 Web-to-Database Middleware Server-side extension Interacts directly with Web server Handles specific requests Also known as Web-to-database middleware Examples ColdFusion CGI API The extension of an existing infrastructure to the web is a “server-side” extension done through the use of certain software, called middleware, that creates the interface between the web access and the local database application. 7

Web-to-Database Middleware 8 Web-to-Database Middleware Figure 15.1 Here is a good illustration of how middleware is used to interface a backend database application with users around the world coming in through the Internet. Figure 15.1 8

Web Server Interfaces Common Gateway Interface (CGI) Uses script files to connect to database Perl, C++, VB Application Programming Interface (API) Newer and more efficient Uses DLLs Memory resident and faster Well known APIs Netscape (NSAPI) Internet Server API from Microsoft (ISAPI) WebSite API from O’Reilly (WSAPI) 9 Web Server Interfaces Common Gateway Interface (CGI) Uses script files to connect to database Perl, C++, VB Application Programming Interface (API) Newer and more efficient Uses DLLs Memory resident and faster Well known APIs Netscape (NSAPI) Internet Server API from Microsoft (ISAPI) WebSite API from O’Reilly (WSAPI) Some of the common, but older, methods of interfacing applications to the web are technologies known as Common Gateway Interface, or CGI. CGI uses some type of programming script language, usually Perl, C++, or Visual Basic to connect to the database from the web. New technologies create an Application Programming Interface, or API, that is more efficient and faster. 9

API and CGI Web Server Interfaces 10 API and CGI Web Server Interfaces Figure 15.2 Here is an illustration that shows how both APIs and CGI interfaces can connect the web user to a database application. Figure 15.2 10

Web-to-Database Middleware Connection Methods Native SQL access middleware Use services of Open Database Connectivity (ODBC) Use Object Linking and Embedding Database (OLE DB) interface with Windows ODBC most common 11 Web-to-Database Middleware Connection Methods Native SQL access middleware Use services of Open Database Connectivity (ODBC) Use Object Linking and Embedding Database (OLE DB) interface with Windows ODBC most common Connecting from the web to the database via some middleware can use various access methods, or technologies. Some middleware uses SQL in its native format to access the database. Open Database Connectivity, or ODBC, is a Microsoft “defacto” standard, which is essentially a SQL API. It is the most common form of connecting an application to a data source. 11

ODBC to Access Databases 12 ODBC to Access Databases Figure 15.3 Many third party application development tools use ODBC as the way to access the database. Figure 15.3 12

Web-to-Database Middleware Uses ODBC to Access Databases 13 Web-to-Database Middleware Uses ODBC to Access Databases Figure 15.4 Here is a good illustration of how an application would use ODBC technology to interface the application with the relational database, and connect to the data source. Figure 15.4 13

Web Browser Located on the client computer End user Web interface Interprets HTML code received from Web server Presents page components in a standard way Client-side extensions Plug-ins Java and JavaScript ActiveX and VBScript 14 Web Browser Located on the client computer End user Web interface Interprets HTML code received from Web server Presents page components in a standard way Client-side extensions Plug-ins Java and JavaScript ActiveX and VBScript The web browser is essentially the “client” where the user interface runs. The browser interprets HTML code and presents it in a format that the user can read. There are “extensions” on the client-side, referred to as plug-ins, script, or controls, that allow enhancements at the presentation layer to the user. 14

The Web as a Stateless System Web server does not know status of any client at any given time Request-reply model of communication Browser concerned only with current page Data processing requires additional software Java, JavaScript, VBScript 15 The Web as a Stateless System Web server does not know status of any client at any given time Request-reply model of communication Browser concerned only with current page Data processing requires additional software Java, JavaScript, VBScript The web is considered to be “stateless”, meaning that it does not know the status of any client at any given time. Clients simply initiate “requests” that are processed by the server-side, and the a “reply” is sent back to the client. Browsers are the ultimate “thin client” in that they have minimal resources, are only concerned with presentation of the current page, and require additional technology to achieve any kind of processing. 15

Internet Database: Special Considerations Involve more than just database-enabled Web applications Issues important to corporate databases Data security Transaction management Client-side data validation Operational and management challenges Database applications development most affected by Internet 16 Internet Database: Special Considerations Involve more than just database-enabled Web applications Issues important to corporate databases Data security Transaction management Client-side data validation Operational and management challenges Database applications development most affected by Internet Some of the special considerations with Internet database design are data security, transaction management, client-side data validation, and some operational/management issues. Since the interface works differently than a standard client/server implementation, database engineers must work closely with network engineers to address certain issues of special concern to Internet database applications. 16

Supported Data Types Integrated data from multiple sources Word-processor documents Pictures Sounds Movies Methods for storing and extracting data objects Overhead created by storage Client browser support of object being accessed Size of database considering multimedia and other data 17 Supported Data Types Integrated data from multiple sources Word-processor documents Pictures Sounds Movies Methods for storing and extracting data objects Overhead created by storage Client browser support of object being accessed Size of database considering multimedia and other data The Internet database applications support a full range of data types across the Internet. Working with large files from multimedia data types generally has more issue with availability of bandwidth, than from any database management issues. 17

Data Security Web Server Level RMDBS Vendors Secure transactions using encryption TCP/IP protocol level Firewalls RMDBS Vendors Login authentication Restrict access to particular SQL commands Web-to-database middleware End user restrictions Designer created algorithms Must support e-commerce applications 18 Data Security Web Server Level Secure transactions using encryption TCP/IP protocol level Firewalls RMDBS Vendors Login authentication Restrict access to particular SQL commands Web-to-database middleware End user restrictions Designer created algorithms Must support e-commerce applications Data security is a big issue on the Internet. With the potential for data security to be violated many times higher because of the general access to the Internet, many ecommerce applications work with both database security and network security as an integrated policy of how to protect data coming across the Internet. 18

Transaction Management Concept is foreign to Web Dilemma created by request-reply model Web cannot maintain open line between client and database Recovery requires client maintain open communications Designers must ensure proper transaction management support at database server level 19 Transaction Management Concept is foreign to Web Dilemma created by request-reply model Web cannot maintain open line between client and database Recovery requires client maintain open communications Designers must ensure proper transaction management support at database server level Transaction management is a little different across the Internet because of the lack of a persistent connection between the database and the application. Transaction management must be supported at the database server level. 19

Denormalization Web forms Solutions Cannot use multiple data entry lines 1:M relationships problematic Solutions Web programming languages Java, JavaScript, VBScript 20 Denormalization Web forms Cannot use multiple data entry lines 1:M relationships problematic Solutions Web programming languages Java, JavaScript, VBScript Sometimes database applications must “denormalize” data to get associated data into one table so that web forms can be developed to access the data. Fortunately, there are solutions to these kinds of problems through the use of various web programming languages. 20