MBA 664 Database Management Dave Salisbury ( )

Slides:



Advertisements
Similar presentations
Database Management System MIS 520 – Database Theory Fall 2001 (Day) Lecture 13.
Advertisements

Auditing Computer-Based Information Systems
Database Administration and Security Transparencies 1.
Data and Database Administration Chapter 12. Outline What is Concurrency Control? Background Serializability  Locking mechanisms.
Functions of Database Management Systems Data storage retrieval and update facilities A user-accessible catalogue or data dictionary Support for shared.
Monday, 08 June 2015Dr. Mohamed Osman1 What is Database Administration A high level function (technical Function) that is responsible for ► physical DB.
10/25/2001Database Management -- R. Larson Data Administration and Database Administration University of California, Berkeley School of Information Management.
© 2005 by Prentice Hall 1 Chapter 12: Data and Database Administration Modern Database Management 7 th Edition Jeffrey A. Hoffer, Mary B. Prescott, Fred.
Database Administration Chapter Six DAVID M. KROENKE’S DATABASE CONCEPTS, 2 nd Edition.
1 7 Concepts of Database Management, 4 th Edition, Pratt & Adamski Chapter 7 DBMS Functions.
Database Integrity, Security and Recovery Database integrity Database integrity Database security Database security Database recovery Database recovery.
Transaction Management and Concurrency Control
Transaction Management and Concurrency Control
Transaction Management and Concurrency Control
Data and Database Administration
DAVID M. KROENKE’S DATABASE PROCESSING, 10th Edition © 2006 Pearson Prentice Hall 8-1 COS 346 Day 18.
Chapter 8 Security Transparencies © Pearson Education Limited 1995, 2005.
IS 4420 Database Fundamentals Chapter 12: Data and Database Administration Leon Chen.
Concepts of Database Management Seventh Edition
Factors to be taken into account when designing ICT Security Policies
9 Chapter 9 Transaction Management and Concurrency Control Hachim Haddouti.
Functions of a Database Management System. Functions of a DBMS C.J. Date n Indexing n Views n Security n Integrity n Concurrency n Backup/Recovery n Design.
Database Systems: Design, Implementation, and Management Eighth Edition Chapter 10 Transaction Management and Concurrency Control.
 Mechanism for restoring a database quickly and accurately after loss or damage  RESPONSIBILITY OF ?????  Recovery facilities: Backup Facilities Backup.
 Mechanism for restoring a database quickly and accurately after loss or damage  RESPONSIBILITY OF ?????  Recovery facilities: Backup Facilities Backup.
