Is A Collection of Andasetof .: Dbms Interrelated Data Methods To Manipulate That Data Advantages of DBMS
Is A Collection of Andasetof .: Dbms Interrelated Data Methods To Manipulate That Data Advantages of DBMS
Advantages of DBMS
• Reduces redundancy
• Avoids inconsistency
• Allows to share data
• Concurrency control
• Data integrity
Most powerful DBMS are Relational
Data Base Management Systems.
Database server
DBMS
Three-tier Model
Http,RMI,CORBA...
JDBC calls.
Driver can
• Establish a connection to database
• Sends requests to database.
• Return results to user Application
• Perform translations when required
by the user application
• Format errors.
1JDBC ODBC Bridge
Application
Database
JDBC-ODBC bridge driver, converts JDBC calls to ODBC calls
2. Native API as basic
Application
Database
This driver forwards calls to a locally installed library, usually
developed in C language and provided by the database vendor.
3. JDBC-Net-All- Java Driver
Application Client
JDBC Driver(Client)
JDBC Driver n/w protocol
Java
JDBC Driver(server)
Native Driver Server
Database
All layers necessary to communicate with database are implemented
in java and are fully portable because they do not use local libraries
or native code.
4. Native protocol-All java driver
Application
JDBC Driver Java
Database
This driver is platform independent because it is purely written
in Java. This driver is specific to the database.
Java Application
ODBC
Native Driver
Driver
Native
Driver
PreparedStatement ps=
con.prepareStatement
(“Select * from emp where dept=?”);
ps.executeQuery();