[go: up one dir, main page]

0% found this document useful (0 votes)
65 views29 pages

Database Management Systems Overview

Uploaded by

kvuit
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Topics covered

  • DBMS vs File System,
  • Data Storage,
  • DBMS,
  • Data Constraints,
  • Database Applications,
  • Semistructured Data,
  • Data Retrieval,
  • Database Characteristics,
  • Sophisticated Users,
  • XML Format
0% found this document useful (0 votes)
65 views29 pages

Database Management Systems Overview

Uploaded by

kvuit
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Topics covered

  • DBMS vs File System,
  • Data Storage,
  • DBMS,
  • Data Constraints,
  • Database Applications,
  • Semistructured Data,
  • Data Retrieval,
  • Database Characteristics,
  • Sophisticated Users,
  • XML Format

22ITGA0-DATABASE

MANAGEMENT
SYSTEMS
By
[Link],
Associate Professor, IT,
TCE
Chapter 1
• Database Systems Concepts:

Structured data, unstructured data and Information,


Databases and Database Users. Data models and its
Types, Schemas and Instances, Three Schema
Architecture, Classification of DBMS.
Structured Data
• Data that resides in a fixed field within a file or record.
• Structured data is typically stored in a relational database
(RDBMS) and can consist of numbers and text.
• Examples :
Names, addresses, credit card numbers, numerical
data, Microsoft Excel files etc
Example for Structured Data
Unstructured Data

• Unstructured data is more or less all the data that is not

structured.

• Unstructured data may have a native, internal structure,

it's not structured in a predefined way.

• There is no data model.

• Examples : rich media, text, social media activity, video

files, audio files, surveillance imagery, etc.


Semistructured Data

• It's a type of structured data that does not fit into the

formal structure of a relational database.

• Employs tagging systems and other identifiable markers,

separating different elements and enabling search.

• Semi-structured data formats include JSON, CSV, and

XML file types.


JSON format
Basic Definitions
◼ Database:
◼ A collection of related data.

◼ Data:
◼ Known facts that can be recorded and have an implicit meaning.

◼ Mini-world:
◼ Some part of the real world about which data is stored in a
database.
◼ For example, student grades and transcripts at a university.

◼ Database Management System (DBMS):


◼ A software package/ system to facilitate the creation and
maintenance of a computerized database.
◼ Database System:
◼ The DBMS software together with the data itself. Sometimes,
the applications are also included.
Database Management System
(DBMS):

• DBMS is a collection of programs which enables its


users to access database, manipulate Data and
help in representation of data.
• It also helps control access to the database by various
users
• Some DBMS examples include MySQL, PostgreSQL,
Microsoft Access, SQL Server, FileMaker, Oracle,
RDBMS, dBASE, Clipper, and FoxPro.
Simplified database system environment
DBMS Functionality
• Define a particular database in terms of its data types,
structures, and constraints
• Construct or Load the initial database contents on a
secondary storage medium
• Manipulating the database:
• Retrieval: Querying, generating reports
• Modification: Insertions, deletions and updates to its content
• Accessing the database through Web applications
• Processing and Sharing by a set of concurrent users and
application programs – yet, keeping all data valid and
consistent
DBMS Functionality (contd)
• Other features:
• Protection or Security measures to prevent unauthorized access
• “Active” processing to take internal actions on data
• Presentation and Visualization of data
• Maintaining the database and associated programs over the
lifetime of the database application
• Called database, software, and system maintenance
Main Characteristics of the Database
Approach
[Link]-describing nature of a database system:
• A DBMS catalog stores the description of a particular
database (e.g. data structures, types, and constraints)
• The description is called meta-data.
• This allows the DBMS software to work with different
database applications.
[Link] between programs and data:
• Called program-data independence.
• Allows changing data structures and storage organization
without having to change the DBMS access programs.
DBMS catalog
Main Characteristics of the Database
Approach (continued)
[Link] Abstraction:
• A data model is used to hide storage details and present the users
with a conceptual view of the database.
• Programs refer to the data model constructs rather than data
storage details
[Link] of multiple views of the data:
• Each user may see a different view of the database, which
describes only the data of interest to that user.
DBMS VS FILE SYSTEM
File System
Drawbacks of using file systems to store
data:
[Link] redundancy and inconsistency
• Multiple file formats, duplication of information in different files
[Link] in accessing data
• Need to write a new program to carry out each new task
3. Data isolation — multiple files and formats
[Link] problems
• Integrity constraints (e.g. account balance > 0) become part of
program code
• Hard to add new constraints or change existing ones
5. Atomicity of updates
• Failures may leave database in an inconsistent state with partial
updates carried out
• E.g. transfer of funds from one account to another should either
complete or not happen at all
[Link] access by multiple users
• Concurrent accessed needed for performance
• Uncontrolled concurrent accesses can lead to inconsistencies
• E.g. two people reading a balance and updating it at the same time
[Link] problems

• Database systems offer solutions to all the above


