Chapter 5 Managing Multi-user Databases 1. Multi-User Issues Database Administration Concurrency Control Database Security Database Recovery Page 307.

Slides:



Advertisements
Similar presentations
Indra Budi Transaction Indra Budi
Advertisements

Chapter 12 Managing Multi-user Databases David M. Kroenke Database Processing © 2000 Prentice Hall.
Database Administration Chapter Six DAVID M. KROENKE and DAVID J. AUER DATABASE CONCEPTS, 4 th Edition.
Database Administration Chapter Six DAVID M. KROENKE’S DATABASE CONCEPTS, 2 nd Edition.
Prentice Hall © COS 346 Day Agenda Questions? Assignment 8 Due Assignment 9 posted –Due April 2:05 PM Quiz 2 Today –SQL Chaps 2-19.
Session - 15 RECOVERY CONTROL - 1 Matakuliah: M0184 / Pengolahan Data Distribusi Tahun: 2005 Versi:
Transaction Management and Concurrency Control
Transaction Management and Concurrency Control
DAVID M. KROENKE’S DATABASE PROCESSING, 10th Edition © 2006 Pearson Prentice Hall 4-1 David M. Kroenke Database Processing Chapter 9 Managing Multi- User.
Database Systems: Design, Implementation, and Management Eighth Edition Chapter 10 Transaction Management and Concurrency Control.
DAVID M. KROENKE’S DATABASE PROCESSING, 10th Edition © 2006 Pearson Prentice Hall 9-1 COS 346 Day 19.
© 2002 by Prentice Hall 1 SI 654 Database Application Design Winter 2004 Dragomir R. Radev.
© 2002 by Prentice Hall 1 David M. Kroenke Database Processing Eighth Edition Chapter 11 Managing Multi-User Databases.
COS 346 DAY 17.
DAVID M. KROENKE’S DATABASE PROCESSING, 10th Edition © 2006 Pearson Prentice Hall 8-1 COS 346 Day 18.
Database Administration Part 2 Chapter Six CSCI260 Database Applications.
DAVID M. KROENKE’S DATABASE PROCESSING, 10th Edition © 2006 Pearson Prentice Hall 9-1 COS 346 Day 19.
Database Administration
Database Administration Chapter Six DAVID M. KROENKE and DAVID J. AUER DATABASE CONCEPTS, 6 th Edition.
Concepts of Database Management Seventh Edition
Database Administration Part 1 Chapter Six CSCI260 Database Applications.
Database Systems: Design, Implementation, and Management Eighth Edition Chapter 10 Transaction Management and Concurrency Control.
Transaction Management and Concurrency Control
1 © Prentice Hall, 2002 Chapter 12: Data and Database Administration Modern Database Management 6 th Edition Jeffrey A. Hoffer, Mary B. Prescott, Fred.
© 2013 Pearson Education, Inc. Publishing as Prentice Hall 1 CHAPTER 11: DATA AND DATABASE ADMINISTRATION Modern Database Management 11 th Edition Jeffrey.
Managing Multi-User Databases AIMS 3710 R. Nakatsu.
Chapter 15 Database Administration and Security
Database Administration
Concepts of Database Management Sixth Edition
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.
DATABASE UTILITIES. D ATABASE S YSTEM U TILITIES In addition to possessing the software modules most DBMSs have database utilities that help the DBA in.
DAVID M. KROENKE’S DATABASE PROCESSING, 10th Edition © 2006 Pearson Prentice Hall 9-1 Managing Multiuser Databases.
BIS Database Systems School of Management, Business Information Systems, Assumption University A.Thanop Somprasong Chapter # 10 Transaction Management.
The protection of the DB against intentional or unintentional threats using computer-based or non- computer-based controls. Database Security – Part 2.
Chapter 15 Relational Implementation with DB2 David M. Kroenke Database Processing © 2000 Prentice Hall.
David M. Kroenke and David J. Auer Database Processing Fundamentals, Design, and Implementation Chapter Nine: Managing Multiuser Databases 9-1 KROENKE.
1 IT420: Database Management and Organization Session Control Managing Multi-user Databases 24 March 2006 Adina Crăiniceanu
Prentice Hall © COS 346 Day Agenda Questions? Assignment 8 not Corrected yet Assignment 9 posted –Due April 2:05 PM Quiz 2 Corrected.
Database Processing: Fundamentals, Design, and Implementation, 9/e by David M. KroenkeChapter 9/1 Copyright © 2004 Please……. No Food Or Drink in the class.
© 2002 by Prentice Hall 1 Database Administration David M. Kroenke Database Concepts 1e Chapter 6 6.
Fundamentals, Design, and Implementation, 9/e Chapter 9 Managing Multi-User Databases.
1 IT420: Database Management and Organization Managing Multi-user Databases 29 March 2006 Adina Crăiniceanu
MBA 664 Database Management Dave Salisbury ( )
© 2006 ITT Educational Services Inc. Course Name: IT390 Business Database Administration Unit 8 Slide 1 IT 390 Business Database Administration Unit 8:
TM 13-1 Copyright © 1999 Addison Wesley Longman, Inc. Data and Database Administration.
KROENKE and AUER - DATABASE CONCEPTS (3 rd Edition) © 2008 Pearson Prentice Hall 6-1 Chapter Objectives Understand the need for and importance of database.
David M. Kroenke and David J. Auer Database Processing: F undamentals, Design, and Implementation Chapter Nine: Managing Multiuser Databases 9-1 KROENKE.
Managing Multi-User Databases. Mutli-User Issues n Concurrency Control n Database Reliability n Database Security n Database Administration.
Topics in Database Administration What is database administration? What is data administration? What are the tasks involved in establishing, creating,
Fundamentals, Design, and Implementation, 9/e COS 346 DAY 17.
1 Data and Database Administration Data and Database Administration By Lec. Adeel Shahzad FromBook-B.
David M. Kroenke and David J. Auer Database Processing Fundamentals, Design, and Implementation Chapter Nine: Managing Multiuser Databases.
Chapter 13 Managing Transactions and Concurrency Database Principles: Fundamentals of Design, Implementation, and Management Tenth Edition.
SYSTEMS IMPLEMENTATION TECHNIQUES TRANSACTION PROCESSING DATABASE RECOVERY DATABASE SECURITY CONCURRENCY CONTROL.
Copyright © 2016 Pearson Education, Inc. CHAPTER 12: DATA AND DATABASE ADMINISTRATION Modern Database Management 12 th Edition Jeff Hoffer, Ramesh Venkataraman,
Chapter 8 Database Redesign
Managing Multi-User Databases
David M. Kroenke and David J
Transaction Management and Concurrency Control
Database Administration
Managing Multi-user Databases
Chapter 9 Managing Multi-User Databases
Multi-User Databases Chapter 9.
Database Processing: David M. Kroenke’s Chapter Nine: Part One
Database Processing: David M. Kroenke’s Chapter Nine: Part Two
Chapter 10 Transaction Management and Concurrency Control
Database Administration
Database Processing: David M. Kroenke’s Chapter Nine: Part Two
Presentation transcript:

