SlideShare a Scribd company logo
1 of 27
Download to read offline
BITS Pilani
Pilani Campus
CSF212 DATABASE SYSTEMS
Jayalakshmi N
Guest Faculty (Off-Campus) Computer Science
BITS Pilani, Pilani Campus
M1 - Introduction and Overview of
Database Systems
•Introduction to Database Management System
•Characteristics of database approach
•Database users
•Advantages of using DBMS
•Data Models , Schema,Instances and DataBase State
•Three – Schema Architecture and Data Independence
•DataBase System Environment
•DBMS Architecture
BITS Pilani, Pilani Campus
Data and Database
3
• A database is a collection of related data.
• By data, we mean known facts that can be recorded and that
have implicit meaning.
• For example, consider the names, telephone numbers, and
addresses of people.
• A database represents some aspect of the real world, sometimes
called the miniworld or the universe of discourse (UoD).
• A database is a logically coherent collection of data with some
inherent meaning.
• A database is designed, built, and populated with data for a
specific purpose.
BITS Pilani, Pilani Campus
DataBase Management Systems
• A DataBase Management System (DBMS) is a collection of
programs that enables users to create and maintain a database.
• The DBMS is a general-purpose software system that facilitates
the processes of defining, constructing, manipulating, and
sharing databases among various users and applications.
• Defining a database involves specifying the data types,
structures, and constraints of the data to be stored in the
database.
The database definition or descriptive information is also
stored by the DBMS in the form of a database catalog or
dictionary; it is called meta-data.
4
BITS Pilani, Pilani Campus
DataBase Management Systems
5
• Constructing the database is the process of
storing the data on some storage medium that is
controlled by the DBMS.
• Manipulating a database includes functions such
as querying the database to retrieve specific
data, updating the database to reflect changes in
the miniworld, and generating reports from the
data.
• Sharing a database allows multiple users and
programs to access the database simultaneously.
BITS Pilani, Pilani Campus
DataBase System
6
BITS Pilani, Pilani Campus
Characteristics of DataBase System
• Self-describing nature of a database system
• Insulation between programs and data, and
data abstraction
• Support of multiple views of the data
• Sharing of data and multiuser transaction
processing
7
BITS Pilani, Pilani Campus
DataBase Users
DataBase Administrators
•In a database environment, the primary resource is the
database itself, and the secondary resource is the
DBMS and related software.
• Administering these resources is the responsibility of
the DataBase Administrator (DBA).
•The DBA is responsible for authorizing access to the
database, coordinating and monitoring its use, and
acquiring software and hardware resources as needed.
•The DBA is accountable for problems such as security
breaches and poor system response time.
BITS Pilani, Pilani Campus
Database designers
•They are responsible for identifying the data to be stored in the
database and for choosing appropriate structures to represent
and store this data.
• These tasks are mostly undertaken before the database is
actually implemented and populated with data.
•It is the responsibility of database designers to communicate
with all prospective database users in order to understand their
requirements and to create a design that meets these
requirements.
• In many cases, the designers are on the staff of the DBA and
may be assigned other staff responsibilities after the database
design is completed. 9
DataBase Users
BITS Pilani, Pilani Campus
DataBase Users
End Users
•Casual end users occasionally access the database, but they
may need different information each time. They use a
sophisticated database query language to specify their
requests and are typically middle- or high-level managers or
other occasional browsers.
•Naive or parametric end users make up a sizable portion of
database end users. Their main job function revolves
around constantly querying and updating the database,
using standard types of queries and updates—called
canned transactions—that have been carefully
programmed and tested.
10
BITS Pilani, Pilani Campus
DataBase Users
End Users
•Sophisticated end users include engineers, scientists,
business analysts, and others who thoroughly familiarize
themselves with the facilities of the DBMS in order to
implement their own applications to meet their complex
requirements.
•Standalone users maintain personal databases by using
ready-made program packages that provide easy-to-use
menu-based or graphics-based interfaces.
11
BITS Pilani, Pilani Campus
DataBase Users
System analysts
•System Analysts determine the requirements of end users,
especially naive and parametric end users, and develop
specifications for standard canned transactions that meet
these requirements.
•Application programmers implement these specifications as
programs; then they test, debug, document, and maintain
these canned transactions.
•Such analysts and programmers—commonly referred to as
software developers or software engineers—should be
familiar with the full range of capabilities provided by the
DBMS to accomplish their tasks.
12
BITS Pilani, Pilani Campus
Advantages of a DBMS
• Controlling Redundancy
• Restricting Unauthorized Access
• Providing Persistant Storage for Program Objects
• Efficient Storage Structure and Query Processing
• Providing Multiple User Interfaces
• Representing Complex Relationships among Data
• Enforcing Integrity Constraints
• Permitting Inferencing and Actions Using Rules
13
BITS Pilani, Pilani Campus
Disadvantages of using DBMS
• High initial investment in hardware, software, and training.
• The generality that a DBMS provides for defining and processing
data.
• Overhead for providing security, concurrency control, recovery,
and integrity functions.
Advantages of Traditional File System
• Simple, well-defined database applications that are not expected
to change at all.
• Stringent, real-time requirements for some application programs
that may not be met because of DBMS overhead.
• Embedded systems with limited storage capacity, where a
general-purpose DBMS would not fit.
• No multiple-user access to data.
14
BITS Pilani, Pilani Campus
Data Models
• Data abstraction generally refers to the suppression of
details of data organization and storage, and the
highlighting of the essential features for an improved
understanding of data.
• Data model—a collection of concepts that can be used
to describe the structure of a database—provides the
necessary means to achieve this abstraction.
By structure of a database we mean the data types,
relationships, and constraints that apply to the data .
Most data models also include a set of basic operations
for specifying retrievals and updates on the database.
15
BITS Pilani, Pilani Campus
Categories of Data Models
• High-level or conceptual data models provide concepts
that are close to the way many users perceive data;
• Low-level or physical data models provide concepts that
describe the details of how data is stored on the
computer storage media, typically magnetic disks.
Concepts provided by low-level data models are
generally meant for computer specialists, not for end
users.
• Between these two extremes is a class of
representational(or implementation)data models,which
provide concepts that may be easily understood by end
users but that are not too far removed from the way data
is organized in computer storage. 16
BITS Pilani, Pilani Campus
Categories of Data Models
17
• 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 from the miniworld
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 association among the entities, for example, a
works-on relationship between an employee and a
project.
BITS Pilani, Pilani Campus
Categories of Data Models
• Representational or implementation data models
are the models used most frequently in
traditional commercial DBMSs.
• These include the widely used relational data
model, as well as the so-called legacy data
models—the network and hierarchical models.
• Representational data models represent data by
using record structures and hence are sometimes
called record-based data models.
18
BITS Pilani, Pilani Campus
• Object data models are also frequently utilized as
high-level conceptual models, particularly in the
software engineering domain.
19
Categories of Data Models
BITS Pilani, Pilani Campus
Schemas,Instances and DataBase
State
• The description of a database is called the database
schema, which is specified during database design
and is not expected to change frequently.
• A displayed schema is called a schema diagram.
• The data in the database at a particular moment in
time is called a database state or snapshot.
• It is also called the current set of occurrences or
instances in the database. In a given database state,
each schema construct has its own current set of
instances.
20
BITS Pilani, Pilani Campus
Three – Schema Architecture
The three-schema architecture, was proposed to help achieve
and visualize the characteristics of DBMS.
1.The internal level has an internal schema, which describes
the physical storage structure of the database.
2. The conceptual level has a conceptual schema, which
describes the structure of the whole database for a community of
users. The conceptual schema hides the details of physical
storage structures and concentrates on describing entities, data
types, relationships, user operations, and constraints.
3. The external or view level Each external schema describes
the part of the database that a particular user group is interested
in and hides the rest of the database from that user group.
21
BITS Pilani, Pilani Campus
Three-Schema Architecture
22
BITS Pilani, Pilani Campus
Data Independence
• The three-schema architecture can be used to explain the
concept of data independence, which can be defined as the
capacity to change the schema at one level of a database
system without having to change the schema at the next
higher level.
We can define two types of data independence:
• Logical data independence is the capacity to change the
conceptual schema without having to change external
schemas or application programs.
• Physical data independence is the capacity to change the
internal schema without having to change the conceptual
schema. Hence, the external schemas need not be changed as
well. 23
BITS Pilani, Pilani Campus
DataBase System Environment
24
BITS Pilani, Pilani Campus
DBMS Architecture
• Centralized DBMS Architecture
25
BITS Pilani, Pilani Campus
Two-Tier Client/Server
Architecture
26
BITS Pilani, Pilani Campus
Three-tier/n-tier Architecture
27

