Advanced Topics Chapter Seven DAVID M. KROENKE’S DATABASE CONCEPTS, 2 nd Edition.

Slides:



Advertisements
Similar presentations
Lecture plan Information retrieval (from week 11)
Advertisements

Chapter 11 Database Applications Using Internet Technology David M. Kroenke Database Processing © 2000 Prentice Hall.
Database Administration Chapter Six DAVID M. KROENKE and DAVID J. AUER DATABASE CONCEPTS, 4 th Edition.
Concepts of Database Management Seventh Edition
Database Processing Applications and Business Intelligence Chapter Seven DAVID M. KROENKE and DAVID J. AUER DATABASE CONCEPTS, 3 rd Edition.
Prentice Hall © COS 346 Day Agenda Capstone Progress report due Assignment 9 not corrected yet Assignment 10 posted (last one!!!) –Due.
BICS546 Client/Server Database Application Development.
B.Sc. Multimedia ComputingMedia Technologies Database Technologies.
Fundamentals, Design, and Implementation, 9/e SI654 Database Application Design Instructor: Dragomir R. Radev Winter 2005.
DAVID M. KROENKE’S DATABASE PROCESSING, 10th Edition © 2006 Pearson Prentice Hall COS 346 Day 23.
Outline IS400: Development of Business Applications on the Internet Fall 2004 Instructor: Dr. Boris Jukic Server Side Web Technologies: Part 2.
Getting Started (Excerpts) Chapter One DAVID M. KROENKE’S DATABASE CONCEPTS, 2 nd Edition.
Introduction to Web Interface Technology (CSE2030)
DAVID M. KROENKE’S DATABASE PROCESSING, 10th Edition © 2006 Pearson Prentice Hall 12-1 COS 346 Day 22.
Introduction to Web Interface Technology (CSE2030)
Database Processing Applications Chapter Seven DAVID M. KROENKE and DAVID J. AUER DATABASE CONCEPTS, 4 th Edition.
Database Processing Applications Chapter Seven DAVID M. KROENKE and DAVID J. AUER DATABASE CONCEPTS, 6 th Edition.
Database Processing for Business Intelligence Systems
Big Data, Data Warehouses, and Business Intelligence Systems
Chapter 14 Database Connectivity and Web Technologies
Advanced Topics Chapter Seven DAVID M. KROENKE’S DATABASE CONCEPTS, 2 nd Edition.
Big Data, Data Warehouses, and Business Intelligence Systems Chapter Eight DAVID M. KROENKE and DAVID J. AUER DATABASE CONCEPTS, 7 th Edition.
2440: 141 Web Site Administration Web Server-Side Programming Professor: Enoch E. Damson.
DAVID M. KROENKE’S DATABASE PROCESSING, 10th Edition © 2006 Pearson Prentice Hall 12-1 David M. Kroenke’s Chapter Twelve: ODBC Database Processing: Fundamentals,
Christopher M. Pascucci Basic Structural Concepts of.NET Browser – Server Interaction.
+ Connecting to the Web Week 7, Lecture A. + Midterm Basics Thursday February 28 during Class The lab Tuesday, February 26 is optional review Class on.
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
Chapter 12 Designing Distributed and Internet Systems
Server- Side technologies Client-side vs. Server-side scripts PHP basic ASP.NET basic ColdFusion.
Concepts of Database Management, Fifth Edition
Introduction to ASP.NET. Prehistory of ASP.NET Original Internet – text based WWW – static graphical content  HTML (client-side) Need for interactive.
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.
DAVID M. KROENKE’S DATABASE PROCESSING, 10th Edition © 2006 Pearson Prentice Hall 12-1 David M. Kroenke’s Chapter Twelve: ODBC, OLE DB, ADO, and ASP Part.
© 2006 ITT Educational Services Inc. Course Name: IT390 Business Database Administration Unit 9 Slide 1 IT 390 Business Database Administration Unit 9:
CSS/417 Introduction to Database Management Systems Workshop 5.
1 Web Server Administration Chapter 1 The Basics of Server and Web Server Administration.
© 2002 by Prentice Hall 1 David M. Kroenke Database Processing Eighth Edition Chapter 14 Networks, Multi-Tier Architectures, and XML.
Chapter 17 - Deploying Java Applications on the Web1 Chapter 17 Deploying Java Applications on the Web.
Fundamentals of Database Chapter 7 Database Technologies.
Web Server Administration Chapter 7 Installing and Testing a Programming Environment.
© 2011 Pearson Education, Inc. Publishing as Prentice Hall 1 Chapter 8: Database Application Development Modern Database Management 10 th Edition Jeffrey.
Concepts of Database Management Sixth Edition Chapter 9 Database Management Approaches.
_______________________________________________________________________________________________________________ E-Commerce: Fundamentals and Applications1.
1 Welcome to CSC 301 Web Programming Charles Frank.
Business Intelligence Systems Appendix J DAVID M. KROENKE and DAVID J. AUER DATABASE CONCEPTS, 6 th Edition.
1 MSCS 237 Overview of web technologies (A specific type of distributed systems)
Web Server Administration Chapter 7 Installing and Testing a Programming Environment.
Copyright © 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 2 Database System Concepts and Architecture.
DAVID M. KROENKE’S DATABASE PROCESSING, 10th Edition © 2006 Pearson Prentice Hall 12-1 David M. Kroenke’s Chapter Twelve: ODBC, OLE DB, ADO, and ASP Part.
+ Connecting to the Web Chapter 7. + Chapter Objectives Understand and be able to set up Web database processing Learn the basic concepts of Extensible.
CITA 310 Section 7 Installing and Testing a Programming Environment (Textbook Chapter 7)
KROENKE and AUER - DATABASE CONCEPTS (3 rd Edition) © 2008 Pearson Prentice Hall 6-1 Chapter Objectives Understand the need for and importance of database.
+ Big Data. + Chapter Objectives Learn the basic concepts of Big Data, structured storage, and the MapReduce process Learn the basic concepts of data.
Introduction Because database applications today reside in a complicated environment, various standards have been developed for accessing database servers.
© 2013 Pearson Education, Inc. Publishing as Prentice Hall 1 CHAPTER 8: DATABASE APPLICATION DEVELOPMENT Modern Database Management 11 th Edition Jeffrey.
David M. Kroenke and David J. Auer Database Processing Fundamentals, Design, and Implementation Chapter Twelve: Big Data, Data Warehouses, and Business.
Copyright © 2006 by The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill Technology Education Chapter 13 A & B Programming Languages and the.
Database Processing Applications Chapter Seven DAVID M. KROENKE and DAVID J. AUER DATABASE CONCEPTS, 7 th Edition.
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.
A Presentation Presentation On JSP On JSP & Online Shopping Cart Online Shopping Cart.
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.
Database Processing Applications and Business Intelligence
Database Applications Using Internet Technology
Database Administration
Database Processing Applications
Introduction of Week 11 Return assignment 9-1 Collect assignment 10-1
Database Processing: David M. Kroenke’s Chapter Twelve: Part One
Presentation transcript:

