0% found this document useful (0 votes)
33 views11 pages

DBMS Notes

Download as docx, pdf, or txt
Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1/ 11

Database Management

Systems
Data Models
Introduction to Database Management Systems (DBMS)
Relational Database Management Systems (RDBMS)
Structured Query Language (SQL)
Database Transactions
Data Centers
Cloud Services

Data Model:
A data model is a conceptual representation of how data is structured and organized
within a system. It defines the relationships between different data elements, the rules
for data manipulation, and the constraints that apply to the data.
They provide the blueprint for how data is organized and how relationships among data
elements are established.
Types of Data Models:

Hierarchical Model: Data is organized in a tree-like structure, where each child record
has only one parent.

Network Model: Similar to the hierarchical model but allows each record to have multiple
parents, creating a more flexible data structure.

Relational Model: Data is stored in tables, with relationships between tables defined by
foreign keys. This is the most widely used model in RDBMS.

Object-oriented Model: Incorporates object-based data modeling, allowing stored data to


include not just values but also methods for processing or manipulating those values.

Introduction to Database Management Systems (DBMS):


A Database Management System (DBMS) is specialized software that enables the
creation, management, and use of databases.

It serves as an interface between databases and end-users or application programs,


ensuring that data is consistently organized and remains easily accessible.
DBMSs are crucial for handling vast amounts of data efficiently.
They support various operations such as
Data storage,
Retrieval,
Updating, and
Management, facilitating the organization's data management practices.

Functions of a DBMS

Data Storage: DBMS stores data in a structured format, using tables, schemas, and
databases to organize data efficiently.

Data Retrieval: Allows users to retrieve data efficiently through queries, making it
accessible for analysis or processing.

Data Update: Supports adding new data, modifying existing data, and deleting outdated
data, ensuring the database remains current.

Data Administration: Offers tools for backup and recovery, security management, and
performance monitoring to maintain data integrity and availability.

Benefits of Using a DBMS

Data Security: Implements security measures to protect data against unauthorized


access or breaches.

Data Integrity: Ensures accuracy and consistency of data through integrity constraints.

Data Independence: Allows changes to the data storage and structure without altering
the application programs that access the database.

Relational Database Management Systems (RDBMS) A Relational Database Management


System (RDBMS) is a type of DBMS that uses a relational model to store data.

It organizes data into tables (relations), which consist of rows (records) and columns
(attributes).
Key Features of RDBMS:

Table-based Structure: Data is stored in tables, making data management and querying
efficient.

Data Manipulation: Utilizes Structured Ǫuery Language (SǪL) for data manipulation and
querying.

Data Integrity: Ensures data accuracy and consistency through integrity constraints like
primary keys and foreign keys.

ACID Transactions: Supports transactions that are Atomic, Consistent, Isolated, and
Durable to ensure data reliability.

Advantages of RDBMS

Flexibility: Ability to handle a wide range of data types and complex queries.

Scalability: Can scale to handle large amounts of data and concurrent users

efficiently.
Security: Provides robust data security features, including access controls and
encryption.

Maintenance: Easier to maintain due to its structured format and widespread support
tools.

Examples of RDBMS:

Mention popular RDBMS software

like Oracle Database MySǪL

Microsoft SǪL Server, and

PostgreSǪL to give context.

Structured Query Language (SQL)

Definition of SǪL

Core Functions of

SǪL Advantages of

SǪL

Example of a Simple SǪL Ǫuery:

Structured Ǫuery Language (SǪL) is a standard programming language specifically


designed for managing and manipulating relational databases.

It allows for the querying, updating, and management of data in RDBMS.

Data Ǫuerying: Retrieving data from a database using the SELECT statement, filtering
results with conditions.

Data Manipulation: Inserting (INSERT), updating (UPDATE), and deleting (DELETE) records
in a database.

Data Definition: Creating (CREATE), altering (ALTER), and dropping (DROP) database
objects like tables and views.

Data Control: Managing access to the database and its objects through permissions
(GRANT and REVOKE).

Advantages of SQL
Standardization: SǪL is widely accepted and used, making skills transferable across
different database systems.

User-Friendly Syntax: SǪL syntax is readable and similar to natural language, making it
easier to learn and use.

