Professional Documents
Culture Documents
EXAMPLES OF DBMS
✓ MySQL
✓ MariaDB
✓ PostgreSQL
BACKUP CONTROLS ✓ SQLite
• Database backup – automatic periodic copy of ✓ Microsoft SQL Server
data ✓ Oracle
• Transaction log – list of transactions which ✓ SAP
provides an audit trail ✓ Dbase
✓ FoxPro
• Checkpoint features – suspends data during
✓ IBM DB2
system reconciliation
✓ LibreOffice
• Recovery module – restarts system after a
✓ Base and FileMaker Pro
failure
• Grandparent-parent-child backup –the number
of generations to backup is up to company
policy
By: Roxy <333
Flat-File Versus Database Environments Data Redundancy and Flat-File Problems
• Computer processing involves two • Data Storage - creates excessive storage costs
components: data and instructions (programs). of paper documents and/or magnetic form
• Conceptually, there are two methods for • Data Updating - any changes or additions
designing the interface between program must be performed multiple times
instructions and data: • Currency of Information – has the potential
o File-oriented processing: A specific data file problem of failing to update all affected files
was created for each application. • Task-Data Dependency - user unable to obtain
o Data-oriented processing: Create a single additional information as his or her needs
data repository to support numerous change
applications.
• Disadvantages of file-oriented processing
include
o redundant data and programs
o varying formats for storing the redundant
data
Query Language
• The query capability permits end users and
professional programmers to access data in
Four Elements the database without the need for
1. Database management system conventional programs.
2. Users ✓ Can be an internal control issue since users
3. Database administrator may be making an ‘end run’ around the
4. Physical database controls built into the conventional programs
• IBM’s structured query language (SQL) is a
Internal Controls and DBMS fourth-generation language that has emerged as
• The database management system stands the standard query language.
between the user and the database per se. ✓ Adopted by ANSI as the standard language
• Thus, commercial DBMS’s (e.g., Access or for all relational databases
Oracle) actually consist of a database plus… Functions of the DBA
✓ software to manage the database, especially
controlling access and other internal controls
✓ software to generate reports, create data-
entry forms, etc.
• The DBMS has special software to control
which data elements each user is authorized to
access.
HIERARCHICAL MODEL
• Navigational Database – traversing the files
following a predefined path; explicit linkages
through networks. (Figure 4.10)
• Limitations1: A parent record may have one or
more child records
• Limitation2: No child can have more than one Distributed Data Processing (DDP)
parent. • Data processing is organized around several
information processing units (IPUs) distributed
throughout the organization.
• Each IPU is placed under the control of the end
user
• DDP does not always mean total
decentralization.
• IPUs in a DDP system are still connected to one
another and coordinated.
• Typically, DDP’s use a centralized database.
• Alternatively, the database can be distributed,
similar to the distribution of the data processing
capability.
NETWORK MODEL
Centralized Databases in DDP Environment
• ANSI thru CODASYL
• The data is retained in a central location.
• Most popular model of network is IDM
• Remote IPUs send requests for data
• Navigational thru multiple linkage
• Central site services the needs of the remote
• A child can have multiple parents
IPUs
RELATIONAL MODEL • The actual processing of the data is performed
at the remote IPU.
• The relational model portrays data in the form
of two dimensional ‘tables’. • Advantages of DDP
✓ Cost reductions in hardware and data entry
• Its strength is the ease with which tables may
task
be linked to one another.
✓ Improved cost control responsibility
• a major weakness of hierarchical and network
✓ Improved user satisfaction since control is
databases
closer to the user level
• Relational model is based on the relational ✓ Backup of data can be improved through the
algebra functions of restrict, project, and join. use of multiple data storage sites
• Implicit linkages, rows are dependent on the • Disadvantages of DDP
primary key and independent of the other ✓ Loss of control
attributes ✓ Mismanagement of resources
✓ Hardware and software incompatibility
By: Roxy <333
✓ Redundant tasks and data • Effective for situations with a high degree of data
✓ Consolidating incompatible tasks sharing, but no primary user. Supports read-only
✓ Difficulty attracting qualified personnel queries
✓ Lack of standards • Data traffic between sites is reduced
considerably.
Distributed Databases: Partitioned Database
Approach (Partitioning) CONCURRENCY CONTROL: Concurrency
• Splits the central database into segments that Problems and Control Issue
are distributed to their primary users. • Database concurrency is the presence of
• Advantages: complete and accurate data at all IPU sites.
✓ users’ control is increased by having data • With replicated databases, maintaining current
stored at local sites. data at all locations is difficult
✓ transaction processing response time is • Time stamping is used to serialize transactions.
improved. Prevents and resolves conflicts created by
✓ volume of transmitted data between IPUs is updating data at various IPUs
reduced. Distributed Databases and the Accountant
✓ reduces the potential data loss from a • The following database options impact the
disaster. organization’s ability to maintain database
integrity, to preserve audit trails, and to have
The Deadlock Phenomenon accurate accounting records.
• Especially a problem with partitioned databases ✓ Centralized or distributed data?
• Occurs when multiple sites lock each other out ✓ If distributed, replicated or partitioned?
of data that they are currently using. ✓ If replicated, total or partial replication?
✓ One site needs data locked by another site. ✓ If partitioned, what is the allocation of the
• Special software is needed to analyze and data segments among the sites?
resolve conflicts.
✓ Transactions may be terminated and restarted. DATABASE MANAGEMENT CONTROLS
Two crucial database control issues:
The Deadlock Condition 1. Access controls
• Audit objectives: (1) those authorized to use
databases are limited to data needed to
perform their duties and (2) unauthorized
individuals are denied access to data
2. Backup controls
• Audit objectives: backup controls can
adequately recovery lost, destroyed, or
corrupted data
✓ Mutual exclusion to data resource and the
transactions are in wait until the locks are ACCESS CONTROLS
removed. • User views - based on subschemas.
✓ DEADLOCK RESOLUTION - terminating on • A database schema (/ˈski.mə/ skee-ma) of a
or more transactions to complete processing of database system is its structure described in a
the other transactions in the deadlock. formal language supported by the database
management system (DBMS) and refers to the
Distributed Databases: Replication organization of data as a blueprint of how a
• Effective when there is high degree of sharing database is constructed (divided into database
but no primary user tables in case of Relational Databases).
• The duplication of the entire database for • Database authorization table - allows specific
multiple IPUs authority rules
• Data encryption - encoding algorithms
By: Roxy <333
• Biometric devices - fingerprints, retina prints,
or signature characteristics
• Inference Controls – prevent users from
inferring, through query features, specific data
values that should not be accessed.
• Positive Compromise, Negative Compromise
& Approximate Compromise
• Audit procedures: verify…
✓ Who has responsibility for authority tables
& subschemas?
✓ Granting appropriate access authority
✓ Are biometric controls used?
✓ Are inference controls used?
✓ Encryption?
BACKUP CONTROLS
• Database backup – automatic periodic copy of
data
• Transaction log – list of transactions which
provides an audit trail
• Checkpoint features – suspends data during
system reconciliation
• Recovery module – restarts system after a
failure
• Grandparent-parent-child backup –the number
of generations to backup is up to company
policy
• Direct access file backup - back-up master-file
at pre-determined intervals
• Off-site storage - guard against disasters
and/or physical destruction
• Audit procedures: verify…
✓ that production databases are copied or
backed up at regular intervals
✓ Verify automatic back up
✓ backup copies of the database are stored off
site to support disaster recovery
By: Roxy <333