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

DBMS - UNIT I

The document provides an overview of Database Management Systems (DBMS), defining data, databases, and the role of DBMS in managing data efficiently. It discusses various types of databases, their applications in different sectors, and the advantages of using DBMS over traditional file processing systems. Additionally, it contrasts DBMS with Relational Database Management Systems (RDBMS), highlighting their differences in structure, user support, and complexity.

Uploaded by

saravind754880
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views

DBMS - UNIT I

The document provides an overview of Database Management Systems (DBMS), defining data, databases, and the role of DBMS in managing data efficiently. It discusses various types of databases, their applications in different sectors, and the advantages of using DBMS over traditional file processing systems. Additionally, it contrasts DBMS with Relational Database Management Systems (RDBMS), highlighting their differences in structure, user support, and complexity.

Uploaded by

saravind754880
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 17

UNIT - I

DATABASE MANAGEMENT SYSTEM


Data:

 Data is defined as collection of raw facts about a place, person, thing or object involving in the
transactions of an organization.
 Data can be represented in various forms like text, numbers, images, audio, video, graphs, document
files, etc.
 Data constitutes the building blocks of information.

Database:

 Database can be defined as organized collection of logically related data.


 Database can be of any size and complexity.
 Data are structured so as to be easily stored, manipulated, and retrieved by users.

DBMS:

 Database management system can be defined as reorganized collection of logically related data and
set of programs used for creating, storing, updating and retrieval of data from the database.
 DBMS acts as a mediator between end-user and the database.
 Database management system (DBMS): can be defined as collection of programs that manages
database structure and controls access to data.
 DBMS enables data to be shared.
 The primary goal of a DBMS is to provide a way to store and retrieve database information that is
both convenient and efficient

 DATABASE SYSTEMS (CS)

 Database system consists of logically related data stored in a single logical data repository. Database
system may be physically distributed among multiple storage facilities. DBMS eliminates most of
file system’s problems. Current generation stores data structures, relationships between structures,
and access paths. Also defines, stores, and manages all access paths and components

1 – Dr.Antony Paul Raj. A


School of Arts and Science, SMVEC – Dept. of Computational Studies
 DATABASE-SYSTEM APPLICATIONS

1. Enterprise Information

 Sales: For customer, product, and purchase information.

 Accounting: For payments, receipts, account balances, assets and other accounting information.

 Human resources: For information about employees, salaries, payroll taxes, and benefits, and for
generation of paychecks.

 Manufacturing: For management of the supply chain and for tracking production of items in
factories, inventories of items in warehouses and stores, and orders for items.

 Online retailers: For sales data noted above plus online order tracking, generation of
recommendation lists, and maintenance of online product evaluations.

2. Banking Finance

 Banking: For customer information, accounts, loans, and banking transactions.

 Credit card transactions: For purchases on credit cards and generation of monthly statements.

 Finance: For storing information about holdings, sales, and purchases of financial instruments such
as stocks and bonds; also for storing real-time market data to enable online trading by customers
and automated trading by the firm.

Others

 Universities: For student information, course registrations, and grades (in addition to standard
enterprise information such as human resources and accounting).

 Airlines: For reservations and schedule information. Airlines were among the first to use databases
in a geographically distributed manner.

2 – Dr.Antony Paul Raj. A


School of Arts and Science, SMVEC – Dept. of Computational Studies
 Telecommunication: For keeping records of calls made, generating monthly bills, maintaining
balances on prepaid calling cards, and storing information about the communication networks.

 PURPOSE OF DATABASE SYSTEMS

Database systems arose in response to early methods of computerized management of commercial data.

1. Data redundancy and inconsistency: Since different programmers create the files and application
programs over a long period, the various files are likely to have different structures and the programs may be
written in several programming languages

2. Difficulty in accessing data : Suppose that one of the university clerks needs to find out the names of all
students who live within a particular postal-code area.

3. Data isolation : Because data are scattered in various files, and files may be in different formats, writing
new application programs to retrieve the appropriate data is difficult.

