27
Introduction to Databases Chapter 9: Database Administration

Introduction to Databases Chapter 9: Database Administration

Embed Size (px)

Citation preview

Page 1: Introduction to Databases Chapter 9: Database Administration

Introduction to Databases

Chapter 9: Database Administration

Page 2: Introduction to Databases Chapter 9: Database Administration

Administration and Life Cycle

• Administrative tasks vary in focus according to database life cycle– Early phases:

• Database design, data requirements

– Maintenance: • Day-to-day activities, server maintenance

– End of life cycle: • Data migration or archiving

Page 3: Introduction to Databases Chapter 9: Database Administration

Administration and Life Cycle

Page 4: Introduction to Databases Chapter 9: Database Administration

Administration Roles• Two main administration roles:

– Data administrator (data analyst)– Database administrator

• Data administrator responsibilities:– Planning and analysis– Setting data policy and standards– Promoting company’s data as competitive

resource and accounting for use of data– Providing liaison support to systems

analysts during application development

Page 5: Introduction to Databases Chapter 9: Database Administration

Administration Roles

• Database administrator responsibilities:– Day-to-day monitoring and management of

active databases– Providing liaison support to program

designers during application development– Carrying out policies and applying standards

set by data administrator

• In practice, responsibilities of both roles often overlap

Page 6: Introduction to Databases Chapter 9: Database Administration

The Need for Administration

• Data is corporate resource:– Effective use of data can bring competitive

advantage– Ineffective use and poor management of data can

bring disadvantage

• Data is shared resource:– Since data typically shared among corporate

functions and users, data should be managed by independent group whose loyalty is to overall company

– Decentralized information systems:• Typically have central shared database requiring

management• Need data to be coordinated between environments

Page 7: Introduction to Databases Chapter 9: Database Administration

The Need for Administration

• Managing data requires expertise:– Many functions involved in data

management are highly specialized and require specific expertise

– Working with databases at operational level requires in-depth knowledge of:

• DBMS in use• Databases themselves• Specific skills and tasks

– Physical database design, database security, and backup and recovery

Page 8: Introduction to Databases Chapter 9: Database Administration

Administration Responsibilities

Page 9: Introduction to Databases Chapter 9: Database Administration

Data Administration Responsibilities

• Managing Data Coordination: – Keeping track of company’s data– Download schedules, update schedules and

responsibilities, data interchange with other companies

• Managing Data Planning:– Identifying data requirements, analyzing available

data, designing ways to meet data needs, strategic (long-term) data planning

• Managing Data Standards: – Setting standards regarding data and its use, such as

naming standards, access standards, standards for data interchange between companies (EDI, XML, etc.)

Page 10: Introduction to Databases Chapter 9: Database Administration

Data Administration Responsibilities

• Handling Liaison Requirements: – Liaison with application designers, database

designers, database administrators, in determining data and data access needs, standards, exchange, storage

• Managing Training: – Training and informing managers and employees

on relevant data administration and usage issues

• Arbitrating Disputes and Access:– Data administrators (and database administrators)

act as custodians of data resources: providing security, backup, performance monitoring, etc.

– Managing concerns of shared data, access, and hardware

Page 11: Introduction to Databases Chapter 9: Database Administration

Data Administration Responsibilities

• Managing Publicity:– Informing potential users of what data exists in

database as potential for competitive advantage

• Ensuring Competitive Advantage:– Understanding and developing ways for business

procedures to be adjusted or modified to improve company’s efficiency

Page 12: Introduction to Databases Chapter 9: Database Administration

Database Administration Responsibilities

• Monitoring Performance:– Using utility tools to gauge performance of

DBMS environment• Performance information may be used to

redistribute database application loads, pinpoint and redesign inefficient applications, etc.

– Monitoring use

• Monitoring Security:– Managing access security (users and

authentication)– Database auditing

Page 13: Introduction to Databases Chapter 9: Database Administration

Database Administration Responsibilities

• Managing Metadata:– Documenting and protecting database

metadata• Backing up metadata• Documenting database and database object

structure

• Managing Software:– Software installations– Backup and recovery– Repairing or upgrading DBMS or

database– Modifying database structure

Page 14: Introduction to Databases Chapter 9: Database Administration

Database Administration Responsibilities

• Managing Physical Database:– Physical database design– Assisting in logical design (in

coordination with data administrators)

• Managing Troubleshooting:– Coordinate database-related

troubleshooting

Page 15: Introduction to Databases Chapter 9: Database Administration

Management Tasks and the Life Cycle

1. Design– Data administrator:

• Data analysis, database design

2. Implementation– Database administrator:

