ODBC and JDBC.

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)
Copyright  Oracle Corporation, All rights reserved. 2 Java and Databases: An Overview.
Technical Architectures
Java and Databases CS-328 Dick Steflik. Database Drivers Think of a database as just another device connected to your computer like other devices it has.
Distributed Application Development B. Ramamurthy.
SQL (Structured Query Language) X/OPEN Call Level Interface For SQL ODBC (Open DataBase Connectivity) API JDBC (Java DataBase Connectivity) API SQL (Structured.
ODBC and JDBC Aggie Hoversten CSCI Fall 1999.
1 C. Shahabi Application Programming for Relational Databases Cyrus Shahabi Computer Science Department University of Southern California
Chapter 11 – Database-Oriented Middleware & EAI Database access is the key element to EAI, especially data-level EAI. Database oriented middleware is not.
Client/Server Computing. Information processing is distributed among several workstations and servers on a network, with each function being assigned.
Advanced OOP MCS-3 OOP BSCS-3 Lecture # 11. DATABASE CONNECTIVITY IN JAVA JDBC Programming JDBC (Java Database Connectivity) is the specification of a.
ODBC Open DataBase Connectivity a standard database access method developed by Microsoft to access data from any application regardless of which database.
JDBC / ODBC JDBC is the java API that facilitate interaction of a java application with the DBMS. FIRST APPROACH:
Advance Computer Programming Java Database Connectivity (JDBC) – In order to connect a Java application to a database, you need to use a JDBC driver. –
Getting connected.  Java application calls the JDBC library.  JDBC loads a driver which talks to the database.  We can change database engines without.
JDBC Vs. Java Blend Presentation by Gopal Manchikanti Shivakumar Balasubramanyam.
ODBC
Lecture On Database Analysis and Design By- Jesmin Akhter Lecturer, IIT, Jahangirnagar University.
Designing and Developing WS B. Ramamurthy. Plans We will examine the resources available for development of JAX-WS based web services. We need an IDE,
Connecting to Oracle using Java November 4, 2009 David Goldschmidt, Ph.D. David Goldschmidt, Ph.D.
Introduction to JDBC Michelle Lee, Ye Wu & Jeff Offutt SWE 432 Design and Implementation of Software for the Web.
Accessing Database using JDBC. JDBC Objectives Gain basic knowledge of Java JDBC Become familiar with the basics of interacting with a database using.
WEB/DB1 DATABASE PROGRAMMING 3JDBC by the ASU Scholars.
School of Computing and Management Sciences © Sheffield Hallam University Issues of Data Access 101(-ish) ways to access data from a database! ODBC One.
DB-1: Understanding and Leveraging the Latest ODBC and JDBC Technology What’s new in OpenEdge® 10.1A? Rob Steward Director of Software Development.
DB MidWare CSIS 4490 N-Tier Client/Server Dr. Hoganson Database Middleware Early client/server database systems –Two tier –Server does business logic (data.
Session 30 Basics of JDBC. Java Simplified / Session 30 / 2 of 33 Review A Swing menu consists of a menubar, menuitems and menus. Trees are used to depict.
JDBC CHAPTER-2. JDBC - Java Database Connectivity. JDBC from Sun Microsystems provides API or Protocol to interact with different databases. With the.
12/6/2015B.Ramamurthy1 Java Database Connectivity B.Ramamurthy.
JDBC
Copyright © Curt Hill Connectivity Communicating with the Database.
Java and Databases. JDBC Architecture Java Application JDBC API Data Base Drivers AccessSQL Server DB2InformixMySQLSybase.
UNIT III - JDBC JDBC Overview – JDBC implementation – Connection class – Statements - Catching Database Results, handling database Queries. Networking–
DATABASE CONNECTIVITY TO MYSQL. Introduction =>A real life application needs to manipulate data stored in a Database. =>A database is a collection of.
Java JDBC API. A Java API To Access almost any kind of tabular data To Access almost any kind of tabular data Trademarked (not an acronym) Trademarked.
CSI 3125, Preliminaries, page 1 JDBC. CSI 3125, Preliminaries, page 2 JDBC JDBC stands for Java Database Connectivity, which is a standard Java API (application.
Basics of JDBC Session 14.
JDBC Chapter 1 JDBC Introduction
JDBC - Java Database Connectivity. JDBC provides Java applications with access to most database systems via SQL The architecture and API closely resemble.
Ch. NoNameMarks 01AWT24 02Networking18 03JDBC20 04Swing18 05Servlet20 Advance Java Programming.
JDBC. SQL(Structured Query Language) is divided into 1.DDL(Data Definition Language) create db, create table, alter table, drop db or table 2.DML(Data.
JDBC. Database is used to store data permanently. These days almost all Applications needs database to store its data persistently. Below are the most.
R EMAINING TOPICS IN JDBC Sagun Dhakhwa. O VERVIEW Introduction to JDBC API Types of JDBC Drivers Introduction to ODBC.
NET8 Protocol Analysis & Emulation Guided by Dr. Ran Giladi Students: Michal Bukai Ran Steinherz.
Application Sharing Bhavesh Amin Casey Miller Casey Miller Ajay Patel Ajay Patel Bhavesh Thakker Bhavesh Thakker.
Web-based Software Development - An introduction
DEPTT. OF COMP. SC & APPLICATIONS
Note: To complete the examples in this section you need access to a database!! Most of the examples work for any database with JDBC drivers. However, connecting.
Interacting with Database
Accessing the Database Server: ODBC, OLE DB, and ADO
Chapter 9: The Client/Server Database Environment
ODBC, OCCI and JDBC overview
JDBC Database Management Database connectivity
Distributed Computing
Chapter 2 Database System Concepts and Architecture
The Client/Server Database Environment
Introduction to Programming with Java
Mr. Harish Sharma Asst. Professor Dept. of CA & IT SGRRITS Dehradun
Oracle 9i Lite Storing the data on the device one of task of middleware component. For this we going for database component like oracle 9i lite and.
Interacting with Database
JDBC – ODBC DRIVERS.
Java Database Connectivity
Introduction of Week 11 Return assignment 9-1 Collect assignment 10-1
JAVA DATABaSE CONNECTIVITY
Java API for Database Connectivity
Lecture 1 Runtime environments.
Database Processing: David M. Kroenke’s Chapter Twelve: Part One
Introduction of Week 5 Assignment Discussion
Presentation transcript:

ODBC and JDBC

Object Database Connectivity (ODBC) ODBC: Object Database Connectivity Ability to connect to a multitude of data sources using a single API. Based on the Call Level Interface specified by the SQL Access Group.

Object Database Connectivity (ODBC) Using vendor-supplied drivers to translate the ODBC commands into something understood by the DBMS, a single application can connect and communicate with multiple databases using a single, common set of commands. Example: Human Resources applications that pull employee data from three distinct DBMSs.

Java Database Connectivity (JDBC) Uses the same underlying concept of ODBC, but offers the portability of the Java programming language. 4 different kinds exist that depend on the JVM and third party software to different degrees.

JDBC Type 1: JDBC-ODBC Bridge JDBC calls are translated into ODBC commands. In this case, JDBC is a layer on top of ODBC. Requires at least that ODBC binaries be installed on each machine where an app using this type of JDBC is installed.

JDBC Type 2: JDBC Layered over a Native API Similar to the previous type in that binaries must be installed in addition to any apps that use this type of JDBC. Native APIs are supplied by vendors for translating JDBC calls into a form understood by their proprietary DBMSs.

JDBC Type 3: Pure Java Driver for Database Middleware All client-side code is written in pure Java that sends commands to a middleware program that translates them into a form understood the DBMS. According to Oracle, the middleware offers the ability to connect to many different databases.

JDBC Type 4: Direct-to-Database Pure Java Driver All code for the driver is written purely in Java. JDBC calls are converted directly into a vendor's proprietary network protocol for communicating with their DBMS. Allows client apps to communicate directly with their backend server.

JDBC/ODBC and Concerns for Mobile Computing While it is possible to use ODBC/JDBC to communicate with a DBMS from your iPhone/Android/Windows Phone device, it is not recommended. Why?: Bandwidth issues. Security-related issues. Lack of processing power on the client-side.