Professional Documents
Culture Documents
MANAGEMENT SYSTEMS
UNIT-1
UNIT-I
4. Data Models
6. View of Data
1.Functional Dependencies–Introduction
2.Basic Definitions, Trivial and Non trivial dependencies
3. closure of a set of dependencies, closure of attributes
4.irreducible set of dependencies
5.Schema Refinement in Database-Design-Problems Caused by
Redundancy
6.Decompositions –Problem Related to Decomposition
7.Lossless Join Decomposition
8.Dependency Preserving Decomposition
9.FIRST, SECOND, THIRD Normal Forms
10.BCNF ––Multi valued Dependencies
11.Fourth Normal Form.
UNIT-V
1.Transaction concept
2.Transaction state
3.Implementation of atomicity and Durability
4.Concurrent executions -Serializability, Recoverability
5.File Organization –Organization of records in file
6.Data Dictionary Storage
7.Indexing and Hashing
8.Basic Concepts , Ordered Indices
9.B+Tree Index files, B-tree index files
TEXT BOOKS
1.Database System Concepts, Silberschatz, Korth , Sixth Edition, McGraw hill
( 1,2,3 and 5 Units)
2.Introduction to Database Systems, C.J.Date, Pearson Education (4thUnit)
REFERENCES:
3.Fundamentals of Database Systems, Elmasri Navate Pearson Education
4.Database Management Systems, Raghu Ramakrishnan, Johannes Gehrke, TATA Mc
Graw Hill(1,2,3 and 5 Units)
5.Data base Systems design, Implementation, and Management, Peter Rob and
Carlos Coronel 7th Edition.
6.Data Base Systems using Oracle: A simplified guide to SQL and PL /SQL, Shah, PHI
Database Management Systems, Raghu Ramakrishnan, Johannes
Gehrke, TATA Mc Graw Hill(1,2,3 and 5 Units)
Fundamentals of Database Systems, Elmasri
Navate Pearson Education
Database System Concepts, Silberschatz, Korth , Sixth Edition, McGraw
hill ( 1,2,3 and 5 Units)
1.Introduction to Database Management System
computerized database.
various applications.
.
1.Introduction to Database Management System
• A Database Management System (DBMS) is a software
package designed to store and manage databases:
1. Manages very large amounts of data.
DBMS.
• That is, the various copies of the same data may no longer
agree.
consistency constraints.
• For example, the balance of a bank account may never fall below a
enforce them.
failure.
• If a system failure occurs during the execution of the program, it is possible that
the $50 was removed from account A but was not credited to account B, resulting
• Clearly, it is essential to database consistency that either both the credit and debit
simultaneously.
inconsistent data.
from account A at about the same time, the result of the concurrent
state.
Concurrent-access anomalies
• Suppose that the programs executing on behalf of each withdrawal read the old
balance, reduce that value by the amount being withdrawn, and write the result
back.
• If the two programs run concurrently, they may both read the value $500, and
• Depending on which one writes the value last, the account may contain either
many different application programs that have not been coordinated previously.
Security problems
• Not every user of the database system should be able to access all
the data.
only that part of the database that has information about the
• Today a vast majority of database products are based on the relational model.
high level, using the E-R model, and then translating it into the relational
model.
DBMS Database Models
• A Database model defines the logical design and structure of a
database and defines how data will be stored, accessed and updated in
• While the Relational Model is the most widely used database model,
• Hierarchical Model
• Network Model
• Entity-relationship Model
• Relational Model
Data Models
• The structure of a database is the data model:
a collection of conceptual Tools for describing
data, data relationships, data semantics, and
consistency constraints.
• Data models provide a way to describe the
design of a database at the logical level.
Hierarchical Model
• This database model organizes data into a tree-like-structure, with a single
• The hierarchy starts from the Root data, and expands like a tree, adding child
• In this model, a child node will only have a single parent node.
• In hierarchical model, data is organized into tree-like structure with one one-
to-many relationship between two different types of data, for example, one
department can have many courses, many professors and of-course many
students.
Hierarchical Model
Network Model
• This is an extension of the Hierarchical model. In this model data is
organized more like a graph, and are allowed to have more than one
parent node.
• This was the most widely used database model, before Relational Model
was introduced.
Network Model
The Entity-Relationship Model
• The entity-relationship (E-R) data model is based on a
perception of a real world that consists of a collection of basic
objects, called entities, and of relationships among these
objects.
attributes.
understand.
relationships
Entity-relationship Model
• This model was introduced by E.F Codd in 1970, and since then it has
been the most widely used database model, infact, we can say the only
• The basic structure of data in the relational model is tables. All the
record type
Relational Model
• That is, the system hides certain details of how the data
are stored and maintained.
View of Data
Data Abstraction
• The logical level thus describes the entire database in terms of a small
• Even though the logical level uses simpler structures, complexity remains
• Many users of the database system do not need all this information.
• The view level of abstraction exists to simplify their interaction with the
system.
• The system may provide many views for the same database.
View level
• Similarly, at the view level, several views of the database are defined, and database
• In addition to hiding details of the logical level of the database, the views also provide
a security mechanism to prevent users from accessing certain parts of the database.
• For example, tellers in a bank see only that part of the database that has information
on customer accounts.
• the logical schema describes the database design at the logical level.
schema.
application programs.
87
Database Languages
• A database system provides a data definition language
to specify the database schema and a data manipulation
language to express database queries and updates.
transferred.
Naive users
• As another example, consider a user who wishes to find her account
balance over the World Wide Web. Such a user may access a form,
balance, using the given account number, and passes this information
• The typical user interface for naive users is a forms interface, where the
• Application programmers can choose from many tools to develop user interfaces.
• Rapid application development (RAD) tools are tools that enable an application
• There are also special types of programming languages that combine imperative control
structures (for example, for loops, while loops and if-then-else statements) with
to facilitate the generation of forms and the display of data on the screen.
• For instance, an analyst can see total sales by region (for example, North, South, East,
and West), or by product, or by a combination of region and product (that is, total
• The tools also permit the analyst to select specific regions, look at data in more detail
(for example, sales by city within a region) or look at the data in less detail (for
• Another tools for analysts is data mining tools, which help them find certain kinds of
patterns in data
Specialized users
DDL.
some users.
Database System Structure
low level data stored in the database and the application programs and queries
• The storage manager is responsible for the interaction with the file manager.
• The raw data are stored on the disk using the file system, which is usually provided
• The storage manager translates the various DML statements into low-level file-
system commands.
• Thus, the storage manager is responsible for storing, retrieving, and updating data
in the database.
The storage manager components include
• Authorization and integrity manager, which tests for the satisfaction of
(correct) state despite system failures, and that concurrent transaction executions
• File manager, which manages the allocation of space on disk storage and the
• Buffer manager, which is responsible for fetching data from disk storage into
• The buffer manager is a critical part of the database system, since it enables the
database to handle data sizes that are much larger than the size of main memory
storage manager
• The storage manager implements several data structures as
part of the physical system implementation
• Data files, which store the database itself.
• Data dictionary, which stores metadata about the structure of
the database, in particular the schema of the database.
• Indices, which provide fast access to data items that hold
particular values
The Query Processor
• The query processor components include
• DDL interpreter, which interprets DDL statements and records the definitions in the
data dictionary.
evaluation plan consisting of low-level instructions that the query evaluation engine
understands.
• A query can usually be translated into any of a number of alternative evaluation plans
• The DML compiler also performs query optimization, that is, it picks the lowest cost
DML compiler.