Lecture1 _ Introduction
Lecture1 _ Introduction
Materials:
1.Course book
2.References book
Elmasri & Navathe, “Fundamentals of database
systems”, 6th ed.
Assesment
60% final exam
10% Practical Exam
10% Oral Exam
20% mid-term Exam
Lab work
Ms SQL server
What is database?
• “A set of information held in a computer”
ERD diagram
What is database?
• A shared collection of logically related
data, and a description of this data
(metadata), designed to meet the
information needs of an organization.
Why study database?
• File based systems
• Data is stored in files
• Each file has a specific format
• Programs that use these files depend on knowledge
about that format
Why study database?
• Drawbacks of using file systems to store data:
• Data redundancy and inconsistency
• Multiple file formats, duplication of information in
different files
• Difficulty in accessing data
• Need to write a new program to carry out each new task
• Data isolation — multiple files and formats
• Integrity problems
• Integrity constraints - Hard to add new constraints or
change existing ones
Why study database?
• Drawbacks of using file systems to store data:
• Atomicity of updates
• Failures may leave database in an inconsistent state
with partial updates carried out
• Concurrent access by multiple users
• Concurrent access needed for performance
• Security problems
• Hard to provide user access to some, but not all, data
Why study database?
• Implications of file systems drawbacks:
• Waste of space
• Data inaccuracies
• High overhead of data manipulation and
maintenance
Database processing.
Views
views benefits:
1.Views provide a level of security
2.Views provide a mechanism to customize the
appearance of the database.
3.A view can present a consistent, unchanging
picture of the structure of the database
Data Management
User/Application
Data
• DBMS Functions:
DBMS environment.
DBMS Functions cont.
3. The DBMS provides controlled access to the database.
•For example, it may provide:
•– a security system, which prevents unauthorized users accessing
the database;
•– an integrity system, which maintains the consistency of stored
data;
•– a concurrency control system, which allows shared access of the
database;
•a recovery control system, which restores the database to a
previous consistent state following a hardware or software failure;
Advantages of database approach
Control of data redundancy
Data consistency
More information from the same amount of data
Sharing of data
Improved data integrity
Improved security
Enforcement of standards
Economy of scale
Balance of conflicting requirements
Improved data accessibility and responsiveness
Increased productivity
Improved maintenance through data independence
Increased concurrency
Improved backup and recovery services
Disadvantages of the database
approach:
• Complexity
• Size
• Cost of DBMSs
• Additional hardware costs
• Cost of conversion
• Performance
• Higher impact of a failure
Course outline