Chapter 15 Database Administration

Slides:



Advertisements
Similar presentations
Database Administration
Advertisements

Prentice Hall, Database Systems Week 1 Introduction By Zekrullah Popal.
Chapter 1: The Database Environment
Database Systems Chapter 1
10/25/2001Database Management -- R. Larson Data Administration and Database Administration University of California, Berkeley School of Information Management.
Database Systems: Design, Implementation, and Management Eighth Edition Chapter 15 Database Administration and Security.
Chapter 6 Database Design
Copyright 2002 Prentice-Hall, Inc. Chapter 1 The Systems Development Environment 1.1 Modern Systems Analysis and Design Third Edition Jeffrey A. Hoffer.
Chapter 9 Database Design
Database Administration
Introduction to Databases Transparencies
1 IS 4420 Database Fundamentals Chapter 2: Database Development Process Leon Chen.
15 1 Chapter 15 Database Administration Database Systems: Design, Implementation, and Management, Seventh Edition, Rob and Coronel.
Database Systems: Design, Implementation, and Management Ninth Edition
9 1 Chapter 9 Database Design Database Systems: Design, Implementation, and Management, Seventh Edition, Rob and Coronel.
6 Chapter 6 Database Design Hachim Haddouti. 6 2 Hachim Haddouti and Rob & Coronel, Ch6 In this chapter, you will learn: That successful database design.
Chapter 1 Introduction to Databases
Chapter 1: The Database Environment
Database Administration Chapter 16. Need for Databases  Data is used by different people, in different departments, for different reasons  Interpretation.
10/5/1999Database Management -- R. Larson Data Administration and Database Administration University of California, Berkeley School of Information Management.
Chapter 1 1 © Prentice Hall, 2002 Database Design Dr. Bijoy Bordoloi Introduction to Database Processing.
Chapter 1 1 © Prentice Hall, 2002 Database Design Dr. Bijoy Bordoloi Introduction to Database Processing.
Database Systems: Design, Implementation, and Management Ninth Edition
Chapter 1 Database Systems. Good decisions require good information derived from raw facts Data is managed most efficiently when stored in a database.
Data and Database Administration CISB344 Database 2  At the end of this chapter, you should be able to:  Define terms related to data & database administration.
Database Systems: Design, Implementation, and Management Tenth Edition
The Database Development Process
Chapter 15 Database Administration and Security
Chapter 8 Database Design
DBS201: DBA/DBMS Lecture 13.
Chapter 15 Database Administration and Security
Data Administration & Database Administration
Copyright 2002 Prentice-Hall, Inc. Chapter 1 The Systems Development Environment 1.1 Modern Systems Analysis and Design.
15 1 Chapter 15 Database Administration Database Systems: Design, Implementation, and Management, Seventh Edition, Rob and Coronel.
Concepts of Database Management, Fifth Edition Chapter 8: Database Administration.
AL-MAAREFA COLLEGE FOR SCIENCE AND TECHNOLOGY INFO 232: DATABASE SYSTEMS CHAPTER 1 DATABASE SYSTEMS (Cont’d) Instructor Ms. Arwa Binsaleh.
Copyright 2002 Prentice-Hall, Inc. Chapter 1 The Systems Development Environment 1.1 Modern Systems Analysis and Design Third Edition Jeffrey A. Hoffer.
Database Design Adapted from Database Systems: Design, Implementation, and Management Eighth Edition Rob, Coronel.
Week 4 Lecture Part 3 of 3 Database Design Samuel ConnSamuel Conn, Faculty Suggestions for using the Lecture Slides.
Database Administration
Copyright 2002 Prentice-Hall, Inc. 1.1 Modern Systems Analysis and Design Jeffrey A. Hoffer Joey F. George Joseph S. Valacich Chapter 1 The Systems Development.
Database Systems: Design, Implementation, and Management Ninth Edition Chapter 15 Database Administration and Security.
8 8 Chapter 8 The University Lab: Conceptual Design Verification, Logical Design, and Implementation Database Systems: Design, Implementation, and Management.
Lecture # 3 & 4 Chapter # 2 Database System Concepts and Architecture Muhammad Emran Database Systems 1.
15 1 Chapter 15 Database Administration Database Systems: Design, Implementation, & Management, 6 th Edition, Rob & Coronel Learning Objectives.
Lesson Overview 3.1 Components of the DBMS 3.1 Components of the DBMS 3.2 Components of The Database Application 3.2 Components of The Database Application.
6 6 Chapter 6 Database Design Database Systems: Design, Implementation, and Management 4th Edition Peter Rob & Carlos Coronel.
Database Environment Chapter 2. Data Independence Sometimes the way data are physically organized depends on the requirements of the application. Result:
Database Systems: Design, Implementation, and Management Eighth Edition Chapter 1 Database Systems.
1 Chapter 1 Introduction to Databases Transparencies.
Database Administration
Database Systems. Role and Advantages of the DBMS Improved data sharing Improved data security Better data integration Minimized data inconsistency Improved.
Database Systems: Design, Implementation, and Management Eighth Edition Chapter 15 Database Administration and Security.
Database Systems: Design, Implementation, and Management Eighth Edition Chapter 15 Database Administration and Security.
CASE (Computer-Aided Software Engineering) Tools Software that is used to support software process activities. Provides software process support by:- –
Chapter 12 Database Administration and Security Database Principles: Fundamentals of Design, Implementation, and Management Tenth Edition.
Database Systems: Design, Implementation, and Management Eighth Edition Chapter 15 Database Administration and Security.
Week 7 Lecture Part 2 Introduction to Database Administration Samuel S. ConnSamuel S. Conn, Asst Professor.
Database Systems: Design, Implementation, and Management Eighth Edition Chapter 1 Database Systems.
TEXT BOOK: DATABASE ADMINISTRATION: THE COMPLETE GUIDE TO PRACTICES AND PROCEDURES CRAIG S. MULLINS Database Administration(IS4511) Sana azzam
Database Administration Advanced Database Dr. AlaaEddin Almabhouh.
Database Principles: Fundamentals of Design, Implementation, and Management Chapter 1 The Database Approach.
Database Architecture, Administration and Security.
Chapter 16 Database Administration and Security
Chapter 6 Database Design
Database Management System (DBMS)
Database Administration
The Database Environment
Presentation transcript:

