0% found this document useful (0 votes)
587 views

DBMS Architecture and Data Independance

The document discusses the three schema architecture of DBMS, which separates the user application from the physical database using three levels of schemas: internal, conceptual, and external. The internal schema describes the physical storage structure. The conceptual schema describes the overall database structure for all users. External schemas include user views. Data independence allows changing schemas at one level without affecting higher levels, including logical data independence to change the conceptual schema and physical data independence to change the internal schema. Mappings are needed to transform requests and results between schema levels.

Uploaded by

Ashwitha Nailesh
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as PPT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
587 views

DBMS Architecture and Data Independance

The document discusses the three schema architecture of DBMS, which separates the user application from the physical database using three levels of schemas: internal, conceptual, and external. The internal schema describes the physical storage structure. The conceptual schema describes the overall database structure for all users. External schemas include user views. Data independence allows changing schemas at one level without affecting higher levels, including logical data independence to change the conceptual schema and physical data independence to change the internal schema. Mappings are needed to transform requests and results between schema levels.

Uploaded by

Ashwitha Nailesh
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as PPT, PDF, TXT or read online on Scribd
You are on page 1/ 9

DBMS Architecture and Data Independence

The Three Schema Architecture

Goal : is to separate the user application and the physical database. Schema can be defined at three levels:
Internal Level has an internal schema Conceptual Level has an conceptual schema External or View Level includes a number of external schemas or user views.

The Three Schema Architecture

The Three Schema Architecture

Internal Schema

Describes the physical storage structure of the database. Uses physical data model.
Describes the structure of the whole database for a community of users. Uses a conceptual or an implementational data model

Conceptual Schema

External Schema

Includes a number of user view. Uses a high level or implementational data model .

The Three Schema Architecture

The three schemas are only descriptions of data. The only data actually exists is at the physical level. Each user group refers only to its own external schema. Hence, the DBMS must transform a request specified on an external schema into a request against the conceptual schema, and then into a request on the internal schema for processing over the stored database. If the request is a database retrieval, the data extracted from the stored database must be reformatted to match the users external view. The process of transforming requests and results between levels mappings.

Data Independence

Defintion:

Capacity to change the schema at one level of a database system without having to change the schema at next higher level.

Two types:
Logical Data Independence Physical Data Independence

Data Independence

Logical Data Independence

Capacity to change the conceptual schema without having to change the external schema. We may change the conceptual schema

Expand the database (adding a new column) Reduce the database (removing a column)

External schema that refer to the other data should not be affected. Only the view definition and the mappings need to be changed in a DBMS that supports Logical Data Independence.

Data Independence

Physical Data Independence

Capacity of changing the internal schema without having to change the conceptual (or external) schemas. Changes to the internal schema may be needed because some physical files had to be reorganized

Ex: By creating additional access structures To improve retrieval or update.

Advantages and disadvantages

The three -Schema Architecture can make it easier to achieve true data independence (both Physical and Logical) Mappings create an overhead during compilation or execution of a query or a program Not implemented fully by DBMSs

Database Languages and Interfaces

DBMS Languages
Data Definition Language (DDL) Storage Definition Language (SDL) View Definition Language (VDL) Data Manipulation Language (DML)

You might also like