270 likes | 543 Views
Automating DBA Tasks with OpenAdmin Tool. Erika Von Bargen Session: D09 IBM Tuesday 5/17 10:30am. Agenda. Intro How OAT works Automating Storage Tasks Automating Statistics Automating Fragmentation Automating Workload Distribution
E N D
Automating DBA Tasks with OpenAdmin Tool Erika Von Bargen Session: D09 IBM Tuesday 5/17 10:30am
Agenda • Intro • How OAT works • Automating Storage Tasks • Automating Statistics • Automating Fragmentation • Automating Workload Distribution • Automating Backups • Automating Log File Management Automating DBA Tasks with OpenAdmin Tool
Intro • Why use OAT? • Free • Remote administration • Easy-to-use, graphical interface • Support for all of the newest Informix 11.70 features • Lowers the learning curve for new and existing Informix features • Customizable with plug-ins • What is OAT? • Open source, web-based administration tool for Informix • Monitor and administer one or more Informix server instances • Automated installers available for Windows, Linux, and Mac OS • Independent of Informix installation • Interface available in multiple languages A Graphical Exploration of 11.70 OpenAdmin Tool for Informix 5/16/2011 3
How OAT Works OAT builds off of the database administration capabilities in IDS
How OAT Works OAT accesses the database server using only SQL statements OAT utilizes three key aspects of the IDS server System catalog tables in the sysmaster database to retrieve performance and monitoring data SQL Admin API to make configuration changes to the data server Database Schedulerin thesysadmin databaseto run tasks and gather data through sensors SQL Statement Returned Data
Database Scheduler Self-managing technology to simplify database administration Provides the ability to schedule SQL, stored procedures or a UDR Tasks Execute a specific job at a specific time or interval Why use them? Periodically check and/or analyze collected data to ensure the data server is operating efficiently Perform administration or maintenance tasks Sensors Specialized tasks designed to collection information Easy to add and configure Why use them? Collect information and store it in the sysadmin database for later analysis
Automating Storage Tasks: Space Expansion Storage Provisioning feature (Informix 11.70) Automatic expansion of spaces to avoid “out-of-space” errors Two modes: Reactive: Chunks are extended and/or created as needed. Proactive: Configure the database server to proactively expand spaces when free space falls below a threshold Idea behind proactive expansion of space: Use Database Scheduler to monitor and expand space as necessary
Automating Storage Tasks: Space Expansion In OAT, configure schedule from the Task Scheduler > Task Details page Configure threshold from the Space Administration > Storage > Storage Pool page
Automating Storage Tasks: Space Optimization Idea: Save DBA time and effort by using the DB Scheduler to automatically compress, repack, shrink, and defragment tables based on policies DBA configures: Schedule when optimization operations (compress, repack, shrink, defrag) can run. Policies that define which actions are taken Compress tables/fragments that exceed a specified number of rows Repack tables/fragments that exceed a specified % of discontiguous storage space Shrink tables/fragments that exceed a specified % of free space Defragment tables that exceed a specified number of extents
Automating Storage Tasks: Space Optimization In OAT, manage this on the Space Administration > Storage > Tables and Indexes page…
Automating Storage Tasks: Space Optimization … and monitor the results.
Automating Statistics Why Automate Update Statistics (AUS)? Optimizer needs accurate statistics to make an optimal decisions But… New tables & indexes are often forgotten Many do not run update statistics encountering sub-optimal performance Running it too often wastes resources Which tables to run and when to run them is a difficult decision And… What statistics and distributions need to be updated? Not easy to understand Change periodically Differs for each system
Automating Statistics Idea: Save DBA time and effort by using the DB Scheduler to automate the collection of statistical and distribution data DBA configures: Schedule Policies when statistics should be updated
Automating Fragmentation field field field field field field field field field field field field field field field field field field field field field field field field field field field field field field field field field field field • Interval Fragmentation Strategy • Time-cyclic data management (roll-on, roll-off) • Attach and detach online without requiring exclusive lock and access to the table • Attach new intervals automatically • Automatically kicks off background process to recollect statistics Dec 08 field field field field field field field Jan Mar Feb Apr May 09 enables storing dataover time A Graphical Exploration of 11.70 5/16/2011 15
Interval Fragmentation Strategy In OAT, use the Create Table wizard to create tables with interval (date-range) fragmentation: Use the Schema Manager to view fragments created automatically by the database server: A Graphical Exploration of 11.70 5/16/2011 16
Automating Workload Management Connection Manager: a daemon program which accepts a client connection request and then re-routes that connection to one of the best fit nodes in and Informix cluster or grid
Automating Workload Management Connection Manager makes decisions on where to re-route client based on Service Level Agreement (SLA) Informix gathers information from each server in a cluster or grid and automatically connects the client application to the server that has the least amount of activity. Turn on the Quality of Data feature, and the Connection Manager will also take failure and latency into consideration when deciding where to re-direct the client.
Automating Log File Management Log File Rotation/Removal Programmatically manage the Informix message log files without DBA intervention Online Message Log Onbar Activity Log DBA sets up schedule and max number of logs to keep Database server automatically (via the Database Scheduler) rotates and delete online message log files
Automating Backups Automate ontape storage space backups with OAT and the Database Scheduler. Configure and schedule level 0, level 1, and level 2 ontape to run automatically. Also use to OAT to Monitor the status of backups Run on-demand ontape backups
Resources Automating DBA Tasks with OpenAdmin Tool • Informix Free Product Downloads • https://www14.software.ibm.com/webapp/iwm/web/preLogin.do?lang=en_US&source=swg-informixfpd • Download • OAT • Informix Virtual Appliance: includes Informix 11.70 and OAT • OpenAdmin Tool Website • www.openadmintool.org • Download link, product information, demos and more • Demos of OAT and 11.70 features: • www.youtube.com/OpenAdminToolChannel • OAT Forum • www.iiug.org/forums/oat 5/17/2011 25
Questions ?!? Automating DBA Tasks with OpenAdmin Tool
Automating DBA Tasks with OpenAdmin Tool Session: D09 Erika Von Bargen vonbarg@us.ibm.com