4. Integrity problems : The data values stored in the database must satisfy certain types of consistency
constraints.

5. Atomicity problems : A computer system, like any other device, is subject to failure. In many
applications, it is crucial that, if a failure occurs, the data be restored to the consistent state that existed prior
to the failure.

6. Concurrent-access anomalies : To guard against this possibility, the system must maintain some form of
supervision. But supervision is difficult to provide because data may be accessed by many different
application programs that have not been coordinated previously.

7. Security problems: Not every user of the database system should be able to access all the data.

 TYPES OF DATABASES (BCA)

Databases have evolved since their inception in the 1960s, beginning with hierarchical and network
databases, through the 1980s with object-oriented databases, and today with SQL and NoSQL databases
and cloud databases.

I. RELATIONAL DATABASE

A relational database, invented by E.F. Codd at IBM in 1970, is a tabular database in which data is defined
so that it can be reorganized and accessed in a number of different ways.

Relational databases are made up of a set of tables with data that fits into a predefined category. Each
table has at least one data category in a column, and each row has a certain data instance for the
categories which are defined in the columns.

The Structured Query Language (SQL) is the standard user and application program interface for a
relational database. Relational databases are easy to extend, and a new data category can be added after
the original database creation without requiring that you modify all the existing applications.

3 – Dr.Antony Paul Raj. A


School of Arts and Science, SMVEC – Dept. of Computational Studies
II. DISTRIBUTED DATABASE

A distributed database is a database in which portions of the database are stored in multiple physical
locations, and in which processing is dispersed or replicated among different points in a network
Distributed databases can be homogeneous or heterogeneous. All the physical locations in a homogeneous
distributed database system have the same underlying hardware and run the same operating systems and
database applications. The hardware, operating systems or database applications in a heterogeneous
distributed database may be different at each of the locations.

III. CLOUD DATABASE

A cloud database is a database that has been optimized or built for a virtualized environment, either in a
hybrid cloud, public cloud or private cloud. Cloud databases provide benefits such as the ability to pay for
storage capacity and bandwidth on a per-use basis, and they provide scalability on demand, along with
high availability.

A cloud database also gives enterprises the opportunity to support business applications in a software-as-
a-service deployment.

IV. OBJECT-ORIENTED DATABASE

Items created using object-oriented programming languages are often stored in relational databases, but
object-oriented databases are well-suited for those items.

An object-oriented database is organized around objects rather than actions, and data rather than logic.
For example, a multimedia record in a relational database can be a definable data object, as opposed to an
alphanumeric value.

V. GRAPH DATABASE

A graph-oriented database, or graph database, is a type of NoSQL database that uses graph theory to
store, map and query relationships. Graph databases are basically collections of nodes and edges, where
each node represents an entity, and each edge represents a connection between nodes.

 DISADVANTAGES OF FILE PROCESSING SYSTEMS

a. Program - Data dependence:

File descriptions are stored within each application program that accesses a given file. As a consequence,
any change to a file structure requires changes to the file descriptions for all programs that access the file.

Suppose it is decided to change the customer address field length in the records in a file from 30 to 40
characters. The file descriptions in each program that is affected would have to be modified. It is often
difficult to locate all programs affected by such changes.

b. Duplication of data:

Because applications are often developed independently in file processing systems, unplanned duplicate data
files are the rule rather than the exception. This duplication is wasteful because it requires additional storage
space and increased effort to keep all files up to date. Duplicate data files often result in loss data integrity
4 – Dr.Antony Paul Raj. A
School of Arts and Science, SMVEC – Dept. of Computational Studies
because the data formats may be inconsistent or the data values may not agree. For example, the same data
item may have different names in different files.

c. Limited data sharing:

With the traditional file processing approach, each application has its own private files and users have little
opportunity to share data outside their own applications. It is often frustrating to managers to find that a
requested report will require a major programming effort to obtain data from several incompatible files in
separate systems. Data are scattered in various files, and the files may be in different formats. Writing new
application program to retrieve data was difficult.