More Related Content

Similar to CSF212 Module1.ppt.pdf

Similar to CSF212 Module1.ppt.pdf (20)

Database & Database Users
Database & Database UsersDatabase & Database Users
Database & Database Users
 
unit 1.pdf
unit 1.pdfunit 1.pdf
unit 1.pdf
 
Unit 2 DATABASE ESSENTIALS.pptx
Unit 2 DATABASE ESSENTIALS.pptxUnit 2 DATABASE ESSENTIALS.pptx
Unit 2 DATABASE ESSENTIALS.pptx
 
Introduction to Database Management System.pdf
Introduction to Database Management System.pdfIntroduction to Database Management System.pdf
Introduction to Database Management System.pdf
 
PHP/MySQL First Session Material
PHP/MySQL First Session MaterialPHP/MySQL First Session Material
PHP/MySQL First Session Material
 
Chapter-1 Introduction to Database Management Systems
Chapter-1 Introduction to Database Management SystemsChapter-1 Introduction to Database Management Systems
Chapter-1 Introduction to Database Management Systems
 
Introduction to RDBMS
Introduction to RDBMSIntroduction to RDBMS
Introduction to RDBMS
 
Introduction to DBMS.pptx
Introduction to DBMS.pptxIntroduction to DBMS.pptx
Introduction to DBMS.pptx
 
