Introduction To Databases: By: Aisha Batool
Introduction To Databases: By: Aisha Batool
And ……
What are file-based systems
Collection of application programs that perform services for the
end users (e.g. reports).
Duplication of data
Same data is held by different programs.
Wasted space and potentially different values and/or
different formats for the same item.
Limitations of File-Based Approach
Data dependence
File structure is defined in the program code.
Software
DBMS, operating system, network software (if necessary)
and also the application programs.
Components of DBMS Environment
Data
Data acts as a bridge between the machine components and the
human components
The database contains both the operational data and the metadata
(Data about data)
Important terms
Schema or structure of the database
Attributes or fields of tables
Tuples or records
Relation or table
Components of DBMS Environment
Procedures
Procedures refer to the instructions and rules that govern the design
and use of the database
These may consist of instructions on how to:
• Log on to the DBMS.
• Use a particular DBMS facility or application program.
• Start and stop the DBMS.
• Make backup copies of the database.
People
Users
Developers
Administrators
Database Schemas
Database Schema:
The description of a database.
Includes descriptions of the database structure, data types,
and the constraints on the database.
Schema Diagram:
An illustrative display of (most aspects of) a database
schema.
Schema Construct:
A component of the schema or an object within the schema,
e.g., STUDENT, COURSE.
DatabaseState versus Instances
Database State:
The actual data stored in a database at a particular moment in
time. This includes the collection of all the data in the database.
Also called database instance (or occurrence or snapshot).
The term instance is also applied to individual database
components, e.g. record instance, table instance, entity instance
Database State
Database State:
Refers to the content of a database at a moment in time.
Initial Database State:
Refers to the database state when it is initially loaded into the
system.
Valid State:
A state that satisfies the structure and constraints of the database.
Database Schema vs. Database State
• Distinction
– The database schema changes very infrequently.
– The database state changes every time the database is
updated.
• Schema is also called intension.
• State is also called extension.
Database Schema vs Instances
Database Schema
– Description of database (also called intension)
– Specified during design phase
– Remain almost static
• 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
Example of a Database Schema
Example of a Database state
Roles in the Database Environments
Administrators
Data Administrators
Database Administrators
Database Designers
Logical Database Designers
Physical Database Designers
Application Developers
End Users
Naïve Users
Sophisticated Users
Roles in the Database Environments
Data Administrator
Responsible for the management of the data resource
Database planning
Maintenance of standards, policies
and procedures
Conceptual/logical database design
Database Administrator
Responsible for the physical realization of the database
Physical database design and implementation
Security and integrity control
DBA is more technically oriented than the role of the DA
Roles in the Database Environments
Logical Database Designers
Concerned with
Identifying the data
Relationships between the data
Constraints on the data (constraints are also called business rules)
“WHAT” data will be stored
Physical Database Designers
How the logical database design is to be physically realized
“HOW” Data will be stored
Roles in the Database Environments
Application Developers
Once the database has been implemented, the application programs
that provide the required functionality for the end-users must be
implemented
Enables users to perform actions:
Retrieving data,
Inserting,
Updating
Deleting Data
Advantages of DBMS
Advantages of DBMS
Balance conflicting requirements
Improved data accessibility and responsiveness
Increased productivity
Improved maintenance through data independence
Increased concurrency
Improved backup and recovery services
Disadvantages of DBMS