DBMS Module1 2023 v1
DBMS Module1 2023 v1
DBMS Module1 2023 v1
System
Course Code:CSC403
Module1
Shilpa Ingoley
Syllabus:
Module 1: Introduction Database Concepts
• Introduction
• Characteristics of databases
• File system v/s Database system
• Data abstraction and data Independence
• DBMS system architecture
• Database Administrator
Introduction
• Modern enterprises have data that need to store in ways which will be easy to retrieve
later
•Common database: list of names and addresses of people who deal with enterprise
•For smaller business, data can be maintained on paper, word processor or
spreadsheet
•For larger business, database technology is needed
•Database management is about managing information resources of an enterprise
Introduction
• Data is a collection of facts, such as numbers, words, measurements, observations or just descriptions of
things.
• Data in raw or unorganized form (such as alphabets, numbers, or symbols) that refer to, or
represent, conditions, ideas, or objects. Data is limitless and present everywhere in the universe
Database
• Organized collection of data
• Easily accessed, managed and updated
• Example:
• Collage database stores information about students, teachers,
classes, subjects, etc...
DATABASE MANAGEMENT SYSTEM
A database management system is a software used to perform
different operations, like addition, access, updating, and deletion of
the data
Need of DBMS
• When dealing with huge amount of data, there are two things that
require optimization:
• Storage of data
eg: saving & salary account in same bank
• Retrieval of data.
8
History of Database Systems(contd..)
Early 1990s:
• The SQL language was designed primarily for the transaction
processing applications.
• Decision support and querying were seen as a major
application area for databases.
• Database vendors also began to add object-relational support
to their databases.
Late 1990s:
• The major event was the explosive growth of the World Wide
Web.
• Database systems now had to support very high transaction
processing rates, as well as very high reliability and 24 * 7
availability
9
• Database systems also had to support Web interfaces to data.
Evolution of Database Systems
• Disadvantage :
• searching a record or data takes a long time
17
2. Hierarchical Database System
• Advantage: FMS drawback of accessing records and sorting
records which took a long time was removed by parent-child
relationship between records in database.
• Drawback: any modification or addition made to the structure
then the whole structure needed alteration which made the
task a tedious one.
18
Hierarchical database
21
Relational database
• Traditional Applications:
• Numeric and Textual Databases
27
Application of DBMS
• 1.Airline and railways: Airlines and railways use online database for reservation and for displaying the
schedule information.
• 2.Banking: Banks use databases for customer inquiry, account, loans and other transactions.
• Education: schools and college use database for course registration results and other information.
• 4.Telecommunications: Telecommunication departments use databases to store information about the
communication network, telephone numbers, record of calls,for generation monthly bills. Etc.
• 5.Credit card transaction: Database are used for keeping track of purchases on credit cards in order to
generate monthly statements.
• 6.E-Commerce: Integration of heterogeneous information source for business activity such as online
shopping, booking of holiday package,consulting a doctor etc.
• 7.Health cares are information system and electronics patient record: Database are used for
maintaining the patient health care details.
• 8.Digital Libraries and digital publishing: Database are used for management and delivery of large
bodies of textual and multimedia data.
• 9.Finance: Databases are used for storing information such as sales, purchase of stocks and bonds or
data useful for online trading.
• 10.Sales: database is used to store product, customer and transaction details.
• 11.Human resources: Organization use database for storing information about their employee, salaries,
benefits, taxes and for generating salary checks.
Characteristics of databases
Main Characteristics of the Database System Approach
1. Self-describing nature of a database system:
• A DBMS catalog stores the description of a particular
database (e.g. data structures, types, and constraints)
• The description is called meta-data.
• This allows the DBMS software to work with different
database applications.
29
Example of a simplified database catalog
Slide
1- 19
Main Characteristics of the Database System Approach (contd..)
2. Insulation between programs and data:
• The structure of data files is stored in the DBMS catalog
separately from the access programs, call this property as
program-data independence
• Allows changing data structures and storage organization
without having to change the DBMS access programs.
3. Data Abstraction:
• A data model is used to hide storage details and present the
users with a conceptual view of the database.
• Programs refer to the data model constructs rather than data
storage details
20
Main Characteristicsof the DatabaseSystem Approach (contd..)
4. Support of multiple views of the data:
• Each user may see a different view of the database, which
describes only the data of interest to that user.
Slide
1- 32
Main Characteristics of the Database System Approach (contd..)
Slide
1- 33
Database Management System
• A database-management system(DBMS) is a collection of
interrelated data and a set of programs to access those data.
• General purpose software system
Goals of DBMS:
primary goal: provide a way to store and retrieve database
information that is both convenient and efficient
1. Manage large bodies of information
2. Secure information against system failure or tampering
3. Permit data to be shared among multiple users 23
Simplified Database System Environment
35
File System
• Computer systems were used to process business records and
produce information which were faster and more accurate
than equivalent manual systems.
• Stored groups of records in separate files, and so they were
called file processing systems.
• Data Isolation
• Integrity Problems
• Atomicity Problem
• Integrity problems
• Integrity constraints (e.g. account balance > 0) become part of program
code
• Hard to add new constraints or change existing ones
Data abstraction and data Independence
Data abstraction
• Database systems are made-up of complex data
structures.
• To ease the user interaction with database, the developers
hide internal irrelevant details from users.
• This process of hiding irrelevant details from user is
called data abstraction.
• There are three levels of abstraction:
1. Physical – describes how a record is stored
2. Logical – describes data stored in a database & the
relationships among the data
3. View – describes the user interaction with database
THREE LEVEL ARCHITECTURE OF
DATABASE SYSTEM
Example
Let’s say we are storing customer information in a customer table.
1. Physical - these records can be described as blocks of storage (bytes, gigabytes,
terabytes etc.) in memory. These details are often hidden from the programmers.
2. Logical - these records can be described as fields and attributes along with their data
types, their relationship among each other can be logically implemented. The
programmers generally work at this level because they are aware of such things
about database systems.
3. View - user just interact with system with the help of GUI and enter the details at
the screen, they are not aware of how the data is stored and what data is stored; such
details are hidden from them.
Data Independence
• The main purpose of data abstraction is achieving data independence in order to save time
and cost required when the database is modified or altered.
• The user view of the data would not be affected by any changes to the
conceptual view of the data.
• These changes may include:
• Insertion or deletion of attributes
• Altering table structures entities or relationships to the logical schema etc.
DBMS system architecture
Overall System Structure
Application Architectures
DBMS Server
• Provides database query and transaction
services to the clients
• Applications running on clients utilize an Application
Program Interface (API) to access server databases via
standard interface such as:
• ODBC: Open Database Connectivity
standard Client and server must install
• JDBC: for Java programming access appropriate client module and server
module software for ODBC or JDBC
Three Tier Client-Server Architecture
• Common for Web applications
• Intermediate Layer called Application Server or Web Server:
• Stores the web connectivity software and the business logic part of the application
used to access the corresponding data from the database server
• Acts like a agent for sending partially processed data
between the database server and the client.
• Three-tier Architecture Can Enhance Security:
• Database server only accessible via middle tier
• Clients cannot directly access database server
Three-tier client-server architecture(contd..)
Database Users
Users are differentiated by the way they expect to interact with the system:
• Specialized users – write specialized database applications that do not fit into
the traditional data processing framework
• Naïve users – invoke one of the permanent application programs that have
been written previously
• E.g. people accessing database over the web, bank tellers, clerical staff
Database administrator
• Individual or person responsible for
controlling, maintenance, coordinating, and
operation of database management system.
• They are responsible and in charge for
authorizing access to database, coordinating,
capacity, planning, installation, and monitoring
uses and for acquiring and gathering software
and hardware resources as and when needed.
• Database administration is major and key
function in any firm or organization that is
relying on one or more databases. They are
overall commander of Database system.
Database Administrator
• Coordinates all the activities of the database system; the database administrator
has a good understanding of the enterprise’s information resources and needs.
• Database administrator’s Role/duties include:
• Schema definition • Decides hardware
• Storage structure and access method definition • Database design
• Schema and physical organization modification • Database implementation
• Granting user authority to access the database • Query processing performance
• Specifying integrity constraints • Tuning Database Performance