Data base chapter 2 | detail about the topic
Data base chapter 2 | detail about the topicData base chapter 2 | detail about the topic
Data base chapter 2 | detail about the topic
 
Ch 2-introduction to dbms
Ch 2-introduction to dbmsCh 2-introduction to dbms
Ch 2-introduction to dbms
 
Unit 1.pptx
Unit 1.pptxUnit 1.pptx
Unit 1.pptx
 
Unit 1 dbms
Unit 1 dbmsUnit 1 dbms
Unit 1 dbms
 
Cp 121 lecture 01
Cp 121 lecture 01Cp 121 lecture 01
Cp 121 lecture 01
 
Unit 2 rdbms study_material
Unit 2  rdbms study_materialUnit 2  rdbms study_material
Unit 2 rdbms study_material
 
Dbms Useful PPT
Dbms Useful PPTDbms Useful PPT
Dbms Useful PPT
 
Chapter 1
Chapter 1Chapter 1
Chapter 1
 
Unit-I mech for studendts for btech .ppt
Unit-I mech for studendts for btech .pptUnit-I mech for studendts for btech .ppt
Unit-I mech for studendts for btech .ppt
 
DBMS introduction
DBMS introductionDBMS introduction
DBMS introduction
 
Computer applications.pptx
Computer applications.pptxComputer applications.pptx
Computer applications.pptx
 
Database Systems(DBS) Or DATABASE MANAGEMENT SYSTEM
Database Systems(DBS) Or DATABASE MANAGEMENT SYSTEMDatabase Systems(DBS) Or DATABASE MANAGEMENT SYSTEM
Database Systems(DBS) Or DATABASE MANAGEMENT SYSTEM
 

Recently uploaded

Computer Networks Basics of Network Devices
Computer Networks  Basics of Network DevicesComputer Networks  Basics of Network Devices
Computer Networks Basics of Network DevicesChandrakantDivate1
 