Advanced Topics Chapter Seven DAVID M. KROENKE’S DATABASE CONCEPTS, 2 nd Edition

DAVID M. KROENKE’S DATABASE CONCEPTS, 2nd Edition © 2005 Pearson Prentice Hall 7-2 Chapter Objectives Understand the nature, need and importance of the following topics:  Web database processing  Database processing with XML  Distributed database processing  OLAP and data mining  Object-relational database management

DAVID M. KROENKE’S DATABASE CONCEPTS, 2nd Edition © 2005 Pearson Prentice Hall 7-3 Web Database Processing Client computers use browsers Web server communicates via Hypertext Transfer Protocol (HTTP) and scripting / programming languages to browsers and DBMS DBMS communicates with database

DAVID M. KROENKE’S DATABASE CONCEPTS, 2nd Edition © 2005 Pearson Prentice Hall 7-4 Web Database Processing Environment

DAVID M. KROENKE’S DATABASE CONCEPTS, 2nd Edition © 2005 Pearson Prentice Hall 7-5 N-Tier Architecture Tiers refers to the number of computers involved in the Web database application –The user’s workstation with its’ Web browser is the first tier –Two-tier architecture means that the Web server and the DBMS are on the same server –Three-tier architecture means that the Web server and the DBMS are on separate servers