Powerful and Versatile: Capable of handling complex queries and database transactions,
making it suitable for a wide range of data management tasks.

Database Transaction

A database transaction is a sequence of one or more database operations performed as


a single, atomic unit of work.

Each transaction is meant to ensure data integrity and consistency.

Transactions are crucial for maintaining the integrity and consistency of the database.

They ensure that even in the case of errors or failures, the data remains accurate and
reliable.

Data Centers
A data center is a facility composed of networked computers and storage used to
organize, process, store, and disseminate large amounts of data.

Data centers are critical assets for enterprises and cloud service providers.

Components of Data Centers

Computing Resources: Servers that perform data processing and applications execution.

Storage Systems: Devices for storing data, such as SAN (Storage Area Network) and NAS
(Network Attached Storage).

Networking: Infrastructure for connecting data center components internally and to the
internet or other networks.

Power and Cooling Systems: Essential for maintaining optimal operating conditions and
ensuring the reliability of hardware components.
Types of Data Centers

Enterprise Data Centers: Owned and operated by companies and located on their
premises.

Colocation Data Centers: Where companies can rent space for servers and other
computing hardware.

Cloud Data Centers: Operated by cloud service providers offering cloud services over
the internet.

Importance of Data Centers:

Data centers are the backbone of IT operations, supporting business applications, data
storage, management, and dissemination.

They play a crucial role in disaster recovery, data backup, and ensuring data availability.

Cloud Services

Cloud services refer to a wide range of services delivered on demand to companies and
customers over the internet.

These services are designed

to Provide easy

affordable access to applications and resources, without the need for internal
infrastructure or hardware.

Types of Cloud Services:

Infrastructure as a Service (IaaS): Provides virtualized computing resources over the


internet, including virtual machines, storage, and networks.

Platform as a Service (PaaS): Offers hardware and software tools over the internet,
typically for application development.
Software as a Service (SaaS): Delivers software applications over the internet, on a
subscription basis, accessible through a web browser.

Benefits of Cloud Services:

Scalability: Resources can be scaled up or down based on demand, providing flexibility.

Cost-Effectiveness: Reduces the cost of purchasing and maintaining hardware and


software.

Accessibility: Services can be accessed from anywhere, facilitating remote work and
global collaboration.

Disaster Recovery: Enhances data backup and disaster recovery capabilities through data
replication in multiple locations.

Cloud Deployment Models:

Public Cloud: Services are delivered over the public internet and shared across
organizations.

Private Cloud: Services are maintained on a private network, offering more control and
security.

Hybrid Cloud: Combines public and private clouds, allowing data and applications to be
shared between them.
Summary of OS:

1. Functions of Operating Systems: Operating systems perform various essential functions


to ensure efficient operation of computer systems. These functions include managing hardware
resources such as CPU, memory, and storage devices, executing application software, handling
user interface interactions, and coordinating input/output operations.
2. Types of Operating Systems: Operating systems come in different types, each catering
to specific needs and environments. Real-time operating systems are designed to manage time-
sensitive processes, while network operating systems focus on managing resources and users
across a network. Embedded operating systems are tailored for specialized devices, and
standalone operating systems operate independently on personal computers or workstations.
3. Device Management: Device management is a crucial aspect of operating systems,
responsible for controlling and coordinating input/output operations with peripheral devices such
as printers, disk drives, and network adapters. This ensures efficient utilization of hardware
resources and smooth functioning of the overall system.

Function of an Operating System: An operating system (OS) manages various