data_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdfdata_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdfJiananWang21
 
Learn the concepts of Thermodynamics on Magic Marks
Learn the concepts of Thermodynamics on Magic MarksLearn the concepts of Thermodynamics on Magic Marks
Learn the concepts of Thermodynamics on Magic MarksMagic Marks
 
Double Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torqueDouble Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torqueBhangaleSonal
 
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXssuser89054b
 
"Lesotho Leaps Forward: A Chronicle of Transformative Developments"
"Lesotho Leaps Forward: A Chronicle of Transformative Developments""Lesotho Leaps Forward: A Chronicle of Transformative Developments"
"Lesotho Leaps Forward: A Chronicle of Transformative Developments"mphochane1998
 
Introduction to Serverless with AWS Lambda
Introduction to Serverless with AWS LambdaIntroduction to Serverless with AWS Lambda
Introduction to Serverless with AWS LambdaOmar Fathy
 
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...Arindam Chakraborty, Ph.D., P.E. (CA, TX)
 
Online food ordering system project report.pdf
Online food ordering system project report.pdfOnline food ordering system project report.pdf
Online food ordering system project report.pdfKamal Acharya
 
S1S2 B.Arch MGU - HOA1&2 Module 3 -Temple Architecture of Kerala.pptx
S1S2 B.Arch MGU - HOA1&2 Module 3 -Temple Architecture of Kerala.pptxS1S2 B.Arch MGU - HOA1&2 Module 3 -Temple Architecture of Kerala.pptx
S1S2 B.Arch MGU - HOA1&2 Module 3 -Temple Architecture of Kerala.pptxSCMS School of Architecture
 
Standard vs Custom Battery Packs - Decoding the Power Play
Standard vs Custom Battery Packs - Decoding the Power PlayStandard vs Custom Battery Packs - Decoding the Power Play
Standard vs Custom Battery Packs - Decoding the Power PlayEpec Engineered Technologies
 
HAND TOOLS USED AT ELECTRONICS WORK PRESENTED BY KOUSTAV SARKAR
HAND TOOLS USED AT ELECTRONICS WORK PRESENTED BY KOUSTAV SARKARHAND TOOLS USED AT ELECTRONICS WORK PRESENTED BY KOUSTAV SARKAR
HAND TOOLS USED AT ELECTRONICS WORK PRESENTED BY KOUSTAV SARKARKOUSTAV SARKAR
 
Online electricity billing project report..pdf
Online electricity billing project report..pdfOnline electricity billing project report..pdf
Online electricity billing project report..pdfKamal Acharya
 
Engineering Drawing focus on projection of planes
Engineering Drawing focus on projection of planesEngineering Drawing focus on projection of planes
Engineering Drawing focus on projection of planesRAJNEESHKUMAR341697
 
HOA1&2 - Module 3 - PREHISTORCI ARCHITECTURE OF KERALA.pptx
HOA1&2 - Module 3 - PREHISTORCI ARCHITECTURE OF KERALA.pptxHOA1&2 - Module 3 - PREHISTORCI ARCHITECTURE OF KERALA.pptx
HOA1&2 - Module 3 - PREHISTORCI ARCHITECTURE OF KERALA.pptxSCMS School of Architecture
 
DC MACHINE-Motoring and generation, Armature circuit equation
DC MACHINE-Motoring and generation, Armature circuit equationDC MACHINE-Motoring and generation, Armature circuit equation
DC MACHINE-Motoring and generation, Armature circuit equationBhangaleSonal
 
Employee leave management system project.
Employee leave management system project.Employee leave management system project.
Employee leave management system project.Kamal Acharya
 

Recently uploaded (20)

Computer Networks Basics of Network Devices
Computer Networks  Basics of Network DevicesComputer Networks  Basics of Network Devices
Computer Networks Basics of Network Devices
 
data_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdfdata_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdf
 
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak HamilCara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
 
