DBMS Unit 1 Cont
DBMS Unit 1 Cont
AND ARCHITECTURE
At the end of this chapter you will be able to know
about:
Data Models
Schemas and Instances
DBMS Architecture
Data Independence
Database Languages
Database Interfaces
Database System Environment
Data Models, Schemas and Instances
Most data models also include a set of basic operations for specifying
retrievals / updates.
Categories of Data Models
Based on the type of concept they used to describe the database structure,
data models are categorized as follows :
High level or conceptual data model provides a view close to the way
users perceive data.
➢ Customer and Product are two entities. Customer number and name are
attributes of the Customer entity
➢ Product name and price are attributes of product entity
➢ Sale is the relationship between the customer and product
The focus is to represent data as a user will see it in the "real world."
Representational or Implementation Data Model
They provide concepts that describe the details of how data is stored in
computer.
Access Path is a structure that makes the search for particular database
records efficient.
Schemas
COURSE
SECTION
The actual data stored in the database probably changes often. The data in
the database at a particular moment in time is called database state or
snapshot.
It is called current et of occurrences or instances in the database.
The schema is called the intension and the database state is called
extension of the schema
_______is a property that describes various characteristics of an entity
ER Diagram
Column
Relationship
Attribute
Which of the following is not a level of data abstraction?
Physical Level
Critical Level
Logical Level
View Level
Logical design of the database is called as __________
Database Instance
Database Snapshot
Database schema
All the above
Which of the following is the structure of the database?
Table
Schema
Relation
None of these
Course(course_id, semester)
Here course_id, semester are ______ and Course is a ________
Relations, Attribute
Attributes, Relation
Tuple, Relation
Tuple, Attributes
The concepts of data models that are only useful to computer specialists
rather than end users of programs are classified as
Instance, Schema
Relation, Schema
Relation, Domain
Schema, Instance
The Three-Schema Architecture
The goal of the 3 schema architecture is to separate the user applications
and the physical database.
Conceptual level describes the structure of the whole database for community of users.
The conceptual schema hides the details of physical storage structures and concentrates on
describing entities, data types , relationships, user operations and constraints.
Representational data model is used to describe the conceptual schema when a database is
implemented.
External Level / External Schema / View Level
The external or view level includes a number of external schemas or user views.
Each external schema describes the part of the database that a particular user
group is interested in and hides the rest of the database from that user group.
Mappings among schema levels are needed to transform requests and data.
Programs refer to an external schema, and are mapped by the DBMS to the
internal schema for execution.
The processes of transforming requests and results between levels are called
mappings.
Data Independence
The capacity to change the schema at one level of a database system without having
to change the schema at the next higher level is called as Data Independence.
A DBMS has appropriate languages and interfaces to express database queries and
updates.
Database languages can be used to read, store and update the data in the database.
Using the DDL statements, you can create the skeleton of the database.
Data definition language is used to store the information of metadata like the
number of tables and schemas, their names, indexes, columns in each table,
constraints, etc.
Data Definition Language (DDL) Commands:
❑ Procedural DML:
This type of DML describes what data is to be accessed and how to get that data.
DCL is used to access the stored or saved data. It is mainly used for revoking and
granting user access on a database. In the Oracle database, this language does not
have the feature of rollback. It is a part of SQL.
➢ Rollback: This command is used to restore the database to that state which was
last committed.
SDL
VDL
View Definition Language is used for specifying the external schemas (i.e
user views)
DBMS Languages
DBMS Interfaces
These interfaces present the user with list of options (called menus) that lead user
through the formulation of request.
Menus do away with the need to memorize specific commands and syntax of a
query language.
These interfaces accept requests written in English or some other language and
attempt to understand them.
A natural language interface usually has its own schema, which is similar to the
database conceptual schema, as well as a dictionary of important words.
A natural language interface refers to the words in its schema, as well as to the set
of standard words in it dictionary, to interpret the request.
For example, a teller is able to use single function keys to invoke routine and
repetitive transactions such as account deposits or withdrawals, or balance enquires.
Most database systems contain privileged command that can be used only by the
DBA staff.
These include commands for creating accounts, setting system parameters, granting
account authorization, changing a schema, and reorganizing the storage structures of
a database.
Database System Environment- Component Modules of DBMS and
their interactions
About component modules
The figure is divided into two halve. The top half of the diagram refers to the
various users of the database environment and their interfaces.
The lower half demonstrates the internals of the DBMS responsible for storage of
data and processing of transaction.
Most DBMS’s have database utilities that help the DBA to manage the
database system.
Loading
Backup
Performance monitoring
Loading : A loading utility is used to load existing data files – such as text files or
sequential files – into the database.
Backup : Creates the backup copy of the database, usually by dumping the entire
database onto tape or other mass storage medium.
distributed database system: the actual database and the DBMS software are distributed from
various sites that are connected by a computer network
heterogeneous distributed database system: different sites might use different DBMS software,
but there is additional common software to support data exchange between these sites
homogeneous distributed database systems: use the same DBMS software at multiple sites
multiuser database system: a database management system which supports multiple users
concurrently
single-user database system: a database management system which supports one user at a time