DATABASE PROGRAMMING Lecture on 16 – 05 – 2005. PREVIOUS LECTURE QUIZ: - Some students were very creative in transforming 2NF to 3NF. Excellent! - Some.

Slides:



Advertisements
Similar presentations
Connecting to Databases. relational databases tables and relations accessed using SQL database -specific functionality –transaction processing commit.
Advertisements

Lecture plan Information retrieval (from week 11)
Objectives In this session, you will learn to:
Technical Architectures
ISYS 546 Client/Server Database Application Development.
BICS546 Client/Server Database Application Development.
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.
Outline IS400: Development of Business Applications on the Internet Fall 2004 Instructor: Dr. Boris Jukic Server Side Web Technologies: Part 2.
1 C. Shahabi Application Programming for Relational Databases Cyrus Shahabi Computer Science Department University of Southern California
12 Chapter 12 Client/Server Systems Hachim Haddouti.
12 Chapter 12 Client/Server Systems Database Systems: Design, Implementation, and Management, Fifth Edition, Rob and Coronel.
Chapter 9: The Client/Server Database Environment
© Prentice Hall CHAPTER 3 Computer Software.
Systems Architecture, Fourth Edition1 Internet and Distributed Application Services Chapter 13.
1 A Student Guide to Object- Orientated Development Chapter 9 Design.
12-1 © Prentice Hall, 2004 Chapter 12: Design Elements Object-Oriented Systems Analysis and Design Joey F. George, Dinesh Batra, Joseph S. Valacich, Jeffrey.
Computer Science 101 Web Access to Databases Overview of Web Access to Databases.
1 © Prentice Hall, 2002 The Client/Server Database Environment.
Lecture The Client/Server Database Environment
Confidential ODBC May 7, Features What is ODBC? Why Create an ODBC Driver for Rochade? How do we Expose Rochade as Relational Transformation.
The Client/Server Database Environment
Web Application Architecture: multi-tier (2-tier, 3-tier) & mvc
Chapter 2 Database System Concepts and Architecture
UNIT-V The MVC architecture and Struts Framework.
ODBC Open DataBase Connectivity a standard database access method developed by Microsoft to access data from any application regardless of which database.
Advance Computer Programming Java Database Connectivity (JDBC) – In order to connect a Java application to a database, you need to use a JDBC driver. –
JDBC Vs. Java Blend Presentation by Gopal Manchikanti Shivakumar Balasubramanyam.
Database System Concepts and Architecture Lecture # 3 22 June 2012 National University of Computer and Emerging Sciences.
Chapter 5 Lecture 2. Principles of Information Systems2 Objectives Understand Data definition language (DDL) and data dictionary Learn about popular DBMSs.
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.
Oracle8 JDBC Drivers Section 2. Common Features of Oracle JDBC Drivers The server-side and client-side Oracle JDBC drivers provide the same basic functionality.
Interacting With Data Week 8 Connecting to the database Creating recordsets Interacting with the database.
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.
ODBC : Open Database Connectivity SNU OOPSLA Lab. October 2005.
M1G Introduction to Database Development 6. Building Applications.
Slide 1 Physical Architecture Layer Design Chapter 13.
MET280: Computing for Bioinformatics Introduction to databases What is a database? Not a spreadsheet. Data types and uses DBMS (DataBase Management System)
Database Design and Management CPTG /23/2015Chapter 12 of 38 Functions of a Database Store data Store data School: student records, class schedules,
The Client/Server Database Environment Ployphan Sornsuwit KPRU Ref.
Mainframe (Host) - Communications - User Interface - Business Logic - DBMS - Operating System - Storage (DB Files) Terminal (Display/Keyboard) Terminal.
3-Tier Client/Server Internet Example. TIER 1 - User interface and navigation Labeled Tier 1 in the following graphic, this layer comprises the entire.
INTRODUCTION TO WEB APPLICATION Chapter 1. In this chapter, you will learn about:  The evolution of the Internet  The beginning of the World Wide Web,
DB MidWare CSIS 4490 N-Tier Client/Server Dr. Hoganson Database Middleware Early client/server database systems –Two tier –Server does business logic (data.
Assignment of JAVA id : BSSE-F10-M-10-JAVA1 Overview of J2EE/Session 2/Slide 1 of 38.
© FPT SOFTWARE – TRAINING MATERIAL – Internal use 04e-BM/NS/HDCV/FSOFT v2/3 JSP Application Models.
Basics of JDBC Session 14.
ODBC : Open Database Connectivity SNU OOPSLA Lab. October 2005.
ECMM6018 Enterprise Networking For Electronic Commerce Tutorial 6 CGI/Perl and databases.
JDBC Chapter 1 JDBC Introduction
Copyright 2007, Information Builders. Slide 1 iWay Web Services and WebFOCUS Consumption Michael Florkowski Information Builders.
DAT602 Database Application Development Lecture 1 Course Structure & Background knowledge.
In the Name Of Almighty Allah. Java Application Connection To Mysql Created by Hasibullah (Sahibzada) Kabul Computer Science Faculty Afghanistan.
Fall 2000C.Watters1 World Wide Web and E-Commerce Servers & Server Side Processing.
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.
E-commerce Architecture Ayşe Başar Bener. Client Server Architecture E-commerce is based on client/ server architecture –Client processes requesting service.
R EMAINING TOPICS IN JDBC Sagun Dhakhwa. O VERVIEW Introduction to JDBC API Types of JDBC Drivers Introduction to ODBC.
A Presentation Presentation On JSP On JSP & Online Shopping Cart Online Shopping Cart.
DEPTT. OF COMP. SC & APPLICATIONS
Chapter 9: The Client/Server Database Environment
The Client/Server Database Environment
MVC and other n-tier Architectures
The Client/Server Database Environment
The Client/Server Database Environment
#01 Client/Server Computing
Enterprise Application Architecture
Lecture 1: Multi-tier Architecture Overview
Introduction of Week 11 Return assignment 9-1 Collect assignment 10-1
UFCEUS-20-2 Web Programming
#01 Client/Server Computing
Presentation transcript:

DATABASE PROGRAMMING Lecture on 16 – 05 – 2005

PREVIOUS LECTURE QUIZ: - Some students were very creative in transforming 2NF to 3NF. Excellent! - Some of the answers were not effective and seemed forcing to decompose a table unnecessarily. - Some students just copied their friends' answers. It's OK for Quiz but not for exam! Remember this, in exam you will get 0.

NEWS 1. All lecture materials and Normalixation quiz marks are available on

DATABASE APPLICATION A database application is a program that is used to manipulate data contained in a database. Application isolates users from the data in the database. Thus, users should not know or care: which data elements are stored in what tables or columns, what data types are used, or how much storage is available. Users should only care about: entering data correctly, or extracting data that is needed.

EVOLUTION OF DATABASE APPLICATION 1. Networks The advent of networks. Exchanging data in a network, lead to 'client-server architecture'. 2. The Internet Exchanging data through some set of networking protocols, such as (SMTP/POP2/IMAP) and FTP. 3. The Web Ability to break database application into modules, so users only know or care about entering data and extracting data that is needed. 4. Intranets Simulates 'mini Internet' in an enterprise. Applying Internet protocols in the intranet.

THREE-TIER MODEL This model divides a database application into three sections or tiers. Each tier receives data and performs a well-defined task upon it. If all goes well, the tier then forwards the data; if an error occurs, it returns an error to the data source. Three-tier model can be described as follows: 1. Bottom Tier: Access to the database (MySQL, Oracle) 2. Middle Tier: Business Logic (JavaBean) 3. Top Tier: User Interface (JSP)

BOTTOM TIER This tier is the 'data-source'. It consist of the database engine, plus drivers and networking software with which your application accesses the engine. For example, MySQL - Connector J - TCP/IP. This tier receives instructions from the tier above it, executes them, generates results (reply to those instructions or error), and return to the tier above it

MIDDLE TIER Sometimes is also called as middleware. This tier is where the application business logic implemented. This tier receives instructions from the tier above it, compares with the rules programmed into it, sends instructions to the bottom tier, waits for reply from the bottom tier, forwards the reply from bottom tier to top tier. Example of rules in this tier: check whether the book is not borrowed, then someone can borrow it.

TOP TIER The top tier holds the user interface, so sometimes also called Presentation Logic as it is responsible for presentation of data. This tier displays instructions and data, waits for user interaction, then forward the instruction to the middle tier.

BENEFITS OF THE THREE- TIER Easier Design It will be easier for human being to think clearly about a complex task by dealing with it one piece at a time. Easier Implementation Each piece can be written and debugged separately. Reusability As it is decomposed into modules, modules that perform the same task should be able to be used repeatedly. Distributability Each module can be distributed over a network.

EXAMPLE OF THE THREE- TIER Bottom Tier: MySQL as database engine. Middle Tier: PHP or JAVABEAN Top Tier: HTML with CSS or Javascript

DRIVERS In our previous discussion, we talk about accessing database directly. However, it is becoming common that we have a driver between our database engine and the application. The most commonly used drivers are built around: Microsoft's Open Database Connectivity (ODBC), and Sun's Java Database Connectivity( JDBC).

ODBC ODBC definition according to Webpodia( Stand for Open DataBase Connectivity, a standard database access method developed by the SQL Access group in The goal of ODBC is to make it possible to access any data from any application, regardless of which database management system (DBMS) is handling the data. ODBC manages this by inserting a middle layer, called a database driver, between an application and the DBMS. The purpose of this layer is to translate the application's data queries into commands that the DBMS understands. For this to work, both the application and the DBMS must be ODBC-compliant -- that is, the application must be capable of issuing ODBC commands and the DBMS must be capable of responding to them.

ODBC(2) Microsoft Definition ( us/odbc/htm/dasdkodbcoverview.asp) : The Microsoft® Open Database Connectivity (ODBC) interface is a C programming language interface that makes it possible for applications to access data from a variety of database management systems (DBMSs). The ODBC interface permits maximum interoperability — an application can access data in diverse DBMSs through a single interface. Furthermore, that application will be independent of any DBMS from which it accesses data. Users of the application can add software components called drivers, which interface between an application and a specific DBMS.

Why ODBC Portable Data Access Code Available in many platforms. Microsoft has made some enhancements to its ODBC. Unix/Linux platform can take the same advantage using UnixODBC Dynamic Data Binding Easy to configure an application to use any ODBC compliant data source. No need to recompile application to change the data source

REFERENCES Michele Petrovsky, Linux Database Bible Chapter 12, Hungry Minds.