Business Intelligence: Data and Text Management Instructor: Bajuna Salehe Web:
10/5/1999Database Management -- R. Larson Data Administration and Database Administration University of California, Berkeley School of Information Management.
1 © Prentice Hall, 2002 Chapter 12: Data and Database Administration Modern Database Management 6 th Edition Jeffrey A. Hoffer, Mary B. Prescott, Fred.
© Pearson Education Limited, Chapter 5 Database Administration and Security Transparencies.
Data and Database Administration
© 2013 Pearson Education, Inc. Publishing as Prentice Hall 1 CHAPTER 11: DATA AND DATABASE ADMINISTRATION Modern Database Management 11 th Edition Jeffrey.
This presentation prepared for MIS 421 / MBA 575 at Western Washington University. Material in this presentation drawn from Richard T. Watson, Data Management:
DBSQL 7-1 Copyright © Genetic Computer School 2009 Chapter 7 Transaction Management, Database Security and Recovery.
1 Topics in Database Administration u What is database administration? u What are the tasks involved in establishing, creating, implementing and maintaining.
Multi-user Database Processing Architectures Architectures Transactions Transactions Security Security Administration Administration.
Concepts of Database Management Sixth Edition
The University of Akron Dept of Business Technology Computer Information Systems DBMS Functions 2440: 180 Database Concepts Instructor: Enoch E. Damson.
Concepts of Database Management, Fifth Edition
Security and Transaction Nhi Tran CS 157B - Dr. Lee Fall, 2003.
BIS Database Systems School of Management, Business Information Systems, Assumption University A.Thanop Somprasong Chapter # 10 Transaction Management.
Topics in Database Administration What is database administration? What is data administration? What are the tasks involved in establishing, creating,
Data and Database Administration Chapter 12 (Contd.)
Lecture 12 Recoverability and failure. 2 Optimistic Techniques Based on assumption that conflict is rare and more efficient to let transactions proceed.
D ATABASE A DMINISTRATION L ECTURE N O 3 Muhammad Abrar.
© 2002 by Prentice Hall 1 Database Administration David M. Kroenke Database Concepts 1e Chapter 6 6.
IT Auditing & Assurance, 2e, Hall & Singleton Chapter 3: Data Management Systems.
Data & Database Administration
1 Chapter 12: Data and Database Administration Modern Database Management Jeffrey A. Hoffer, Mary B. Prescott, Fred R. McFadden.
TM 13-1 Copyright © 1999 Addison Wesley Longman, Inc. Data and Database Administration.
Transaction Management Transparencies. ©Pearson Education 2009 Chapter 14 - Objectives Function and importance of transactions. Properties of transactions.
Topics in Database Administration What is database administration? What is data administration? What are the tasks involved in establishing, creating,
Data and Database Administration CS263 Lecture 15.
1 Data and Database Administration Data and Database Administration By Lec. Adeel Shahzad FromBook-B.
Chapter 5 Managing Multi-user Databases 1. Multi-User Issues Database Administration Concurrency Control Database Security Database Recovery Page 307.
Chapter 13 Managing Transactions and Concurrency Database Principles: Fundamentals of Design, Implementation, and Management Tenth Edition.
Database Security Threats. Database An essential corporate resource Data is a valuable resource Must be strictly controlled, managed and secured May have.
Copyright © 2016 Pearson Education, Inc. CHAPTER 12: DATA AND DATABASE ADMINISTRATION Modern Database Management 12 th Edition Jeff Hoffer, Ramesh Venkataraman,
TM 13-1 Copyright © 1999 Addison Wesley Longman, Inc. Data and Database Administration.
Chapter 12: Data and Database Administration
Data and database administration
Transaction Management and Concurrency Control
Functions of a Database Management System
Managing Multi-user Databases
Chapter 3: Data Management Systems
LM 8 Data Administration & Database Administration
Transaction Management
Chapter 10 Transaction Management and Concurrency Control
Database Security &Threats
Introduction of Week 13 Return assignment 11-1 and 3-1-5
Presentation transcript:

MBA 664 Database Management Dave Salisbury ( ) (web site)

SDLC and the database development process SDLCDatabase Deliverable Project ID Project init Analysis Logical design Physical design Implementation Maintenance Enterprise model Conceptual Model Logical model Data structures and storage plan Management Working system

Proper delivery of information not only depends on the capabilities of the computer hardware and software but also on the organization’s ability to manage data as an important resource Data as a Resource

How Does IS Manage Data? Data Administrators: A high-level function that is responsible for the overall management of data resources in an organization, including maintaining corporate-wide definitions and standards. Database Administrators: A technical function that is responsible for physical database design and for dealing with technical issues such as security enforcement, database performance, and backup and recovery. Data Stewardship: Manages a specific logical data resource for all business functions. Distribute data admin. to those most knowledgeable about specific data

Data Administration Functions Data policies, procedures, standards Planning Data conflict (ownership) resolution Internal marketing of DA concepts Managing the data repository

Database Administration Functions Selection of hardware and software Managing data security, privacy, and integrity Data backup and recovery Figure 12.1 offers a list of DA and DBA functions

Threats to Data Security Accidental losses attributable to: –Human error. –Software failure. –Hardware failure. Theft and fraud. Improper data access: –Loss of privacy (personal data). –Loss of confidentiality (corporate data). Loss of data integrity. Loss of availability (through, e.g. sabotage).