Chapter 15 Database Administration Database Systems: Design, Implementation, and Management 4th Edition Peter Rob & Carlos Coronel

Data as a Corporate Asset Data were seldom viewed as a company asset for two reasons: There were simply too many data to be processed manually Internal and external business operations moved at a much slower pace than they do today, so there was relatively little need for quick reactions triggered by fast-flowing information. The computer liberated both managers and data. Data are now better understood as a resource. An organization is subject to a data-information- decision cycle. (Figure 15.1)

The Data-Information-Decision Cycle Figure 15.1

The Need for and Role of Databases in an Organization Used properly, the DBMS facilitates: Interpretation and presentation of data in useful formats, by transforming raw data into information. Distribution of data and information to the right people at the right time. Data preservation and data usage monitoring for adequate periods of time. Control over data duplication and use, both internally and externally. The database’s predominant role is to support managerial decision making at all levels in the organization.

The Need for and Role of Databases in an Organization DB Support at Different Management Levels Top Management Level Provide the information necessary for strategic decision making, strategic planning, policy formulation, and goals definition. Provide access to external and internal data to identify growth opportunities and to chart the direction of such growth. Provide a framework for defining and enforcing organizational policies. Improve the likelihood of a positive return on investment for the company by searching for new ways to reduce costs and/or by boosting productivity. Provide feedback to monitor whether the company is achieving its goals.

The Need for and Role of Databases in an Organization Middle Management Deliver the data necessary for tactical decisions and planning. Monitor and control the allocation and use of company resources How efficiently are resources allocated and used? What potential or current operational problems exist? Evaluate the performance of the different departments. Provide a framework for enforcing and ensuring the security and privacy of the data in the database.

The Need for and Role of Databases in an Organization Operational Management Represent and support the company operations as closely as possible. Produce query results within specified performance levels. Enhance the company’s short-term operational ability by providing Timely information for customer support Support for application development and computer operations.

Introduction of a Database: Special Considerations The introduction of a DBMS represents a big change and challenge and is likely to have a profound impact throughout the organization. The main issue of the DBMS should be the organization’s needs rather than the DBMS’s technical virtues. Three important aspects: Technological: DBMS hardware and software Managerial: Administrative functions Cultural: Corporate resistance to change

The Evolution of the Database Administration Function Electronic Data Processing (EDP) Department Data process (DP) department Its task was to pool all computer resources to support all departments at the operational level with a minimal duplication of data and effort. The DP department was in charge of coordinating and maintaining all operational applications.

The Evolution of the Database Administration Function Information Systems (IS) Department IS responsibilities were broadened to include: A service function to provide end users with active data management service. A production function to provide end users with specific solutions for their information needs. The database administration function was created to handle increasingly complex data management tasks. The person responsible for the control of the centralized and shared database was the database administrator (DBA).

The IS Department Internal Organization Figure 15.2

The Placement Of The DBA Function Figure 15.3

The Evolution of the Database Administration Function Factors Affecting the Placement of DBA Company management style Size and complexity of the company operations Geographic distribution of the company facilities Changes in DBMS Technologies Affecting Organizational Styles The development of distributed databases The growing use of Internet-ready and object-oriented databases and the growing number of data warehousing applications The increasing sophistication and power of microcomputer-based DBMS.