DAVID M. KROENKE’S DATABASE CONCEPTS, 2nd Edition © 2005 Pearson Prentice Hall 7-6 Typical Web Server Setups Microsoft Windows Linux or Unix Web ServerInternet Information Server (IIS) Apache Scripting Languages (Interpreted ASP Pages with VBScript or JScript (PHP also works) PHP Object Oriented Languages (Complied) ASP.NET pages with VisualBasic.Net, C#.Net or others JSP pages with Java (Also see the Mono project)Mono

DAVID M. KROENKE’S DATABASE CONCEPTS, 2nd Edition © 2005 Pearson Prentice Hall 7-7 Typical Web DBMS Servers Microsoft Windows Linux or Unix Web ServerInternet Information Server (IIS) Apache DBMSsMicrosoft SQL Server Oracle MySQL API Interface Standard ODBCJDBC

DAVID M. KROENKE’S DATABASE CONCEPTS, 2nd Edition © 2005 Pearson Prentice Hall 7-8 API Interface Standards Every DBMS has a different application program interface (API) API interface standards are used to make it easier for programmers – they write to the interface standard instead of the DBMS API –OBDC – Open Database Connectivity –JDBC – Not an acronym for anything! (in particular, not Java Database Connectivity)

DAVID M. KROENKE’S DATABASE CONCEPTS, 2nd Edition © 2005 Pearson Prentice Hall 7-9 Sample HTML Code <META HTTP-EQUIV="Content-Type" CONTENT="text/html;charset=windows- 1252"> Artist

DAVID M. KROENKE’S DATABASE CONCEPTS, 2nd Edition © 2005 Pearson Prentice Hall 7-10 Sample ASP Code <% Dim objConn, objRecordSet, varSql If IsObject(Session("_conn")) Then ' if already have a connection, use it Set objConn = Session("_conn") Else Set objConn = Server.CreateObject("ADODB.connection") ' get connection objConn.open "ViewRidgeSS" ' open VRG database using operating system authentication objConn.IsolationLevel = adXactReadCommitted ' avoid dirty reads Set Session("_conn") = objConn End If

DAVID M. KROENKE’S DATABASE CONCEPTS, 2nd Edition © 2005 Pearson Prentice Hall 7-11 Sample ASP Code (continued) Set objRecordSet = Server.CreateObject("ADODB.Recordset") ' create the record set object varSql = "SELECT Name, Nationality FROM ARTIST" ' set up SQL command objRecordSet.Open varSql, objConn, adOpenStatic, adLockReadOnly ' static with no need to update %>

DAVID M. KROENKE’S DATABASE CONCEPTS, 2nd Edition © 2005 Pearson Prentice Hall 7-12 Database Procesing with XML Extensible Markup Language (XML) is a standard for defining the structure of documents and communicating the documents among computers It provides user definable tags that can be used in Web pages and other documents

DAVID M. KROENKE’S DATABASE CONCEPTS, 2nd Edition © 2005 Pearson Prentice Hall 7-13 Sample XML document Michelle Correlli 1824 East 7th Avenue Suite 700 Memphis TN

DAVID M. KROENKE’S DATABASE CONCEPTS, 2nd Edition © 2005 Pearson Prentice Hall 7-14 XML Schema Documents XML schema documents define allowable tags and their relationships

DAVID M. KROENKE’S DATABASE CONCEPTS, 2nd Edition © 2005 Pearson Prentice Hall 7-15 XML Document Validation An XML document can declare the name and location of the schema that defines its tags XML documents that conform to their XML schemas are schema-valid documents XML schema documents are XML documents, and can be validated against their designated schema The “Schema of all schemas” is at

DAVID M. KROENKE’S DATABASE CONCEPTS, 2nd Edition © 2005 Pearson Prentice Hall 7-16 Sample XML Schema

DAVID M. KROENKE’S DATABASE CONCEPTS, 2nd Edition © 2005 Pearson Prentice Hall 7-17 XML and Database Processing DBMS programs are incorporating means to read and create XML documents SQL Server example: SELECT * FROM ARTIST FOR XML AUTO, ELEMENTS;

DAVID M. KROENKE’S DATABASE CONCEPTS, 2nd Edition © 2005 Pearson Prentice Hall 7-18 XLM Web Services XML Webs Services allows application functionality on one Web server to be shared and incorporated into Web applications on other Web servers

DAVID M. KROENKE’S DATABASE CONCEPTS, 2nd Edition © 2005 Pearson Prentice Hall 7-19 Distributed Database Processing A database is distributed when it is: –Partitioned –Replicated –Both partitioned and replicated This is fairly straight forward for read- only replicas, but it can be very difficult for other installations

DAVID M. KROENKE’S DATABASE CONCEPTS, 2nd Edition © 2005 Pearson Prentice Hall 7-20 Type of Distributed Databases

DAVID M. KROENKE’S DATABASE CONCEPTS, 2nd Edition © 2005 Pearson Prentice Hall 7-21 OLAP and Data Mining OnLine Analytical Processing (OLAP) is a technique for dynamically examining database data –OLAP uses arithmetic functions (Sum, Average, etc) Data Mining is a mathematically sophisticated technique for analyzing database data –Data mining use mathematical and statistical techniques

DAVID M. KROENKE’S DATABASE CONCEPTS, 2nd Edition © 2005 Pearson Prentice Hall 7-22 OLAP OLAP uses a table called an OLAP cube The OLAP cube uses inputs called dimensions The OLAP cube calculates outputs called measures

DAVID M. KROENKE’S DATABASE CONCEPTS, 2nd Edition © 2005 Pearson Prentice Hall 7-23 Sample OLAP Cube

DAVID M. KROENKE’S DATABASE CONCEPTS, 2nd Edition © 2005 Pearson Prentice Hall 7-24 Data Mining Techniques Data Mining mathematical and statistical techniques include: –Cluster analysis –Regression analysis –Time-series analysis –Factor analysis –Nonparametric Monte Carlo analysis

DAVID M. KROENKE’S DATABASE CONCEPTS, 2nd Edition © 2005 Pearson Prentice Hall 7-25 Object-Relational Database Management Object-oriented programming (OOP) is based on objects, and OOP is now used as the basis of many computer programming languages –Java –VisualBasic.Net –C++ –C#

DAVID M. KROENKE’S DATABASE CONCEPTS, 2nd Edition © 2005 Pearson Prentice Hall 7-26 Objects Object classes have –Identifiers –Properties These are data items associated with the object –Methods These are programs that allow the object to perform tasks The only difference between entity classes and object classes is the methods.

DAVID M. KROENKE’S DATABASE CONCEPTS, 2nd Edition © 2005 Pearson Prentice Hall 7-27 Object Persistence Object persistence means that values of the object properties are storable and retrievable Object persistence can be achieved by various techniques –A main technique is database technology –Relational databases can be used, but require substantial programming

DAVID M. KROENKE’S DATABASE CONCEPTS, 2nd Edition © 2005 Pearson Prentice Hall 7-28 OODBMS Object-Oriented DBMSs (OODBMSs) have been developed –Never achieved commercial success It would be too expensive to transfer existing data from relational and other legacy databases Therefore, the OODBMSs were not cost justifiable

DAVID M. KROENKE’S DATABASE CONCEPTS, 2nd Edition © 2005 Pearson Prentice Hall 7-29 Object-Relational DBMSs Some relational DBMS vendors have added object-oriented features to their products –Oracle These products are known as object- relational DBMSs and support object- relational databases

Advanced Topics End of Presentation on Chapter Seven DAVID M. KROENKE’S DATABASE CONCEPTS, 2 nd Edition