You are on page 1of 16

Module 1: OVERVIEW

OF DATABASE
LANGUAGES &
ARCHITECTURES
(Part-2)
 A data model-a collection of concepts that can be used to
describe the structure of a database to provide abstraction.
 By structure of a database, we mean the data types, relationships,
and constraints that should hold for the data.
DATA Categories of Data Models:
MODELS, High-level or conceptual data models:
SCHEMAS,  use concepts such as entities, attributes, and relationships.(ER
model)
AND Low-level or physical data models:
INSTANCES  Provide concepts that describe the details of how data is stored in
the computer. Record formats, access paths(indexing, hashing)
Representational (or implementation) data models:

• Provide concepts that may be understood by end users.

• Uses relational, network data models

• Represent data using record structures (record based data models)


• The description of a database is called the database
schema
• A displayed schema is called a schema diagram

Schemas, • The data in the database at a particular moment in time is


called a “database state” or “snapshot” or “instances” in
Instances, and the database.

Database • The corresponding database state is the empty state with


no data.
State • We get the initial state of the database when the database
is first populated or loaded with the initial data.
• At any point in time, the database has a current state.
• Every state of the database should be a valid state
• Schema is called intension; database state is called extension of the schema
• Schema evolution (changes in schema as the requirements change)
THREE-SCHEMA ARCHITECTURE AND DATA INDEPENDENCE

The Three-Schema Architecture:


separate the user applications and the physical
database.
• Schemas can be defined at the following three
levels:
a)The internal level has an internal schema,
which describes the physical storage structure
of the database.
b)The conceptual level has a conceptual
schema, which hides the details of physical
storage structures and concentrates on
describing entities, data types, relationships,
user operations, and constraints.
c)The external or view level, which includes a
number of external schemas or user views
Data Independence (Advantages of three-schema
architecture):

defined as the capacity to change the schema at one


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

Two Types of data independence: Logical, Physical


• Logical data independence is the capacity to change the
conceptual schema without having to change external schemas
or application programs. We may change the conceptual schema
to:
• Expand the database (by adding a record type or data item)
• To change constraints
• To reduce the database (by removing a record type or data item)
Physical data independence

capacity to change the internal schema without having to change the conceptual schema.

Some physical files need to be reorganized


• For creating additional access structures
• To improve the performance of retrieval or update
• Include access paths: index, hashing
Disadvantages of three-schema architechture:
• Whenever we have a multiple-level DBMS, its catalog must be expanded to include
information on how to map requests and data among the various levels.
• The DBMS uses additional software to accomplish these mappings by referring to the
mapping information in the catalog.
• The two levels of mappings create an overhead during compilation or execution of a
query or program, leading to inefficiencies in the DBMS.
• Th process of transforming requests, results between levels is called Mappings.
DATABASE LANGUAGES

DBMS Languages:
Data Definition language (DDL)

Storage Definition language (SDL)

View Definition language (VDL)

Data Manipulation language (DML)

high-level or nonprocedural DML

low-level or procedural DML


Menu-Based Interfaces

Forms-Based Interfaces

Graphical User Interfaces


DBMS Natural Language Interfaces
Interfaces
Interfaces for Parametric Users
Interfaces for the DBA
Apps for Mobile devices
Keyword based Database Search
THE DATABASE SYSTEM ENVIRONMENT(DBMS Component Modules)
DBMS Component Modules
The database and the DBMS catalog are usually stored on disk.
• stored data manager module of the DBMS controls access to DBMS information that is stored on disk( buffer manager
module)

• The DDL compiler processes schema definitions, specified in the DDL, and stores descriptions of the schemas (meta-data) in the
DBMS catalog.

• The catalog includes database information

• DBMS software modules look up the catalog information as needed.

 runtime database processor handles database accesses at runtime; it receives retrieval or update operations and carries them
out on the database.

 query compiler handles high-level queries that are entered interactively

 The precompiler extracts DML commands from an application program written in a host programming language. rest of the
program is sent to the host language compiler.

 The object codes for the DML commands and the rest of the program are linked, forming a canned transaction whose executable
Database System Utilities

Loading: used to load existing data files-such as text files or sequential files-into
the database.

Backup: creates a backup copy of the database, usually by dumping the entire
database onto tape.

File reorganization: used to reorganize a database file into a different file


organization to improve performance

Performance monitoring: monitors database usage and provides statistics to the


DBA.

Other utilities
Tools, Application Environments, and Communications Facilities

• CASE tools are used in the design phase of database systems


• Data dictionary (or data repository) system
• Communications software
• The integrated DBMS and data communications system is called a DB/DC
system

• Communication networks are often local area networks (LANs), but they
can also be other types of networks.

You might also like