Professional Documents
Culture Documents
Management
System -
IT13
Unit 1:
Basic concepts
1.1 Introduction
1.2 Database and Need for DBMS,
1.3 Characteristics, Users, Views, schema,
1.4 3-tier architecture,
1.5 Introduction of Parallel, Distributed Databases,
Mobile
databases and Cloud databases.
1.6 Models (Relational model, Object Models)
• Information :
• Information is the processed data on which decisions and actions are based.
Information can be defined as the organized and classified data to provide
meaningful values. Eg: “The age of Ravi is 25”
• File:
• File is a collection of related data stored in secondary memory.
Database and Need for DBMS
• A database is organized collection of related data of an organization stored in
formatted way which is shared by multiple users.
• The main feature of data in a database are:
1. It must be well organized
2. It is related
3. It is accessible in a logical order without any difficulty
4. It is stored only once.
• For example: consider the roll no, name, address of a student stored in a
student file. It is collection of related data with an implicit meaning. Data in
the database may be persistent, integrated and shared.
• Persistent:
• If data is removed from database due to some explicit request from user to
remove.
• Integrated:
• A database can be a collection of data from different files and when any
redundancy among those files are removed from database is said to be
integrated data.
• Sharing Data:
• The data stored in the database can be shared by multiple users
simultaneously with out affecting the correctness of data.
Database and Need for DBMS
• Database Management System (DBMS):
• A database management system consists of collection of related data and
refers to a set of programs for defining, creation, maintenance and
manipulation of a database.
• Function of DBMS:
1. Defining database schema: it must give facility for defining the database
structure also specifies access rights to authorized users.
2. Manipulation of the database: The dbms must have functions like insertion
of record into database updation of data, deletion of data, retrieval of data
3. Sharing of database: The DBMS must share data items for multiple users
by maintaining consistency of data.
4. Protection of database: It must protect the database against unauthorized
users.
5. Database recovery: If for any reason the system fails DBMS must facilitate
data base recovery
Database and Need for DBMS
Advantages of dbms:
•Reduction of redundancies: Centralized control of data by the DBA avoids
unnecessary duplication of data and effectively reduces the total amount of data
storage required avoiding duplication in the elimination of the inconsistencies that
tend to be present in redundant data files.
•Sharing of data: A database allows the sharing of data under its control by any
number of application programs or users.
•Data Integrity: Data integrity means that the data contained in the database is both
accurate and consistent. Therefore data values being entered for storage could be
checked to ensure that they fall with in a specified range and are of the correct
format.
•Data Security: The DBA who has the ultimate responsibility for the data in the
dbms can ensure that proper access procedures are followed including proper
authentication schemas for access to the DBS and additional check before
permitting access to sensitive data.
•Conflict resolution: DBA resolve the conflict on requirements of various user and
applications. The DBA chooses the best file structure and access method to get
optional performance for the application.
Database and Need for DBMS
• Data Independence: independence is usually considered from two points of
views; physically data independence and logical data independence.
• Physical data Independence allows changes in the physical storage
devices or organization of the files to be made without requiring changes in
the conceptual view or any of the external views and hence in the application
programs using the data base.
• Logical data independence indicates that the conceptual schema can be
changed without affecting the existing external schema or any application
program.
• Disadvantage of DBMS:
1. DBMS software and hardware (networking installation) cost is high
2. The processing overhead by the dbms for implementation of security,
integrity and sharing of the data.
3. centralized database control
4. Setup of the database system requires more knowledge, money, skills, and
time.
5. The complexity of the database may result in poor performance.
Characteristics, Users, Views, schema.
Characteristics
•Stores any kind of data:
• A DBMS should be able to store any kind of data. It should not be restricted to
the employee name, salary and address. Any kind of data that exists in the
real world can be stored in DBMS because we need to work with all kinds of
data that is present around us.
• Data integrity:
• Integrity ensures the quality and reliability of database system.
• It protects the unauthorized access of database and makes it more secure.
• It brings only the consistence and accurate data into the database.
Characteristics, Users, Views, schema.
• Concurrent use of database
• There are many chances that many users will be accessing the data at the
same time.
• They may require altering the database system concurrently.
• At that time, DBMS supports them to concurrently use the database without
any problem.
Characteristics, Users, Views, schema.
USERS
Types of Database Users:
•Application Programmers:
• Application programmers are the one who writes application programs that
uses the database.
• These application programs are written in programming languages like
COBOL or PL (Programming Language 1), Java and fourth generation
language.
• They interact with DBMS through DML (Data manipulation language) calls.
• And all these functions are performed by generating a request to the DBMS.
• If application programmers are not there then there will be no creativity in the
whole team of Database.
•End Users:
• End users are those who access the database from the terminal end.
• They use the developed applications and they don’t have any knowledge
about the design and working of database.
• These are the second class of users and their main motto is just to get their
task done. There are basically two types of end users that are discussed on
next slide.
Characteristics, Users, Views, schema.
• Casual User:
• These users have great knowledge of query language.
• Casual users access data by entering different queries from the terminal end.
• They do not write programs but they can interact with the system by writing
queries.
• Naive:
• Any user who does not have any knowledge about database can be in this
category.
• There task is to just use the developed application and get the desired results.
• For example: Clerical staff in any bank is a naïve user. They don’t have any
dbms knowledge but they still use the database and perform their given task.
•Types of views :
• Read-only View : Allows only SELECT operations.
• Updateable View : Allows SELECT as well as INSERT , UPDATE and
DELETE operations.
Characteristics, Users, Views, schema.
DBMS Schemas
•A database schema is the skeleton structure that represents the logical view of the
entire database.
•It defines how the data is organized and how the relations among them are
associated.
•A database schema can be divided broadly into two categories −
• Physical Database Schema − This schema pertains to the actual storage of
data and its form of storage like files, indices, etc. It defines how the data will
be stored in a secondary storage.
• Logical Database Schema − This schema defines all the logical constraints
that need to be applied on the data stored. It defines tables, views, and
integrity constraints.
3-tier Architecture
What does Three-Tier Architecture mean?
•A three-tier architecture is a client-server architecture in which the functional process
logic, data access, computer data storage and user interface are developed and
maintained as independent modules on separate platforms.
•Three-tier architecture is a software design pattern and a well-established software
architecture.
•Three-tier architecture allows any one of the three tiers to be upgraded or replaced
independently.
•The user interface is implemented on a desktop PC and uses a standard graphical
user interface with different modules running on the application server.
•The relational database management system on the database server contains the
computer data storage logic. The middle tiers are usually multitiered.
Example: Consider that we have three departments using Oracle-9i for DBMS. If
some changes are made in one department then, it would update the other
department also.
Distributed Databases
1. The main system database that stores all the data and is linked to the mobile
database.
2. The mobile database that allows users to view information even while on the
move. It shares information with the main database.
3. The device that uses the mobile database to access data. This device can be a
mobile phone, laptop etc.
4. A communication link that allows the transfer of data between the mobile
database and the main 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 a database
management system.
Hierarchical model :
•The hierarchical model organizes data into a tree-like structure, where each record
has a single parent or root. Sibling records are sorted in a particular order. That
order is used as the physical order for storing the database. This model is good for
describing many real-world relationships.
•This model was primarily used by IBM’s Information Management Systems in the
60s and 70s, but they are rarely seen today due to certain operational
inefficiencies.
MODELS
Network model :
•The network model builds on the hierarchical model by allowing many-to-many
relationships between linked records, implying multiple parent records.
MODELS
Entity-relationship model:
•This model captures the
relationships between real-world
entities much like the network
model, but it isn’t as directly tied to
the physical structure of the
database.
Relational model:
•The most common model, the relational model sorts data into tables, also known
as relations, each of which consists of columns and rows.
•Each column lists an attribute of the entity in question, such as price, zip code, or
birth date.
•Each row, also called a tuple, includes data about a specific instance of the entity
in question, such as a particular employee.