• Create physical database and database objects, deploy database, perform baseline monitoring

– Data administrators: • Manage requirements for data entry, data

migration, redesign

Page 16: Introduction to Databases Chapter 9: Database Administration

Management Tasks and the Life Cycle

3. Production– Database administrator:

• Manage day-to-day use and ongoing maintenance

– Data administrator: • Manage issues of data access, acquisition and

integration of new data, evolving requirements

4. Retirement– Data administrator:

• Manage requirements for archiving and protecting historical data

– Database administrator:• Implement data migration

Page 17: Introduction to Databases Chapter 9: Database Administration

Task Options• Manual vs. automatic

– Factors in choosing to automate tasks• Frequency of task• Regularity of task (e.g., backups)• Time and effort needed to program procedure• Effect of procedure on access, performance or

consistency between multiple locations

• Factors in choosing utilities– Available utilities– Functionality– Reporting options– Interaction and conflict; effect on database

performance– Ease of use

Page 18: Introduction to Databases Chapter 9: Database Administration

Ongoing Management Tasks

• Ongoing management tasks vary depending on how database is used, activity, etc.

• To meet maintenance requirements:– Identify requirements– Determine appropriate schedule

• Tasks that require database to be unavailable:– May need to be run on as-needed basis

• Common periodic tasks include – Backups– Defragmentation of tables and indexes– Checking for data and file inconsistencies

Page 19: Introduction to Databases Chapter 9: Database Administration

SQL Server Maintenance Plans

• Maintenance plans: – Sets of scheduled management tasks

• SQL Server includes:– Predefined task templates for common

tasks– Task for specifying SQL statements to be

executed• Precedence constraints: Connections

between tasks– Allow automatic, logical decisions about

next tasks to execute, depending on success or completion of previous task

Page 20: Introduction to Databases Chapter 9: Database Administration

SQL Server Maintenance Plans

• Maintenance Plan Wizard:– Steps through designing maintenance

plan• Defining tasks• Setting task options

– E.g. identifying specific databases

• Defining execution schedule

Page 21: Introduction to Databases Chapter 9: Database Administration

SQL Server Maintenance Plans

Page 22: Introduction to Databases Chapter 9: Database Administration

Troubleshooting Guidelines

• Primary goal:– Correct business problem (anything that

prevents business operating as it should)

• Initial actions:– Correct immediate symptoms– Avoid downtime

• Subsequent actions:– Identify and permanently fix underlying

cause of problem – Verify correction of problem

Page 23: Introduction to Databases Chapter 9: Database Administration

Summary• Because data is shared, valuable corporate

resource whose management requires significant specialization and expertise, there is tremendous value in corporations having department dedicated to administration of data and database.

• Two main administration roles: Data administrator (data analyst) and database administrator

• Data administrators: Responsible for data coordination, data planning, data standards, liaison requirements, training, arbitration, publicity, and competitive advantage

Page 24: Introduction to Databases Chapter 9: Database Administration

Summary• Database administrators: Responsible for

database performance, security, metadata, managing software and physical database, and troubleshooting

• Administrative tasks and roles of database and data administrators vary in focus according to four main phases of database life cycle

• Factors in deciding how to perform maintenance task include deciding whether task should be performed manually or automatically and selecting appropriate utility to perform task

Page 25: Introduction to Databases Chapter 9: Database Administration

Summary• Common regularly scheduled maintenance

tasks include backups, defragmentation of tables and indexes, and checking for data and file inconsistencies

• SQL Server Management Studio maintenance plans allow creation of defined sets of scheduled management tasks

• In troubleshooting database problems, primary goal is to correct business problem first, with subsequent actions to identify and permanently fix underlying cause of problem.

Page 26: Introduction to Databases Chapter 9: Database Administration

Key Terms• Arbitration• Audit trail• Automated tasks• Business problem• Data administrator• Data analyst• Database administrator• Data consumer• Data flow• Data planning• Electronic data

interchange (EDI)

• Enterprise resource planning (ERP)

• software• Fragmentation• Maintenance plan• Manual task• Precedence constraint• Publicity• Strategic data planning• Systems analyst

Page 27: Introduction to Databases Chapter 9: Database Administration

Copyright NoticeCopyright 2008 John Wiley & Sons, Inc. All rights reserved. Reproduction or translation of this work beyond that permitted in section 117 of the 1976 United States Copyright Act without express permission of the copyright owner is unlawful. Requests for further information should be addressed to the Permissions Department, John Wiley & Sons, Inc. The purchaser may make back-up copies for his/her own use only and not for distribution or resale. The Publisher assumes no responsibility for errors, omissions, or damages caused by the use of these programs or from the use of the information herein.