d. Lengthy development times:

With the traditional file processing approach, there is little opportunity to leverage the previous development
efforts. Each new application requires that the developer essentially start from scratch by designing new file
formats and descriptions. The lengthy development times required are often inconsistent with today’s fast-
paced business environment.

e. Excessive program maintenance:


The preceding factors all combine together to create a heavy program maintenance load in organizations that
rely on traditional file processing systems. As much as 80% of the total information systems development
budget may be devoted to program maintenance in such organizations. This leaves little opportunity for
developing new applications.

 ADVANTAGES OF USING DBMS APPROACH ( CS)

Program – Data Independence:

The separation of data description from the application programs that use the data is called the Data
Independence. The Data descriptions are stored in a central location called repository.

Minimal Data Redundancy:

The design goal with the database approach is that previously separate data files are integrated into single,
logical structure. Each primary fact is recorded in only one place in database. The database approach does
not eliminate redundancy entirely, but it allows the designer to carefully control the type and the amount
of the redundancy.

Improved Data Consistency:

By eliminating the data redundancy, the opportunity of reducing the inconsistency has increased. For
example, if a customer’s address is stored only once, we cannot have disagreement on the stored values.
We avoid the wasted storage space that results from redundant data storage.

Improved Data Sharing:


A database design is a shared resource of corporate. A user view is logical description of some portion of
the database that is required by the user to perform some task. The major advantage of the database
approach is that it greatly reduced the cost and time for developing new business applications.

Enforcement of Standards:

5 – Dr.Antony Paul Raj. A


School of Arts and Science, SMVEC – Dept. of Computational Studies
When the database approach is implemented with full management support, the database administration
function should be granted single point of authority and responsibility for establishing and enforcing the data
standards.

Improved Data Quality:


Concern with poor quality of the data is a common theme in the database administration today. Important
tool to improve the data quality are:
1. Database designers can specify integrity constraints that are enforced by the DBMS. A constraint
is a rule that cannot be violated by the database users.
2. One of the objectives of a data warehouse environment is to clean up operational data before
they are placed in the data warehouse.

 VIEW OF DATABASE SYSTEMS:

1. A database system is a collection of interrelated data and a set of programs that allow users to access
and modify these data.

2. A major purpose of a database system is to provide users with an abstract view of the data.

3. There is an 3 layers for viewing the data from the database they are as follows :

 Physical level (or Internal View / Schema)

 Logical level (or Conceptual View / Schema)

 View level (or External View / Schema)

1. Physical level (or Internal View / Schema):

1. The lowest level of abstraction describes how the data are actually stored.

6 – Dr.Antony Paul Raj. A


School of Arts and Science, SMVEC – Dept. of Computational Studies
2. The physical level describes complex low-level data structures in detail.

3. Logical level (or Conceptual View / Schema):

1. The next-higher level of abstraction describes what data are stored in the database, and what relationships
exist among those data.

2. The logical level thus describes the entire database in terms of a small number of relatively simple structures.
Although implementation of the simple structures at the logical level may involve complex physical-level
structures, the user of the logical level does not need to be aware of this complexity. This is referred to as
physical data independence.

3. View level (or External View / Schema):

1. The highest level of abstraction describes only part of the entire database.

2. Even though the logical level uses simpler structures, complexity remains because of the variety of
information stored in a large database

 DBMS Vs RDBMS (BCA)