Learn the concepts of Thermodynamics on Magic Marks
Learn the concepts of Thermodynamics on Magic MarksLearn the concepts of Thermodynamics on Magic Marks
Learn the concepts of Thermodynamics on Magic Marks
 
Integrated Test Rig For HTFE-25 - Neometrix
Integrated Test Rig For HTFE-25 - NeometrixIntegrated Test Rig For HTFE-25 - Neometrix
Integrated Test Rig For HTFE-25 - Neometrix
 
Double Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torqueDouble Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torque
 
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
 
"Lesotho Leaps Forward: A Chronicle of Transformative Developments"
"Lesotho Leaps Forward: A Chronicle of Transformative Developments""Lesotho Leaps Forward: A Chronicle of Transformative Developments"
"Lesotho Leaps Forward: A Chronicle of Transformative Developments"
 
Introduction to Serverless with AWS Lambda
Introduction to Serverless with AWS LambdaIntroduction to Serverless with AWS Lambda
Introduction to Serverless with AWS Lambda
 
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...
 
FEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced Loads
FEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced LoadsFEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced Loads
FEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced Loads
 
Online food ordering system project report.pdf
Online food ordering system project report.pdfOnline food ordering system project report.pdf
Online food ordering system project report.pdf
 
S1S2 B.Arch MGU - HOA1&2 Module 3 -Temple Architecture of Kerala.pptx
S1S2 B.Arch MGU - HOA1&2 Module 3 -Temple Architecture of Kerala.pptxS1S2 B.Arch MGU - HOA1&2 Module 3 -Temple Architecture of Kerala.pptx
S1S2 B.Arch MGU - HOA1&2 Module 3 -Temple Architecture of Kerala.pptx
 
Standard vs Custom Battery Packs - Decoding the Power Play
Standard vs Custom Battery Packs - Decoding the Power PlayStandard vs Custom Battery Packs - Decoding the Power Play
Standard vs Custom Battery Packs - Decoding the Power Play
 
HAND TOOLS USED AT ELECTRONICS WORK PRESENTED BY KOUSTAV SARKAR
HAND TOOLS USED AT ELECTRONICS WORK PRESENTED BY KOUSTAV SARKARHAND TOOLS USED AT ELECTRONICS WORK PRESENTED BY KOUSTAV SARKAR
HAND TOOLS USED AT ELECTRONICS WORK PRESENTED BY KOUSTAV SARKAR
 
Online electricity billing project report..pdf
Online electricity billing project report..pdfOnline electricity billing project report..pdf
Online electricity billing project report..pdf
 
Engineering Drawing focus on projection of planes
Engineering Drawing focus on projection of planesEngineering Drawing focus on projection of planes
Engineering Drawing focus on projection of planes
 
HOA1&2 - Module 3 - PREHISTORCI ARCHITECTURE OF KERALA.pptx
HOA1&2 - Module 3 - PREHISTORCI ARCHITECTURE OF KERALA.pptxHOA1&2 - Module 3 - PREHISTORCI ARCHITECTURE OF KERALA.pptx
HOA1&2 - Module 3 - PREHISTORCI ARCHITECTURE OF KERALA.pptx
 
DC MACHINE-Motoring and generation, Armature circuit equation
DC MACHINE-Motoring and generation, Armature circuit equationDC MACHINE-Motoring and generation, Armature circuit equation
DC MACHINE-Motoring and generation, Armature circuit equation
 
Employee leave management system project.
Employee leave management system project.Employee leave management system project.
Employee leave management system project.
 