Chapter 5 Managing Multi-user Databases 1

Multi-User Issues Database Administration Concurrency Control Database Security Database Recovery Page 307 2

Common Multi-User DBMS Windows 2000  Access 2000  SQL Server  ORACLE UNIX  ORACLE  Sybase  Informix Page 307 3

Database Administration All large and small databases need database administration Data administration refers to a function concerning all of an organization’s data assets Database administration (DBA) refers to a person or office specific to a single database and its applications 4

DBA Tasks Managing database structure Controlling concurrent processing Managing processing rights and responsibilities Developing database security Providing for database recovery Managing the DBMS Maintaining the data repository 5

Managing Database Structure DBA’s tasks:  Participate in database and application development Assist in requirements stage and data model creation Play an active role in database design and creation  Facilitate changes to database structure Seek community-wide solutions Assess impact on all users Provide configuration control forum Be prepared for problems after changes are made Maintain documentation 6

Maintaining the Data Repository DBA is responsible for maintaining the data repository Data repositories are collections of metadata about users, databases, and its applications The repository may be  Virtual as it is composed of metadata from many different sources: DBMS, code libraries, Web page generation and editing tools, etc.  An integrated product from a CASE tool vendor or from other companies The best repositories are active and they are part of the system development process 7

Managing the DBMS DBA’s Responsibilities  Generate database application performance reports  Investigate user performance complaints  Assess need for changes in database structure or application design  Modify database structure  Evaluate and implement new DBMS features  Tune the DBMS 8

Concurrency Control Concurrency control ensures that one user’s work does not inappropriately influence another user’s work  No single concurrency control technique is ideal for all circumstances  Trade-offs need to be made between level of protection and throughput 9

Concurrency Control “making sure that one user’s work does not inappropriately influence another’s” The need for atomic transactions “logical work performed as a unit” Page

Atomic Transactions A transaction, or logical unit of work (LUW), is a series of actions taken against the database that occurs as an atomic unit  Either all actions in a transaction occur or none of them do 11

Example: Atomic Transaction 12

Example: Atomic Transaction 13

Concurrent Transaction Concurrent transactions refer to two or more transactions that appear to users as they are being processed against a database at the same time In reality, CPU can execute only one instruction at a time  Transactions are interleaved meaning that the operating system quickly switches CPU services among tasks so that some portion of each of them is carried out in a given interval Concurrency problems: lost update and inconsistent reads 14

Example: Concurrent Transactions 15

Example: Lost Update Problem 16

Resource Locking Resource locking prevents multiple applications from obtaining copies of the same record when the record is about to be changed 17

Database Security Database security refer to the use of DBMS features and other related measures to comply with security requirements of the organization. ensures that only authorized users can perform authorized activities at authorized times 18

DBA should measures the security by THREE level”  Protect DBMS from service degradation  Protect from loss, corruption or misshandling  Secure the DBMS from the point of installation through operation and maintenance. 19

The DBMS should be protected against service degradation. Therefore recommend SIX(6) security safeguards Change default system password Change the default installation path Apply the latest patches Secure installation folders with proper access rights Make sure only required services are running Set up auditing log Set up session log\require session encryption 20

DBMS Security Model 21

Model of ORACLE Security Page 325 Figure 12-14a © 2000 Prentice Hall 22

Database Recovery In the event of system failure, that database must be restored to a usable state as soon as possible Two recovery techniques:  Recovery via reprocessing  Recovery via rollback/rollforward 23

Recovery Terminology Log records of the data changes in chronological order Before-images/After-images copy of every record before / after it was changed Checkpoint a point of synchronization between the database and the transaction log Page

Recovery via Reprocessing Recovery via reprocessing: the database goes back to a known point (database save) and reprocesses the workload from there (re-execute all database update programs) Unfeasible strategy because  The recovered system may never catch up if the computer is heavily scheduled  Asynchronous events, although concurrent transactions, may cause different results 25

Rollback/Rollforward Recovery via rollback/rollforward:  Periodically save the database and keep a database change log since the save Database log contains records of the data changes in chronological order When there is a failure, either rollback or rollforward is applied  Rollback: undo the erroneous changes made to the database and reprocess valid transactions  Rollforward: restored database using saved data and valid transactions since the last save 26

Example: Rollback Before-images: a copy of every database record (or page) before it was changed 27

Example: Rollforward After-images: a copy of every database record (or page) after it was changed 28