Dbms 1
Dbms 1
Database
Management
Systems (DBMS)
A Database Management System (DBMS) is a software application that
enables users to create, manage, and access databases. It acts as an
intermediary between users and the database, providing a structured way to
store, organize, and retrieve information. DBMSs play a crucial role in modern
organizations, facilitating data-driven decision-making, efficient data
management, and seamless data sharing across various applications.
Harsh
2301301138
Data Abstraction and Models
Data abstraction is a key concept in DBMS, simplifying complex data structures into manageable
representations. It involves hiding unnecessary details from users, presenting them with a simplified view
of the data. Common data models used in DBMS include:
Command Description
INSERT UPDATE
1 2
Inserts new rows into a table, Modifies existing rows in a table,
specifying the values for each changing the values of specific
column. columns.
DELETE SELECT
3 4
Removes rows from a table based Retrieves data from tables based
on specified criteria. on specific criteria, allowing users
to query and retrieve relevant
information.
Transaction Management
Transaction management is a crucial aspect of database systems, ensuring data consistency and integrity. It
involves grouping related database operations into a single logical unit called a transaction. A transaction is
either fully completed, committing changes to the database, or fully rolled back, undoing all changes if any
step fails.
Begin Transaction
Marks the start of a transaction, creating a savepoint to track changes.
Data Operations
Includes INSERT, UPDATE, DELETE, or other operations modifying database data.
Commit Transaction
Persists all changes made within the transaction, making them permanent in the database.
Rollback Transaction
Reverts all changes made within the transaction, restoring the database to its state before the
transaction began.
Concurrency Control
Concurrency control addresses the issue of multiple users accessing and modifying data in a
database simultaneously. It ensures data integrity and avoids inconsistencies that can occur
when multiple transactions interact with the same data. Various methods are used for
concurrency control, including:
Locking Timestamping
1 2
Locking mechanisms prevent multiple Timestamping assigns timestamps to
transactions from accessing and transactions, allowing the database to
modifying the same data determine the order in which
concurrently, ensuring data transactions should be executed.
consistency. Different types of locks Transactions with earlier timestamps
include exclusive locks, shared locks, are given priority, preventing
and two-phase locking. inconsistencies.