The Evolution of the Database Administration Function DBA Activities Database planning Database requirements-gathering and conceptual design Database logical design and transaction design Database physical design and implementation Database testing and debugging Database operations and maintenance, including installation, conversion, and migration Database training and support

A DBA Functional Organization Figure 15.4

The Evolution of the Database Administration Function The general coordinator of all DBAs is known as the systems administrator (SYSADM). (Figure 15.5) Some large corporations make a distinction between a DBA and the data administrator (DA). The DA, a.k.a., the information resource manager (IRM), usually reports directly report to top management and is given a higher degree of responsibility and authority than the DBA. The DA is responsible for controlling the overall corporate data resource, both computerized and non- computerized.

Multiple Database Administrators In An Organization Figure 15.5

Contrasting DA And DBA Activities And Characteristics Table 15.1

A Summary Of DBA Activities Figure 15.6

Desired DBA Skills Table 15.2

Human Component The DBA’s Managerial Role Coordinating, monitoring, and allocating DB administration resources: people and data. Defining goals and formulating strategic plans for the DB administration function. Table 15.3 DBA Activities And Services

Human Component End User Support Policies, Procedures, and Standards User requirements-gathering Conflict and problem resolution Finding solutions to information needs Ensuring quality and integrity of application and data Building end user confidence Managing the training and support of DBMS users Policies, Procedures, and Standards Policies are general statements of direction or action that communicate and support the DBA goals. Standards are more detailed and specific than policies and describe the minimum requirement of a given DBA activity. Procedures are written instructions that describe a series of steps to be followed during the performance of a given activity.

Human Component Data Security, Privacy, and Integrity Authorization management defines procedures for the following functions: User access management View definition DBMS utilities access control DBMS usage monitoring Security breaches can yield a database whose integrity is either preserved or corrupted: Preserved: Action is required to avoid the repetition of similar security problems, but data recovery may not be necessary. Corrupted: Action is required to avoid the repetition of similar security problems, and the database must be recovered to a consistent state.

Human Component Data Backup and Recovery Data Distribution and Use The database security officer (DSO) is responsible for the assurance of the database security and integrity. Disaster management includes all planning, organizing, and testing of database contingency plans and recover procedures. Periodic data and applications backups Proper backup identification Convenient and safe backup storage Physical protection Personal access control Insurance coverage for the data in the database Data Distribution and Use

Human Component The DBA’s Technical Role DBMS and utilities evaluation, selection, and installation Design and implementation of databases and applications Testing and evaluation of databases and applications Operation of the DBMS, utilities, and applications Training and supporting users Maintenance of the DBMS, utilities, and applications

Human Component DBMS and Utilities Evaluation, Selection, and Installation DBMS model DBMS storage capacity Application development support Security and integrity Backup and recovery Concurrency control Performance Database administration tools Interoperability and data distribution Portability and standards Hardware Data Dictionary Vendor training and support Available third-party tools Cost

Human Component Design and Implementation of Databases and Applications Data modeling and design services at conceptual, logical, and physical levels Review of the design to ensure that transactions are: Correct: The transactions mirror real-world events. Efficient: The transactions do not overload the DBMS. Compliant with integrity and standards. Database storage and access plans Database operational procedures

Human Component Testing and Evaluation of Databases and Applications Technical aspects of both the applications and the database Evaluation of the written documentation Observance of standards for naming, documenting, and coding Data duplication conflicts with existing data The enforcement of all data validation rules Operation of the DBMS, Utilities, and Applications System Support Performance monitoring and tuning Backup and recovery Security auditing and monitoring

Human Component Training and Supporting Users Training users and application programmers to use the DBMS and its tools Unscheduled, on-demand technical support for end user and programmers External sources (e.g., vendors) for support Maintenance of the DBMS, Utilities, and Applications Management of the physical storage devices Upgrading the DBMS and utility software Migration and conversion services for incompatible data and different DBMS

Database Administration Tools The Data Dictionary Different types of data dictionaries: An integrated data dictionary is included with the DBMS, while a stand-alone data dictionary comes from a third-party vendor. An active data dictionary is automatically updated by the DBMS, while a passive data dictionary requires a batch process to create and update the dictionary.

Database Administration Tools The Data Dictionary The data dictionary typically stores descriptions of all: Data elements defined in all tables of all databases Tables defined in all databases Indexes defined for each database table Defined databases End users and administrators of the database Programs that access the database Access authorizations for all users of all databases Relationships among the data elements

Database Administration Tools Data Dictionary Usage Examples: Example 1 List the names and creation dates of all tables created by the user JONESVI in the current database. SELECT NAME, CTIME FROM SYSTABLES WHERE CREATOR = ‘JONESVI’; Example 2 List the names of the columns for all tables created by JONESVI in the current database. SELECT NAME FROM SYSCOLUMNS WHERE CREATOR = ‘JONESVI’;

