Chapter 1 DBMS DJSCE
Chapter 1 DBMS DJSCE
6 To implement Subqueries.
7 To implement triggers.
• Easy to use –
File systems require very basic learning and understanding, hence, can be
easily used.
• High scalability –
One can very easily switch from smaller to larger files as per his needs.
Disadvantages of File Processing
System Over DBMS
• Data Redundancy & inconsistency
• Difficulty in accessing data
• Data isolation
• Integrity problem
• Atomicity problem
• Concurrent access anomalies
• Security problems
Advantages of DBMS
• No redundant data
• Data Sharing
• Data Consistency and Integrity
• Physical Independence (multiple data views)
• Data Security
• Privacy.
• Easy access to data
• Backup and recovery
• Concurrent execution without anamolies
Disadvantages Of DBMS
• High Cost: Implementing a DBMS can be expensive due to the cost of licensing, hardware,
and maintenance. This cost can be particularly significant for smaller organizations.
• Complexity: DBMS is a complex software that requires a significant amount of technical
expertise to install, configure, and maintain. This complexity can lead to increased
maintenance costs and technical difficulties.
• System Overhead: DBMS requires system resources such as memory, CPU, and disk space,
which can lead to system overhead and reduced system performance.
• Data Dependency: DBMS stores data in a particular format, which can create data
dependency issues. If the format changes, it can affect the application that uses the data,
leading to additional maintenance and development costs.
• Single Point of Failure: DBMS represents a single point of failure for an organization's
data. If the DBMS fails, it can lead to significant data loss and downtime, which can have a
severe impact on the business.
Characteristics of Database
Insulation between
Provides security and Self-describing nature Support of multiple
programs and data
removes redundancy of a database system views of the data
abstraction
Instance: Schema:
An instance of a database refers to the actual A schema in a database defines the logical
data that is stored in the database at a particular structure of the entire database. It's like a
moment in time. blueprint that outlines how the data is
It is a snapshot of the data contained within the organized, what tables exist, what columns they
database. have, and how they relate to each other.
For example, if you have a database that stores Schemas are essential for maintaining
information about students, an instance of the consistency and integrity in data storage and
database would include all the current records manipulation.
of students, their names, IDs, grades, etc. For example, the schema of a student database
might define a "Students" table with columns
like "StudentID," "Name," "Age," and
"Department," along with relationships to other
tables like "Courses" and "Grades."
Data Abstraction
Three-Schema Architecture
Defines DBMS schemas at three levels:
–Internal schema at the internal level to
describe physical storage structures and
access path.
–Conceptual schema at the conceptual level
to describe the structure and constraints for
the whole database for a community of users.
–External schemas at the external level to
describe the various user views.
Data Independence
• Physical data independence
• Logical data independence
Database users
• Database Administrator (DBA)
• Duties of DBA: Schema definition, storage structure and access method definition, schema & physical
organization modification, granting of authorization for data access, Integrity constraints specifications,
Security & authorization, Data availability, crash recovery
• Naive / Parametric End Users
• System Analyst
• Sophisticated Users
• Database Designers
• Application Programmers
• Casual Users / Temporary Users
• Specialized users: Specialized users are sophisticated users who write specialized database application that does
not fit into the traditional data-processing framework. Among these applications are computer aided-
design systems, knowledge-base and expert systems etc.
Database
system
architectu
re