problems
Database Users
◼ Users may be divided into
[Link] on the Scene :
---- who actually use and control the database
content, and those who design, develop and
maintain database applications
[Link] Behind the Scene
--- who design and develop the DBMS software and
related tools, and the computer systems operators
Database Users
◼ Actors on the scene
[Link] Administrators
[Link] Designers
[Link]
[Link] administrators:
◼ Responsible for authorizing access to the
database, for coordinating and monitoring its use,
acquiring software and hardware resources,
controlling its use and monitoring efficiency of
operations.
[Link] Designers:
◼ Responsible to define the content, the structure,
the constraints, and functions or transactions
against the database. They must communicate
with the end-users and understand their needs.
[Link]-users: They use the data for queries,
reports and some of them update the database
content. End-users can be categorized into:
◼ Casual: access database occasionally when
needed
◼ Naïve or Parametric: they make up a large section
of the end-user population.

◼ Examples are bank-tellers or reservation clerks who do


this activity for an entire shift of operations.
[Link]:
◼ These include business analysts, scientists, engineers,
others thoroughly familiar with the system capabilities.
◼ Many use tools in the form of software packages that
work closely with the stored database.
[Link]-alone:
◼ Mostly maintain personal databases using ready-to-use
packaged applications.
◼ An example is a tax program user that creates its own
internal database.
◼ Another example is a user that maintains an address
book
Workers Behind the Scene

1. DBMS system designers and implementers


2. Tool developers
3. Operators and maintenance personnel
Advantages of Using the DBMS
Approach
[Link] Redundancy
[Link] Unauthorized Access
[Link] Persistent Storage for Program Objects
4. Providing Storage Structures and Search
Techniques for Efficient Query Processing
5. Providing Backup and Recovery
6. Providing Multiple User Interfaces
7. Representing Complex Relationships among Data
8. Enforcing Integrity Constraints
9. Permitting Inferencing and Actions Using Rules

Common questions

Powered by AI

Database administrators are responsible for authorizing access, monitoring efficiency, and managing resources . Designers develop the database structure, content, and constraints, often in consultation with end-users to ensure the database meets their needs . End-users, categorized into casual, naive, sophisticated, and standalone, use the database for accessing and updating information, with varying degrees of interaction based on their technical expertise and requirements .

DBMS provides strong data integrity by enforcing rules and constraints across the entire database, reducing redundancy and data inconsistency . In terms of security, DBMS offers robust mechanisms to restrict unauthorized access and ensure data protection, which are typically more advanced than those available in traditional file systems. File systems often suffer from issues like data isolation and difficulty in enforcing integrity, as they rely on scattered files with limited built-in security .

Metadata in a DBMS refers to data about the data stored within the database, including descriptions of data structures, data types, and constraints. It resides in the DBMS catalog and plays a crucial role in guiding database operations, allowing the system to understand and enforce how data should be stored, accessed, and manipulated. It also enhances interoperability between different database applications by providing a standardized understanding of data .

Data abstraction improves database management by hiding the complexity of data storage and presenting a simplified interface to the user, allowing them to interact with data at a high level without concern for the underlying technical details. Program-data independence allows changes to data storage structures or data types without altering the database applications, facilitating easier updates and modifications to the database without causing disruptions to existing systems .

The self-describing nature of a DBMS means that it stores a description of the database structure as metadata, which allows for flexible management and adaptability of different applications to use the same database structure . Insulation between programs and data, or program-data independence, is critical as it permits changes to the data structure without needing to alter application programs, which reduces maintenance costs and effort while enhancing adaptability to evolving data requirements .

DBMS supports concurrent access by using mechanisms such as locks and transactions to ensure data consistency even when multiple users access or modify the database simultaneously. This is essential so that operations can be performed concurrently without leading to data conflicts or inconsistencies, such as partial updates or race conditions. It maintains database integrity despite the high demand for simultaneous transactions, which is vital for applications where data accuracy and reliability are crucial .

Structured data is organized through a fixed schema, typically stored in relational databases like RDBMS, allowing for easy access and querying . Unstructured data, such as text, video, and social media, lacks a predefined structure, and is often stored in NoSQL databases to accommodate its complexity . Semi-structured data combines elements of both, using formats like JSON or XML, allowing some hierarchical or relational elements that can be indexed or tagged for improved querying . Databases handle structured data with schemas, unstructured data through flexibility and varied structure support, and semi-structured data by using formats that allow for partial structure .

DBMS enforce integrity constraints by defining rules at the schema level that all data must adhere to, such as ensuring unique keys, maintaining referential integrity through foreign keys, and validating data types and formats. This simplifies application development, as the responsibility for maintaining data accuracy shifts to the database rather than application code, allowing developers to focus on business logic without worrying about data compliance issues .

The three-schema architecture contributes to data abstraction by isolating users from the physical storage of data, which is achieved by defining three different types of schemas: internal, conceptual, and external schemas. This separation allows users to interact with data at a higher conceptual level without needing to understand the physical details. It abstracts the underlying technical complexity, providing a logical view of data, and supports multiple user interfaces through the external schema .

Traditional file systems face challenges such as data redundancy and inconsistency, difficulty in accessing and integrating data, integrity problems, lack of atomicity, and security issues. DBMS addresses these by providing a unified system that controls data redundancy, simplifies data access, maintains data integrity through constraints, ensures atomicity with transaction management, and offers robust security measures .

You might also like