DBMS RDBMS
1. DBMS stands for Database Management 1. RDBMS stands for Relational Database
System. Management System.
2. The relationship between two files is 2. On the other hand, RDBMS work differently
controlled in a programming manner in the where the relationship between two files are
DBMS. specified when the tables are created.
3. This program is only capable of supporting a 3. The case is different with RDBMS that can
single user at the time. support a range of users at the time.
4. There are chances of inconsistencies in the 4. The RDBMS is pretty difficult to create and
DBMS as the data don’t get stored using the follow the ACID model that makes them fully
ACID model. structured and consistent.
5. The main motive behind the creation of this
5. These types of database systems are utilized
program is to control the databases present in the
to maintain the relationship in a set of tables.
computer network and its hard disks.
6. RDBMS is used to manage large amount of
6. DBMS is good for managing small data.
data.
7. If you want to alter the data then it’s quite
7. It is very easy to alter data in RDBMS.
complex in DBMS.
8. RDBMS is capable of supporting a great
8. DBMS is greatly utilized by small companies
variety of users and created in such a way that
where small data is involved as it only supports a
broader data can be controlled so it is used for
single user.
big companies.

7 – Dr.Antony Paul Raj. A


School of Arts and Science, SMVEC – Dept. of Computational Studies
9. The data fetching is performed at a very
9. In DBMS, the process to fetch data is pretty
fast due to the relational approach in the
slow when it comes to complex and great data
relational database. It makes the work of the
amount.
programmers pretty easier.
10. In RDBMS, the data is saved in the tables
10. The different data doesn’t have a
that have a close relation with each other. It
relationship with each other.
becomes possible due to the foreign keys.
11. DBMS Cost is very Less. 11. RDBMS Cost is very High.
12. Hardware and software need is very less and 12. Need of hardware and software is very high
easy. and complex in RDBMS.
13. DBMS is very simple. 13. It is very highly complex.
14. Client server architecture is not 14. Client server architecture is supported in
supported. RDBMS.
15. In RDBMS, relationship establishment is
15. Keys and Indexes are not used.
done via keys and indexes.
16. DR. E.F Codd Rules satisfaction is 8 to 10
16. DR. E.F Codd Rules satisfaction is less 7 in
in RDBMS.
DBMS.
17. The programmers can access the data with
17. Each of the elements in the data required to
the help of the SQL query. They can use more
be accessed in an individual manner rather than
than one data elements simultaneously.
collectively.
18. On the other hand, the major examples of
18. Some of the common forms of DBMS data
RDBMS include SQL Server, MYSQL, and
are windows registry, XML, a file system, and
Oracle among others.
many more.
19. RDBMS needs highly efficient
19. It needs less staff to handle DBMS.
programmers to handle it.
20. This software let the programmers perform
20. The programmers can’t perform
normalization as it is allowed in the RDBMS.
normalization in DBMS. It isn’t present in the
structure of this software.
21. RDBMS is very efficient.
21. DBMS is less efficient as compared to
RDBMS.
22. A tabular structure of the data is supported
22. There are uniform methods for accessing the
in this system along with a relationship.
stored details offered by this software to the
users.
23. Very low in case of RDBMS
23. Chances of data loss are high.
24. Distributed Databases are supported.
24. Distributed Databases are not supported.
25. The integrity constraint is defined by the
25. When it comes to data manipulation, there is
RDBMS with a motive to offer much-needed
no security applied by the DBMS. security.

 DATA MODELS: (BCA)

Many data models have been proposed, and we can categorize them according to the types of concepts
they use to describe the database structure.

8 – Dr.Antony Paul Raj. A


School of Arts and Science, SMVEC – Dept. of Computational Studies
High-level or conceptual data models provide concepts that are close to the way many users perceive
data, whereas lowlevel or physical data models provide concepts that describe the details of how data is
stored in the computer. Concepts provided by low-level data models are generally meant for computer
specialists, not for typical end users. Between these two extremes
is a class of representational (or implementation) data models, which provide concepts that may be
understood by end users but that are not too far removed from the way data is organized within the
computer. Representational data models hide some details of data storage but can be implemented on a
computer system in a direct way. Conceptual data models use concepts such as entities, attributes, and
relationships.

An entity represents a real-world object or concept, such as an employee or a project, that is described in
the database. An attribute represents some property of interest that further describes an entity, such as the
employee’s name or salary. A relationship among two or more entities represents an interaction among the
entities, which is explained by the Entity-Relationship
model—a popular high-level conceptual data model.

