Chapter 1 Introduction To Dbms
Chapter 1 Introduction To Dbms
Introduction to DBMS
Introduction to DBMS [5hrs]
� Introduction to Database Management
System
� DBMS vs File System
� View of data
� Data models
� Database Languages: DML, DDL
� Database users and administrators
� Transaction Management
� Database System Structure
� Application architectures
Introduction to Database Management System
Data
� Structured Data
� Unstructured Data
Structured Data
� Banking, etc.
� Database-System Applications
� Some representative applications:
� 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
tracking, generation of recommendation lists and
maintenance of online product evaluations.
� 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.
� 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.
� Telecommunication: For keeping records of calls made,
generating monthly bills, maintaining balances on
prepaid calling cards, and storing information about the
communication networks.
Advantages of the DBMS
� Database application
architecture can be
categorized into two
types:
◦ Two tier architecture
◦ Three tier architecture
� In two tier architecture, the application
resides on client machine, where it
invokes database system functionality at
the server machine through query
languages.
� Application program interface standards
like ODBC(Open Database Connectivity)
and JDBC( Java Database Connectivity)
are used for interaction between the
client and the server.
� In three tier architecture, the client machine
just act as a interface to the database and
does not contain direct access to database.
� The client end communicates with an
application server (middleware) which
consists of all business logic of database
which says what actions to be taken in which
condition, through a form interface.
� Through application server, the users are
connected to the database system.
� It is more appropriate for large applications
and for applications that run on theWorld
Wide Web.
Types of DBMS [2hrs ]
� Types of DBMS
� Relational DBMS
� Object-oriented Database Management
System
Types of DBMS
� DBMS can be categorized into different
categories on the basis of several criteria
such as:
i. Based on data model
ii. Based on number of users they
support
iii. Based on location where database is
established
iv. Based on the purpose
Based on data model
� DBMS can be categorized into
following categories depending upon
the data models they use.
I. Hierarchical Model
II. Network Model
III. Entity Relationship Model
IV. Relational Model
V. Object Oriented Model
Hierarchical Model
� The oldest data model developed by IBM in 1968.
� Record based data model
� Records are interrelated in hierarchical structure
in tree like structure.
� The top most node is called as ‘Root’.
� Root can have many sub ordinates at the same
time these subordinates may have any level of
lower level.
� A parent child relationship exists in the hierarchy.
� A parent can have many children but a child can
have only one parent.
� This model can represent One to One and
One to Many relationship only.
� No backward movement is possible/allowed in
the hierarchical database.
Network Model
� Advance form of Hierarchical model.
� More flexible than hierarchical model as it can
create a link between different levels of
elements.
� Data structure is represented in graphs rather
than in tree like structure.
� It can handle many to many relationship too.
� More complex structure because of the many to
many relationship.
� Minimize redundancy in comparison to
Hierarchical model
Entity Relationship Model
� The most popular conceptual model used for
designing database, originally proposed by Dr.
Peter Chen in 1976.
� The E-R model views the real world as a set of
basic objects (known as Entities), their descriptive
characteristics ( known as attributes), and the
association among these objects (known as
relationships).
� The conceptual model which is independent from
any implementation level and issues hence easily
understood by even non-technical persons
� Overall logical structure of a database is
expressed graphically in the form of E-R diagram.
The basic components of this diagram are:
a) Rectangles (represents Entity sets)
b) Ellipses (represents attributes)
c) Diamonds (represents relationships)
d) Lines ( link between different elements)
Relational Model
� The most popular database model developed by E.F.
Codd in 1970.
� All data are stored in the foknown as tuples) and
columns (Representing fields or attributes of the
Entity).
� The relationship between tables are created rm of
tables known as ‘Relation’ which consists of Rows
(Representing records or also Foreign key concepts)
hence there does not exits physical links between
relations.with the help of some common attributes in
both table( Using Primary and
� Easy to retrieve required record in comparison to
other database models.
Object Oriented data Model
� The latest data model based on object oriented
programming paradigm.
� It consists of following basic objected-oriented
concepts:
a) Objects:Any real world distinguishable things or
events.
b) Attributes: Set of values that describes about the
objects.
c) Methods: Mechanism(set of instructions) through
which the attributes of objects are accessed.
d) Class:A blue print of all objects with particular
characteristics.
� Polymorphism and Inheritance: Polymorphism is
the feature of object oriented technology which
enables the objects to present themselves in
different form according to the condition.
Inheritance is the process of creating new class
called derived class from the existing class called
base class.
� The derived class inherits all the attributes and
methods of the base class and can add additional
attributes and methods to distinguish itself from
the previous one.
Based on Number of users
� According to the number of users the
DBMS supports, it is categorized into two
categories, Single User System and Multi
User System.
� Normally the database is Multi User
System as it has to share data among
many users .
Based on Location
� According to the number of locations where the data of
database is stored, it is categorized in to two categories;
i. Centralized database system- data and DBMS is
installed in a single computer in particular location.
ii. Distributed database system- database and DBMS is
scattered over several computers in different
locations.
a) Homogenous distributed database system uses identical
DBMS in different locations
b) Heterogeneous distributed database system may use
different types of DBMS in different locations.
� All the distributed database systems depends upon
reliable Network connections for its functioning.
Based on Purpose
� Database can be categorized into two categories
according to its purpose
a) General purpose
b) Specific purpose
� Normally DBMS is general purpose software
system however it can be customized to be used in
specific area only like in Ticket Reservation
Systems,ATM services of Bank etc.
� Online Transaction Processing System (OLTP) is
the implementation of specific purpose database
management system which is used for data entry
and retrieval in the real time.
Database Application Architecture
� Database architecture defines how
to manage and access data in the
database management system
� Three are two types of database
architectures:
a) Centralized architecture
b) Client/Server architecture
Centralized architecture
� A centralized database is a collection of information at
a single location accessible from numerous points.
� Computers which stores all the information as well as
application programs are called as Database Servers.
� The content of database can be accessed through
dumb terminals with input and output devices, which
may not have its own processing capacity.
� Centralized database systems have many advantages
like security of data, faster response, easy updating and
maintenance of database, less threats from external
world etc.
� Disadvantages of Centralized database systems are like
physical data dependence on central server, if central
server is down then no accessibility to data etc.
Client/Server architecture
� In this architecture, the computers which
request services are called client computer
and the computers which stores data and
response to the request from the clients are
called as Servers.
� Client machine themselves have their own
processing capacity which is utilized to
process Interface related tasks.
� There are two ways to implement
Client/Server architecture:
i) Two tier architecture
ii) Three tier architecture