aspects of a computer system. While it handles memory management, file
management, and process management, it doesn't involve hardware manufacturing,
which falls outside its domain.
Multi-User Operating System: Linux exemplifies a multi-user operating system,
allowing multiple users to interact with the system concurrently, a feature vital for
servers and shared computing environments.
File Management System: The primary role of a file management system in an OS
is to oversee the storage of data on storage devices, ensuring efficient organization,
access, and control over files and directories.
Definition of an Operating System: An operating system orchestrates both
hardware and software resources, serving as an intermediary between applications
and hardware components, thereby enabling efficient system operation.
Types of Operating Systems: Operating systems vary, from single-user to multi-
processor systems, with each tailored to specific computing needs, such as personal
computing, server environments, and high-performance computing.
Memory Management Functions: Memory management within an OS involves
tasks like allocation, deallocation, and relocation of memory resources, crucial for
optimizing system performance and ensuring efficient memory utilization.
Boot Loader Purpose: During system startup, a boot loader's primary role is to load
the operating system into memory, initiating the system's boot process and preparing
it for user interaction.
Communication Management: Device drivers serve as intermediaries facilitating
communication between hardware components and software applications, ensuring
seamless interaction and optimal utilization of hardware resources.
Command-Line Interfaces: Command-line interfaces like Command Prompt
(Windows) and Bash (Linux) provide users with direct textual interaction with the
operating system, offering powerful tools for system management and automation.
Operating System Benefits: Operating systems enhance hardware utilization,
ensure system security, and promote software compatibility, contributing to efficient
and reliable computing environments.
Operating System Structures: Module-based structures offer flexibility through
dynamic loading and unloading of OS components, contrasting with monolithic
structures, which integrate most functions into the kernel for streamlined operation.
System Startup Process: Booting is the initial process of starting up a computer,
where the system's firmware initializes hardware components and loads the operating
system into memory for execution.
Boot Process Component: During booting, the BIOS or UEFI firmware takes
charge of loading the operating system into memory, initializing essential system
components for proper system operation.
Operating System Goals: While ensuring system security, providing a user
interface, and maximizing hardware utilization are primary goals of an operating
system, entertainment features are not typically part of its core objectives.
Kernel Functionality: The kernel serves as the core component of an operating
system, responsible for managing system resources, providing essential services, and
facilitating communication between hardware and software components.
Dual-Mode Operation: Dual-mode operation permits the operating system to switch
between user and kernel modes, enhancing system security by restricting direct
access to critical system resources.
Security in Computer Systems: Dual-mode operation primarily aims to provide
security and protection by segregating user-level processes from privileged kernel
operations, preventing unauthorized access to critical system functions.
Operating System Structures: In a monolithic operating system structure, most
operating system functions reside within the kernel space, contrasting with
microkernel or hybrid structures, which distribute functionalities across multiple
modules or layers.
System Calls Definition: System calls are requests made by applications to the
operating system for specific operations, enabling programs to interact with system
resources and services.
System Call Interface Purpose: The system call interface acts as a bridge between
user programs and the operating system, providing a standardized means for
applications to request OS services and access system resources while maintaining
abstraction and security.

Summary of DBMS:

Non-Relational Databases: Non-relational databases, also known as NoSQL


databases, offer flexible data storage solutions. An example of this is MongoDB,
which stores data in a document-oriented format rather than traditional table
structures like in MySQL or PostgreSQL.
SQL Conditions: In SQL, the WHERE clause is used to specify conditions for data
retrieval. This clause filters rows based on specified conditions, allowing users to
retrieve only the data that meets certain criteria.
ACID Transactions: ACID transactions in databases ensure reliability and integrity.
While isolation, atomicity, and durability are fundamental properties, concurrency is
not directly related to the ACID acronym.
Database Transactions: The COMMIT statement in database transactions serves the
critical purpose of permanently saving changes made by the transaction. This ensures
that the changes are finalized and cannot be rolled back.
Data Distribution: Data sharding is the process of distributing data across multiple
servers in a network. It allows for improved scalability and performance by
spreading the data load.
Cloud Deployment Models: The private cloud deployment model offers dedicated
infrastructure for a single organization. This ensures greater control, security, and
customization options compared to public or hybrid cloud models.
Data Center Functions: Data centers primarily serve the function of processing and
analyzing data. They provide the necessary infrastructure and resources for storing,
managing, and processing large volumes of data.
Cloud Service Models: Infrastructure as a Service (IaaS) allows users to rent
virtualized computing resources over the internet. This model provides flexibility and
scalability without the need for investing in physical hardware.
Modifying Data: The SQL UPDATE command is used to modify existing data in a
database. It allows users to change the values of specific columns in one or more
rows.
SQL WHERE Clause: The WHERE clause in an SQL statement is used to filter
rows based on specified conditions. It allows users to retrieve only the data that
meets specific criteria, enhancing the efficiency of queries.

You might also like