Representational or implementation data models are the models used most frequently in traditional
commercial DBMSs, and they include the widely-used relational data model, as well as
the so-called legacy data models—the network and hierarchical models—that have been widely used in the
past.

We can regard object data models as a new family of higher level implementation data models that are
closer to conceptual data models.

Object data models are also frequently utilized as highlevel conceptual models, particularly in the software
engineering domain.

Physical data models describe how data is stored in the computer by representing information such as
record formats, record orderings, and access paths. An access path is a structure that makes the search
for particular database records efficient.

 DATA INDEPENDENCE (BCA)


o Data independence can be explained using the three-schema architecture.
o Data independence refers characteristic of being able to modify the schema at one level of the
database system without altering the schema at the next higher level.

There are two types of data independence:

1. Logical Data Independence

o Logical data independence refers characteristic of being able to change the conceptual schema
without having to change the external schema.
o Logical data independence is used to separate the external level from the conceptual view.
o If we do any changes in the conceptual view of the data, then the user view of the data would not
be affected.
o Logical data independence occurs at the user interface level.

2. Physical Data Independence

9 – Dr.Antony Paul Raj. A


School of Arts and Science, SMVEC – Dept. of Computational Studies
o Physical data independence can be defined as the capacity to change the internal schema without
having to change the conceptual schema.
o If we do any changes in the storage size of the database system server, then the Conceptual
structure of the database will not be affected.
o Physical data independence is used to separate conceptual levels from the internal levels.
o Physical data independence occurs at the logical interface level.

Fig: Data Independence

 RELATIONAL DATABASES (CS)

Structure of Relational Databases

A relational database consists of a collection of tables, each of which is assigned a unique name.

10 – Dr.Antony Paul Raj. A


School of Arts and Science, SMVEC – Dept. of Computational Studies
A row in a table represents a relationship among a set of values. Since a table is a collection of such
relationships, there is a close correspondence between the concept of table and the mathematical concept
of relation, from which the relational data model takes its name. In what follows, we introduce the concept
of relation.

Basic Structure

Consider the account table of Figure 3.1. It has three column headers: account-number, branch-name, and
balance. Following the terminology of the relational model, these headers are attributes. For each
attribute, there is a set of permitted values, called the domain of that attribute. For the attribute branch-
name, for example, the domain is the set of all branch names.

LetD1 denote the set of all account numbers, D2 the set of all branch names, and D3the set of all balances.
Any row of account must consist of a 3-tuple (v1, v2, v3), where v1 is an account number (that is, v1 is in
domain D1),v2 is a branch name (that is, v2 is in domain D2), and v3 is a balance (that is, v3 is in domain
D3). In general, account will contain only a subset of the set of all possible rows. Therefore, account is a
subset of

In general, a table of n attributes must be a subset of

Mathematicians define a relation to be a subset of a Cartesian product of a list of domains. This definition
corresponds almost exactly with our definition of table. The only difference is that we have assigned names
to attributes, whereas mathematicians rely on numeric “names,” using the integer 1 to denote the attribute
whose domain appears first in the list of domains, 2 for the attribute whose domain appears second, and so
on. Because tables are essentially relations, we shall use the mathematical terms relation and tuple in
place of the terms table and row. A tuple variable is a variable that stands for a tuple; in other words, a
tuple variable is a variable whose domain is the set of all tuples.

In the account relation of Figure 3.1, there are seven tuples. Let the tuple variable t refer to the first tuple of
the relation. We use the notation t[account-number] to denote the value of t on the account-number
attribute. Thus, t[account-number] = “A-101,” and t[branch-name] = “Downtown”. Alternatively, we may write
t[1] to denote the value of tuple t on the first attribute (account-number), t[2] to denote branch-name, and so
on. Since a relation is a set of tuples, we use the mathematical notation of t ∈r to denote that tuple t is in
relation r.

11 – Dr.Antony Paul Raj. A