Database Administration Tools Example 3 List the names of all tables for which the user JONESVI has DELETE authorization. SELECT NAME FROM SYSTABAUTH WHERE GRANTEE = ‘JONESVI’; AND DELETEAUTH = ‘Y’; Example 4 List the names all users who have some type of authority over the INVENTRY table. SELECT DISTINCT GRANTEE FROM SYSTABAUTH WHERE TTNAME = ‘INVENTRY’;

Database Administration Tools Example 5 List the user and table names for all users who can alter the database structure for any table in the database. SELECT GRANTEE, TTNAME FROM SYSTABAUTH WHERE ALTERAUTH = ‘Y’ ORDER BY GRANTEE, TTNAME;

Database Administration Tools CASE Tools CASE -- Computer-Aided Software Engineering It provides an automated framework for the Systems Development Life Cycle. Front-end CASE tools provide support for the planning, analysis, and design phases. Back-end CASE tools provide support for the coding and implementation phases. It is based on the use of structured methodologies and powerful graphical interfaces.

Database Administration Tools Benefits of CASE tools A reduction in development time and costs The automation of the SDLC Standardization of the systems development methodologies Easier maintenance of application systems developed with CASE tools. Improve communications among the DBA, applications designers, and the end users.

Database Administration Tools Commercial CASE Tools Excelerator from Merant, Inc. provides five components: Graphics designed to produce structured diagrams as data flow diagrams and E-R diagrams. Screen painters and report generators to produce the information system’s input/output formats. An integrated repository for storing and cross- referencing the system design data. An analysis segment to provide a fully automated check of system consistency, syntax, and completeness. A program document generator.

Figure 15.7 An Example of a CASE Tool’s Use: Excelerator

Database Administration Tools Commercial CASE Tools PLATINUM ERwin by PLATINUM Technology It produces fully documented E-R diagrams that can be displayed at different abstraction levels. It is able to produce detailed relational designs. Major relational DBMS vendors, such as ORACLE, provide fully integrated CASE tools for their own DBMS software as well as for RDBMSs supplied by other vendors.

Developing a Data Administration Strategy Information Engineering allows us to translate the strategic goals of the company into the data and applications. IE focuses on the description of the corporate data instead of the processes. The output of the IE process is an Information Systems Architecture (ISA) that serves as the basis for planning, development, and control of future information systems. (Figure 15.8)

Forces Affecting The Development Of The ISA Figure 15.8

Developing a Data Administration Strategy Critical Success Factors for IS Strategy Management commitment Thorough company situation analysis End user involvement Defined standards Training A small pilot project

Database Administration Using Oracle Detailed look at how a DBA might handle the following technical tasks in a specific DBMS - Oracle Workgroup 2000 for Windows NT: Creation and expansion of the database storage structures. Management of database objects such as tables, indexes, triggers, procedures, and so on. Management of the end user database environment, including the type and extent of database access. Customization of database initialization parameters.

Database Administration Using Oracle Oracle Database Administration Tools Security Manager Schema Manager Storage Manager SQL Worksheet Instance Manager Figure 15.9 The Oracle Administrator Toolbar

Database Administration Using Oracle The Default Login Figure 15.10 Oracle Login Information

Database Administration Using Oracle Ensuring an Automatic RDBMS Start Figure 15.11 Verifying That The Oracle Services Are Running

Database Administration Using Oracle Using the Storage Manager to Create Tablespaces and Datafiles A database is logically composed of one or more tablespaces. A tablespace is a logical storage space. Tablespaces are primarily used to logically group related data. The tablespace data are physically stored in one or more datafiles. A datafile physically stores the database’s data.

Database Administration Using Oracle When the DBA creates a database, Oracle automatically creates the tablespaces and datafiles shown in Figure 15.12: The SYSTEM tablespace is used to store the data dictionary data. The USER_DATA tablespace is used to store the table and to index data created by the end users. The TEMPORARY_DATA tablespace is used to store the temporary tables and indexes created during the execution of SQL statements. The ROLLBACK_DATA tablespace is used to store database transaction recovery information.

Database Administration Using Oracle Using the Storage Manager, the DBA can Create additional tablespaces to organize the data in the database. Create additional tablespaces to organize the different subsystems that may exist within the database. Expand the tablespace storage capacity by creating additional datafiles.

The Oracle Storage Manager Figure 15.12

Figure 15.13 Creating a New Tablespace

The Oracle Schema Manager Figure 15.14

Figure 15.15 The Oracle Security Manager

Figure 15.16 The Create User Dialog Box

Creating A New Database With The Oracle Instance Manager Figure 15.18

New Instance Screen Figure 15.19

Advanced Parameters Screen Figure 15.20