DBMS_unit_1 (1)
DBMS_unit_1 (1)
MANAGEMENT
SYSTEM (DBMS)
By- Prof. ADARSH ASHOK
FITCS
Table of Content...
Introduction to Databases
Basic Concepts:
> Data
» Database
» Database systems
> DBMS
» Purpose of Database system
>» Characteristics of Database
> Advantages and Disadvantages of DBMS
> Database Languages
> Three level architecture
> Various components of a DBMS
INformaf?tion...
= Information means result of processing data that is meaningful to the end users.
Database/Catalogs/Schemas...
® A logical and clear collection of related data.
Metadata...
=» Data about data / data about the structures used to store data.
101 BBA
NOT ALLOWED
102 BCA
1. Controlling Redundancy : This refers to the practice of minimizing the duplication of data within a database or
information system. Redundancy can lead fo inconsistencies and inefficiencies. By controlling redundancy, you ensure
that each piece of data is stored only once, which simplifies maintenance and reduces the chance of errors.
2. Restricting Unauthorized Access: This involves implementing security measures to ensure that only authorized users can
access certain data or system functionalities. Techniques include authentication (verifying identity) and authorization
(granting specific permissions). This is crucial for protecting sensitive information and maintaining privacy.
3. Providing Persistent Storage for Program Objects: Persistent storage means that data is saved in such a way that it
remains available even after the program or system has been turned off or restarted. For example, databases and file
systems provide persistent storage, allowing data to be retained over time.
4. **Providing Storage Structures and Search Techniques for Efficient Query Processing: This involves designing and using
data structures (like indexes, hash tables, or B-trees) and algorithms that enable fast and efficient retrieval of data from a
database. Efficient query processing is important for performance and user experience.
5. Providing Backup and Recovery: This is the process of creating copies of data (backups) and having procedures in
place to restore data in the event of data loss, corruption, or system failure. Regular backups and recovery plans are
essential for data protection and business continuity.
6. Providing Multiple User Interfaces: This refers to offering various ways for users to interact with a system or database.
Examples include graphical user interfaces (GUIs), command-line interfaces (CLIs), and web interfaces. Different
interfaces can cater to different user needs and preferences.
7. Representing Complex Relationships Among Data: In databases, this means organizing data in a way that captures
fe)
intricate relationships, such as one-to-many or many-to-many associations. This is offen achieved through relational
models, object-oriented models, or graph databases, depending on the complexity and nature of the data.
8. Enforcing Integrity Constraints: Integrity constraints are rules that ensure the accuracy and consistency of data in a
database. Examples include primary keys (which uniquely identify records) and foreign keys (which maintain referential
integrity between tables). Enforcing these constraints helps prevent invalid data entries and maintains data quality.
9. Potential for Application Development Time: This refers to the impact of the database or system design on the time it
takes to develop applications. A well-designed system can streamline development, reduce coding time, and simplify
maintenance, whereas a poorly designed system can lead to longer development cycles and higher costs.
10. Flexibility: In the context of databases or systems, flexibility means the ability to adapt to changing requirements or
environments. A flexible system can accommodate new types of data, changes in user needs, or evolving business
processes without requiring significant rework.
11. Availability of Up-to-Date Information: This refers to ensuring that the information provided by a system or database is
current and accurate. Keeping data up-to-date involves regular updates and synchronization to reflect the most recent
changes or additions.
12. Economics of Scale: This concept involves reducing the per-unit cost of services or production as the scale of
operations increases. In the context of databases, if means that as the size of the database or number of users grows, the
cost per user or per unit of data storage offen decreases, making larger systems more cost-effective.
Each of these concepts plays a crucial role in designing, managing, and maintaining effective and efficient information
systems and databases.
Disadvantages of DBMS
Increased Cost
Complexity
Currency Maintenance
Performance
Frequency Upgrade/Replacement Cycles
Complex design
Damaged part
Compatibility
Data isolation
Difficulty in accessing data
1. Increased Cost: This refers to the rise in expenses associated with maintaining, upgrading, or scaling a system or
infrastructure. Costs can increase due to factors such as higher hardware requirements, more complex software,
increased licensing fees, or the need for more personnel fo manage and support the system.
2. Complexity: This describes how intricate and multifaceted a system or process is. Complexity can arise from various
factors, such as the number of components involved, the interdependencies between them, and the sophistication of the
system’s functions. Greater complexity offen means higher costs, more potential for errors, and increased difficulty in
maintenance and troubleshooting.
3. Currency Maintenance: This involves keeping data or systems current and up-to-date. In databases, currency
maintenance means ensuring that data reflects the latest changes and updates. In broader terms, it can also refer to the
need to regularly update software or hardware to keep if relevant and functional.
4. Performance: This is qa measure of how efficiently a system or component operates, often in terms of soeed and
responsiveness. Performance can be affected by various factors, including hardware capabilities, software optimization,
and the complexity of the tasks being performed. High performance is crucial for user satisfaction and system efficiency.
5. Frequency Upgrade/Replacement Cycles: This refers fo how often hardware or software needs to be upgraded or
replaced fo stay effective and relevant. Frequent upgrades or replacements can lead to higher costs and disruptions but
may be necessary to keep up with technological advancements and maintain system performance.
e)
6. Complex Design: This refers to a system or structure that is intricate and challenging to understand or
implement due fo Its multiple components, interdeoendencies, and detailed architecture. Complex designs
can be difficult to develop, maintain, and troubleshoot, and may require specialized knowledge or skills.
7. Damaged Part: In the context of hardware or systems, this refers to a component that has been physically
or functionally impaired, affecting the overall performance or operation of the system. Repairing or
replacing damaged parts is essential to restore full functionality and prevent system failures.
8. Compatibility: This is the ability of different systems, components, or software to work together seamlessly.
Compaiibility issues can arise when new technologies or updates do not integrate well with existing systems,
leading to potential conflicts, errors, or reduced functionality.
9. Data Isolation: This refers to the separation of data in a way that ensures different sets of data are kept
distinct from one another. Data isolation can be important for maintaining security, privacy, and data
integrity, and is often achieved through database design practices or access controls.
10. Difficulty in Accessing Data: This describes the challenges users face when trying to retrieve or interact
with data. Difficulty in accessing data can be caused by poor system design, inefficient query processing,
inadequate indexing, or complex data structures. Ensuring easy access to data is crucial for effective data
management and user satisfaction.
Each of these factors can significantly impact the effectiveness, efficiency, and usability of systems and
infrastructure. Understanding and managing these aspects are key to maintaining robust and reliable
technology solutions.
Database
Languages
Database languages are used to interact with and manage databases. They enable users to perform various
operations such as querying data, updating records, and defining the structure of the database.
SQL (Structured Query Language): SQL is the most widely used database language for relational
databases. It provides a standardized way to interact with databases and includes commands for:
¢ External Layer
DATABASE
*Definition: This schema defines how users and applications interact with the database. It includes
various user views or perspectives of the data, tailored to specific user needs.
«Purpose: It provides different ways of presenting and accessing data to different users or
applications, ensuring that users see only the data they are permitted to access.
-Components: Includes user-specific views, sub-schemas, and access permissions. It allows for
customization of data presentation and restrictions based on user roles and requirements.
“Example: This schema might include views for different departments in an organization, such as a
view showing only employee information for HR or a view with sales data for the sales team.
3°
2. Conceptual Schema (Logical Schema)
Definition: This schema provides a unified view of the entire database, abstracting
away the details of the physical storage. It defines the logical structure of the database
and the relationships among data entities.
Purpose: It represents the whole database as a whole and ensures that the data is
logically organized and accessible. It also enforces constraints and data integrity rules.
Components: Includes the database's logical structure, entities, relationships,
constraints, and data integrity rules. It provides a high-level view without concern for
how data is physically stored.
Example: This schema might define tables, columns, relationships, primary and foreign
keys, and constraints in a relational database.
Hardware
Data Acess
Langauge
Procedure
o The hardware is the actual computer system used for keeping and accessing the database. The
conventional DBMS hardware consists of secondary storage devices such as hard disks.
Databases run on the range of machines from micro computers to mainframes.
° Software
© Software is the actual DBMS between the physical database and the users of the system. All
the requests from the user for accessing the database are handled by DBMS.
° Data
co It is an important component of the database management system. The main task of DBMS is
to process the data. Databases are used to store the data, retrieved, and updated to and from
the databases.
o There are a number of users who can access or retrieve the data on demand using the
application and the interfaces provided by the DBMS.
oc The users of the database can be classified into different groups —
Native Users
Online Users
Sophisticated Users
Specialized Users
Application Users
DBA- Database Administrator