School of Arts and Science, SMVEC – Dept. of Computational Studies
The order in which tuples appear in a relation is irrelevant, since a relation is a set of tuples. Thus, whether
the tuples of a relation are listed in sorted order, as in Figure 3.1, or are unsorted, as in Figure 3.2, does not
matter; the relations in the two figures above are the same, since both contain the same set of tuples.

For all relations r, the domains of all attributes of r be atomic. A domain is atomic if elements of the domain
are considered to be indivisible units. For example, the set of integers is an atomic domain, but the set of all
sets of integers is a non atomic domain.

 DATABASE DESIGN (CS)

Major Steps in Database Design

1. Requirements Analysis: Talk to the potential users! Understand what data is to be stored, and what
operations and requirements are desired.
2. Conceptual Database Design: Develop a high-level description of the data and constraints (we will
use the ER data model)
3. Logical Database Design: Convert the conceptual model to a schema in the chosen data model of
the DBMS. For a relational database, this means converting the conceptual to a relational schema
(logical schema).
4. Schema Refinement: Look for potential problems in the original choice of schema and try to
redesign.
5. Physical Database Design: Direct the DBMS into choice of underlying data layout (e.g., indexes and
clustering) in hopes of optimizing the performance.
6. Applications and Security Design: How will the underlying database interact with surrounding
applications.

Entity-Relationship Data Model (ER)


 entity: An entity is a real-world object or concept which is distinguishable from other objects. It
may be something tangible, such as a particular student or building. It may also be somewhat more
conceptual, such as CS A-341, or an email address.

 attributes: These are used to describe a particular entity (e.g. name, SS#, height).

Relationships
A relationship is an association among two or more entities. The relationship must be uniquely
identified by the participating entities.

A relationship can also have descriptive attributes, to record additional information about the
relationship (as opposed to about any one participating entity).

12 – Dr.Antony Paul Raj. A


School of Arts and Science, SMVEC – Dept. of Computational Studies
 DATABASE SYSTEM STRUCTURE or OVERVIEW OF SYSTEM STRUCTURE

DATA DICTIONARY

1. We can define a data dictionary as a DBMS component that stores the definition of data characteristics
and relationships.

2. The DBMS data dictionary provides the DBMS with its self describing characteristic. In effect, the data
dictionary resembles and X-ray of the company’s entire data set, and is a crucial element in the data
administration function.

For example, the data dictionary typically stores descriptions of all:

1. Data elements that are define in all tables of all databases. Specifically the data dictionary stores the
name, datatypes, display formats, internal storage formats, and validation rules. The data dictionary tells
where an element is used, by whom it is used and so on.

13 – Dr.Antony Paul Raj. A


School of Arts and Science, SMVEC – Dept. of Computational Studies
2. Tables define in all databases. For example, the data dictionary is likely to store the name of the table
creator, the date of creation access authorizations, the number of columns, and so on.

3. Indexes define for each database tables. For each index the DBMS stores at least the index name the
attributes used, the location, specific index characteristics and the creation date.

4. Define databases: who created each database, the date of creation where the database is located, who
the

5. DBA is and so on.

6. End users and The Administrators of the data base

7. Programs that access the database including screen formats, report formats application formats, SQL
queries and so on.

8. Access authorization for all users of all databases.

9. Relationships among data elements which elements are involved: whether the relationship are
mandatory or optional, the connectivity and cardinality and so on.

Database Users and User Interfaces

There are four different types of database-system users, differentiated by the way they expect to interact
with the system. Different types of user interfaces have been designed for the different types of users.

NAIVE USERS

1. Are unsophisticated users who interact with the system by invoking one of the application programs that
have been written previously.

2. For example, a bank teller who needs to transfer $50 from account A to account B invokes a program
called transfer.

APPLICATION PROGRAMMERS

1. Are computer professionals who write application programs. Application programmers can choose from
many tools to develop user interfaces.

2. Rapid application development (RAD) tools are tools that enable an application programmer to
construct forms and reports without writing a program.

SOPHISTICATED USERS

1. Interact with the system without writing programs. Instead, they form their requests in a database query
language.

14 – Dr.Antony Paul Raj. A


School of Arts and Science, SMVEC – Dept. of Computational Studies
2. They submit each such query to a query processor, whose function is to break down DML statements
into instructions that the storage manager understands. Analysts who submit queries to explore data in the
database fall in this category.

ONLINE ANALYTICAL PROCESSING (OLAP)

1. Tools simplify analysts’ tasks by letting them view summaries of data in different ways.

2. 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 sales of each product in each region).

