Lecture 2
Lecture 2
Lecture # 2
Components of the DBMS
Environment
Components of DBMS
Environment..
Hardware
Can range from a PC to a network of computers.
Software
DBMS, operating system, network software (if necessary)
and also the application programs.
Data
Used by the organization and a description of this data
called the schema.
Components of DBMS
Environment..
Procedures
Instructions and rules that should be applied to the design
and use of the database and DBMS.
People
Discussed in the next section
Roles in the DB Environment
Data Administrator (DA)
Database planning
Development and maintenance of standards, policies and
procedures
Database Designers (Logical/Physical)
Logical and Physical database design
Application Programmers
Develop Applications
Roles in the DB Environment..
Database Administrator (DBA)
Physical realization of the database
Physical database design and implementation
Security and integrity control
Maintenance of the operational system
Ensuring satisfactory performance of the applications for
users
End Users
Naive
Sophisticated
History of Database Systems
Roots of the DBMS
Apollo moon-landing project, 1960s
NAA (North American Aviation), prime contractor for the
project
Developed a software GUAM (Generalized Update Access
Method), hierarchical
In mid–1960s IBM joined NAA, result was IMS
(Information Management System)
History of Database Systems..
IDS (Integrated Data Store)
By General Electric, network, mid-1960
CODASYL
Conference on Data Systems Languages
DBTG
Data Base Task Group
History of Database Systems..
DBTG proposal (1971) included following
components for DB system architecture:
The schema
The subschema
A data management language
Schema DDL
Subschema DDL
DML
Improved security
Authentication, access rights
Enforcement of standards
Data formats, naming conventions, documentation etc.
Economy of scale
Cost savings due to database approach
Advantages of DBMSs..
Balance conflicting requirements
DBA resolves conflicts between different user’s groups
Improved data accessibility/ responsiveness
Ad hoc queries on integrated data
Increased productivity
Developer need to focus on application
Improved maintenance
Through program data independence
Advantages of DBMSs..
Increased concurrency
Multiple users are allowed to access same data
Improved backup and recovery services
Backup routines, recovery procedures by skilled staff
Disadvantages of DBMSs
Complexity
Size
Cost of DBMS
Additional hardware costs
Cost of conversion
Performance
other views
Users should not need to know physical
particular user
Different views may have different representation of same
on storage devices
Interfaces with the operating system access methods to
Conceptual Schema
Describes all the entities, attributes, and relationships
together with integrity constraints
Only one schema per database
Schemas..
Internal Schema
A complete description of the internal model, containing
the definitions of stored records, the methods of
representation, the data fields, and the indexes and
storage structures used
Only one schema per database
Mappings
The DBMS is responsible for mapping
between these three types of schema:
The DBMS must check that each external schema is
derivable from the conceptual schema, and it must use the
information in the conceptual schema to map between
each external schema and the internal schema
Types of mappings
Conceptual/Internal mapping
External/Conceptual mapping
Conceptual/Internal Mapping
Enables the DBMS to
Find the actual record or combination of records in
physical storage that constitute a logical record in the
conceptual schema,
Together with any constraints to be enforced on the
Database Instance
Data in the database at any particular point in time
Dynamic (changes with the time)
Also called an extension (or state) of database
Data Independence
Logical Data Independence
Refers to immunity of external schemas to changes in
conceptual schema
Conceptual schema changes (e.g. addition/removal of
entities)
Should not require changes to external schema or rewrites
of application programs
Data Independence
Physical Data Independence
Refers to immunity of conceptual schema to changes in
the internal schema
Internal schema changes (e.g. using different file
schemas
Data Independence and the ANSI-SPARC
Three-Level Architecture
Assignment 1: (10 Marks)
Identify and Study at least three Real World organization/
System using ANSI-SPARC three-level architecture
Data independence