IBM Software Group Washington Area Informix User Group Forum 2004 The DB2 DBA Checklist Dwaine R Snow, DB2 & Informix.

Slides:



Advertisements
Similar presentations
IBM GLOBAL SERVICES IBM DB2 Information Management Technical Conference Sept , 2004 Las Vegas, NV © IBM Corporation 2004 D17 Dwaine R Snow DB2 UDB.
Advertisements

Advanced Oracle DB tuning Performance can be defined in very different ways (OLTP versus DSS) Specific goals and targets must be set => clear recognition.
Chapter 9. Performance Management Enterprise wide endeavor Research and ascertain all performance problems – not just DBMS Five factors influence DB performance.
Introduction to Oracle
ESafe Reporter V3.0 eSafe Learning and Certification Program February 2007.
2 Copyright © 2005, Oracle. All rights reserved. Installing the Oracle Database Software.
Week 6: Chapter 6 Agenda Automation of SQL Server tasks using: SQL Server Agent Scheduling Scripting Technologies.
Overview of Database Administrator (DBA) Tools
Oracle9i Database Administrator: Implementation and Administration 1 Chapter 2 Overview of Database Administrator (DBA) Tools.
© 2012 IBM Corporation What’s new in OpenAdmin Tool for Informix? Erika Von Bargen May 2012.
12 Copyright © 2005, Oracle. All rights reserved. Proactive Maintenance.
Chapter 9 Auditing Database Activities
Chapter 9 Chapter 9: Managing Groups, Folders, Files, and Object Security.
70-290: MCSE Guide to Managing a Microsoft Windows Server 2003 Environment Chapter 11: Monitoring Server Performance.
Database Administration ISQA 436 Fall 2006 Mark Freeman
Harvard University Oracle Database Administration Session 2 System Level.
Measuring Performance Chapter 12 CSE807. Performance Measurement To assist in guaranteeing Service Level Agreements For capacity planning For troubleshooting.
MCITP Guide to Microsoft Windows Server 2008 Server Administration (Exam #70-646) Chapter 14 Server and Network Monitoring.
Maintaining and Updating Windows Server 2008
Loupe /loop/ noun a magnifying glass used by jewelers to reveal flaws in gems. a logging and error management tool used by.NET teams to reveal flaws in.
Backup and Recovery Part 1.
Barracuda Networks Confidential1 Barracuda Backup Service Integrated Local & Offsite Data Backup.
Chapter 9 Overview  Reasons to monitor SQL Server  Performance Monitoring and Tuning  Tools for Monitoring SQL Server  Common Monitoring and Tuning.
Module 8: Monitoring SQL Server for Performance. Overview Why to Monitor SQL Server Performance Monitoring and Tuning Tools for Monitoring SQL Server.
Hands-On Microsoft Windows Server 2008 Chapter 11 Server and Network Monitoring.
Backup & Recovery 1.
Module 15: Monitoring. Overview Formulate requirements and identify resources to monitor in a database environment Types of monitoring that can be carried.
Windows Server MIS 424 Professor Sandvig. Overview Role of servers Performance Requirements Server Hardware Software Windows Server IIS.
Linux Operations and Administration
15 Copyright © 2004, Oracle. All rights reserved. Proactive Maintenance.
Chapter Oracle Server An Oracle Server consists of an Oracle database (stored data, control and log files.) The Server will support SQL to define.
11 SYSTEM PERFORMANCE IN WINDOWS XP Chapter 12. Chapter 12: System Performance in Windows XP2 SYSTEM PERFORMANCE IN WINDOWS XP  Optimize Microsoft Windows.
Maintaining File Services. Shadow Copies of Shared Folders Automatically retains copies of files on a server from specific points in time Prevents administrators.
Copyrighted material John Tullis 10/6/2015 page 1 Performance: WebSphere Commerce John Tullis DePaul Instructor
70-290: MCSE Guide to Managing a Microsoft Windows Server 2003 Environment, Enhanced Chapter 11: Monitoring Server Performance.
Oracle9i Performance Tuning Chapter 1 Performance Tuning Overview.
TELE 301 Lecture 10: Scheduled … 1 Overview Last Lecture –Post installation This Lecture –Scheduled tasks and log management Next Lecture –DNS –Readings:
The protection of the DB against intentional or unintentional threats using computer-based or non- computer-based controls. Database Security – Part 2.
Oracle Tuning Considerations. Agenda Why Tune ? Why Tune ? Ways to Improve Performance Ways to Improve Performance Hardware Hardware Software Software.
Oracle Tuning Ashok Kapur Hawkeye Technology, Inc.
Win202 Database Administration. Introduction Welcome to OpenEdge. Type 2 Storage Areas. One of the big selling points for the OpenEdge platform and Win202.
Guide to Linux Installation and Administration, 2e1 Chapter 10 Managing System Resources.
16 Copyright © 2004, Oracle. All rights reserved. Undo Management.
Overview Managing a DHCP Database Monitoring DHCP
Module 14 Monitoring and Optimizing SharePoint Performance.
70-290: MCSE Guide to Managing a Microsoft Windows Server 2003 Environment, Enhanced Chapter 11: Monitoring Server Performance.
1 Periodic Processes and the cron Daemon The cron daemon is where all timed events are initiated. The cron system is serviced by the cron daemon. What.
Database Security and Auditing: Protecting Data Integrity and Accessibility Chapter 9 Auditing Database Activities.
7 Copyright © 2005, Oracle. All rights reserved. Managing Undo Data.
1 Oracle Enterprise Manager Slides from Dominic Gélinas CIS
ESRI User Conference 2004 ArcSDE. Some Nuggets Setup Performance Distribution Geodatabase History.
7 Strategies for Extracting, Transforming, and Loading.
Maintenance Practices. Goal  Automate the necessary DBA chores to put organizations on the path of having healthier, consistent and more trustworthy.
2: Operating Systems Networking for Home & Small Business.
Maintaining and Updating Windows Server 2008 Lesson 8.
SQL Advanced Monitoring Using DMV, Extended Events and Service Broker Javier Villegas – DBA | MCP | MCTS.
Maintenance & Monitoring Exchange Environment Tzahi Kolber IT Supervisor - Polycom Israel.
You Inherited a Database Now What? What you should immediately check and start monitoring for. Tim Radney, Senior DBA for a top 40 US Bank President of.
9 Copyright © 2004, Oracle. All rights reserved. Getting Started with Oracle Migration Workbench.
Oracle Database Architectural Components
SQL Database Management
You Inherited a Database Now What?
Introduction to Operating Systems
SQL Server Monitoring Overview
Introduction of Week 3 Assignment Discussion
Troubleshooting Techniques(*)
You Inherited a Database Now What?
Performing Database Recovery
Jean Joseph DBA\DEVELOPER
Presentation transcript:

IBM Software Group Washington Area Informix User Group Forum 2004 The DB2 DBA Checklist Dwaine R Snow, DB2 & Informix Product Manager

IBM Software Group | DB2 Information Management Software Agenda Why Monitor? Monitoring tools available How to Monitor Daily Activities Weekly Activities Monthly Activities Summary

IBM Software Group | DB2 Information Management Software Why Monitor? Ensure no problems exist or are imminent –Detect issues before they cause problems –Watch for trends and handle them accordingly –Detect changes in Database Apps Etc. Maintain performance

IBM Software Group | DB2 Information Management Software Monitoring Tools Health Monitor / Health Center Snapshots –Table Functions –Snapshot Monitors Event Monitors Memory Visualizer Administration Notification Log and DB2 Diagnostic Log OS Tools –vmstat, iostat, ps, top, sar, etc.

IBM Software Group | DB2 Information Management Software Monitoring Tools Typically need to combine DB2 and OS tools to get the complete picture –DB2 tools usually do not give the complete picture –Make sure the DB2 and OS info is captured at the same time Cannot correlate information captured at different times

IBM Software Group | DB2 Information Management Software How to Capture Snapshots When monitoring the “system” –Take the "snapshots" during: average workload peak workload Take the "snapshots" over a long enough period of time –not just over a one to two minute period this does not give a realistic view I would suggest taking the "snapshots" at intervals of 2 minutes (120 seconds) for at least 30 intervals. –i.e. vmstat > vmstat.out

IBM Software Group | DB2 Information Management Software Daily Activities Ensure the instance is running Ensure all databases are “connectable” and consistent Examine alert log / error logs Verify the backup(s) were successful Verify logs are being archived Verify available resources Look for objects needing REORG / RUNSTATS Study DB2

IBM Software Group | DB2 Information Management Software Ensure the Instance is running Can be done in various ways –db2start will indicate if the instance is already running –ps –ef | grep db2sysc | grep will work on UNIX / Linux –Verify the DB2 service is running on Windows

IBM Software Group | DB2 Information Management Software Ensure databases are “connectable” Can be done if various ways –Connect to each database –List applications –List active databases For databases with no connections/activations –Get database configuration Verify the database is consistent Typically good practice to ACTIVATE all databases –Keeps the buffer pool primed

IBM Software Group | DB2 Information Management Software Examine Logs Ensure there are no new alerts –On UNIX/Linux check the Administration Notification Log for new messages –On Windows check the Windows Event Log Check Diagnostic Log for new messages Check Application logs, if they exist Handle any error conditions immediately.

IBM Software Group | DB2 Information Management Software Verify database backups were successful list history backup all for –Repeat for all databases Make sure backup image is not deleted –Is it on tape? Make sure backup image is copied offsite Nothing worse than crashing and having no “good” backup image

IBM Software Group | DB2 Information Management Software Verify logs are being archived Examine the userexit log –Make sure no errors have been encountered –Make sure logs were archived recently Examine log path to ensure logs are being archived and cleaned up The BLK_LOG_DSK_FUL database config parameter will ensure DB2 will not come down if the log path becomes full

IBM Software Group | DB2 Information Management Software Verify Available Resources Verify free space in table spaces –get snapshot for tablespaces on –list tablespaces show detail Should be no table spaces > 90% full Check for trends in table space usage –Keep table space info –Examine info from previous day(s) –Look for exceptional growth

IBM Software Group | DB2 Information Management Software Verify Available Resources Check for contention for CPU, memory, disk or network resources –vmstat Sufficient free memory Run queue small CPU Usage < 80% –iostat No disk with tm_acct > 40% I/O evenly distributed No iowait –netstat No errors

IBM Software Group | DB2 Information Management Software Look for Objects needing REORG/RUNSTATS Reorgchk –Examine for Overflows Non clustered indexes Ensure current statistics exist on ALL objects –Select stats_time from syscat.tables –Select stats_time from syscat.indexes Any new object(s) will need statistics

IBM Software Group | DB2 Information Management Software Study DB2 Nothing is more valuable in the long run than that the DBA be as widely experienced, and as widely read, as possible. Readings should include DBA manuals, trade journals/magazines, news groups, mailing lists, web sites

IBM Software Group | DB2 Information Management Software Weekly Activities Look for new or changed objects, applications Look for objects that break rules Look for security policy violations Archive alert / error logs Check for updates for key DB software

IBM Software Group | DB2 Information Management Software Look for new objects db2look – e list tables select tabname from syscat.tables select indname from syscat.indexes get snapshot for tablespaces list tablespaces Verify against output from previous week

IBM Software Group | DB2 Information Management Software Look for new/changed applications list applications –Verify against output from previous week –Should see no new application names get snapshot for dynamic sql –Verify against output from previous week –Should see no new stmts unless there are new applications For any new applications and/or statements –Ensure proper indexes, current stats

IBM Software Group | DB2 Information Management Software Look for objects that break rules For each object-creation policy, i.e. –naming convention –storage parameters –etc. Have an automated check to verify that the policy is being followed. For example: –Tables should have indexes –Schemas should be identical between environments Especially QA / Test and production.

IBM Software Group | DB2 Information Management Software Look for Security Policy Violations PUBLIC should NOT have connect privilege to any database Ensure SYSADM group only assigned to 1-2 people Users should only have required privileges Ensure Backup / Staging / Database directories have appropriate permissions

IBM Software Group | DB2 Information Management Software Archive Alert / Error logs ZIP / tar & compress –Alert log –Administration notification log –Diagnostic log –Dump / Trap files Name the archive file with the date Do this on server and client

IBM Software Group | DB2 Information Management Software Check for Software Updates Visit homepage of key vendors and look for relevant updates –DB2 Fixpacks –OS Hot fixes –Vendor App fixes Important to keep current

IBM Software Group | DB2 Information Management Software Monthly Activities Look for indicators of exceptional growth Project future growth Project future performance based on above Look for OS issues Review configurations for tuning opportunities

IBM Software Group | DB2 Information Management Software Look for Growth Indicators get snapshot for tablespaces on list tablespaces show detail –Keep results –Compare with previous results –Look for table spaces with exceptional growth Do the same for NPAGES for large tables

IBM Software Group | DB2 Information Management Software Project Future Growth Particularly important for DSS / Warehouse Anticipate how much data will grow Ensure there is enough space in existing –Table spaces –File systems –Ensure staging space is adequate –Ensure backup location has sufficient space Anticipate need for more disk / memory / CPUs to maintain performance

IBM Software Group | DB2 Information Management Software Project Performance Based on projected growth –Will there be enough disk space –Will there be enough I/O bandwidth –Will there be enough memory –Will there be enough CPUs Will new indexes be needed –Or changes to existing indexes –For OLTP, do not simply add indexes

IBM Software Group | DB2 Information Management Software Look for OS Issues Use OS tools to check for –Paging –Memory usage –I/O contention –Run Queue –Network usage –File system usage Ensure no indicators of “poor health”

IBM Software Group | DB2 Information Management Software Review Configurations Examine –DBM Configuration –DB Configurations –DB2 Registry Settings Look for opportunities for improvement Use Memory Visualizer to examine DB2’s memory usage

IBM Software Group | DB2 Information Management Software Summary A DBAs job is never done DB2 is the BEST performing database in the world But does require some baby-sitting The Health Center can automate some of these tasks –But still requires DBA intervention –For now…