QUERY PROCESSOR:

The query processor components include

DDL interpreter, which interprets DDL statements and records the definitions in the data dictionary.
DML compiler, which translates DML statements in a query language into an 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 that all give the same
result. The DML compiler also performs query optimization, that is, it picks the lowest cost evaluation plan
from among the alternatives.

Query evaluation engine, which executes low-level instructions generated by the DML compiler

STORAGE MANAGER:

A storage manager is a program module that provides the interface between the low level data stored in
the database and the application programs and queries submitted to the system. The storage manager is
responsible for the interaction with the file manager.
The storage manager components include:

1. Authorization and integrity manager, which tests for the satisfaction of integrity constraints and
checks the authority of users to access data.

2. Transaction manager, which ensures that the database remains in a consistent (correct) state despite
system failures, and that concurrent transaction executions proceed without conflicting.

3. File manager, which manages the allocation of space on disk storage and the data structures used to
represent information stored on disk.

4. Buffer manager, which is responsible for fetching data from disk storage into main memory, and
deciding what data to cache in main memory. 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.

TRANSACTION MANAGER:

A transaction is a collection of operations that performs a single logical function in a database application.
Each transaction is a unit of both atomicity and consistency. Thus, we require that transactions do not
violate any database-consistency constraints.

 DATABASE ARCHITECTURE
15 – Dr.Antony Paul Raj. A
School of Arts and Science, SMVEC – Dept. of Computational Studies
The DBMS design depends upon its architecture.

o The basic client/server architecture is used to deal with a large number of PCs, web servers, database
servers and other components that

are connected with networks.

o The client/server architecture consists of many PCs and a workstation which are connected via the
network.

o DBMS architecture depends upon how users are connected to the database to get their request done

Types of DBMS Architecture

1-Tier Architecture

o In this architecture, the database is directly available to the user. It means the user can directly sit on
uses it.

o Any changes done here will directly be done on the database itself. It doesn't provide a handy tool for
end users.

o The 1-Tier architecture is used for development of the local application, where programmers can directly
communicate with the database for the quick response.

o The following user role this tier the are as follows:

Naïve Users ( Tellers, Agents & Web Users)

Application Programmers

Sophisticated Users ( Analysts)

Database Administrators

16 – Dr.Antony Paul Raj. A


School of Arts and Science, SMVEC – Dept. of Computational Studies
2-Tier Architecture

o The 2-Tier architecture is same as basic client-server. In the two-tier architecture, applications on the
client end can directly communicate with the database at the server side. For this interaction, API's like:
ODBC, JDBC are used.

o The user interfaces and application programs are run on the client-side.

o The server side is responsible to provide the functionalities like: query processing and transaction
management.

o To communicate with the DBMS, client-side application establishes a connection with the server side.

o The Query Processor have the following :

DDL Interpreter

DML Compiler

Query Evaluation Engine

3-Tier Architecture

o The 3-Tier architecture contains another layer between the client and server. In this architecture, client
can't directly communicate with the server.

o The application on the client-end interacts with an application server which further communicates with
the database system.

o End user has no idea about the existence of the database beyond the application server. The database
also has no idea about any other user beyond the application.

o The 3-Tier architecture is used in case of large web application.

o This Tier is responsible for the Storage and it have Storage Manager that have the following functions

Authorization and Integrity Manager Transaction Manager File Manager Buffer


Manager

17 – Dr.Antony Paul Raj. A


School of Arts and Science, SMVEC – Dept. of Computational Studies

You might also like