CSF212 Module1.ppt.pdf

  • 1. BITS Pilani Pilani Campus CSF212 DATABASE SYSTEMS Jayalakshmi N Guest Faculty (Off-Campus) Computer Science
  • 2. BITS Pilani, Pilani Campus M1 - Introduction and Overview of Database Systems •Introduction to Database Management System •Characteristics of database approach •Database users •Advantages of using DBMS •Data Models , Schema,Instances and DataBase State •Three – Schema Architecture and Data Independence •DataBase System Environment •DBMS Architecture
  • 3. BITS Pilani, Pilani Campus Data and Database 3 • A database is a collection of related data. • By data, we mean known facts that can be recorded and that have implicit meaning. • For example, consider the names, telephone numbers, and addresses of people. • A database represents some aspect of the real world, sometimes called the miniworld or the universe of discourse (UoD). • A database is a logically coherent collection of data with some inherent meaning. • A database is designed, built, and populated with data for a specific purpose.
  • 4. BITS Pilani, Pilani Campus DataBase Management Systems • A DataBase Management System (DBMS) is a collection of programs that enables users to create and maintain a database. • The DBMS is a general-purpose software system that facilitates the processes of defining, constructing, manipulating, and sharing databases among various users and applications. • Defining a database involves specifying the data types, structures, and constraints of the data to be stored in the database. The database definition or descriptive information is also stored by the DBMS in the form of a database catalog or dictionary; it is called meta-data. 4
  • 5. BITS Pilani, Pilani Campus DataBase Management Systems 5 • Constructing the database is the process of storing the data on some storage medium that is controlled by the DBMS. • Manipulating a database includes functions such as querying the database to retrieve specific data, updating the database to reflect changes in the miniworld, and generating reports from the data. • Sharing a database allows multiple users and programs to access the database simultaneously.
  • 6. BITS Pilani, Pilani Campus DataBase System 6
  • 7. BITS Pilani, Pilani Campus Characteristics of DataBase System • Self-describing nature of a database system • Insulation between programs and data, and data abstraction • Support of multiple views of the data • Sharing of data and multiuser transaction processing 7
  • 8. BITS Pilani, Pilani Campus DataBase Users DataBase Administrators •In a database environment, the primary resource is the database itself, and the secondary resource is the DBMS and related software. • Administering these resources is the responsibility of the DataBase Administrator (DBA). •The DBA is responsible for authorizing access to the database, coordinating and monitoring its use, and acquiring software and hardware resources as needed. •The DBA is accountable for problems such as security breaches and poor system response time.
  • 9. BITS Pilani, Pilani Campus Database designers •They are responsible for identifying the data to be stored in the database and for choosing appropriate structures to represent and store this data. • These tasks are mostly undertaken before the database is actually implemented and populated with data. •It is the responsibility of database designers to communicate with all prospective database users in order to understand their requirements and to create a design that meets these requirements. • In many cases, the designers are on the staff of the DBA and may be assigned other staff responsibilities after the database design is completed. 9 DataBase Users
  • 10. BITS Pilani, Pilani Campus DataBase Users End Users •Casual end users occasionally access the database, but they may need different information each time. They use a sophisticated database query language to specify their requests and are typically middle- or high-level managers or other occasional browsers. •Naive or parametric end users make up a sizable portion of database end users. Their main job function revolves around constantly querying and updating the database, using standard types of queries and updates—called canned transactions—that have been carefully programmed and tested. 10
  • 11. BITS Pilani, Pilani Campus DataBase Users End Users •Sophisticated end users include engineers, scientists, business analysts, and others who thoroughly familiarize themselves with the facilities of the DBMS in order to implement their own applications to meet their complex requirements. •Standalone users maintain personal databases by using ready-made program packages that provide easy-to-use menu-based or graphics-based interfaces. 11
  • 12. BITS Pilani, Pilani Campus DataBase Users System analysts •System Analysts determine the requirements of end users, especially naive and parametric end users, and develop specifications for standard canned transactions that meet these requirements. •Application programmers implement these specifications as programs; then they test, debug, document, and maintain these canned transactions. •Such analysts and programmers—commonly referred to as software developers or software engineers—should be familiar with the full range of capabilities provided by the DBMS to accomplish their tasks. 12
  • 13. BITS Pilani, Pilani Campus Advantages of a DBMS • Controlling Redundancy • Restricting Unauthorized Access • Providing Persistant Storage for Program Objects • Efficient Storage Structure and Query Processing • Providing Multiple User Interfaces • Representing Complex Relationships among Data • Enforcing Integrity Constraints • Permitting Inferencing and Actions Using Rules 13
  • 14. BITS Pilani, Pilani Campus Disadvantages of using DBMS • High initial investment in hardware, software, and training. • The generality that a DBMS provides for defining and processing data. • Overhead for providing security, concurrency control, recovery, and integrity functions. Advantages of Traditional File System • Simple, well-defined database applications that are not expected to change at all. • Stringent, real-time requirements for some application programs that may not be met because of DBMS overhead. • Embedded systems with limited storage capacity, where a general-purpose DBMS would not fit. • No multiple-user access to data. 14
  • 15. BITS Pilani, Pilani Campus Data Models • Data abstraction generally refers to the suppression of details of data organization and storage, and the highlighting of the essential features for an improved understanding of data. • Data model—a collection of concepts that can be used to describe the structure of a database—provides the necessary means to achieve this abstraction. By structure of a database we mean the data types, relationships, and constraints that apply to the data . Most data models also include a set of basic operations for specifying retrievals and updates on the database. 15
  • 16. BITS Pilani, Pilani Campus Categories of Data Models • High-level or conceptual data models provide concepts that are close to the way many users perceive data; • Low-level or physical data models provide concepts that describe the details of how data is stored on the computer storage media, typically magnetic disks. Concepts provided by low-level data models are generally meant for computer specialists, not for end users. • Between these two extremes is a class of representational(or implementation)data models,which provide concepts that may be easily understood by end users but that are not too far removed from the way data is organized in computer storage. 16
  • 17. BITS Pilani, Pilani Campus Categories of Data Models 17 • 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 from the miniworld 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 association among the entities, for example, a works-on relationship between an employee and a project.
  • 18. BITS Pilani, Pilani Campus Categories of Data Models • Representational or implementation data models are the models used most frequently in traditional commercial DBMSs. • These include the widely used relational data model, as well as the so-called legacy data models—the network and hierarchical models. • Representational data models represent data by using record structures and hence are sometimes called record-based data models. 18
  • 19. BITS Pilani, Pilani Campus • Object data models are also frequently utilized as high-level conceptual models, particularly in the software engineering domain. 19 Categories of Data Models
  • 20. BITS Pilani, Pilani Campus Schemas,Instances and DataBase State • The description of a database is called the database schema, which is specified during database design and is not expected to change frequently. • A displayed schema is called a schema diagram. • The data in the database at a particular moment in time is called a database state or snapshot. • It is also called the current set of occurrences or instances in the database. In a given database state, each schema construct has its own current set of instances. 20
  • 21. BITS Pilani, Pilani Campus Three – Schema Architecture The three-schema architecture, was proposed to help achieve and visualize the characteristics of DBMS. 1.The internal level has an internal schema, which describes the physical storage structure of the database. 2. The conceptual level has a conceptual schema, which describes the structure of the whole database for a community of users. The conceptual schema hides the details of physical storage structures and concentrates on describing entities, data types, relationships, user operations, and constraints. 3. The external or view level Each external schema describes the part of the database that a particular user group is interested in and hides the rest of the database from that user group. 21
  • 22. BITS Pilani, Pilani Campus Three-Schema Architecture 22
  • 23. BITS Pilani, Pilani Campus Data Independence • The three-schema architecture can be used to explain the concept of data independence, which can be defined as the capacity to change the schema at one level of a database system without having to change the schema at the next higher level. We can define two types of data independence: • Logical data independence is the capacity to change the conceptual schema without having to change external schemas or application programs. • Physical data independence is the capacity to change the internal schema without having to change the conceptual schema. Hence, the external schemas need not be changed as well. 23
  • 24. BITS Pilani, Pilani Campus DataBase System Environment 24
  • 25. BITS Pilani, Pilani Campus DBMS Architecture • Centralized DBMS Architecture 25
  • 26. BITS Pilani, Pilani Campus Two-Tier Client/Server Architecture 26
  • 27. BITS Pilani, Pilani Campus Three-tier/n-tier Architecture 27