|
FAQ Part 1 | FAQ Part 2 | FAQ Part 3 | FAQ Part 4 | FAQ Part 5 | FAQ Part 6
This article cannot be published. References: ORACLE DBA Handbook, 7.3 Edition (Loney) Advanced ORACLE Tuning and Administration (Aronoff, Loney, Sonawalla) see www.osborne.com for the scripts and sample chapters. Also, "Have Scripts, Will Travel,", ORACLE Magazine, Jan/Feb 97 (Loney) Part 2. Database Monitoring Q: What should I monitor in my database? A: Items to monitor include: Database service outages. Is the database up? Is SQL*Net available? Has the archived redo log destination area filled? These are important questions that you need to be able to answer at any point in time; and if the answers indicate an alarm condition, you should be automatically notified by the monitoring system. Since these conditions are server-centric, a server-centric monitoring system is appropriate for monitoring them. Ideally, you can tie in the monitoring of these features to the monitoring or your operating system. - database internal statistics, such as free space per tablespace, rollback segment extensions, too many users, etc. There are a few critical internal statistics to monitor. Their importance within your environment depends on your needs. Where applicable, you should monitor their rate of change over time. See the ORACLE DBA Handbook scripts (from chapter 6, the Monitoring chapter) for scripts to track the changes in these statistics. The scripts are online at www.osborne.com. You can also query the database in an ad hoc fashion. The scripts below monitor the database's current status. If you want to perform trend analysis, store the values in a table (along with a date/timestamp) and use the reporting queries in the ORACLE DBA Handbook as the basis for your reports. CURRENT HIT RATIO: HIT RATIO BY SESSION: ROLLBACK SEGMENT EXTENDS AND WRAPS: IO PER DATAFILE: SEGMENTS WITHIN 20 PCT OF THEIR MAXEXTENTS SEGMENTS WHOSE NEXT EXTENT CAN'T FIT IN THE SUM OF ALL THE FREE SPACE IN A TABLESPACE FREE SPACE UTILIZATIONNOTE: This uses the 7.2 feature that allows you to embed subqueries in the FROM clause to create dynamic views. This query will not work in 7.0 or 7.1. FINAL NOTE: This is a cursory overview of reactive monitoring. If you need proactive monitoring of your production environment, there are a slew of tools available. Pick one that integrates well with your operating system and network monitoring needs. For reactive monitoring, start with the set listed above and figure out what you really need to see, and how often you really need to see it, then go from there.Kevin Loney is the author of the ORACLE DBA Handbook, 7.3 Edition, coauthor of ORACLE: The Complete Reference, Electronic Edition, and coauthor of Advanced ORACLE Tuning and Administration, all published under Osborne/McGraw-Hill's Oracle Press imprint. See www.osborne.com for scripts and sample chapters.
FAQ Part 1 | FAQ Part 2 | FAQ Part 3 | FAQ Part 4 | FAQ Part 5 | FAQ Part 6
|