1 Introduction
1 Introduction
Introduction
School of Computing and Information Technology -
University of Wollongong
Introduction
Outline
Data ? What is it ?
Electronic Storage Devices
Persistent Storage Devices
File Systems
Database Systems
Database Management Systems
TOP Created by Janusz R. Getta, CSIT115/CSIT815 Data Management and Security, Summer 2020/2021 2/34
Data ? What is it ?
Data is a set of values of qualitative or quantitative variables;
The pieces of data are the individual elements of information
Data can be measured, collected and reported, and analyzed,
whereupon it can be visualized using graphs or images
Data as a general concept refers to the fact that some existing
information or knowledge is represented or coded in some form
suitable for better usage or processing
A bit is the smallest unit of Data
A bit is the basic unit of information in computing and digital
communications
A bit can have only one of two values, and may therefore be physically
implemented with a two-state device
These values are most commonly represented as either a 0 or 1
A byte is a sequence of 8 bits
TOP Created by Janusz R. Getta, CSIT115/CSIT815 Data Management and Security, Summer 2020/2021 3/34
Introduction
Outline
Data ? What is it ?
Electronic Storage Devices
Persistent Storage Devices
File Systems
Database Systems
Database Management Systems
TOP Created by Janusz R. Getta, CSIT115/CSIT815 Data Management and Security, Summer 2020/2021 4/34
TOP Created by Janusz R. Getta, CSIT115/CSIT815 Data Management and Security, Summer 2020/2021 5/34
TOP Created by Janusz R. Getta, CSIT115/CSIT815 Data Management and Security, Summer 2020/2021 6/34
Introduction
Outline
Data ? What is it ?
Electronic Storage Devices
Persistent Storage Devices
File Systems
Database Systems
Database Management Systems
TOP Created by Janusz R. Getta, CSIT115/CSIT815 Data Management and Security, Summer 2020/2021 7/34
TOP Created by Janusz R. Getta, CSIT115/CSIT815 Data Management and Security, Summer 2020/2021 8/34
TOP Created by Janusz R. Getta, CSIT115/CSIT815 Data Management and Security, Summer 2020/2021 10/34
SSD has no moving parts and it only uses silicon as its media (it is "solid-
state")
SSDs are common today in mobile devices such as smartphones and
digital cameras; SD (Secure Digital) and CF (CompactFlash) memory
cards are smaller and less complex versions of an SSD
Both HDDand SSD are part of a class of storage called block devices
Block devices use logical addressing to access data and abstract the
physical media, using small, fixed, contiguous segments of bytes as the
TOP
addressable unit
Created by Janusz R. Getta, CSIT115/CSIT815 Data Management and Security, Summer 2020/2021 11/34
TOP Created by Janusz R. Getta, CSIT115/CSIT815 Data Management and Security, Summer 2020/2021 12/34
Compact discs, DVDs, and Blu-ray discs are common types of optical
media which can be read and recorded by such drives
DVD writer drive is the most common for desktop PCs and laptops
TOP Created by Janusz R. Getta, CSIT115/CSIT815 Data Management and Security, Summer 2020/2021 14/34
Introduction
Outline
Data ? What is it ?
Electronic Storage Devices
Persistent Storage Devices
File Systems
Database Systems
Database Management Systems
TOP Created by Janusz R. Getta, CSIT115/CSIT815 Data Management and Security, Summer 2020/2021 16/34
File systems
A data block-based logical model of persistent storage is too simplistic
for adavanced data processing applications
A sequence of data blocks is partitioned into variable subsequence of
data blocks called as files and the names associated with the files
uniquely identify each file
A file is a collection of records
A record can be stored in one or more data blocks and data block can
contain a number of records
A record is a sequence of fields
A field is a pair [address, value] where value is implemented as
sequences of bytes located in a data block and address consists of file
name, block number, offset within a block
A file definition determines the names of fields and the length of each
field
TOP Created by Janusz R. Getta, CSIT115/CSIT815 Data Management and Security, Summer 2020/2021 17/34
File systems
Operations on files:
- open file
- close file
- read/write a record at a given address
- read/write the next record
An example of a simple file system:
- STUDENT file
A file with information about students
STUDENT(number, firstname, lastname, date-of-birth, degree)
- SUBJECT file
A file with information about subjects
SUBJECT(code, title, credits)
- ENROLMENT file
A file with information about enrolments
ENROLMENT(student-number, subject-code, enrolment-date, status)
TOP Created by Janusz R. Getta, CSIT115/CSIT815 Data Management and Security, Summer 2020/2021 18/34
File systems
Limitations of file systems
- Separation and isolation of data
- Data dependence
- Incompatible formats of files
- Fixed queries/proliferation of application programs
- No provision for security or integrity
- No recovery from hardware or software failures
- No provision for shared access
TOP Created by Janusz R. Getta, CSIT115/CSIT815 Data Management and Security, Summer 2020/2021 19/34
Introduction
Outline
Data ? What is it ?
Electronic Storage Devices
Persistent Storage Devices
File Systems
Database Systems
Database Management Systems
TOP Created by Janusz R. Getta, CSIT115/CSIT815 Data Management and Security, Summer 2020/2021 20/34
Database systems
Database systems eliminate the following important limitations of file
systems:
- Database systems store the definitions of data stored together with data
- Database systems provide a universal query language that can used for quick
implementation of ad-hoc access to data
- Database systems implement a standard and unified collection of different types
of data, like for example, integer, float, string, date, and the others
- Database systems provide the mechanism to enforce security and integrity of
data
- Database systems implement the mechanism to automatically restore data after
hardware or software failures
- Database systems implement the mechanism for shared and concurrent access
to data by many different users
TOP Created by Janusz R. Getta, CSIT115/CSIT815 Data Management and Security, Summer 2020/2021 21/34
Database systems
A database is a shared collection of logically related data designed to
meet the information needs of an organization
We can also say that at a higher level of abstraction a database is a
description of selected fragment of the reality
A database may have different views at a conceptual (abstract) level and
at a logical level
Usually, at a conceptual level (abstract level) a database is a collection of
objects (entities) described by the values of properties (attributes) and
related to each other through associations (relationships)
A diagram below represents “suppliers” and “parts” (objects) and an
association “supplies” that links “suppliers” and “parts”
TOP Created by Janusz R. Getta, CSIT115/CSIT815 Data Management and Security, Summer 2020/2021 22/34
Database systems
Usually, at a logical level a database is a collection of tables that consist
of headers, rows, and columns
It is also possible that at a logical level a database is a collection of
records linked with pointers or it is a collection of hierarchical structures
Example of a conceptual view of a database:
- A database contains information about suppliers, parts, and shipments of parts
done by suppliers
- A conceptual schema:
TOP Created by Janusz R. Getta, CSIT115/CSIT815 Data Management and Security, Summer 2020/2021 23/34
Database systems
Example of a conceptual view of a database:
- A database contains information about suppliers, parts, and shipments of parts
done by suppliers
- An instance diagram:
TOP Created by Janusz R. Getta, CSIT115/CSIT815 Data Management and Security, Summer 2020/2021 24/34
Database systems
Example of a logical view of a database:
- A database contains information about suppliers, parts , and shipments of parts
done by suppliers
TOP Created by Janusz R. Getta, CSIT115/CSIT815 Data Management and Security, Summer 2020/2021 25/34
Database systems
Another example of a logical view of a database:
- A database contains information about suppliers, parts , and shipments of parts
done by suppliers
Database systems
Yet another example of a logical view of a database:
- A database contains information about suppliers, parts , and shipments of parts
done by suppliers
TOP Created by Janusz R. Getta, CSIT115/CSIT815 Data Management and Security, Summer 2020/2021 27/34
Database systems
Abstraction levels:
- Hardware level: bit, byte, sector, track, cylinder
- Logical level: attribute, value, row, column, link, table, hierarchy, network
Introduction
Outline
Data ? What is it ?
Electronic Storage Devices
Persistent Storage Devices
File Systems
Database Systems
Database Management Systems
TOP Created by Janusz R. Getta, CSIT115/CSIT815 Data Management and Security, Summer 2020/2021 29/34
TOP Created by Janusz R. Getta, CSIT115/CSIT815 Data Management and Security, Summer 2020/2021 30/34
TOP Created by Janusz R. Getta, CSIT115/CSIT815 Data Management and Security, Summer 2020/2021 31/34
TOP Created by Janusz R. Getta, CSIT115/CSIT815 Data Management and Security, Summer 2020/2021 32/34
TOP Created by Janusz R. Getta, CSIT115/CSIT815 Data Management and Security, Summer 2020/2021 33/34
References
C. Coronel, S. Morris, A. Basta, M. Zgola, Data Management and Security,
Chapter 1, Cengage Compose eBook, 2018, eBook: Data Management
and Security, 1st Edition
T. Connoly, C. Begg, Database Systems, A Practical Approach to Design,
Implementation, and Management, Chapter 1 Introduction to
Databases, Pearson Education Ltd, 2015
TOP Created by Janusz R. Getta, CSIT115/CSIT815 Data Management and Security, Summer 2020/2021 34/34