Data security threat sources

Database Security Features Protection of the database against accidental or intentional loss, destruction or misuse –Views –Authorization rules –User-defined procedures –Encryption procedures –Authentication schemes

Database Security Features Views –Restrict user access to data –Various ways to get around so not sufficient measure Authorization Rules –Controls embedded in DBMS that restrict user access to data and user actions that can be enacted on data Who can update? Insert? Read?

Authorization matrix

Database Security Features User-Defined Procedures –Allows system designers to add other security features Passwords Valid procedure name Encryption –Coding of data so that it cannot be read by humans Financial and military data WWW issues Government ability to decode all encryption schemes

Database Security Features Authentication Schemes –How to positively identify that person trying to gain access to a computer resource is “that” person Biometric devices--measure fingerprints, voice prints, retina prints Smart card would have biometric data embedded

Database Failures Aborted Transactions –A transaction is not completed Incorrect Data –data entry error, calculation error, coding error System Failure –Component failure, power failure Database Destruction –drive failure, disaster recovery

Database Recovery and Basic Recovery Facilities Backup facilities Periodic backup copies of entire DB Journalizing facilities Maintain an audit trail of transactions and DB changes Checkpoint facilities DBMS suspends all processing and synchronizes files and journals Recovery manager Allows the DBMS to restore the DB to correct condition and restart

Recovery and Restart Procedures Restore/Rerun –Reprocess the day’s transactions up to the point of failure against a backup copy of the database –Simple –Time to reprocess may be prohibitive –Sequencing of transactions may be different than when originally run withdrawal posted prior to deposit

Recovery and Restart Procedures Transaction Integrity –Transaction changes are not made to the DB until the entire transaction has been completed and the changes are committed –If transaction fails at any point, the transaction is aborted

Recovery and Restart Procedures Backward Recovery (Rollback) –Back out of unwanted changes to the database –Used to reverse the changes that have been made to transactions that have been aborted Forward Recovery (Rollforward) –Use an earlier copy of the DB and apply after images of good transactions –More accurate and faster than restore/rerun

Basic recovery techniques (a) Rollback

(b) Rollforward

Concurrency Control Concerns with preventing loss of data integrity due to interference between users in a multi-user environment –Pessimistic approach: interference will always occur so we LOCK records –Optimistic approach: interference will rarely occur so we VERSION records Multiple concurrent updates to a database can lead to lost updates and therefore to errors

Lost Update Example Time John Read account Balance (balance = $1,000). Withdraw $200 (balance = $800. Write account balance (balance = $800) Marsha Read account balance (balance = $1,000). Withdraw $300 (balance = $700). Write account balance (balance = $700) ERROR

Locking Deny access of data to other users while an update is underway Locking level (granularity) –Database - during backups –Table - during batch updates –Block or page - generally not used –Record - Often used –Field - Useful when only one field is likely to change

Types of Locks Shared –Allows others to read, but not write –Prevents others from putting Exclusive lock on the record Exclusive –Denies other access to the record (even read) –Necessary when updating the record

Deadlock (aka: Deadly Embrace) Two or more transactions have placed locks on record(s) that the others need. Each waits for the other(s) to release Requires DBMS intervention –Prevention, often not practical –Resolution, common solution Detects deadlock and backs one or more transactions out, lets one finish, then restarts next transaction.

Versioning Each transaction is restricted to a view of the database as of the transaction start time. When transaction modifies a record, the DBMS creates a new version of record instead of overwriting old record Changes to 2 identical views simultaneously –First change (according to time stamp) is enacted –Second change is informed of conflict and transaction must be performed again

Versioning John Read account Balance (balance = $1,000). Withdraw $200 (balance = $800. Commit Marsha Read account balance (balance = $1,000). Attempt to withdraw $300 (Denied - balance update conflict). Rollback Restart transaction

Managing Data Quality Security policy and disaster recovery Personnel controls Physical access controls Maintenance controls (hardware & software) Data protection and privacy