Introduction to 3 tier architecture of DBMS basics and details

ShrutiArora343479 61 views 15 slides Jan 17, 2025
Slide 1
Slide 1 of 15
Slide 1
1
Slide 2
2
Slide 3
3
Slide 4
4
Slide 5
5
Slide 6
6
Slide 7
7
Slide 8
8
Slide 9
9
Slide 10
10
Slide 11
11
Slide 12
12
Slide 13
13
Slide 14
14
Slide 15
15

About This Presentation

3 tier architecture of DBMS


Slide Content

Copyright © 2007 Ramez Elmasri and Shamkant B. Navathe Slide 1- 1
Chapter 2: Database System Concepts and Architecture -
Outline
Data Models and Their Categories
History of Data Models
Schemas, Instances, and States
Three-Schema Architecture
Data Independence
DBMS Languages and Interfaces
Database System Utilities and Tools
Centralized and Client-Server Architectures
Classification of DBMSs

Copyright © 2007 Ramez Elmasri and Shamkant B. Navathe Slide 1- 2
Data Models

Data Model:

structure of a database, the operations for manipulating these
structures, and certain constraints that the database should
obey.

Data Model Structure and Constraints:

Data Model Operations:
Categories of Data Models

Conceptual (high-level, semantic) data models:

(Also called entity-based or object-based data models.)

Physical (low-level, internal) data models:

Implementation (representational) data models: ex: relational
data model

Copyright © 2007 Ramez Elmasri and Shamkant B. Navathe Slide 1- 3
Database Schema, Instance and State

Database Schema:

Includes descriptions of the database structure, data types, and
the constraints on the database.

Schema Diagram:

An illustrative display of (most aspects of) a database schema.

Schema Construct:

A component of the schema or an object within the schema, e.g.,
STUDENT, COURSE.

Distinction

The database schema changes very infrequently.

The database state changes every time the database is updated.

Schema is also called intension.

State is also called extension.

Copyright © 2007 Ramez Elmasri and Shamkant B. Navathe Slide 1- 4
Example of a Database Schema

Copyright © 2007 Ramez Elmasri and Shamkant B. Navathe Slide 1- 5
Example of a database state
NameStudent_numberClassMajor
Smith17 1 CS
Brown8 2 CS
STUDENT

Copyright © 2007 Ramez Elmasri and Shamkant B. Navathe Slide 1- 6
Three-Schema Architecture

Defines DBMS schemas at three levels:

Internal schema

Conceptual schema: entities, data types, relationships, etc

External schemas at the external level to describe the various user views.

Usually uses the same data model as the conceptual schema.

Refer to : https://www.javatpoint.com/dbms-three-schema-architecture
Data Independence:

Logical Data Independence: ability to change conceptual schema without
effecting appl. programs

Physical Data Independence: ability to change internal schema without
effecting upper layers

Copyright © 2007 Ramez Elmasri and Shamkant B. Navathe Slide 1- 7

Copyright © 2007 Ramez Elmasri and Shamkant B. Navathe Slide 1- 8
DBMS Languages

Data Definition Language (DDL)

Data Manipulation Language (DML)

High-Level or Non-procedural Languages: These
include the relational language SQL

May be used in a standalone way or may be embedded in a
programming language. Also called declarative langauages

Low Level or Procedural Languages:

These must be embedded in a programming language

Copyright © 2007 Ramez Elmasri and Shamkant B. Navathe Slide 1- 9
DBMS Interfaces

Stand-alone query language interfaces

Example: Entering SQL queries at the DBMS
interactive SQL interface (e.g. SQL*Plus in ORACLE)

Programmer interfaces for embedding DML in
programming languages

User-friendly interfaces

Menu-based, forms-based, graphics-based, etc.

Copyright © 2007 Ramez Elmasri and Shamkant B. Navathe Slide 1- 10
DBMS Programming Language Interfaces

Embedded Approach: e.g embedded SQL (for C, C++, etc.),
SQLJ (for Java)

Procedure Call Approach: e.g. JDBC for Java, ODBC for other
programming languages

Database Programming Language Approach : e.g. ORACLE
has PL/SQL

Menu-based, popular for browsing on the web

Forms-based, designed for naïve users

Graphics-based

Natural language: requests in written English

Combinations of the above:

Speech as Input and Output

Web Browser as an interface

Parametric interfaces, e.g., bank tellers using function keys.

Interfaces for the DBA:

Copyright © 2007 Ramez Elmasri and Shamkant B. Navathe Slide 1- 11
Database System Utilities

To perform certain functions such as:

Loading data stored in files into a database. Includes data
conversion tools.

Backing up the database periodically on tape.

Reorganizing database file structures.

Report generation utilities.

Performance monitoring utilities.

Application Development Environments and CASE (computer-aided
software engineering) tools:

Examples:

PowerBuilder (Sybase)

JBuilder (Borland)

Oracle SQL Developer, JDeveloper 10G (Oracle)

Copyright © 2007 Ramez Elmasri and Shamkant B. Navathe Slide 1- 12
A Physical Centralized Architecture

Copyright © 2007 Ramez Elmasri and Shamkant B. Navathe Slide 1- 13
Logical two-tier client server architecture

Copyright © 2007 Ramez Elmasri and Shamkant B. Navathe Slide 1- 14
Three-tier client-server architecture

Copyright © 2007 Ramez Elmasri and Shamkant B. Navathe Slide 1- 15
Classification of DBMSs

Based on the data model used

Traditional: Relational, Network, Hierarchical.

Emerging: Object-oriented, Object-relational.

Other classifications

Single-user vs. multi-user.

Centralized vs. Distributed

Homogeneous DDBMS vs Heterogeneous DDBMS

Federated or Multidatabase Systems

Distributed Database Systems

Based on cost factors

Big data models : key value, document, graph, etc