Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
for Oracle
Supporting
PATROL version 8.9 for Oracle
June 2008
www.bmc.com
Copyright 2006-2008 BMC Software, Inc. BMC, BMC Software, and the BMC Software logo are the exclusive properties of BMC Software, Inc., are registered with the U.S. Patent and Trademark Office, and may be registered or pending registration in other countries. All other BMC trademarks, service marks, and logos may be registered or pending registration in the U.S. or in other countries. All other trademarks or registered trademarks are the property of their respective owners. Oracle is a registered trademark of Oracle Corporation. All other trademarks belong to their respective companies. BMC Software considers information included in this documentation to be proprietary and confidential. Your use of this information is subject to the terms and conditions of the applicable End User License Agreement for the product and the proprietary and restricted rights notices included in this documentation.
Customer support
You can obtain technical support by using the BMC Software Customer Support website or by contacting Customer Support by telephone or e-mail. To expedite your inquiry, see Before contacting BMC.
Support website
You can obtain technical support from BMC 24 hours a day, 7 days a week at http://www.bmc.com/support_home. From this website, you can
I I I I I I I I
read overviews about support services and programs that BMC offers find the most current information about BMC products search a database for issues similar to yours and possible solutions order or download product documentation download products and maintenance report an issue or ask a question subscribe to receive proactive e-mail alerts when new product notices are released find worldwide BMC support center locations and contact information, including e-mail addresses, fax numbers, and telephone numbers
product information product name product version (release number) license number and password (trial or permanent)
operating system and environment information machine type operating system type, version, and service pack or other maintenance level such as PUT or PTF system hardware configuration serial numbers related software (database, application, and communication) including type, version, and service pack or maintenance level
I I I
sequence of events leading to the issue commands and options that you used messages received (and the time and date that you received them) product error messages messages from the operating system, such as file system full messages from related software
(USA or Canada) Contact the Order Services Password Team at 800 841 2031, or send an e-mail message to ContractsPasswordAdministration@bmc.com. (Europe, the Middle East, and Africa) Fax your questions to EMEA Contracts Administration at +31 20 354 8702, or send an e-mail message to password@bmc.com. (Asia-Pacific) Contact your BMC sales representative or your local BMC office.
Contents
Chapter 1 Product components and capabilities 17 17 19 19 30 33 34 35 36 36 38 38 38 43 45 46 50 50 51 51 52 53 58 59 60 61 62 63 63 64 65 66 66 67 68 Features of PATROL for Oracle . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Structure of PATROL for Oracle . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Application classes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Menu commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . InfoBoxes. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Local and remote monitoring. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Oracle servers with a PATROL Agent . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Oracle servers without a PATROL Agent . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Failover and cluster monitoring scenarios . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Failover and cluster monitoring by using the PATROL Agent . . . . . . . . . . . . . . . Failover and cluster monitoring by using PATROL for Oracle . . . . . . . . . . . . . . . Where to go from here. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Chapter 2 Installing and migrating PATROL for Oracle
Verifying installation requirements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Preparing for installation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Reviewing PATROL security. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Determining the version of the installation utility . . . . . . . . . . . . . . . . . . . . . . . . . . Determining whether to install locally or remotely . . . . . . . . . . . . . . . . . . . . . . . . . Determining how to install and upgrade. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Installing for the first time or upgrading over an existing installation . . . . . . . . . . . . Migrating customizations manually . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Upgrading and preserving customizations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Preparing to upgrade and migrate . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Creating an installation package of the merged PATROL for Oracle . . . . . . . . . . Importing into Distribution Server . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Installing the online Help . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Installing the UNIX version of the Help browser. . . . . . . . . . . . . . . . . . . . . . . . . . . Setting the environment variables for the browser . . . . . . . . . . . . . . . . . . . . . . . . . Additional considerations for using online Help for UNIX . . . . . . . . . . . . . . . . . . Uninstalling PATROL for Oracle. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Uninstalling PATROL for Oracle from a UNIX environment . . . . . . . . . . . . . . . . Uninstalling PATROL for Oracle from a Windows environment . . . . . . . . . . . . . Where to go from here. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Contents
Chapter 3
69
Preparing to use PATROL for Oracle . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 70 Loading and preloading KMs. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 70 Determining which .kml and .km files to load . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 70 Determining which KMs to preload . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 71 Loading KMs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 72 Preloading KMs on the PATROL Agent. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 74 Removing KMs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 76 Unloading KMs from a PATROL console . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 77 Removing KMs from the PATROL Agent preload list. . . . . . . . . . . . . . . . . . . . . . . 79 Configuration overview. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 81 Configuration requirements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 81 Requirements checklist . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 83 Required configuration information form . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 83 Configuration task flow . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 84 Configuration methods . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 85 Batch configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 86 Batch configuration file syntax. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 86 Creating a batch configuration file . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 89 Automatic configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 92 Using sqlplus to create PATROL database user . . . . . . . . . . . . . . . . . . . . . . . . . . . . 92 Overview of the ORACLE_AUTO_CONFIG application . . . . . . . . . . . . . . . . . . . . 93 Using the default_auto_config.txt file. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 94 Modifying instances that were automatically configured . . . . . . . . . . . . . . . . . . . . 97 PATROL advanced configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 97 Instance discovery . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 98 Adding instances . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 98 Configuring instances for monitoring. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 99 Configuring instances in restricted mode for monitoring . . . . . . . . . . . . . . . . . . . 103 Enabling and disabling instance monitoring . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 104 Modifying instance configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 105 Modifying category monitoring for an instance . . . . . . . . . . . . . . . . . . . . . . . . . . . 108 Viewing instance configuration settings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 109 Removing instances . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 111 Failover monitoring . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 112 Configuring failover monitoring . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 112 If a problem occurs in configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 119 Resetting the global channel . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 119 Setting debugging options . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 120 Uninstalling PATROL objects . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 123 Deactivating parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 124 Monitoring ASM instances . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 125 Configuring an ASM instance . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 126 ASM parameters. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 127 ASM menu commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 128 Where to go from here . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 129
Chapter 4
131 132 132 132 133 134 134 134 135 136 136 137 139 140 143 144 145 147 148 149 150 153 154 157 158 158 159 159 160 163 164 164 165 167 170 170 171 173 173 173 173 174 175 175 175 176
Overview of PATROL Configuration Manager . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Installation and setup requirements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Setting the archive option to save a backup . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Moving rule sets to the PATROL Configuration Manager directory . . . . . . . . . ConfigUpdate parameter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Using the ConfigUpdate parameter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Understanding how the ConfigUpdate parameter operates . . . . . . . . . . . . . . . . Configuring PATROL for Oracle instances . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Using PATROL Configuration Manager to modify or remove an instance . . . . . . . Configuration data not stored in pconfig variable . . . . . . . . . . . . . . . . . . . . . . . . . Configuration variables that are for internal use only. . . . . . . . . . . . . . . . . . . . . . Application classes with status changes set in code. . . . . . . . . . . . . . . . . . . . . . . . Modifying or removing a configured instance . . . . . . . . . . . . . . . . . . . . . . . . . . . . Modifying the blackout configuration variable . . . . . . . . . . . . . . . . . . . . . . . . . . . Using PATROL Configuration Manager to manage parameters . . . . . . . . . . . . . . . . Deactivating parameters. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Changing parameter thresholds . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Changing parameter polling cycles . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Modifying parameter properties. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Modifying ETF parameters through PATROL Configuration Manager. . . . . . . Using the rule and rule set examples . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Where to go from here. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Chapter 5 Using Oracle utilities from PATROL for Oracle
Using Oracle utilities . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Using Server Manager and SQL*Plus from PATROL . . . . . . . . . . . . . . . . . . . . . . Using Explain Plan from PATROL . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Issuing SQL commands to Oracle from PATROL . . . . . . . . . . . . . . . . . . . . . . . . . Managing Oracles job queue from PATROL . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Monitoring Oracle Net from PATROL . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ORANET requirements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Listener Password configuration menu option. . . . . . . . . . . . . . . . . . . . . . . . . . . . Configuring a listener . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Configuring multiple listeners . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Starting and stopping a listener. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Monitoring ORANET alarms. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Viewing ORANET reports . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Debugging listeners. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Starting and shutting down instances. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Starting instances . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Shutting down instances . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Scheduling blackouts. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Nesting blackout periods . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Scheduling unending blackouts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Setting the time zone variable . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Setting blackout periods for categories and parameters . . . . . . . . . . . . . . . . . . . .
Contents
Deleting blackout periods. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 176 Debugging blackouts. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 177 Where to go from here . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 177 Chapter 6 Monitoring tablespaces, users, and SQL statements 179
Tablespace monitoring overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 180 Using the TABLESPACES application to monitor tablespaces . . . . . . . . . . . . . . . . . . 180 TBSP_INSTANCE parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 182 Activating TABLESPACES application monitoring . . . . . . . . . . . . . . . . . . . . . . . . 183 Selecting tablespaces for monitoring . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 183 Viewing reports on tablespaces . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 184 Using the ETSM applications to monitor tablespaces . . . . . . . . . . . . . . . . . . . . . . . . . . 188 Defining tablespace types . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 189 ETSM parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 189 Using regular expressions to choose tablespaces . . . . . . . . . . . . . . . . . . . . . . . . . . 190 Activating the ETSM applications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 192 Viewing the ETSM reports . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 192 Debugging the ETSM application . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 192 Using Space Expert to monitor tablespaces . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 192 User monitoring overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 193 USERS parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 194 USERS_INSTANCE parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 196 Activating user monitoring . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 197 Selecting users or user sessions for monitoring . . . . . . . . . . . . . . . . . . . . . . . . . . . 197 Monitoring problem users . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 199 Viewing the All Problem Users report . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 200 Viewing other reports on users . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 202 Excluding parameter alarms . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 209 Differences between exclusion types . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 211 Exclusion examples . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 212 Excluding tablespaces . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 213 Excluding objects . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 214 Excluding users from space monitoring . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 215 Excluding partitions from monitoring . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 216 Viewing the monitoring settings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 216 Monitoring SQL statements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 217 SQL Snapshot overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 217 Using SQL Snapshot . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 218 SQL Viewer tables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 219 Activating SQL Viewer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 220 Starting and stopping SQL Viewer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 220 Viewing SQL Viewer reports . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 220 Archiving SQL Viewer data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 223 Terminating SQL Viewer sessions. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 223 Where to go from here . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 224 Chapter 7 Monitoring instance health 225
Alerts parameter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Availability reports . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Backup and recovery reports . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Capacity reports. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Database reports . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . SGA reports . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Batch reporting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Batch Scheduler examples . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Adding a job to the scheduler . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Adding a report to the scheduler . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Specifying the time the job or report should run . . . . . . . . . . . . . . . . . . . . . . . . . . Using the Scheduler log file . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Checking the status of a scheduled job or report . . . . . . . . . . . . . . . . . . . . . . . . . . Checking the settings for a job or report . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Deleting a job from the scheduler . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Automated recovery actions. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Compressing or moving log files . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Resizing the next extent . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . HTML reporting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Requirements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Setting up HTML reporting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Configuring HTML reporting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Configure FTP information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Updating the server.xml file . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Viewing and modifying HTML reporting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Where to go from here. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Chapter 8 Monitoring Oracle options
226 228 234 237 240 246 249 250 251 253 254 254 255 255 255 256 256 256 257 258 260 260 262 263 268 270 271 272 272 273 275 276 277 279 279 280 281 282 283 283 284 286 289 290 290 291 291
Distributed database monitoring. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Getting information about distributed databases. . . . . . . . . . . . . . . . . . . . . . . . . . Getting transaction and snapshot information . . . . . . . . . . . . . . . . . . . . . . . . . . . . MTS reports. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Getting dispatcher information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Getting MTS configuration information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . PQO reports . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Getting PQO operations statistics information . . . . . . . . . . . . . . . . . . . . . . . . . . . . Getting PQO server statistics information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Getting PQO session statistics information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Getting PQO system statistics information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Replication activities . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Monitoring database links . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Monitoring replication . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Getting replication information. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Enhanced monitoring of the Oracle archive logs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ORACLE_ARCHIVE_SPEC parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Activating the ORACLE_ARCHIVE_SPEC parameters . . . . . . . . . . . . . . . . . . . . Debugging the ARCHIVE application . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Where to go from here. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Contents
Chapter 9
293
Overview of RAC environment monitoring. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 293 Configuring RAC monitoring. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 294 ORACLE_RAC parameter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 298 Activating the ORACLE_RAC parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 299 Rulesets that manage database-specific alerts in a RAC environment . . . . . . . . 299 Debugging the RAC application . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 300 Where to go from here . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 300 Chapter 10 Monitoring the dataguard environment 301
Overview of dataguard environment monitoring. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 301 Dataguard configuration requirements. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 302 Configuring standby instance for monitoring . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 304 Removing standby instance from monitoring . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 305 Debugging the ORACLE_DATAGUARD application . . . . . . . . . . . . . . . . . . . . . . . . . 305 Limitations in the dataguard KM. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 306 Parameters to monitor standby instance. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 306 Activating the ORACLE_DATAGUARD parameters . . . . . . . . . . . . . . . . . . . . . . 311 Troubleshooting the dataguard KM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 311 Where to go from here . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 312 Appendix A Accessing menu commands, InfoBoxes, and online Help 313
Accessing KM commands and InfoBoxes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 313 Accessing online Help . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 314 Appendix B PATROL database objects 317
Grants and privileges for the PATROL account . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 317 PATROL for Oracle database objects. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 321 Where are PATROL objects installed? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 321 PATROL for Oracle tables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 322 Storage parameters for PATROL tables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 331 PATROL for Oracle views . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 332 Pconfig variables. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 334 Appendix C Firewall and port-forwarding considerations 353
Benefits of VPNs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 353 Protocols, port numbers, and blocking . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 354 Configuring a firewall for PATROL for Oracle . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 354 Glossary Index 357 365
10
Figures
Icon hierarchy for PATROL for Oracle . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 Collector application, parameters, and a graph . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32 Instance application menu in Windows . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33 InfoBox for an Oracle instance . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34 Remote and local servers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35 Configuration with PATROL Agents not in cluster-specific mode . . . . . . . . . . . . . . . 40 Distributed environment configuration - local PATROL Agents only . . . . . . . . . . . . 42 Tree view when ORACLE.kml and ORACLE_AUTO_CONFIG.kml files are loaded . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 74 PATROL for Oracle configuration task flow . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 85 Oracle Parallel Server configuration: basic failover . . . . . . . . . . . . . . . . . . . . . . . . . . . 118 Icon hierarchy for ASM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 126 Get command in PATROL Configuration Manager . . . . . . . . . . . . . . . . . . . . . . . . . . 142 Listener configuration task flow . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 166 Blackout period priority . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 175 TABLESPACES hierarchy . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 181 USERS hierarchy . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 194 Exclusion types . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 211 HTML reporting overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 258 Icon hierarchy for RAC . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 295 Icon hierarchy for dataguard . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 303
Figures
11
12
Tables
PATROL for Oracle .kml and .km files . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20 PATROL for Oracle applications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23 System requirements for installing PATROL for Oracle . . . . . . . . . . . . . . . . . . . . . . . 46 Choosing an installation and upgrade procedure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 53 PATROL for Oracle KM files . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 71 PATROL for Oracle requirements checklist . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 83 PATROL for Oracle configuration information summary . . . . . . . . . . . . . . . . . . . . . . 84 Batch configuration keywords . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 87 Batch config template dialog box fIelds . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 90 Variables in the default_auto_config.txt file . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 95 Configuration tasks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 97 PATROL account modification results . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 106 Configure [instance] for Failover Monitoring dialog box fIelds . . . . . . . . . . . . . . . . . 113 Troubleshooting configuration tasks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 119 ASM parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 127 Parameters supported in the ASM-monitoring feature . . . . . . . . . . . . . . . . . . . . . . . . 128 ASM menu commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 128 Variables that are for internal use only . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 137 Parameters that you must reactivate via PATROL Configuration Manager . . . . . . 146 PATROL for Oracle parameters with fixed thresholds . . . . . . . . . . . . . . . . . . . . . . . . 147 ETF parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 151 All jobs report . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 160 Failed jobs report . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 161 Overdue jobs report . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 162 Broken jobs report . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 162 Cluster configuration information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 167 Listener Status Info report . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 172 TBSP_INSTANCE parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 182 Tablespace Free Space report . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 184 Tablespace report . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 185 Tablespace Segments report . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 186 Tablespaces by Size report . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 187 Tablespace Status and Storage report . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 187 ETSM application parameter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 189 ETSM_tablespaceType application parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 190 ETSM_TBSP_INSTANCE application parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . 190 USERS parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 195 USERS_INSTANCE parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 196 Problem User Settings dialog box . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 199 All Problem Users report . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 200
Tables 13
Active Sessions report . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 202 SQL Statements report . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 203 Display Oracle Users report . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 204 Profiles report . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 204 Role Information report . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 205 User Account Info report . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 205 User Column/Role Privilege report . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 206 User Session report . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 206 User Session Detail report . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 208 AVAILABILITY alarm conditions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 210 SQL Viewer statistics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 221 SQL Viewer standard report . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 222 SQL Viewer Detail report . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 222 Free Space report . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 228 Object Space Analysis report description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 229 Space Usage By Object report . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 230 Lock conflicts report . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 231 AutoExtend DB Files report description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 232 Free Space Deficit report . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 232 Maximum Extents report . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 233 Backup Status report . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 235 Archiving State report description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 235 Media Recovery report description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 236 Redo Log report description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 236 Access Statistics report . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 237 Wait State Analysis report . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 239 Locks Outstanding report . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 240 Schema Table Information report . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 241 Parameter File init.ora report . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 243 Rollback Segments report . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 244 Statistic Summary report . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 245 SGA Memory Analysis report . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 247 Shared Pool report . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 247 Buffer Cache Contents report . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 248 HTML reporting setup task flow . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 260 FTP information items . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 262 HTML reporting refresh cycles . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 269 Commit Point Strength report . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 273 Database Links report . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 273 Pending Transactions report . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 274 Snapshot report . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 274 Dispatcher report . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 276 Dispatcher busy rates report . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 276 Dispatcher Wait Times report . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 277 Shared Servers report . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 278 Operation Statistics report . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 280 Server Statistics report . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 280 Session Statistics report . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 281 Session Statistic report statistic names . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 281
14
System Statistics report . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . System Statistics report statistic names . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Link Information report . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Replication reports summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Conflicts report . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Deferred Calls report . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Pending Transactions report . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Conflict Resolution Methods report . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . DB Links report . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Replicated Objects report . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ORACLE_ARCHIVE_SPEC application parameters . . . . . . . . . . . . . . . . . . . . . . . . . . ORACLE_RAC_DATABASE application parameter . . . . . . . . . . . . . . . . . . . . . . . . . ORACLE_DATAGUARD application parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . Status of the standby database . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Accessing KM commands and InfoBoxes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Accessing online Help . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . PATROL account grants and privileges (SYS) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . PATROL account grants and privileges ( NON-SYS DBA) . . . . . . . . . . . . . . . . . . . . PATROL database objects . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . P$AUTOEXT table . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . P$AUTOEXTEND table . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . P$AUTOEXTFILE table . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . P$AUTOEXTTS table . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . P$BUFFERCACHE table . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . P$CANTEXTFILE table . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . P$CANTEXTMAXFILE table . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . P$CANTEXTMAXTBSP table . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . P$DATA_OS_SPACE table . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . P$DATA_TS_SPACELEFT table . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . P$EXTENTMAP table . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . P$JOBACTION table . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . P$JOBGENERAL table . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . P$JOBHISTORY table . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . P$JOBSCHEDULE table . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . P$LOCKCONFLICTTX table . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . P$LOCKCONFLICTUSER table . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . P$OBJ_EXCLUSION table . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . P$POK_CFG table . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . P$SQL table . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . P$SQLID table . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . P$SQLTEXT table . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . P$TEMP_TS_SPACELEFT table . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . P$TEMP_OS_SPACE table . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . PATROL tables storage parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . P$ARCHDEST view . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . P$BH view . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . P$DBA_TABLESPACES view . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . P$TBSP_DATA_FILES view . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . pconfig variables set by PATROL for Oracle . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
282 282 284 286 286 287 287 288 288 289 290 298 306 310 313 315 317 320 321 322 323 323 323 324 324 324 324 325 325 325 325 326 326 326 327 327 328 328 329 330 330 331 331 331 332 332 334 334 335
Tables
15
16
Chapter
1
17 19 19 20 30 33 34 35 36 36 38 38 38 43
17
PATROL for Oracle monitors the following elements of your Oracle installation:
I I I I I I I I I
Oracle instance resource availability and capacity archive log activity instance performance and health of the environment Oracle server options replication and Oracle jobs tablespaces users Oracle Net
NOTE
In Oracle9i (9.x) and later, the Oracle Networking product, formerly SQL*Net in Oracle7 (7.x), Net8 in Oracle8 (8.0.x) and Net8i in Oracle8 (8.1.x), is now called Oracle Net Services. For consistency, the term Oracle Net is used throughout this book and refers to all Oracle Networking product versions.
I I I I
local and remote monitoring Real Application Cluster monitoring failover and Cluster Monitoring Scenarios Automatic Storage Management
PATROL for Oracle also enables you to perform Oracle functions directly from the PATROL console. In addition, PATROL for Oracle allows you to view the state of instances and parameters through HTML pages on a web server. The ORACLE application (its icon shown at left) enables you to perform high-level functions such as instance configuration, blackout, HTML reporting, and debugging. This application also enables instance configuration, instance discovery, and instance status. For more information about the PATROL for Oracle applications, see Applications and icons on page 22.
18
Application classes
Application classes provide the knowledge that PATROL for Oracle uses to monitor Oracle products. Application classes are delivered in the form of .km files, and they display in the PATROL consoles as icons. PATROL for Oracle applications fall into the following types:
Application type discovery container functional Description discovers the PATROL for Oracles in your environment and stores the configuration and setup information enables the organization and display of parameters by function uses specific parameters, menu commands, and InfoBox items to provide information about a specific database object
The following sections provide details about the component files that contain the applications, descriptions of the applications, a graphic of the icons that represent each application, and a graphic that displays the application icons as they appear in the PATROL consoles. For more detailed information about the application classes, see the online Help for PATROL for Oracle. For information about accessing menu commands, InfoBoxes, and online Help, in the PATROL consoles, see Appendix A, Accessing menu commands, InfoBoxes, and online Help on page 313.
19
Application classes
Component files
The following .kml (Knowledge Module list) and .km (Knowledge Module) component files are installed into PATROL when this product is installed and loaded: Table 1
.kml file ORACLE.kml
ORACLE.km ORACLE_AVAILABILITY.km ORACLE_CAPACITY.km ORACLE_COLLECTORS.km ORACLE_DB_LINKS.km ORACLE_DB_LINKS_INSTANCE.km ORACLE_ENVIRONMENT.km ORACLE_INSTANCE.km ORACLE_JOBS.km ORACLE_LOG.km ORACLE_MTS.km ORACLE_MTS_DISP.km ORACLE_NETWORK.km ORACLE_PERFORMANCE.km ORACLE_PQO.km ORACLE_REPLICATION.km ORACLE_REPLICATION_INSTANCE.km ORACLE_SGA.km ORACLE_SQLVIEWER.km ORACLE_TABLESPACES.km ORACLE_TBSP_INSTANCE.km ORACLE_USERS.km ORACLE_USERS_INSTANCE.km ORANET.km ORANET_LISTENER.km
The following files are also installed and loaded when you install and load the ORACLE.kml file, but these files are used only by the Space Expert for Oracle product:
I I I I
ORACLE_ARCHIVE.kml
The following .km files contain the application classes for the ORACLE_ARCHIVE application:
I I
ORACLE_ARCHIVE.km ORACLE_ARCHIVE_SPEC.km
20
Application classes
Table 1
.kml file
ORACLE_AUTO_CONFIG.kml
ORACLE_DATAGUARD.kml
The following .km files contain the application classes for the ORACLE_DATAGUARD application:
I I I
ORACLE_ETSM.kml
The following .km files contain the application classes for the ORACLE_ETSM application:
I I I I I I I I I
ORACLE_RAC.kml
The following .km files contain the application classes for the ORACLE_RAC application:
I I I
ORACLE_FAILOVER.kml
The following .km file contains the application classes for the ORACLE_FAILOVER application: ORAFailoverMonitor.km
21
Application classes
Table 1
.kml file
ORACLEPARALLELSERVER.kml
ORACLEPARALLELSERVER.km OPSINST.km
For details about how to use PATROL for Oracle Parallel Server, see the PATROL for Oracle Parallel Server User Guide. ORACLE_ASM.kml The following .km files contain the application classes that monitor the configured ASM instances:
I I I I
When you install PATROL for Oracle, scripts are also installed in the following directories:
I
22
Application classes
Table 2
Server
Oracle Instance
The ORACLE_INSTANCE application enables you to run reports on each performance area. You can also activate or deactivate monitoring categories for the instance. You can also use the ORACLE_INSTANCE application to perform the following functions:
I
I I I
PATROL for Oracle administrative functions: Blackout Debug the collectors and menu command Failover configuration Modification of configuration settings Install/uninstall database objects Reset global channels Oracle server administrative functions: Shut down or start up the instance Run the Oracle Explain Plan utility Access SQL*Plus and Server Manager Issue SQL commands from within the PATROL console Reporting Job scheduling SQL snapshot
You can schedule reports or SQL or PSL scripts to run at specified times throughout the day, week, or year.
PATROL for Oracle does not monitor databases that are in restricted mode.
When a restricted database is detected, you can set the KM not to set off an alarm. For more information, see Configuring instances in restricted mode for monitoring on page 103. Oracle Net Listener The ORANET application displays the information about the listener log and the status of the listeners. You can also stop or start listeners from within the PATROL console.
Automatic Configuration
The ORACLE_AUTO_CONFIG (Automatic Configuration) functional application automatically applies a predefined configuration to all instances on a host by using an operating system authenticate account. This application icon appears only when you load the ORACLE_AUTO_CONFIG.kml file.
23
Application classes
Table 2
Archive
Availability
The ORACLE_AVAILABILITY (Availability) container application holds the parameters that pertain to the availability of the selected server. You can monitor the availability of resources in the database instance, including:
I I I I I
space left in one mandatory archive destination space left in data files and system, rollback, temporary tablespaces Oracle errors for the instance lock conflicts extents left in the tablespaces, except for rollback segments, and temporary tablespaces
If PATROL detects any resource availability problems, you can capture the currently processing SQL statement, and if it is causing problems, stop the session that issued the statement. If extent problems are detected, you can activate an automatic action to resize the next extent of the object whenever it runs out of extents (up to the limit of your Oracle settings). You can also
I
I I I I
chart more than one parameter on a graph You can use one of the preset parameter selections or generate your own charts. filter error logs exclude objects, partitions, tablespaces, and users log file recovery administration and resize the next extent generate reports
24
Application classes
Table 2
Capacity
space in the background dump directory space in the user dump directory space in the directory for the Oracle core files number of transactions, processes, and cursors number of sessions and locks
You can also chart more than one parameter on a graph and generate reports. Collectors The ORACLE_COLLECTORS (Collectors) container application holds the collector and the standard collector parameters that set the values for the majority of the consumer parameters.
Database links
The DB_LINKS (Database Links) application monitors distributed database links. This application is available only if the relevant Oracle option is active for the instance.
Dataguard
The ORACLE_DATAGUARD (Dataguard) application monitors the configured standby instances and ensures high availability, data protection, and disaster recovery for the enterprise data.
Environment
The ORACLE_ENVIRONMENT (Environment) functional application monitors the environment of the Oracle instance. The following environment statistics of an Oracle instance are monitored:
I I I I
block change ratio block change transaction block update ration parse call ratio
25
Application classes
Table 2
ETSM
Jobs
The ORACLE_JOBS (Jobs) application monitors jobs within the Oracle job queue for problems and complications. You can flag jobs as broken if they do not run properly. You can also run jobs manually or remove jobs from the job queue. If the ORACLE_LOG option is activated, PATROL for Oracle monitors the activity of your archive logs. The ORACLE_LOG application monitors the activity of the redo logs on the Oracle instance. You can also automate actions to compress or move the archive log files when the archive directories run out of room by accessing the Recovery Admin menu command from the ORACLE_AVAILABILITY application class. For more information, see Backup and recovery reports on page 234.
Log
MTS
The ORACLE_MTS (Multithreaded Server) application monitors shared server processes and dispatcher processes.
Network
The ORACLE_NETWORK (Network) container application holds the parameters that pertain to the network I/O for the selected server.
ASM
The ORACLE_ASM container application contains the application classes that monitor the configured ASM instances.
26
Application classes
Table 2
database writer activity (DBWR) block and disk activities buffer cache activity enqueues SQL response time locking
PQO
The ORACLE_PQO (Parallel Query Option) application monitors the slave and query activity.
RAC
The ORACLE_RAC (Real Application Cluster) application monitors the availability of members (instances and nodes) in the Oracle RAC setup. This application icon appears only when you load the ORACLE_RAC.kml file. For more information, see Chapter 9, Monitoring the RAC environment on page 293.
Replication
The ORACLE_REPLICATION (Replication) application monitors the following replication activity on the instance:
I I
You can suspend and resume replication on the master instance from within the PATROL console. SGA The ORACLE_SGA (System Global Area) application represents the SGA parameters of the Oracle instance. This application monitors the SGA and is available after the Oracle instance has been configured and the SGA category has been activated. The SPACE_EXPERT_ORA (Space Expert) application contains the SPACE_EXPERT_ORA_OBJ and the SPACE_EXPERT_ORA_TS applications. These applications list any medium- or high-priority problems found in a tablespace, table, or index on the monitored instance. The SPACE_EXPERT_ORA application requires that Space Expert be installed on a monitored instance.
Space Expert
27
Application classes
Table 2
Users
28
Application classes
Figure 1
ORACLE_DATAGUA
ConfigUpdate
OracleStatus
29
Parameters
Parameters
A parameter is a command that periodically obtains data on a monitored system resource. Parameter data values are collected, summarized, and stored on the computer where the PATROL Agent resides. The collected parameter information is available for review by a PATROL console. PATROL for Oracle organizes parameters into application classes by function or by the objects that they monitor. PATROL uses several types of parameters and stores parameter history data in a file. See the online Help for PATROL for Oracle for more information about the PATROL for Oracle parameters. For more general information about parameters and their functions, see the user guide for your PATROL console.
Parameter types
PATROL for Oracle uses standard and consumer parameters.
I
A collector parameter executes commands at regular intervals (poll times) to gather data that it sends to the consumer parameters. Collector parameters do not display the values that they collect, nor do they generate alarms or recovery actions. A standard parameter collects a single value of data as numeric or text and displays that value. Many of the standard parameters used by PATROL for Oracle have collector properties; they execute commands and gather the data that consumer parameters display. A consumer parameter displays a value that was collected by a collector parameter (or a standard parameter with collector properties) and can generate alarms or warnings and recovery actions if those values exceed predefined thresholds. Consumer parameters do not issue commands.
The use of standard parameters with collector properties (standard collectors) and consumer parameters enables PATROL to set an almost unlimited number of parameters with one data retrieval query to the server, creating an extremely efficient and flexible data retrieval system. The Collectors application contains most of the standard collectors used by PATROL for Oracle. These standard collectors are presented as an icon that contains a check mark and an X. The check mark is green when the parameter is in an okay state and the X turns red when the parameter goes into an alarm state. (See the PATROL user guide for your console for detailed information on alarm states and icons.) These standard collectors go into an alarm state if a scheduled collection fails.
30 PATROL for Oracle User Guide
Parameters
Double-clicking on a standard collector icon opens a graph or timetable that displays a mark for each collection that the standard collector parameter completed. Standard collector parameters do not display the data that they collect, but display only information about their collections. The data collected by the standard collector parameters is distributed to related consumer parameters. Figure 2 on page 32 shows the Collector Application icon, the parameters it contains, and a standard collector parameter graph.
31
Parameters
Figure 2
2. Double-clicking on one of the standard collectors opens a graph or timetable for that standard collector parameter.
3. The timetable displays a mark for each data collection cycle that the standard collector parameter completed.
See the PATROL user guide for your console for detailed information about the parameter history file.
32 PATROL for Oracle User Guide
Menu commands
Menu commands
The PATROL for Oracle menu commands allow you to perform the following tasks:
I I I
define and manage PATROL for Oracle manage your Oracle environment from PATROL view reports about your Oracle environment
Figure 3 shows the Oracle instance icon, the PATROL Console for Microsoft Windows (Developer mode) menu, and the instance application menu. Right-clicking the Oracle instance icon opens the console menu, and KM Commands is a command available from that menu. Figure 3 Instance application menu in Windows
Oracle instance icon
console menu
The instance application menu shown in Figure 3 is at the instance level of the menu tree hierarchy for the Oracle application. PATROL for Oracle online Help provides further details about menu commands. For information about how to access menu commands and online Help from the various PATROL consoles, see Appendix A, Accessing menu commands, InfoBoxes, and online Help on page 313.
33
InfoBoxes
InfoBoxes
PATROL for Oracle uses InfoBoxes to provide attributes specific to the objects in your Oracle applications. InfoBoxes are tables of attributes accessed from parameters and application class icons. The PATROL consoles and PATROL Agent populate all of the attributes that appear in the parameter InfoBoxes and some of the attributes, such as icon type or status, that appear in the application InfoBoxes. In each of the application InfoBoxes, the items generated by PATROL for Oracle appear below the items generated by the PATROL console, and they are preceded by a check mark (PATROL Console for Windows) or are separated from the console items by a horizontal rule (PATROL Console for UNIX). The PATROL Central Operator consoles differentiate between the items in a similar fashion. Figure 4 is an example of an InfoBox for a Oracle instance. Figure 4 InfoBox for an Oracle instance
Update button
The attributes that populate the InfoBoxes are gathered and updated periodically. Some of the attributes that appear in the application InfoBoxes remain static (for example, Oracle SID) and some of the attributes change as your Oracle environment changes (for example, Instance Startup). Each InfoBox provides an Update button that you can use to refresh the attributes in that InfoBox. PATROL for Oracle online Help provides further details about the application InfoBoxes. For information about how to access InfoBoxes and online Help, see Appendix A, Accessing menu commands, InfoBoxes, and online Help on page 313.
34
PATROL Agent Full functionality PATROL console (Microsoft Windows or UNIX) communication goes through the Remote Server but appears as a local instance to the PATROL console
c le N et
Ora
IP P/ TC
P/I TC P
Local server Microsoft Windows with Oracle PATROL Agent Full functionality Local server
Remote server UNIX with Oracle No PATROL Agent Some functions not available on remote Instance
35
Explain Plan Instance Shutdown Instance Startup Server Manager SQL Plus
I
All Error Messages Enter Search String ORA-006XX Messages Privilege Violations Show Tail These menu commands appear (they are not dimmed) for remote Oracle server instances; however, when you use the menu item, an error message appears on the task output window or the screen output window.
36
AVAILABILITY Alerts ArchFreeSpace ArchFreeSpaceETF CannotExtend ARCHIVE ArchFreeSpace ArchFeeSpaceOptional ArchFreeSpaceColl CAPACITY AlertLogSize BGDumpLeft BGDumpLeftETF BGDumpUsed BGDumpUsedPct CoreDumpLeft CoreDumpLeftETF CoreDumpUsed CoreDumpUsedPct UserDumpLeft UserDumpLeftETF UserDumpUsed UserDumpUsedPct ETSM PctUsed SpaceLeft
37
Failover and cluster monitoring by using the PATROL Agent Failover and cluster monitoring by using PATROL for Oracle
NOTE
If you want to use PATROL for Oracle to monitor RAC-managed instances, PATROL for Oracle must be installed on at least one node that contains a configured instance that is to be monitored. Failover monitoring cannot be used when monitoring a RAC-managed instance. To monitor the instance status within the RAC configuration, see Chapter 9, Monitoring the RAC environment.
Active/passive environments
You can use PATROL for Oracle to monitor an active/passive failover environment. To set up PATROL for Oracle and the PATROL Agent by using the PATROL Agent without the cluster-specific variables defined (non-clustered mode), use the following steps. Figure 6 on page 40 illustrates this configuration. In Figure 6, Node 3 is the failover computer for Instance 1 on Node 1.
1 Install and start the PATROL Agent on both Node 1 and Node 3. 2 Install and configure PATROL for Oracle on each instance on Node 1 and Node 3.
38
In normal operation, the failover instance (Instance 1 on Node 3) is in a standby mode, and the InstanceStatus, OracleStatus, and ConnectDB parameters are in warning mode on this instance. The primary instance (Instance 1 on Node 1) is running, and the InstanceStatus, OracleStatus, and ConnectDB parameters are in an OK state. When a failover occurs, the InstanceStatus, OracleStatus, and ConnectDB parameters on Instance 1 on Node 1 go into warning or alarm (24x7). As Instance 1 on Node 3 starts and retrieves the redo log from the shared Oracle device, PATROL starts monitoring Instance 1 on Node 3. The InstanceStatus, OracleStatus, and ConnectDB parameters on Instance 1 on Node 3 go into an OK state. In this operation, the PATROL history for each instance is interrupted. If you do not want to view the warning parameters on Instance 1, you can use the Monitor Enable/Disable menu command to stop monitoring the warning instance. To automatically disable or enable an instance so that it will not alarm on the secondary computer, use ORACLE_FAILOVER.km. For information about configuring the failover monitor, see Failover monitoring on page 112.
39
Figure 6
Node 1
Node 3
Instance 1
Normal operation Instance 1 up InstanceStatus OracleStatus ConnectDB Failover operation Instance 1 down InstanceStatus OracleStatus ConnectDB Instance 1 Node 3 up InstanceStatus OracleStatus ConnectDB Instance 1 Node 3 waiting InstanceStatus OracleStatus ConnectDB
Active/active environment
PATROL for Oracle will also monitor the instance in an active/active environment. In this environment, which is also called a workload balancing configuration, all nodes have different instances. When a failover occurs, the remaining active node takes on the monitoring of all cluster applications. Figure 7 on page 42 shows this situation. Node 1 contains the primary Instance 1, and is the failover computer for Instance 2. Node 3 contains the primary Instance 2, and is the failover computer for Instance 1. If Node 1 fails, Instance 1 fails over to Node 3, and the PATROL Agent on Node 3 starts monitoring Instance 1.
NOTE
If you are using the PATROL Agent in a non-virtual mode, you will not have continuous history data in a failover situation. Figure 7 on page 42 displays the use of the PATROL Agent without the cluster-specific variables defined (non-clustered mode).
40
To set up PATROL for Oracle in this environment 1 Install the PATROL Agent on each node. 2 Install and configure PATROL for Oracle on each instance. 3 For each instance, configure the failover system by using the Failover
Monitoing => Configure command from the ORACLE_INSTANCE menu.
In normal operation, Instance 1 on Node 1 and Instance 2 on Node 3 displays the InstanceStatus and OracleStatus parameters in an OK state. Instance 1 on Node 3 and Instance 2 on Node 1 displays the InstanceStatus, OracleStatus, and ConnectDB parameters in a warning state. If a failover occurs on Node 1, Instance 1 on Node 1 goes down, and Instance 1 on Node 3 comes up. Instance 1 on Node 1 displays the InstanceStatus, OracleStatus, and ConnectDB parameters in a warning state. Instance 1 on Node 3 displays the InstanceStatus, OracleStatus, and ConnectDB parameters in an OK state. In this operation, the PATROL history for the instance is interrupted. If you do not want to view the warning parameters on Instance 1, you can use the Monitor Enable/Disable menu command to stop monitoring the warning instance. To automatically disable or enable an instance so that it will not alarm on the secondary computer, use ORACLE_FAILOVER.km. For information about configuring the failover monitor, see Failover monitoring on page 112.
41
Figure 7
Instance 1
Instance 2
Instance 2
*The following description uses Instance 1 as an example; all instances will work the same. Normal operation Instance 1 on Node 3 Instance 1 up on Node 1 InstanceStatus OracleStatus ConnectDB Failover operation Instance 1 down on Node 1 InstanceStatus OracleStatus ConnectDB InstanceStatus OracleStatus ConnectDB
42
for Oracle
how to set up and configure PATROL
for Oracle
how to use PATROL Configuration Manager with PATROL for Oracle to change configuration variables or parameter properties how to use Oracle utilities from PATROL for Oracle how to monitor the tablespace capacity and user activity on an Oracle instance using PATROL for Oracle how to monitor instance health using PATROL for Oracle
how to monitor Oracle options using the Chapter 8, Monitoring Oracle options on page PATROL for Oracle 271 how to monitor the the RAC environment Chapter 9, Monitoring the RAC environment on page 293
how to access the KM menu commands, Appendix A, Accessing menu commands, InfoBoxes, and online Help InfoBoxes, and online Help on page 313 definitions and default values for parameters PATROL for Oracle online Help
PATROL Agent configuration variables Appendix B, PATROL database objects on page 317 instructions for installing and using PATROL for Oracle with firewalls detailed descriptions of the applications, menu commands, parameters, and InfoBoxes Appendix C, Firewall and port-forwarding considerations on page 353 PATROL for Oracle online Help
43
44
Chapter
2
46 50 50 51 51 52 53 58 59 60 61 62 63 63 64 65 66 66 67 68
This chapter presents the following topics: Verifying installation requirements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Preparing for installation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Reviewing PATROL security. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Determining the version of the installation utility . . . . . . . . . . . . . . . . . . . . . . . . . . Determining whether to install locally or remotely . . . . . . . . . . . . . . . . . . . . . . . . . Determining how to install and upgrade. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Installing for the first time or upgrading over an existing installation . . . . . . . . . . . . Migrating customizations manually . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Upgrading and preserving customizations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Preparing to upgrade and migrate . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Creating an installation package of the merged PATROL for Oracle . . . . . . . . . . Importing into Distribution Server . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Installing the online Help . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Installing the UNIX version of the Help browser. . . . . . . . . . . . . . . . . . . . . . . . . . . Setting the environment variables for the browser . . . . . . . . . . . . . . . . . . . . . . . . . Additional considerations for using online Help for UNIX . . . . . . . . . . . . . . . . . . Uninstalling PATROL for Oracle. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Uninstalling PATROL for Oracle from a UNIX environment . . . . . . . . . . . . . . . . Uninstalling PATROL for Oracle from a Windows environment . . . . . . . . . . . . . Where to go from here. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Chapter 2
45
NOTE
Any information about UNIX in Table 3 applies to any supported versions of Linux, unless otherwise specified.
Table 3
Resource Oracle Net
PATROL Central consoles are not required, but a PATROL Agent is required for each monitored instance, and a PATROL Console for UNIX or PATROL Console for PATROL Console for UNIX PATROL Console for Microsoft Windows Microsoft Windows in a Developer Console PATROL Central Operator Web Edition mode is required to configure PATROL for Oracle initially. PATROL Central Operator Microsoft Windows Edition PATROL for Oracle collects disk space information from the following PATROL operating system .km files:
I I
See Determining the version of the installation utility on page 51. For the version of the PATROL installation utility required, see the Release Notes for the version of PATROL for Oracle that you are installing.
46
Table 3
Resource
Comments Distribution Server is required only if you plan to use it to distribute the KM. The PATROL Configuration Manager and the PATROL KM for Event Management are required if you plan to modify PATROL for Oracle. See Chapter 4, Using PATROL Configuration Manager to modify and migrate configuration on page 131. These products are required for HTML reporting. For more information, see HTML reporting on page 257.
Distribution Server PATROL Configuration Manager PATROL Knowledge Module for Event Management
I I
I I
browser
Install Netscape Navigator on the computer where the console resides. For instructions, see Installing the UNIX version of the Help browser on page 63.
security
For more information about security, see Reviewing PATROL security on page 50. For information about installing with a firewall, see Appendix C, Firewall and portforwarding considerations on page 353.
license
You must have a valid demonstration license If you do not have a permanent license, contact your BMC Software sales (typically good for 30 days) or a permanent license to run your PATROL products. representative or the BMC Software contract administration department for licensing information. The installation utility might require you to specify the port number for agents The following disk space is needed to install PATROL for Oracle on agents and consoles:
I I I I
The default port number for agents is 3181. These numbers are approximate and assume that you are installing both PATROL for Oracle and PATROL for Oracle Parallel Server.
The following disk space is needed to operate These numbers are approximate, and assume PATROL for Oracle on agents and consoles: you are operating both PATROL for Oracle and PATROL for Oracle Parallel Server. I UNIX agent30 MB I UNIX console10 MB I Windows agent30 MB I Windows console10 MB
Chapter 2
47
Table 3
Resource
OS accounts on Windows
Before installing PATROL, create a dedicated user account that is either a local or a domain account. Accounts that are on a domain controller must be a member of the domain Administrators group. Do not use a built-in Administrator account. If you are using a domain account, you must specify the NT domain with the user name.
OS accounts on UNIX
Use the following guidelines when setting up the PATROL UNIX account:
I
The account .login, .profile, .cshrc, and .kshrc files should not contain any customizations, such as aliases, nondefault prompts, unmask settings other than 022. Do not use the root account. The account must have permission to create directories and write the installation logs to the $HOME and /tmp directories on the computer where you are installing products. The account must have ftp and telnet enabled. The account must have access to a root account on the computer where PATROL is installed.
I I
Oracle account
For more information, see Configuring instances for monitoring on page 99.
48
Table 3
Resource Oracle database objects Oracle database modes
other settings SQL Snapshot CPU data retrieval Monitoring high CPU users USRCpuSeconds parameter For Oracle 8i and a non-SYS account, set the 07_DICTIONARY_ ACCESSIBILITY parameter to TRUE. PQO parameter settings
TNS_ADMIN
Chapter 2
49
Review PATROL security (see page 50) Ensure that you use the appropriate version of the installation utility (see page 51) Determine whether to install products locally or remotely (see page 51) Determine how you should install and upgrade (see page 52)
To check the security level of a previously installed agent, console server, or console 1 From the command line, switch to the path on the computer that you want to
check:
I I
2 To display the security policy of the current computer, run the following
command:
esstool policy -a
The security level is displayed in the security level field of the output. For more information about implementing and using PATROL security, see the following documents:
I I
50
NOTE
If your environment contains a firewall, please see Appendix C, Firewall and portforwarding considerations on page 353.
To determine the version of an installation utility 1 Open a command prompt. 2 Navigate to the directory where the installation utility is located:
I I
Chapter 2
51
If you create an installable image, all computers on which the image is installed must use identical configuration information for the following settings:
I I I I I
BMC Software products installation directory account names passwords PATROL Agent port number security options
Details for installing products locally are included in this chapter. For details about creating, distributing, and installing installable images, see the PATROL Installation Reference Manual.
new and modified Knowledge Modules (.km files) that you created modified PSL code, whether it is embedded in .km or .psl files
Customizations that were applied by using PATROL Configuration Manager or operator overrides created with a PATROL Operator Console (version 3.4.11 and later) are saved in the agent configuration database automatically. These customizations take effect automatically.
52
Use Table 4 to determine whether you should upgrade and save your customizations or upgrade without saving any customizations, and use the appropriate procedure. Table 4
Situation
I
You made no customizations to your previous version of PATROL for Oracle. You made one or more of the preceding changes or customizations by using the PATROL Configuration Manager (in which case, they are saved in the agent configuration file and applied to the new version automatically). You want to overwrite customizations with the default values of the new version of PATROL for Oracle.
You made one or more of the following changes or customizations Upgrade by using the Installing for the to your previous version of PATROL for Oracle, but you plan to first time or upgrading over an existing migrate those customizations manually: installation procedure on page 53.
I I
You made one or more of the following customizations to your Upgrade Upgrading and preserving currently installed version of PATROL for Oracle, you plan to save customizations on page 59. those customizations, and migrate them to the new version of PATROL for Oracle by using the Distribution Server:
I I
installing for the first time upgrading and manually migrating customizations upgrading without saving or migrating any customizations
Chapter 2
53
WARNING
Upgrading over an existing installation does not preserve:
I I I
customizations made to .km and .psl files manually added or deleted Oracle-related Agent configuration variables changes made to the database account
Changes made to Agent configuration variables by using the PATROL Configuration Manager are preserved when you upgrade over an existing installation as described in To install for the first time, upgrade without saving customizations, or upgrade and manually migrate customizations on page 55. After installing PATROL for Oracle 8.8.xx over the top of version of 8.6x or 8.5x, the CannotExtend parameter goes into an alarm state. After configuring PATROL for Oracle, you need to assign a value of NULL to the OracleCantext.InstanceName.Tables configuration variable. This forces the tables used with the CannotExtend parameter to be re-created.
If you are unsure which procedure you should perform, see Determining how to install and upgrade on page 52.
You first should install on a limited number of computers in the test environment, test the installation thoroughly, and then install in your production environment. You must have created the PATROL default account. See OS Accounts in Table 3 on page 46. If you are upgrading and manually migrating customizations or upgrading without saving or migrating any customizations, stop the PATROL console and agent.
NOTE
You can only upgrade over an existing installation of PATROL for Oracle 8.5.10 (and later) and PATROL Agent 3.5 (and later). Do not upgrade over an existing installation if you have manually added or removed variables or modified the database account. In this case, upgrade by using the procedure described in Upgrading and preserving customizations on page 59.
54
If you plan to migrate your customizations manually, perform the following: Ensure that you have a record of your customizations and that you have backed up the customized files in the PATROL_HOME and PATROL_CACHE directories. Move the old version of PATROL for Oracle to a new directory that is different from PATROL_HOME. See Preparing to upgrade and migrate on page 60.
If you are using Automatic Storage Management (ASM), you have to again configure the instance after the updrade.
To install for the first time, upgrade without saving customizations, or upgrade and manually migrate customizations 1 If you are installing into a UNIX environment without a browser, proceed to step 2.
Otherwise, from an electronically downloaded installation (EPD) image, run setup.exe (Windows) or setup.sh (UNIX), and proceed to step 3.
2 If you are installing into a UNIX environment without a browser, perform the
following steps to launch the installation utility:
A From a command line, change to the directory where the installation utility is
located and enter the following command to start the installation Web server: ./setup.sh -serveronly (UNIX) A message box opens that contains the URL that connects to the installation Web server.
B Start a browser. C In the browser, use the URL provided in the message box to connect to the
installation Web server and to start the installation utility.
3 In the Welcome to the Installation Utility window, click Next to begin the
installation.
4 In the Review the license agreement window, select Accept, and click Next to
continue.
5 In the Select Installation Option window, select one of the following options:
I
To install locally now, select Install products on this computer now and click Next to continue.
Chapter 2
55
To create an installable image that you can install locally and remotely later, select Create an image to be installed later, enter the directory where you want the installation image stored, and click Next to continue.
To determine whether to install now or create an image that you can install later locally or remotely, see Determining the version of the installation utility on page 51.
6 In the Specify Installation Directory window, accept the default directory and click
Next to continue.
The PATROL product directory that you enter in step 10 on page 57 is appended to the path that you enter in this step.
7 In the Select Type of Installation window, select Default or Custom and click Next to
continue. You must use the Custom installation type in the following instances:
I I I I
You want to install the PATROL for Oracle Parallel Server. You are upgrading PATROL for Oracle from a previously installed version. You are installing into an existing PATROL environment. You want the PATROL Agent to use a port other than the 3181 (the default).
8 In the Select System Roles window, select any or all of the roles listed to indicate
the components that you want to install, and click Next.
NOTE
If you are using the PATROL Central Operator Windows Edition or the PATROL Central Operator Web Edition, you must install PATROL for Oracle on the computer that hosts the PATROL Console Server and select Common Services in the Select System Roles window. If you are using a PATROL Console Server version prior to 7.2.36, or PATROL Central Operator Web Edition prior to version 7.1.10, you must also install PATROL for Oracle on the computer hosting the PATROL Central Operator Web Edition web server by using the Console Systems role.
For more information about the PATROL consoles and PATROL Console Server or RTserver, see the following documents:
I I I
PATROL Central Operator Web Edition Getting Started PATROL Central Operator Microsoft Windows Edition Getting Started PATROL Console Server and RTserver Getting Started
9 From the Select Products and Components to Install window, make one of the
following selections:
56 PATROL for Oracle User Guide
If you selected the Default installation type, choose PATROL Solutions for Databases => PATROL for Oracle and click Next. The Default installation type does not display the KMs for selection; you can choose only PATROL Solutions for Databases => PATROL for Oracle, and only the PATROL Knowledge Module for Oracle is installed.
If you selected the Custom installation type, choose PATROL Solutions for Databases => PATROL for Oracle, one or both of the PATROL KMs listed, and click Next. If you selected the Custom installation type, the Provide the PATROL 3.x Product Directory window is displayed.
NOTE
PATROL for Oracle does not provide a Quick Start Package.
10 (Custom installation only) In the Provide the PATROL 3.x Product Directory
window, enter the directory in which you want to install PATROL for Oracle in the PATROL 3.x Product Directory field, or accept the default directory. The directory entered in this step is appended to the base directory path that is shown in the BMC Products Installation Directory field. You entered the installation directory in step 8 on page 56.
11 In the Review Selections and Install window, review the selections carefully:
I I
If you want to change your selections, click Back and make those changes. If the selections are correct, select Start Install.
A status window opens and provides current messages, current milestones, and percentage complete.
12 When the status window reports that the installation is 100% complete, click Next
to view the results window.
13 In the Installation Results window, click View Log to review the installation, and
click Next to view the results window.
14 In the Installation Results window, click Finish to exit from the installation utility.
Chapter 2
57
To migrate customizations to KM files manually 1 If you have not already done so, move the old version of PATROL for Oracle to a
new directory that is different from PATROL_HOME. See Preparing to upgrade and migrate on page 60.
2 If you have not already done so, install the new version of PATROL for Oracle as
described in the section Installing for the first time or upgrading over an existing installation on page 53.
3 Identify the customizations in PATROL for Oracle by comparing the content of the
text file of the KM in the newly installed PATROL for Oracle version with the content of the text file for the customized KM that is saved in the directory that you moved the old version to.
4 Incorporate your customizations to the new PATROL for Oracle by performing the
following steps:
A Restart the PATROL console. B Load the newly installed PATROL for Oracle. C Using a PATROL developer console, enter the customizations that you
identified in step 3, one by one.
58
If you modified .psl files that were shipped by BMC Software, you must manually re-edit the PSL code in the new KM by using a PATROL developer console to reapply your changes. If you modified PSL code embedded in a .km file, you must manually edit the new .km files by using a PATROL developer console to reapply your changes. If you created a new PSL file (not shipped by BMC Software) outside of a .km file, or if you created new PSL code (not shipped by BMC Software) and embedded it in a .km file that was shipped by BMC Software, use the pslsearch utility to search your .km, .psl, and .ctg files for terms that you may have used that have since been adopted by BMC Software as PSL keywords. Rename any terms that pslsearch identifies as an existing keyword. Reapply your changes by using a PATROL developer console.
NOTE
If you have customized a PSL library that was compiled with an earlier version of the PSL compiler than the version that was provided with PATROL 3.2.09i, you must manually recompile the library by using the compiler that was shipped with your current version of PATROL.
Chapter 2
59
back up PATROL_HOME and PATROL_CACHE remove PATROL for Oracle files from PATROL_CACHE
NOTE
Throughout this section, all references to PATROL_HOME represent $PATROL_HOME in UNIX and %PATROL_HOME% in Windows; all references to PATROL_CACHE represent $HOME/patrol in UNIX and %PATROL_CACHE% in Windows.
To back up the current installation 1 Shut down any PATROL Agents, consoles, and related services that are currently
running.
2 Ensure that no one is accessing any PATROL files or directories. 3 Perform a full backup of the following two directories where PATROL executables
and data are typically stored:
I I
PATROL_HOME for agent and console installation directories PATROL_CACHE for the console working cache
ORA* OPS*
NOTE
If you are using History.km, do not delete ORACLE_history_loader.km.
60
To create an installation package of the merged PATROL for Oracle 1 Copy the contents of the PATROL for Oracle CD to a hard drive on a server.
This temporary directory can be deleted after you have successfully created an installable image.
2 Navigate to the packaged_results directory for the merged package and open the
.ppf file. Note the file name that is listed in the first line of the .ppf file.
For example, if pokckm/x.x.xx/030107-233044 is listed in the first line of the .ppf file, pokckm is the file name.
3 Rename the packaged_results directory with the file name from the .ppf file in step
2.
4 Copy the renamed directory to the Products directory of the PATROL for Oracle
CD image that you copied onto the server. You are replacing the files there with the merged files that contain your customizations.
5 Copy the PATROL for Oracle CD image to the target server from which you will
be installing.
Chapter 2
61
install, uninstall, upgrade, and reinstall products on remote systems from one central location create collections of products and system groups to distribute multiple products to multiple systems in one distribution schedule a distribution for a specific date and time maintain multiple product versions to be distributed view reports to check distribution status, gather distribution data, and diagnosis problems
1 Using the Distribution Server Manager, start the Distribution Server and connect
to it.
2 In the Distribution Server tab area, click the Components tab. 3 In the list area, click the Import button. 4 Navigate to the location where the components are located and click Next. 5 Select the directory that contains the Products directory (do not select the Products
directory itself).
62
If the components are not accessible on a local drive, you can specify them by using the NFS name and path.
EXAMPLE
Assuming that you copied the CD image into a directory called merged_CD and then, after migrating your customizations and creating a customized installation package, you copied the updated package to the directory containing the CD image, the resultant directory structure resembles
I I
6 Select the check boxes for the components that you want to import and click OK. 7 Click Import to import the selected components.
install the UNIX version of the Help browser separately if it is not already installed review the environment variables to make sure that they are properly set review other considerations
Chapter 2
63
LANG variable
For Netscape Navigator to run properly, you must have the UNIX LANG environment variable must set to C. Otherwise, you might experience product failures.
Type of shell Bourne Korn C Export command for LANG variable LANG=C export LANG export LANG=C setenv LANG=C
PATH variable
The PATROL user account PATH variable must contain the location of the directory containing the Netscape files. If the directory containing the Netscape files is not in the path, add the directory to the PATROL user account path. This requirement applies only to the PATROL user account on the PATROL console computer.
Type of shell Bourne Korn C Export command for PATH variable PATH=$PATH:/netscape_location export PATH export PATH=$PATH:/netscape_location setenv PATH=$PATH:/netscape_location
PATROL_BROWSER variable
When PATROL starts the Help browser, it uses the command in the PATROL_BROWSER environment variable. As a default, the PATROL_BROWSER environment variable contains the following command:
64
Export command for PATROL_BROWSER variable PATROL_BROWSER=netscape -display $DISPLAY -install -iconic export LANG export PATROL_BROWSER=netscape -display $DISPLAY -install iconic setenv PATROL_BROWSER=netscape -display $DISPLAY -install iconic
To use different arguments, set the value of PATROL_BROWSER to the appropriate string.
EXAMPLE
For Korn shell: export PATROL_BROWSER=/usr/local/bin/netscape -raise
the Netscape Navigator window appears as an icon a browser window that contains the Help
Netscape Navigator displays warning messages when it is invoked multiple times within the same user account because of its file-locking mechanism. It does, however, continue functioning. By default, when Netscape Navigator starts, it uses a private color map. As a result, you might experience color flashing on your workstation. If so, you can set the value of PATROL_BROWSER so that the colormap option is not specified. However, changing this value could cause some subsequent color requests to fail and the online Help to display improperly. The Exceed for Windows NT X Window Server product by Hummingbird Communication Ltd. might not always display the Help files properly.
Consult your Netscape Navigator documentation for specific platform requirements and restrictions.
Chapter 2
65
WARNING
If you have configured an instance, you must remove the instance before uninstalling PATROL for Oracle. Use the Instance Removal menu command described in Removing instances on page 111 to remove the instance from within PATROL.
NOTE
Before you can uninstall PATROL products, you may need to stop any PATROL processes that are running on the computers where you want to uninstall PATROL. For information about stopping PATROL processes, see the following documents:
I I
To uninstall in a UNIX environment 1 Change to the Uninstall directory in your BMC Software product installation
directory and enter the following command to launch the installation utility in uninstall mode: ./uninstall.sh
66
3 Select the installation directory from which you want to remove a product and
click Next.
4 Select the product or products that you want to uninstall and click Next. 5 Review your selections and click Uninstall.
After the uninstallation is complete, a window is displayed that tells you whether the uninstallation was successful.
To uninstall in a Windows environment 1 From the Uninstall directory in your BMC Software product installation directory,
double-click uninstall.exe to launch the installation utility in uninstall mode.
NOTE
As an option, you can launch the installation utility in uninstall mode by choosing Start => Settings => Control Panel => Add/Remove Programs and double-clicking BMC Software Tools in the Add/Remove Programs Properties dialog box.
2 In the Welcome window, click Next to begin the uninstall process. 3 Select the installation directory from which you want to remove a product, and
click Next.
4 Select the product or products that you want to uninstall, and click Next. 5 Review your selections and click Uninstall.
A window is displayed that tells you whether the uninstallation was successful.
Chapter 2
67
for Oracle
how to use PATROL Configuration Manager with PATROL for Oracle to change configuration variables or parameter properties how to use Oracle utilities from PATROL for Oracle how to monitor the tablespace capacity and user activity on an Oracle instance using PATROL for Oracle how to monitor instance health using PATROL for Oracle
how to monitor Oracle options using the Chapter 8 Monitoring Oracle options on page PATROL for Oracle 271 how to monitor the the RAC environment Chapter 9 Monitoring the RAC environment on page 293
how to access the KM menu commands, Appendix A, Accessing menu commands, InfoBoxes, and online Help InfoBoxes, and online Help on page 313 definitions and default values for parameters PATROL for Oracle online Help
PATROL Agent configuration variables Appendix B, PATROL database objects on page 317 instructions for installing and using PATROL for Oracle with firewalls Appendix C, Firewall and port-forwarding considerations on page 353
68
Chapter
This chapter presents the following topics: Preparing to use PATROL for Oracle . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 70 Loading and preloading KMs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 70 Determining which .kml and .km files to load . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 70 Determining which KMs to preload . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 71 Loading KMs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 72 Preloading KMs on the PATROL Agent . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 74 Removing KMs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 76 Unloading KMs from a PATROL console . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 77 Removing KMs from the PATROL Agent preload list . . . . . . . . . . . . . . . . . . . . . . 79 Configuration overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 81 Configuration requirements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 81 Requirements checklist . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 83 Required configuration information form . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 83 Configuration task flow . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 84 Configuration methods. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 85 Batch configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 86 Batch configuration file syntax . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 86 Creating a batch configuration file . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 89 Automatic configuration. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 92 Using sqlplus to create PATROL database user . . . . . . . . . . . . . . . . . . . . . . . . . . . . 92 Overview of the ORACLE_AUTO_CONFIG application . . . . . . . . . . . . . . . . . . . . 93 Using the default_auto_config.txt file . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 94 Modifying instances that were automatically configured. . . . . . . . . . . . . . . . . . . . 97 PATROL advanced configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 97 Instance discovery . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 98 Adding instances . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 98 Configuring instances for monitoring . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 99 Configuring instances in restricted mode for monitoring. . . . . . . . . . . . . . . . . . . 103 Enabling and disabling instance monitoring. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 104 Modifying instance configuration. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 105 Modifying category monitoring for an instance . . . . . . . . . . . . . . . . . . . . . . . . . . . 108
Chapter 3 Loading and configuring PATROL for Oracle 69
Viewing instance configuration settings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 109 Removing instances . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 111 Failover monitoring . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 112 Configuring failover monitoring . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 112 Oracle Parallel Server and failover . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 117 If a problem occurs in configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 119 Resetting the global channel. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 119 Setting debugging options . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 120 Uninstalling PATROL objects . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 123 Deactivating parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 124 Monitoring ASM instances . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 125 Configuring an ASM instance . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 126 ASM parameters. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 127 ASM menu commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 128 Where to go from here . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 129
70
ORACLE_ETSM.kml
Loads enterprise tablespace monitoring, which monitors PctUsed and SpaceLeft for all tablespaces, except for those tablespaces that you specifically excluded. Loads the application classes to provide enhanced archive monitoring. Loads the application classes to monitor a RAC environment.
ORACLE_ARCHIVE.kml ORACLE_RAC.kml
NOTE
If you want to load or preload a specific application class, the .km files in each .kml file are listed in Component files on page 20.
Chapter 3
71
Loading KMs
Loading KMs
Before you can begin using KMs that you have installed, you must first load them with a PATROL console. In this task, follow the instructions that apply to your console.
1 On the Common Tasks tab of the taskpad, click the Load Knowledge Modules icon to
display the wizard.
3 Select the computers on which you want to load KMs, and click Next.
The wizard displays a list of available .kml files for each computer you have selected. Each .kml file is listed once for each computer. The .km files available in this product are listed on page 20.
4 Select the KM and its computer that you want to load. 5 Click Next and click Finish.
PATROL loads the selected KMs on the selected computers.
2 Select the computers on which you want to load KMs, and click Next.
The Load KMs page displays a list of available .km and .kml files. If you selected more than one computer, the only .km and .kml files that are listed are the ones that have been installed on all of the selected computers. If a particular .km or .kml file was installed only on one computer, you must choose that computer by itself to load the file.
72 PATROL for Oracle User Guide
Loading KMs
The KMs available in this product are listed in Table 5 on page 71.
3 Select the .km or .kml files that you want to load. 4 Click Finish.
PATROL loads the selected KMs on the selected computers.
To load KMs from the PATROL Console for Microsoft Windows 1 From the PATROL console for Microsoft Windows menu bar, choose File => Load
KM.
The Load KMs dialog box displays a list of available .kml files. You can display .km files by choosing KM Files (*.km) from the list box. The KM files available in this product are listed in Table 5 on page 71.
To Load KMs from the PATROL Console for UNIX 1 From the PATROL console for UNIX menu bar, choose File => Load KM.
The Load KMs dialog box displays a list of available .kml files. You can display .km files by changing the filter. The KMs available in this product are listed in Table 5 on page 71.
Chapter 3
73
Figure 8
Before you can use PATROL for Oracle to monitor Oracle instances, you must configure PATROL for each instance. Go to Configuration overview on page 81 for information about different methods of configuring PATROL for Oracle.
The PATROL Agent must be running. You must be running a PATROL console with a developer connection. You must have permission to modify the configuration change file (.cfg).
For more information on the wpconfig or xpconfig utilities, see the PATROL Agent Reference.
To preload KMs using the wpconfig utility from the PATROL Console for Microsoft Windows 1 Choose Development => Agent Configuration... from the PATROL Agent menu.
The console starts the wpconfig utility, and the wpconfig window displays.
2 Click the AgentSetup folder in the left pane to display the variables in the
AgentSetup folder in the right pane.
3 Scroll down the variable list and double-click the preloadedKMs variable.
74
5 Leave REPLACE in the Type field. 6 Using the comma-separated format without spaces, type the .kml files that you
want to preload in the Value field. Refer to Table 5 on page 71 for a list of .kml files include with this product. For example, ORACLE.kml,ORACLEPARALLELSERVER.kml is a valid preloaded KMs list.
7 Click OK to close the Change Entry dialog box. 8 Click OK to close the Modify Variable dialog box. 9 Choose Apply Configuration from the Tools menu.
The Apply Configuration dialog box lists the PATROL Agent host name to which your that you are connected.
11 Save your changes to the configuration change file by click Save. 12 Close the wpconfig window. To preload KMs using the xpconfig utility from the PATROL Console for UNIX 1 Choose Development => Agent Configuration... from the PATROL Agent menu to
display the xpconfig window.
2 Highlight a PATROL Agent computer from the Host column in the left pane of the
xpconfig window.
Chapter 3
75
Removing KMs
The filter displays all the variables that begin with /AgentSetup/pre.
6 Click Change to display an Edit window. 7 Using the comma-separated format without spaces, type the .kml files that you
want to preload. Refer to Table 5 on page 71 for a list of .kml files include with this product. For example, ORACLE.kml, ORACLEPARALLELSERVER.kml is a valid preloaded KMs list.
8 Choose File => Exit to close the Edit window and save your changes. 9 Click OK to close the Edit Variable dialog box. 10 Click Apply Configuration.
The xpconfig utility sends the updated configuration to the selected PATROL Agent.
Removing KMs
If you want to remove a KM from being displayed in your PATROL console, you can unload its corresponding application classes (.km files) as described in Unloading KMs from a PATROL console on page 77. When you unload a .km file, its corresponding application class no longer appears in your console. Unloading a .km file does not delete the file from the lib\knowledge or psl directories on the PATROL console or PATROL Agent computer. If you want to delete a KM completely from your system, you must uninstall the KM. If a .km file was preloaded (whether as part of a .kml file or not), unloading it does not stop the PATROL Agent from collecting data for that .km file. However, if the .km file was not preloaded, then unloading it does stop the file from running and collecting data on the PATROL Agent. If you no longer want the PATROL Agent to run a KM that was preloaded, you can remove its corresponding .kml file or .km files from the PATROL Agent preload list as described in Removing KMs from the PATROL Agent preload list on page 79.
76
When you remove a KM from the PATROL Agent preload list, the agent does not run the KM unless you load it with a running console. KMs that are not preloaded do not run when no console is running.
1 On the Common Tasks tab of the taskpad, click the Unload Knowledge Modules icon.
PATROL Central Microsoft Windows Edition displays the wizard.
3 Select the computers where you want to unload .km files, and click Next.
The wizard displays a list of application class names (that correspond to .km file names) for each computer selected. Each application class name is listed once for each computer.
4 Select the .km and computer pair that you want to unload, and click Next. To
unload an entire KM, select all the .km files that make up the KM. See Component files on page 20 for a list of the .km files in each KM.
5 Click Finish.
The console removes the selected .km files from the current management profile.
2 Select the computers from which you want to unload .km files, and click Next.
The Load KMs page displays a list of .km files. Currently loaded files are highlighted in the list.
3 Cancel the selection of the .km files that you want to unload. To unload an entire
KM, cancel the selection of all the .km files that make up the KM. See Component files on page 20 for a list of the .km files in each KM.
4 Click Finish.
The console removes the .km files that you specified from the current management profile.
1 From the KM tab of the tree view, right-click the application class name that you
want to delete and choose Delete from the menu. A dialog box is displayed that asks if you want to delete the selected application.
3 Repeat Step 1 and Step 2 until you have deleted all of the application classes/.km
files associated with the KM that you want to delete.
4 From the console menu bar, choose File => Save KM to save your changes. To unload KMs from the PATROL Console for UNIX
Unloading a KM is also referred to as deleting a KM in the PATROL Console for UNIX. However, the files are actually unloaded from the consoles memory rather than deleted from your hard drive.
1 From the PATROL Main window, choose Attributes => Application Classes. 2 Click the name of the application class that you want to delete. 3 From the List of Application Classes menu bar, choose Edit => Delete.
78
The application class and its corresponding .km file are removed from your console session file when you save your changes.
4 Repeat Step 2 and Step 3 until you have deleted all of the application classes
associated with the KM that you want to delete.
5 From the List of Application Classes menu bar, choose File => Save KM to save
your changes.
The PATROL Agent must be running. You must be running a PATROL console in Developer mode. You must have permission to modify the configuration change file (.cfg).
To remove a KM from the preload list using the wpconfig utility from the PATROL Console for Microsoft Windows 1 Access the PATROL Agents pop-up menu and choose Development => Agent
Configuration...
The console starts the wpconfig utility, and the wpconfig window displays.
3 Scroll down the variable list and double-click the preloadedKMs variable. 4 In the Modify Variable dialog box, double-click the highlighted REPLACE line in
the Change Entries field.
5 In the Change Entry dialog box, leave REPLACE in the Type field. 6 In the Value field, delete the .kml file names that you want to remove from the
preload list. Refer to Table 5 on page 71 for a list of .kml files include with this product.
Chapter 3 Loading and configuring PATROL for Oracle 79
7 Click OK to close the Change Entry dialog box. 8 Click OK to close the Modify Variable dialog box. 9 Choose Apply Configuration from the Tools menu.
The Apply Configuration dialog box lists the PATROL Agent host name to which your that you are connected.
11 Save your changes to the configuration change file by clicking Save. 12 Close the wpconfig window. To remove a KM from the preload list using the xpconfig utility from the PATROL Console for UNIX 1 Access the PATROL Agents pop-up menu and choose Development => Agent
Configuration...
The console starts the xpconfig utility, and the xpconfig window displays.
2 Click to highlight a PATROL Agent computer from the Host column in the left
pane of the xpconfig window.
6 In the Edit Variable dialog box, click the Change button. 7 In the Edit window, delete the .kml file names that you want to remove from the
preload list. Refer to Table 5 on page 71 for a list of .kml files include with this product.
80
Configuration overview
8 Choose File => Exit to close the Edit window and save your changes. 9 Click OK on the Edit Variable dialog box to close the dialog box. 10 Click the Apply Configuration button.
The xpconfig utility sends the updated configuration to the selected PATROL Agent.
Configuration overview
When you configure PATROL for Oracle, you are entering the data that PATROL for Oracle needs to monitor the Oracle instance. The information that is entered includes:
I
the username and password of a privileged account to be used only for configuration the username, password, and default tablespace to create the PATROL account for Oracle on the instance and install the necessary tables and views the categories to use to monitor the instance
During configuration, PATROL for Oracle uses the privileged account to create the PATROL account for Oracle on the instance. PATROL then creates the tables and views, and grants the PATROL account the appropriate privileges. The privileged account is used only for account creation. PATROL then sets up the selected categories to start monitoring the instance, and starts the discovery process. Instance discovery creates the icons for the categories and starts the appropriate collector parameters to gather information for the applications.
Configuration requirements
Chapter 2, Installing and migrating PATROL for Oracle, on page 45 provides the requirements to install PATROL for Oracle into your environment. To configure PATROL for Oracle, you must fulfill certain PATROL for Oracle account requirements.
Chapter 3
81
Configuration requirements
PATROL requirements
To gather operating system space data in PATROL for Oracle, you must install the following .km files and ensure that the parameters listed below each of the following .km files remain active (they are by default):
I
NOTE
The DFColl and the DCMColl parameters are not FILESYSTEM.km parameters, but belong to the UNIX_COLLECTORS.km and DCM.km respectively.
The following parameters in PATROL for Oracle are affected if the above components and parameters are not activated and running:
I I I I I I I I I I I I I I I I I
ArchFreeSpace ArchFreeSpaceETF BGDumpLeft BGDumpLeftETF BGDumpUsed BGDumpUsedPct CannotExtend CoreDumpLeft CoreDumpLeftETF CoreDumpUsed CoreDumpUsedPct PctUsed SpaceLeft UserDumpLeft UserDumpLeftETF UserDumpUsed UserDumpUsedPct
82
Requirements checklist
Account requirements
To configure instances for monitoring, you must use a SYS account or an account with the DBA role granted to it.
Requirements checklist
Table 6 provides a checklist of the requirements that PATROL for Oracle needs to operate successfully. Table 6
Met?
TNS_ADMIN (specify the location of the tnsname.ora file if the file is not in the default location) The same versions of the PATROL console and the PATROL Agent are installed on all computers PATROL for your operating system components are loaded and running (used to monitor specific space information):
I I
SYS in the DBA group Non-SYS in the DBA group Non-SYS in a non-DBA group
Chapter 3
83
Table 7
Required information Is the monitored server local or remote? If remote, enter the service name Oracle instance name Oracle privileged account username and password (SYS or DBA) password PATROL account for Oracle username and password default tablespace to be used by PATROL temporary tablespace to be used by PATROL Oracle home directory for the instance Should this instance always be online (24x7)?
84
Configuration methods
Figure 9
Yes
No
Are unlisted instances local or remote (does the host have a PATROL Agent?)
Configuration methods
PATROL for Oracle allows you to use different methods of configuration:
I I I
PATROL console-based configuration (also called the Advanced Configuration) Automatic configuration by loading and using ORACLE_AUTO_CONFIG.kml Batch Configuration
Each method requires the same information, but differ in their methods of configuration. The PATROL console-based configuration allows you the most control and the most interactive configuration. The configuration is done in real-time, so any problems are discovered quickly. However, this means that you must enter the data for each instance interactively. This option is best for a small number of instances. The ORACLE_AUTO_CONFIG application represents an automatic configuration feature. When this application is loaded, discovery identifies all of the instances that it can, except for those instances that are explicitly excluded and those that are already configured, and applies the configuration specified in a file to all instances on the host.
Chapter 3
85
Batch configuration
The Batch Configuration allows you to create a text file that contains the configuration information for the Oracle instances. Once the file is completed and saved, the InstanceStatus parameter detects and runs the batch configuration text file during the next polling cycle. This allows for quick and unattended configuration, but any difficulties with configuration that arise require that you research the logs and revise the text file.
Use the same version of Oracle on both the local and the remote instance Use the highest version of Oracle on the local instance to communicate with the remote instance.
Batch configuration
Batch configuration uses a configuration file that you can create from within PATROL for Oracle, or outside of PATROL. Once this file has been created, the InstanceStatus parameter scans for the existence of the configuration file. Once it finds the file, it automatically starts the configuration process, using the information in the configuration file. The configuration file contains the settings for all the instances that you want to configure. When the file is activated by the InstanceStatus parameter in the ORACLE application, all the instances defined in the configuration file are configured at one time. You can create a file in two ways:
I I
use the Create Batch Template menu command in PATROL for Oracle create a text file in a text editor, using the sample_config.wri file as a template
<sid>|<keyword>|value|
There must be no spaces in the columns. The comment character (# ) can be used only in the following two circumstances:
I I
at the beginning or end of a row directly before the category value in the CATEGORIES keyword row
The keywords you can use are listed in the following table: Table 8
Keyword DB_USER DB_PASSWD PRIV_USER PRIV_PASSWD ALWAYS_ON_LINE MONITORING
DEF_TABLESPACE DEF_TMP_TABLESPACE
default tablespace for the PATROL account default TEMP tablespace for the PATROL account
Chapter 3
87
Table 8
Keyword
CATEGORIES
CAPACITY DB_LINKS ENVIRONMENT JOBS LOG MTS NETWORK PERFORMANCE PQO REPLICATION SGA SQLVIEWER TABLESPACES USERS
directory where the orauser_dbname.com file is located; normally located under the ORA_ROOT directory $ORACLE_HOME for the SID This keyword may be necessary for OpenVMS, Microsoft Windows, or remote instances.
CONNECT_STRING
Example files
This section provides examples for the following scenarios:
I I
88
ora816|PRIV_PASSWD|63DB00D4E96AE020| ora816|ALWAYS_ON_LINE|1| ora816|MONITORING|1| ora816|DEF_TABLESPACE|USERS| ora816|DEF_TMP_TABLESPACE|TEMP| ora816|CATEGORIES|AVAILABILITY COLLECTORS CAPACITY| #ora816|ORACLE_HOME|| #ora816|CONNECT_STRING|| #ora816|ORA_DB|| #for VMS only
NOTE
The $ORACLE_HOME is the local directory where the PATROL Agent is running.
Chapter 3
89
The PATROL Account for the operating system must have read and write permissions to the $PATROL_INSTALL/oracle/conf directory. The InstanceStatus collector parameter in the ORACLE application class must be set to active.
To create a batch configuration file from outside PATROL 1 From the $PATROL_INSTALL/oracle/conf directory, open the sample_config.wri file.
You can open the file in a word processing program, but the word processing program must allow you to save the file in a text only format.
2 Edit the SID and the keyword values to reflect the instances you want to configure. 3 Save the file as ora_batch_conf<port_number>.txt, in a text only format.
The InstanceStatus collector parameter searches for this file, and when found, starts processing the file to configure the instances on that PATROL agent port. The filename is changed to ora_batch_conf<port_number>.configuring during processing, and then changed to ora_batch_conf<port_number>.done when processing is completed. If there is an error during processing, the filename is changed to ora_batch_conf<port_number>.err. If configuring an instance takes longer than 30 minutes, PATROL presumes that the process is hung, and another SID is processed. Configuring an instance should take less than 30 minutes.
To create a batch configuration file from the PATROL console 1 Choose Configuration => Create Batch Template from the ORACLE menu to display
the Batch Config Template dialog box.
2 Enter the following information for the servers you want to configure, and click
Apply.
Table 9
Field SID DB User
90
Table 9
Field
DB Password
the password to use for the PATROL database account for confirmation either the SYS account for the instance, or an account with the DBA role The SYS account is used only for configuration; it is not referenced or used by PATROL after the configuration has successfully completed.
Privileged User Password Confirm Privileged Password Default Tablespace Temporary Tablespace
the password to use for the privileged account the password to use for the privileged account for confirmation the tablespace to use for the PATROL database account. The default is SYSTEM the temporary tablespace you want to use for the PATROL database account. The default is TEMP
3 You must click Apply to store the information to the ora_conf<port_number>.tpl file. 4 When you are finished, click Exit. 5 Open the ora_conf<port_number>.tpl file with a text editor. The information for each
SID is in one section. Edit the section to specify the following information:
Keyword ORA_DB (for OpenVMS only) ORACLE_HOME (for OpenVMS, Windows, or a remote instance) CONNECT_STRING Value directory where the orauser_<dbname>.com file is located, normally the ORA_ROOT directory $ORACLE_HOME for the SID service name or connect string for remote databases
Automatic configuration
If configuring an instance takes longer than 30 minutes, PATROL presumes that the process is hung, and another SID is processed. Configuring an instance should take less than 30 minutes.
Automatic configuration
The ORACLE_AUTO_CONFIG function automatically applies a predefined configuration to all instances on a host. Before using the ORACLE_AUTO_CONFIG function, you must have created an OS authenticated user. You can perform that procedure using sqlplus.
To create a PATROL database user via sqlplus 1 Open a command line and navigate to the AutoDBConfig directory.
$ cd ${PATROL_HOME}/oracle/AutoDBConfig
3 When prompted, enter a username. 4 When prompted, enter default and temporary tablespaces.
The user is created. Auto config supports only a user that is validated by the operating system (OS). Typically, such a user has an Oracle account named after the OS user with ops$ prepended. For example, to create an OS-validated account for John Smith, you would create one called ops$jsmith.
5 When John Smith logs into the system at the OS level, he enters jsmith and his OS
password to log in. He should then be able to connect to the Oracle database by entering the following:
92
Configure parameter performs the following tasks: identifies all of the instances it can and creates a list removes from the list any instances that you explicitly excluded from monitoring removes from the list any instances that you already configured verifies the values entered for the CATEGORIES and CUSTOMLISTENERCONFIGLOCS variables and goes into an alarm if it cannot verify these values applies the configuration settings found in the default_auto_conf_agentPortNumber.txt file to all instances remaining on the list
Activate parameter performs the following tasks: attempts to connect to each instance that is set up by the Configure parameter but is not yet active (If it fails to connect, see Using sqlplus to create PATROL database user on page 92.) once connection is successful, prepares the instance and the Oracle KM for monitoring by installing the required p$objects. The default_auto_config.txt file is similar to the batch configuration file, except that it applies the same configuration settings to all instances that are not already configured or excluded on a host. Once the configuration is complete, the instances are not monitored until PATROL for Oracle successfully connects to a specified user and the objects and privileges it requires are in place and verified. If you have not created a user through sqlplus, the Activate parameter fails to connect to the instance. Once the user has been created, the PATROL for Oracle user creates the p$objects. See Using sqlplus to create PATROL database user on page 92.
Chapter 3
93
NOTE
The default_auto_config.txt file also works with the ORACLE_ETSM applications to define the tablespaces for the ETSM applications. However, you can ignore these settings if you do not want to use or have not loaded the ORACLE_ETSM.kml component. For more information, see Using the ETSM applications to monitor tablespaces on page 188.
The auto configuration process configures the instances discovered on the local host, except for those instances that are already configured or specifically excluded. Each entry at the host level should have 2 columns, and each column is separated by a pipe, as in the following example: MONITORING|1|
Separate values with a space. Each entry at the instance level should have 3 columns (instance, keyword, and value) and each column is separated by a pipe, as in the following example: Oracle1|UNDO_TBS|tbs1 tbs2 tbs3|
1 Using these guidelines, enter the correct values for each variable. 2 Save the default_auto_config.txt file. 3 Rename the file to default_auto_conf_agentPortNumber.txt.
94
NOTE
The variables such as Default_TBS, Large_TBS, etc., override the logic in discovery that determines which containers they would go into by default. If you do not define the ETSM tablespace types in the default_auto_config.txt file, tablespaces identified as undo, rollback, read-only, or temp are put into those specialized containers first, and then the remaining tablespaces are placed into the regular container. For more information, see Using the ETSM applications to monitor tablespaces on page 188.
Table 10
Variable
ALWAYS_ON_LINE|value|
MONITORING|value|
CATEGORIES|value|
application classes that you want the instances to monitor By default, the AVAILABILITY and COLLECTORS application classes are monitored.
EXCLUDE_SID|value|
name of the instances (SID) that you want to exclude from the automatic configuration process For example: EXCLUDE_SID|Inst1 Inst2|
Chapter 3
95
Table 10
Variable
CUSTOMLISTENERCONFIGLOCS|value|
LARGE_TABLESPACE_SIZE|value|
number of bytes that a tablespace must exceed before it is defined as large This variable defines the size of large tablespaces for all instances.
VERY_LARGE_TABLESPACE_SIZE|value| number of bytes that a tablespace must exceed before it is defined as a very large tablespace This variable defines the size of very large tablespaces for all instances. inst_name|DEFAULT_TBS|value| inst_name|LARGE_TBS|value| inst_name|VERY_LARGE_TBS|value| inst_name|READONLY_TBS|value| inst_name|ROLLBACK_TBS|value| inst_name|TEMPORARY_TBS|value| inst_name|UNDO_TBS|value| names of tablespaces that you want to define as the default or REGULAR tablespaces names of tablespaces that you want to define as large tablespaces names of tablespaces that you want to define as very large tablespaces names of tablespaces that you want to define as readonly tablespaces names of tablespaces that you want to define as rollback tablespaces names of tablespaces that you want to define as temporary tablespaces names of tablespaces that you want to define as undo tablespaces
96
remove the instances you want to modify re-add them so that the Configure parameter detects them as new run the ORACreateUser.sql again (See Using sqlplus to create PATROL database user on page 92)
You can use the Modify command to modify individual instances that were configured via auto configuration, but you must select Enable OS Authentication in the Modify Instance dialog box. Use the following steps from the Modify Instance dialog box: 1. In the Username field, enter the user name as OPS$<os_authenticated_username>. 2. Leave the Password field and the Confirm Password field blank. 3. In the Default field, enter the default tablespace name. 4. In the Temporary field, enter the default tablespace name. 5. Select the Enable OS Authentication check box. 6. Click Apply.
Configuration tasks
Page 98 99
Chapter 3
97
Instance discovery
Table 11
Task
Configuration tasks
Page 103 104 105 108 109 111 112
Configuring instances in restricted mode for monitoring Enabling and disabling instance monitoring Modifying instance configuration Modifying category monitoring for an instance Viewing instance configuration settings Removing instances Configuring failover monitoring
Instance discovery
All Oracle instances on Microsoft Windows computers are automatically discovered from the registry if you have installed and loaded the PATROL KM for Windows Knowledge Module. If the instance is not in the registry, you must add the information for the instance to the registry using the task Adding instances on page 98. On UNIX, all instances are automatically discovered from either the oratab file, or from the init.ora file. If an instance is not discovered, add the instance using the task Adding instances on page 98. On OpenVMS, you must add all instances using the task Adding instances on page 98 before any instances can be discovered. If an instance is a remote instance, you must add the instance before configuring the instance.
Adding instances
Use this task to add Oracle instances that do not appear in the configuration list. You can also use this function to add a remote instance. Remote instances are instances that PATROL for Oracle connects to Oracle Net. The SQL*Net connect string or Service name is defined in the tnsnames.ora file.
To add instances 1 From the ORACLE menu, choose Configuration => Advanced => Instance Add. 2 Enter the following information into the Add Instances dialog box:
98
For a local instance: I name of the instance on the host I $ORACLE_HOME directory on the local server running a PATROL Agent I For a remote instance: I name of the instance I $ORACLE_HOME directory on the local server running a PATROL Agent I the service name or the connect string for the remote instance (the alias name for the instance in the tnsnames.ora file)
3 Click Apply. 4 Click Exit to exit this function. Where to go from here
Once you have added the instance to the configuration list, you must configure PATROL monitoring for the instance. Go to Configuring instances for monitoring on page 99.
If an instance on the server does not appear in the Configuration Instances box, you must add instances as described in Adding instances on page 98. If you have used Table 7 on page 84 to organize your information, have that table available. Verify that the PATROL Agent configuration variable AccessControlList has the C (configure) privilege assigned. If not, add the C privilege by using pconfig.
Chapter 3
99
To configure instances for monitoring 1 From the ORACLE menu, choose Configuration => Advanced => Instance Configure.
The Configure Instances dialog box displays all instances that are available for configuration. These instances include all instances that PATROL for Oracle has discovered and any instances that you may have added by using the Instance Add menu command. The Service is the alias defined in the tnsnames.ora file used for connecting to a remote instance. The service name generally uses the syntax Remote Oracle SID.remote hostname. For example, if the remote hostname is chicago, and the remote Oracle SID is inventory, the service name uses the connect string inventory.chicago. If the Service is listed as <NIL>, the instance is a local instance.
Select the Same configuration check box to configure multiple instances with the same database account and options. If any of the selected tablespaces cannot support the SYS or DBA username and password, the PATROL user and password, or the default and temporary tablespace, that instance is not configured. If you select many instances but do not select this check box, you must enter the configuration information for each instance one at a time. Select the List of tablespaces check box to list the tablespaces in the instance in a text box for reference. If you selected multiple instances to configure and did not select the Same configuration check box, the tablespaces for each instance that is being configured is listed one at a time. If you selected multiple instances to configure and selected Same configuration, the tablespaces from only the first selected instance are listed.
3 Click Accept.
The Privileged Account Information dialog box appears.
4 Enter the name and the password for the privileged account to use to configure the
Oracle account for PATROL. PATROL uses this account to create the PATROL account and install the PATROL database objects. You can use either the SYS account for the instance or an account with the DBA role. The following table summarizes information about each account:
100
SYS account full functionality for PATROL for Oracle grant select only on certain SYS-owned objects that PATROL interacts with
DBA account full functionality except for the Buffer Cache Report grant select any given to the PATROL account for Oracle
5 Click Apply.
The account username and password are verified, and messages inform you of any problems or errors.
the user name and password for the PATROL account the default tablespace for the PATROL account the temporary tablespace for the PATROL account
NOTE
I
You must surround the entry with double-quotation marks. In addition, do not use a reserved Oracle user such as SYS or SYSTEM as the PATROL account. The PATROL account should be used exclusively for PATROL. When specifying the default tablespace and temporary tablespace, be sure to specify an existing tablespace.
If you select Enable Instance Monitoring, the instance is discovered and monitored by PATROL. If you do not select this check box, the instance is configured and discovered, but you must explicitly enable monitoring on the instance. If you select Always On Line, PATROL goes into an alarm state if the instance goes offline for any reason. If you select Enable OS Authentication, the instance is modified. This instance was originally configured by using automatic configuration feature. The Enable OS Authentication option authenticates your PATROL account.
101
If you select Enable ASM Storage, the ASM storage support is enabled.
NOTE
If you click Apply after selecting the Enable ASM Storage option, ASM Instance Information dialog box will appear, and you need to enter the following details regarding the ASM instance:
I I I
9 Select only the categories that you want to monitor the instance. To monitor all
categories, select Select All Categories, or you can select individual categories from the list. AVAILABILITY and COLLECTORS are the default categories for all instances. These categories are always enabled and do not appear in the list.
10 Click Apply.
PATROL logs onto each instance, using the privileged account user name and password, verifies the tablespaces that you have entered, and reports the results in the Messages section of the dialog box. The PATROL account is created, and the PATROL objects are installed on each instance. After an instance is configured, it no longer appears in the configuration list as available for configuration.
11 Click Exit to close the Configure Instances Database Account dialog box. 12 Click Exit to exit this function.
If an instance has been enabled for monitoring, the instance is discovered and its icon appears in the ORACLE container in the next polling cycle.
NOTE
Until you have properly exited all configuration dialog boxes, the instance does not appear and discovery does not start.
If an error occurs
If the Oracle account that you want to use for PATROL already exists (perhaps from an earlier installation), PATROL updates the account and installs the new database objects on it.
102
If an error occurs during configuration, and the Oracle account for PATROL already existed, PATROL deletes only the new database objects. PATROL does not delete the Oracle account. If an error occurs during configuration, and the Oracle account for PATROL did not exist, PATROL performs a drop cascade on the new account and deletes the database objects and the new account.
the InstanceStatus parameter is in OK state for that instance the ConnectDB parameter goes into an ALARM state OracleStatus parameter will be in OK state, since InstanceStatus is in OK state
NOTE
Enabling monitoring for instances in restricted mode, establishes the SQL session and collectors can collect data.
To configure instances in restricted mode for monitoring 1 Choose Development => Agent Configuration from the PATROL Agent menu.
The console starts the wpconfig utility, and the wpconfig window is displayed.
2 Click the AgentSetup folder in the left pane to display the variables in the
AgentSetup folder in the right pane.
103
5 Leave REPLACE in the Type field. 6 Type YES in the Value field. 7 Click OK to close the Change Entry dialog box. 8 Click OK to close the Modify Variable dialog box. 9 Choose Apply Configuration from the Tools menu.
The Apply Configuration dialog box lists the PATROL Agent host name to which you are connected.
10 Click OK to apply your updated configuration to the PATROL Agent. 11 Save your changes to the configuration change file by clicking Save. 12 Close the wpconfig window.
1 From the ORACLE menu, choose Configuration => Advanced => Monitor
Enable/Disable.
The left side of the Enable/Disable Instance Monitoring dialog box lists all instances that have been configured and are being monitored. The right side lists all instances that have been configured but are not being monitored.
To enable monitoring for an instance, select an instance or instances from the Instances Being Disabled list box and click Accept.
104
The instance name is moved from the right side to the left side and is now enabled for monitoring.
I
To disable monitoring for an instance, select an instance or instances from the Instances Being Enabled list box and click Accept. The instance name is moved from the left side to the right side and is no longer being monitored.
NOTE
After instances are configured using the AUTO_CONFIG feature, you cannot modify the configuration by changing the default_auto_config.txt file. The Configure parameter only applies the auto default configuration settings to new instances. Therefore, if you change the default_auto_config.txt file settings, you must remove the instances you want to modify and re-add them so that the Configure parameter detects them as new. You can use the Instance Modify command to modify individual instances that were configured via auto configuration, but you must select Enable OS Authentication in the Modify Instance dialog box.
105
Table 12
Change options no change (the modify configuration task is run but no changes are made to the account information)
password changed
PATROL performs an Oracle ALTER USER command on the PATROL account to change the password. Nothing else is changed. PATROL creates a new set of database objects on the new tablespace, and any new monitoring or categories settings are updated. The old objects on the old tablespace still exist, but they are not accessible to the PATROL account.
username changed
PATROL creates a new PATROL account for the new username, and a new set of database objects are created on the default tablespace. The old PATROL account still exists, with all its database objects intact.
To modify instances 1 From the ORACLE menu, choose Configuration => Advanced => Instance Modify.
The Modify Instances dialog box displays all configured instances.
2 Select the instance that you want to modify and click Accept. 3 In the Privileged Account Information dialog box, enter the name and the
password for the privileged account to use to access the Oracle account for PATROL and click Apply. PATROL uses this account to modify the PATROL account and the PATROL database objects. You can use either the SYS account for the instance or a DBA account. The account username and password are verified, and messages inform you of any problems or errors.
106
the user name and password for the PATROL account the default tablespace for the PATROL account the temporary tablespace for the PATROL account
If you select Enable Instance Monitoring, the instance is discovered and monitored by PATROL. If you do not select this check box, the instance is configured and discovered, but you must explicitly enable monitoring on the instance. If you select Always On Line, PATROL goes into an alarm state if the instance goes offline for any reason. If you select Enable OS Authentication, the instance is modified. This instance was originally configured by using automatic configuration feature. The Enable OS Authentication option authenticates your PATROL account. If you select Enable ASM Storage, the ASM storage support is enabled.
NOTE
If you click Apply after selecting the Enable ASM Storage option, ASM Instance Information dialog box will appear, and you need to enter the following details regarding the ASM instance:
I I I
7 Select the categories that you want monitoring the instance. To enable all
categories, select Select All Categories, or you can select individual categories from the list. AVAILABILITY and COLLECTORS are the default categories for all instances. These categories are always enabled, and they do not appear on the list.
8 Click Apply.
Depending on what you have changed, PATROL modifies the account or objects.
9 Click Exit to close the Database Account dialog box. 10 Click Exit to exit this function.
107
After you have modified the instance, the instance is automatically discovered or its icons is deleted according to their monitoring status.
To modify category monitoring for an instance 1 From the INSTANCE menu for the instance whose category monitoring you want
to change, choose KM Admin => Monitor Settings Modify. The Instance dialog box displays the categories that are currently monitoring the instance. The left side lists all categories that are currently monitoring the instance. The right side lists all categories that are not enabled for monitoring the instance.
If you select Enable Instance Monitoring, the instance is monitored by PATROL. If you do not select this check box, the instance is not monitored. If you select Always On Line, PATROL goes into an alarm state if the instance goes offline for any reason. If you select Enable OS Authentication, the instance is modified. This instance was originally configured by using automatic configuration feature. The Enable OS Authentication option authenticates your PATROL account. If you select Enable ASM Storage, the ASM storage support is enabled.
108
NOTE
If you click Apply after selecting the Enable ASM Storage option, ASM Instance Information dialog box will appear, and you need to enter the following details regarding the ASM instance:
I I I
3 Select the categories on the right side that you want enable to monitor the instance,
and click Apply. The categories are moved from the right side (not enabled) to the left side (enabled).
4 Select any categories on the left side that you want to disable from monitoring the
instance, and click Apply. The categories are moved from the left side (enabled) to the right side (not enabled). The collector parameters for the category collect information and populate the consumer parameters during the next polling cycle. The category applications that you selected appear in the INSTANCE container. It can take two polling cycles for the category parameters to become active. If you disable a category, the icon for the disabled category is deleted from the INSTANCE container and the collector parameters for that category are disabled as well.
109
To view the configuration for an instance or instances 1 From the ORACLE menu, choose Configuration => Advanced => Monitor Settings
List from the ORACLE menu.
The configured instances are displayed in the List Monitoring Settings of Instances dialog box.
2 Select the instances whose configuration information you want to see, or select the
List All Instances check box.
Response Window displays the report information in a response box. You cannot
Text Window displays the report information in a task output window. You can
NOTE
If a report is longer than 40 lines, it is automatically displayed in a text window.
4 Click Apply.
The report appears in a task output window or in a response box.
5 Click Close to close the List Monitoring Settings of Instances dialog box. 6 Click Close to exit the function. To view the configuration for one instance 1 Select an INSTANCE application instance for which you want information and
choose Reports => KM Configuration from the INSTANCE menu for the selected instance. The configuration settings are displayed in a response box.
2 Click Close to close the response box. 3 Click Close to exit the function.
110
Removing instances
Removing instances
Use this task to delete instances from the configuration listing or remove instances from PATROL. Deleting a configured instance makes the instance available for configuration. Removing an instance removes the Oracle-related agent configuration variables and drops the P$-related objects within the database owned by the PATROL account. It does not drop the PATROL account.
To remove an instance 1 From the ORACLE menu, choose Configuration => Advanced => Instance Removal.
The Remove Instances dialog box displays the configured instances that are available for removal. Any instances that were added using the Add Instance function are also listed.
2 Select the instance or instances you want to remove and click Accept. 3 Enter the password for the privileged account that was used to create the PATROL
account, and click Apply. The instances are removed according to the following rules:
I
If the instance was added by using the Add Instance menu command, the instance is discarded. You must add the instance again to have it available for configuration. If the instance was configured, it is removed from the monitored instances list. The instance remains in the list of instances that are available for configuration.
111
Failover monitoring
Failover monitoring
You can use the failover monitoring option provided by the ORACLE application and the advanced failover monitoring option provided by the ORACLE_FAILOVER application to monitor Oracle instances in a failover or cluster environment. For a description of how PATROL for Oracle monitors failover and clustering environments, see Failover and cluster monitoring scenarios on page 38. To use failover monitoring, you must establish the PATROL link between the primary instance and the failover instance. This is done by using the Failover Monitoring => Configure command from the ORACLE_INSTANCE menu. Because the PATROL Agent is not running in the cluster-specific mode, the PATROL history for each instance is interrupted. Configuring failover monitoring on page 112 describes how to set up PATROL to monitor the failover instance.
A PATROL Agent, Oracle, and PATROL for Oracle are running on the primary instance. You should use the same user name and password for PATROL on the failover instance and the primary instance. You are connected to and monitoring the primary instance from PATROL. A PATROL Agent and PATROL for Oracle are installed on the failover instance. The PATROL Agent is running on the failover instance when you set up failover monitoring on the primary instance.
112
NOTE
The ORACLE_FAILOVER application
I I
To configure a failover instance 1 From the ORACLE_INSTANCE application menu for the primary instance, choose
KM Admin => Failover Monitoring => Configure.
the host name of the failover instance the PATROL Agent port number for the failover instance the Oracle SID of the failover instance the Oracle home directory of the failover instance
3 Click Accept.
The Configure [instance] for Failover Monitoring dialog box is displayed.
NOTE
This dialog box appears only the first time you configure a failover instance.
A link is established, and all PATROL for Oracle configuration information is transferred to the failover computer.
113
5 Verify that the following pconfig variables have been successfully transferred to
the failover computer:
I I I
all configuration settings, including category and 24x7 monitoring all exclusions for database objects, users, and tablespaces all users selected for monitoring
NOTE
Advanced failover monitoring is available in UNIX environments only.
You can implement advanced failover monitoring with one of the following parameters:
I
FOBGPMonitor parameter (the default option requiring no setup). See Advanced failover monitoring with the FOBGPMonitor parameter on page 114. FOMonitor parameter (an option requiring setup). See Advanced failover monitoring with the FOMonitor parameter on page 116.
NOTE
Make sure that only one of these parameters is running at a time. The FOMonitor parameter is inactive by default, whereas the FOBGPMonitor parameter is active by default. To use the FOMonitor parameter, deactivate FOBGPMonitor first and then activate the FOMonitor parameter.
Advanced failover monitoring with the FOBGPMonitor parameter 1 In pre-discovery, the following conditions must be true:
I
PATROL for Oracle is installed There are instances configured for failover by using the
Instance => KM Admin => Failover Monitoring => Configure menu command
114
3 From the Oracle icon menu of the failover host, choose KM Commands => KM
Admin => Configuration => Advanced => Monitor Enable/Disable command, select
A by searching for the dbw* background processes, and then B by parsing instance names from those process names. 5 Using this process list, the parameter determines whether the instance under
consideration is running on the current host:
I
If the instance is not running on the current host, and the instance was running during the previous poll cycle, the following actions occur: A. Monitoring for that instance is disabled. B. The parameter goes into a warning state until its next poll cycle. C. If the instance is still not running during the next poll cycle, the parameter is reset to the OK state.
NOTE
If you want to be notified of such an occurrence, you can set up notifications.
If the instance is running, but was not running during the previous poll cycle, the following actions occur: A. Monitoring for that instance is enabled B. The parameter goes into a warning state for one poll cycle before being reset.
NOTE
If you want to be notified of such an occurrence, you can set up notifications.
These events occur in pairs: one indicating the instance going down on one host and another indicating the instance coming up on the other host. One or the other showing up alone indicates a problem.
Chapter 3 Loading and configuring PATROL for Oracle 115
To configure advanced failover monitoring with the FOMonitor parameter 1 Load ORACLE_FAILOVER.kml on the primary computer. 2 Deactivate the FOBGPMonitor parameter under the AuxFailoverMonitor icon. 3 Activate the FOMonitor parameter. 4 From the host name of the primary instance, right-click and choose Development
=> Agent Configuration.
7 In the Value field, enter failover instance names and their respective directories in
the format SID:directory_name, where SID denotes the Oracle instance identifier and directory_name denotes a directory that is visible only on the host on which the Oracle instance (SID) is running. For example, for an Oracle instance whose SID is Prod01 and an application specific disk /app/prod01/data that is part of the failover package containing the Oracle instance, enter the following value in the Value field:
Prod01:/app/prod01/data
PATROL Agent PATROL KM for OS component PATROL for Oracle PATROL KM for Oracle Parallel Server
NOTE
For a basic failover scenario, install the PATROL KM for OPS on both the primary node and the secondary node in the same cluster. Both Nodes must use the same Oracle account for PATROL and must be running a local Oracle database instance.
117
Figure 10 on page 118 shows where to put each component if the PATROL Agent in its normal state is used.
I
Configure PATROL for Oracle on each node in the cluster, including the one you want to act as the failover support computer. Ensure you use the same database account as the primary node. Configure the PATROL KM for OPS on any member of the cluster by installing the PATROL KM for OPS objects onto the server.
See the PATROL Knowledge Module for Oracle Parallel Server User Guide for more information about this component.
I
On the server whose failover operation you want to monitor, perform the Failover
Monitoring=>Configure command from the ORACLE_INSTANCE menu.
In this scenario, Instance 1, 2, and 3 are all members of the same cluster. In addition, Instance 1 fails over to Instance 3. Figure 10 Oracle Parallel Server configuration: basic failover
Instance 1, Instance 2, and Instance 3 are all members of an OPS cluster. In addition, Instance 1 fails over to Instance 3 if necessary.
Node 1
Instance 1
Node 2
Instance2
Node 3
Instance 3
Instance 1 Configure the instance using Instance Configure command from the ORACLE menu. Install the OPS objects using the PATROL Admin => Install PATROL DB Objects from the ORACLEPARALLELSERVER cluster menu. Configure the failover to Instance 3 by using the Failover Monitoring=>Configure command from the ORACLE_INSTANCE menu.
Database
Instance 2 Configure Instance 2 and 3 using Instance Configure command from the ORACLE menu.
118
To reset the global channel for all instances 1 From the ORACLE menu, choose Global Channel Reset.
The Global Channels dialog box lists all global channels for all instances. The following information for each global channel is displayed:
Item Global Channel Name Status File/PID Description name given to the global channel when it was created or when it was changed from a local channel to a global channel current status of the global channel, either open or closed either the file name that is opened or the process ID of the external operating system process to which the channel is attached type of the channel, either PIPE or FILE whether the channel is SHARED or NOT SHARED the read PID of the PSL process waiting to read from the channel, if one exists the name of the PSL waiting to read from the channel: NONE if no process is waiting, or UNAVAILABLE if a process is waiting but the name is not available
119
Description the write PID of the PSL process waiting to write to the channel, if one exists the name of the PSL waiting to write to the channel: NONE if no process is waiting, or UNAVAILABLE if a process is waiting but the name is not available
3 Click Cancel to exit this function. To reset the global channel for a specific instance 1 From the INSTANCE menu, choose KM Admin => Global Channel Reset.
The Global Channels dialog box lists all open global channels for the selected instance.
For the batch configuration log file, see the $PATROL_HOME/../oracle/conf file. For the automatic configuration log file, see the $PATROL_HOME/../oracle/log file.
To set general debugging options 1 From the ORACLE menu, choose Debug.
The Set Debug Mode dialog box displays the debugging options.
120
2 Select the Instance Discovery check box if you want debugging information for
discovering the instance.
3 Select the Instance Configuration check box if you want debugging information for
configuring an instance or modifying an instances configuration.
4 Click Accept.
The options are applied. When the instance is discovered or configured, the debugging messages appear in a task output window.
2 To specify the directory where the file containing debug information should be
stored, enter the following command in the system output window: On Windows:
%PSL pconfig("REPLACE", "/OracleConfig/dir_location", "<Drive>:\\<Directory>");
NOTE
I
The debug information is written to the specified location with the file naming convention of HOST_NAME_InstanceStatus. To disable this feature, enter the following command in the system output window: %PSL pconfig("REPLACE", "/OracleConfig/FILE_DEBUG", 0);
121
To set debugging options for an instance 1 From the INSTANCE menu, choose KM Admin => Debug.
The Set Debug Mode dialog box displays the current debugging settings for the instance. You can set options for the following items:
I I
menu commands used on the instance collector parameters for the instance
2 Select Yes to select the debugging option for menu commands. NOTE
If you select Yes, the option is set for all menu items. Every menu item that can print a debugging message does so.
If debug for a parameter is on, every time the collector parameter collects information, the debug information for that parameter is displayed in a task output window.
4 To apply the debugging options that you selected, click Accept. 5 To exit the function, click Exit. To debug the graphical user interface
To debug the graphical user interface, right-click the ORACLE application and choose KM Commands => Debug => Instance Configuration for GUI.
122
To debug a channel
To debug a channel, type the following command in the system output window:
%PSL set(/ORACLE_INSTANCE/<instance_name>/debug_chan, 1);
To deinstall the PATROL objects 1 From the INSTANCE menu, choose KM Admin => PATROL DB Object Deinstall. 2 Enter the privileged user name and password that was used to create the PATROL
account and install the PATROL objects (SYS or DBA), and click Apply. The PATROL DB objects are uninstalled. All messages appear in a text window.
To reinstall the PATROL Database objects 1 From the INSTANCE menu, choose KM Admin => PATROL DB Object Install. 2 Enter the privileged user name and password that was used to create the PATROL
account and install the PATROL objects (SYS or DBA), and click Apply. After you install the objects, parameter monitoring resumes. All parameter history is retained.
123
Deactivating parameters
Deactivating parameters
To reduce the impact on your system resources and enhance performance, you can deactivate parameters that you do not want to see. Deactivating a consumer parameter only stops that parameter from accepting the data sent to it by the collector that sets its value. A deactivated consumer parameter does not appear in the console and does not go into an alarm or warning state. However, the collector that sets the deactivated consumer parameter sends an error message to the System Output Window each time that collector attempts to send information to the deactivated consumer parameter. Some collector parameters also trigger unwanted recovery actions when they cannot find a deactivated consumer. Before deactivating a consumer or collector parameter, see the Collector-consumer dependencies in the PATROL for Oracle online Help To deactivate parameters and parameter alarms across an enterprise, see the PATROL for Oracle User Guide and the PATROL Configuration Manager User Guide, and see Using PATROL Configuration Manager to manage parameters on page 144 for information about how to use the PATROL Configuration Manager to manage parameters in PATROL for Oracle.
To deactivate parameters with the PATROL Console for Microsoft Windows 1 From the KM tab in the left or tree view, go to the application class that contains
the parameter you want to deactivate and choose Global => Parameters.
2 Right-click the parameter that you want to deactivate, and choose Properties from
the pop-up menu.
3 Deselect Active. To deactivate parameters with the PATROL Console for UNIX 1 Choose Attributes => Application Classes from the menu bar. 2 Select the application class, and choose Attributes => Parameters. 3 Select one or more parameters, and choose Options => Deactivate.
124
ASM instance online disk group for each monitored ASM instance parameters related to disk group space opened or cached online disks under each disk group parameters related to disk space
NOTE
Oracle 10g is not supported for HP OpenVMS, so the ASM-monitoring features of PATROL for Oracle do not support OpenVMS. The ASM-monitoring features of PATROL for Oracle are supported on Oracle 10.2 and later.
If an instance is using ASM for storing its data files or archive log files, then during configuration you must enable the Enable ASM Storage check box. This flag is also available during instance modification. For ASM instance, you must configure the instance from the ORACLE_ASM icon. Figure 11 on page 126 displays the nested hierarchy for ASM:
125
Figure 11
NOTE
Auto-configuration and batch configuration are not supported in the ASM-monitoring features of PATROL for Oracle.
To configure an ASM instance 1 Choose the ORACLE_ASM => ASM Instance Configure menu command from the
host. The ASM Instance Configure dialog box appears.
2 In the ASM Instance name field, enter the ASM instance name, prefix the instance
name with +.
126
ASM parameters
3 In the ASM Home field, enter the ASM home directory. 4 In the Username field, keep the default user name as SYS. 5 In the Password field, type the password. 6 Click Apply. 7 Click Exit. To remove an ASM instance 1 Select ORACLE_ASM => ASM Instance Remove menu command from the host.
The ASM Instance Remove dialog box appears.
2 In the ASM Instance name field, enter the ASM instance name you want to remove,
prefix the instance name with +.
3 In the Username field, keep the default user name as SYS. 4 In the Password field, type the password. 5 Click Apply. 6 Click Exit.
The ASM instance will be removed from monitoring. PATROL for Oracle will remove the ASM Instance and its child objects disk groups, disk group parameters, disk, and disk parameters from monitoring. It will also delete the respective pconfig variables.
ASM parameters
Table 15 lists the parameters that PATROL for Oracle uses to monitor the ASM. Table 15
FreeMb FreeMbPct UsedMb UsedMbPct UsableFileMb
127
Table 15
Table 16 lists the parameters that the ASM-monitoring feature of PATROL for Oracle supports: Table 16
Parameter ArchFreeSpace CannotExtend ArchFreeSpace ArchFreeSpaceOptional
Menu command ORACLE_ASM => ASM Instance Configure ORACLE_ASM => ASM Instance Remove ORACLE_ASM => Debug => Instance Configuration => ON ORACLE_ASM => Debug => Instance Configuration => OFF ORACLE_ASM => Debug => ASM Discovery => ON ORACLE_ASM => Debug => ASM Discovery => OFF Oracle_ASM_Instance => Debug => CollASM => ON Oracle_ASM_Instance => Debug => CollASM => OFF
128
how to monitor Oracle options using the Chapter 8, Monitoring Oracle options on page PATROL for Oracle 271 how to monitor the the RAC environment Chapter 9, Monitoring the RAC environment on page 293
how to access the KM menu commands, Appendix A, Accessing menu commands, InfoBoxes, and online Help InfoBoxes, and online Help on page 313 definitions and default values for parameters PATROL for Oracle online Help
PATROL Agent configuration variables Appendix B, PATROL database objects on page 317 instructions for installing and using PATROL for Oracle with firewalls Appendix C, Firewall and port-forwarding considerations on page 353
129
130
Chapter
This chapter presents the following topics: Overview of PATROL Configuration Manager . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Installation and setup requirements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Setting the archive option to save a backup . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Moving rule sets to the PATROL Configuration Manager directory . . . . . . . . . ConfigUpdate parameter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Using the ConfigUpdate parameter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Understanding how the ConfigUpdate parameter operates . . . . . . . . . . . . . . . . Configuring PATROL for Oracle instances . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Using PATROL Configuration Manager to modify or remove an instance . . . . . . . Configuration data not stored in pconfig variable . . . . . . . . . . . . . . . . . . . . . . . . . Configuration variables that are for internal use only. . . . . . . . . . . . . . . . . . . . . . Application classes with status changes set in code. . . . . . . . . . . . . . . . . . . . . . . . Modifying or removing a configured instance . . . . . . . . . . . . . . . . . . . . . . . . . . . . Modifying the blackout configuration variable . . . . . . . . . . . . . . . . . . . . . . . . . . . Using PATROL Configuration Manager to manage parameters . . . . . . . . . . . . . . . . Deactivating parameters. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Changing parameter thresholds . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Changing parameter polling cycles . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Modifying parameter properties. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Modifying ETF parameters through PATROL Configuration Manager. . . . . . . Using the rule and rule set examples . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Where to go from here. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 132 132 132 133 134 134 134 135 136 136 137 139 140 143 144 145 147 148 149 150 153 154
Chapter 4
131
This chapter also assumes that you know how to set up a host and operate PATROL Configuration Manager and PATROL KM for Event Management.
make sure that the Save Backup Before Apply option is selected move the rules and rule sets created specifically for PATROL for Oracle to the appropriate directory
This option is set as the default during configuration of PATROL Configuration Manager, and it appears as an option in other PATROL Configuration Manager dialog boxes as well. Make sure that it remains selected as the backup option.
132
To select archiive option in PATROL Configuration Manager version 1.4.01 1 Select FileConfigure from the main menu to open the Configuration dialog box. 2 Select the Archives tab to open the Backup Settings. 3 Make sure that Save Backup Before Apply is selected. 4 Click OK to save the settings and close the dialog box.
(Windows)PATROLInstallationDirectory\Patrol3\oracle\rulesets (UNIX)PATROLInstallationDirectory/Patrol3/oracle/rulesets
You must move 1 set of these .cfg files to the computer where PATROL Configuration Manager is installed and from which you plan to manage your PATROL for Oracle environment, and into one of the following folders located on that computer:
I I
(Windows)PATROLInstallationDirectory\pconfmgr\rulesets\Shipped\POK_v.r.mm (UNIX)PATROLInstallationDirectory/pconfmgr/rulesets/Shipped/POK_v.r.mm
Chapter 4
133
ConfigUpdate parameter
ConfigUpdate parameter
The ConfigUpdate parameter provided by PATROL for Oracle under the ORACLE application class checks for changes made to the PATROL for Oracle configuration variables and parameters through the PATROL Configuration Manager. The parameter does this by looking for one or both of the following rules:
I I
/OracleConfig.POKKMConfigUpdated /OracleConfig.POKKMConfigInstanceRemoved
These rules are among the rules and rule sets shipped with PATROL for Oracle. See Moving rule sets to the PATROL Configuration Manager directory on page 133.
If a rule set changes an instance configuration variable or a parameter, then add the POKKMConfigUpdated rule to the rule set. If a rule set removes an instance, add the POKKMConfigInstanceRemoved rule to the rule set. If a rule set modifies an instance configuration variable or a parameter and removes an instance, add both the POKKMConfigUpdated and the POKKMConfigInstanceRemoved rules to the rule set.
2 Upon detection of one or both of these rules, the ConfigUpdate parameter changes
from a default value of 0 to one of the following values:
134
C If an update request fails the validation tests performed by PATROL for Oracle,
the parameter goes into an alarm state and it sets a value of 3.
WARNING
No validation is performed for requests for removal, and only some validations are performed for updates. If this parameter goes into a warning state, you must verify that the removal or update was successful for each instance where it was applied.
NOTE
When an instance is removed by using PATROL Configuration Manager, PATROL for Oracle does not remove the Oracle account or the objects owned by that Oracle account from the Oracle database.
Chapter 4
135
Configuration data not stored in pconfig variable Configuration variables that are for internal use only on page 137 Application classes with status changes set in code on page 139
The following procedure for modifying or removing a configured Oracle instance employs the strengths of the KM and PATROL Configuration Manager: Modifying or removing a configured instance on page 140 Also included in this section is a topic about how to modify the Blackout variable: Modifying the blackout configuration variable on page 143. When you remove an instance using PATROL Configuration Manager, the PATROL for Oracle objects are not removed from the Oracle database. You must remove those objects. For a list of those objects, see Appendix B, PATROL database objects on page 317. For a complete list of the PATROL configuration variables and the strings that they generate, see Pconfig variables on page 334.
P$OBJ_EXCLUSIONa table that contains information about object exclusions. SYS.P$POK_CFGa table used to provide integration with the BMC Software, Inc. SmartDBA product.
These objects are used by PATROL for Oracle and alteration of these objects can harm the operation of PATROL for Oracle. Do not delete or modify these objects. For more information on these objects, see PATROL for Oracle database objects on page 321.
136
/AgentSetup/ORACLE_DATAGUARD_DATABASE. stores the PATROL database user password of the primaryInstanceName.defaultAccount configured primary instance in Oracle KM /AgentSetup/ORACLE_DATAGUARD_DATABASE. stores the sys user password of the configured standbyInstanceName.defaultAccount standby instance /AgentSetup/ORACLE_SQLVIEWER. ORACLE_SID.collectorRunning /AgentSetup/ORACLE_SQLVIEWER. ORACLE_SID.collStartTime /AgentSetup/ORACLE_SQLVIEWER. ORACLE_SID.collStopTime /AgentSetup/ORACLE.temp. defaultAccount /DGConfig.standbyInstanceName.monDGInstType /DGConfig.standbyInstanceName.TNSService /DGConfig.monDGDBList /DGConfig.primaryDatabaseName.monDGInstList /DGConfig.primaryInstanceName.DBHome /DGConfig.primaryInstanceName.DBName indicates whether the collector for SQL Viewer is running. start time of the SQLViewer collector stop time of the SQLViewer collector temporary default account stores the type of standby, it can be physical or logical indicates the TNS entry of a standby instance stores the list of configured database names of the primary instances stores the names of the standby instances configured for a primary database ORACLE HOME of primary instance stores the database name of primary instance This pconfig gets created only when primary instance is configured with auto db configuration in ORACLE.kml. /ORACLE_AVAILABILITY. ORACLE_SID.ArchFreeSpace.active /ORACLE_AVAILABILITY.sid. tempTSparams.deactivatedByKM indicates whether the ArchFreeSpace parameter was deactivated by the KM indicates whether the TempTSLeftPct and TempTSLeft parameters were deactivated by the KM
Chapter 4
137
Table 18
Configuration variable /ORACLE_AVAILABILITY. ORACLE_SID.tempOSTableExists /ORACLE_AVAILABILITY. ORACLE_SID.temp.TableExists /ORACLE_AVAILABILITY. ORACLE_SID.FreeSpace.kmactive /ORACLE_AVAILABILITY. ORACLE_SID. FreeSpaceDeficit.kmactive /ORACLE_INSTANCE.ORACLE_SID. localInstance /OracleConfig.FailoverMonitoring. Listener.ORACLE_LISTENER.Active /OracleConfig.ORACLE_SID. AlertFileInfo_eof_pos /OracleConfig.ORACLE_SID. AlertFileInfo_modtime /OracleConfig.ORACLE_SID. AlertFileInfo_size /OracleConfig.ORACLE_SID. ALTERNEXT. SCHEMA NAME.OBJECT NAME /OracleConfig.ORACLE_SID. ARCHIVELOG.DIRECTORY /OracleConfig.ORACLE_SID. ConfigTime /OracleConfig.ORACLE_SID. DBAUsername /OracleConfig.ORACLE_SID.DBName /OracleConfig.ORACLE_SID. dbObjectsDeinstalled /OracleConfig.ORACLE_SID>. FailoverMonitoring.AlternateListenerName /OracleConfig.ORACLE_SID.Failover Monitoring.LocalFailoverListenerName /OracleConfig.ORACLE_SID.Name /OracleConfig.ORACLE_SID.NumPrivs /OracleConfig.ORACLE_SID. RECOVERY
138
Table 18
The following application classes are acted upon by internal state change functions. Any status changes made in PATROL Configuration Manager are overwritten by these state change functions:
I
ORACLE_DB_LINKS_INSTANCE is directly set to alarm if any ORA-, TNS-, or PLS- error (except ORA-02019) is returned from Oracle, and it is set to offline if ORA-01029 is detected. ORACLE-TBSP_INST (Tablespace Instance) is set to OFFLINE if the Oracle instance detects that the subject tablespace is offline and to OK if the Oracle instance detects that the subject tablespace is online.
Chapter 4
139
make changes in one instance through the menu commands test the changes in that instance until satisfied that the changes operate as expected export the modified variables to PATROL Configuration Manager deploy the modified variables to other instances through the PATROL Configuration Manager
This method takes advantage of the validations performed by PATROL for Oracle and gives you the opportunity to verify that the changes perform as expected before deploying those changes throughout your environment. No matter which method you use to modify or remove an instance, you must apply the following rules to the rule sets created in PATROL Configuration Manager before they are applied to a PATROL for Oracle instance.
To apply the POKKMConfigUpdated rule to every rule set that modifies an instance or parameter
You MUST add the POKKMConfigUpdate rule to every rule set that you create and apply to an Oracle instance that modifies any of the configuration variables or parameters for that instance. This rule works with the ConfigUpdate parameter in PATROL for Oracle to keep you notified of any changes to the instance configuration variables.
1 Open the POKKMConfigUpdate.cfg file. 2 Copy the OracleConfig.POKKMConfigUpdated = {REPLACE = 1} rule. 3 In PATROL Configuration Manager, open the rule set folder that you created for
the configuration changes you are currently applying to a PATROL for Oracle instance.
140
To apply the POKKMConfigInstanceRemoved rule to every rule set that removes an instance
You MUST add the POKKMConfigRemoveInstance rule to every rule set that you create and apply that removes an Oracle instance. This rule works with the UpdateConfig parameter in PATROL for Oracle to keep you notified of any changes to the instance configuration variables.
1 Open the POKKMConfigRemoveInstance.cfg file. 2 Copy the OracleConfig.POKKMConfigRemoveInstance = {REPLACE = 1} rule. 3 In PATROL Configuration Manager, open the rule set folder that you created for
the configuration changes you are currently applying to a PATROL for Oracle instance. To remove an instance, this rule set would include the /OracleConfig.Instances rule.
5 Drag and drop the rule set to the AgentHostName. To modify or remove an instance 1 Modify the configuration of one instance of PATROL for Oracle in a PATROL
Developer console until it meets all of your specifications.
2 Test the instance over a period of time to make sure that the instance you modified
performs to your satisfaction.
Figure 12 shows the menus that contain the Configuration => Get menu command in the left panel of PATROL Configuration Manager version 1.4.01 and an example of the rules that are displayed in the right panel after the Configuration => Get command finishes importing the variables from the instance.
Chapter 4 Using PATROL Configuration Manager to modify and migrate configuration 141
Figure 12
4 Select and copy all of the rules from the Rule Sets\Change
Spring\backup\hostName\instanceName\date-timestamp directory (use the one with the most recent timestamp at the bottom of the list).
Highlight the new folder, and Paste the rules. The rules are given a timestamp and placed into the new folder:
Rule Sets\Change Spring\newFolder\timestamp\
7 Drag and drop the new rule set on the AgentHostName. 8 Click the Apply Changes icon in the PATROL Configuration Manager menu bar. To deploy the configuration variables for a modified instance 1 Create a new folder under Rule Sets\Change Spring\(new folder) and copy and
paste the same rules into this folder.
2 Right-click the timestamp under this new folder, choose Edit => Source from the
menu, and find and replace the ORACLE_SID in the source with the name of the next Agent host name to which you want to apply the modified configuration.
142 PATROL for Oracle User Guide
NOTE
ORACLE_SID is case sensitive. Make sure that you enter both the old and the new instance names in the appropriate upper- and lower-case characters.
3 Drag and drop this rule set on the AgentHostName named in this Rule Set. 4 Click the Apply Changes icon in the PATROL Configuration Manager menu bar. 5 Repeat steps 1 through 4 for each AgentHostName to which you want to apply the
modified configuration.
In a PATROL Developer Console, you can set your blackout periods by using the PATROL for Oracle Blackout menu command, test the blackout periods, import the modified variable into PATROL Configuration Manager, add the POKKMConfigUpdated rule to the rule set that contains the blackout rule, and deploy the new variable throughout your environment.
Chapter 4
143
In PATROL Configuration Manager, you can modify the example the rule set provided in the Blackout.cfg file installed with PATROL for Oracle, add the POKKMConfigUpdated rule to the rule set that contains the blackout rule, and deploy the modifications throughout your environment.
For more information about the Blackout feature in PATROL for Oracle, see Scheduling blackouts on page 174. For a complete list of the values generated by variables, see Pconfig variables on page 334.
NOTE
During a Blackout, the ETSM instances under Oracle_ETSM are turned off, and the icons disappear.
NOTE
Use only the PATROL Configuration Manager to update parameter details.
However, there are restrictions to the modifications you can make to some PATROL for Oracle parameters, as described in the following topics:
I I I
Parameters with their status set in code on page 146, Reactivate parameters via PATROL Configuration Manager on page 146, Do not change parameters with fixed thresholds on page 147
The following topics provide guidelines and cautions with regard to changing parameters, no matter which method you use:
I I I
Deactivating parameters on page 145 Changing parameter thresholds on page 147 Changing parameter polling cycles on page 148
144
Deactivating parameters
The following procedure for modifying parameters employs the strengths of the KM and PATROL Configuration Manager: Modifying parameter properties on page 149. However, the ETF parameters, because of their unusual makeup, require rule sets that help you configure and deactivate the ETF parameters in PATROL Configuration Manager. For more information about the ETF parameters, see Modifying ETF parameters through PATROL Configuration Manager on page 150. For a complete list of the parameters and their default values, see the PATROL for Oracle online Help. For more complete descriptions of the parameters, see the online Help for PATROL for Oracle.
NOTE
If a parameter does not deactivate after following all suggestions and instructions, use the Reinitialize Agent feature in PATROL Configuration Manager to force deactivation.
Deactivating parameters
To reduce the impact on your system resources and enhance performance, you can deactivate parameters that are not commonly needed. A deactivated consumer parameter does not appear and does not go into an alarm or warning state. However, the collector parameter that sets the deactivated consumer parameter continues to send information to the deactivated consumer parameter. Further, the collector notates the System Output Window with an error each time it attempts to send information to a deactivated consumer parameter. Collector parameters might also set off unwanted recovery actions if they cannot find a deactivated consumer parameter. Consider the following before deactivating a parameter:
I
If you disable only the alarms for a consumer parameter, the collector parameter continues to send data to the consumer parameter, and the consumer parameter continues to provide a view and history for that data. However, the consumer parameter no longer triggers any alarms, warnings, or recovery actions. If you deactivate a collector parameter, the collector parameter stops collecting data for the consumer parameters it sets. If you disable an application class, no parameters under that application class are displayed. During configuration, you select which Categories or application classes are enabled to monitor the instance.
Chapter 4
145
Deactivating parameters
Cannot Extendthe status for this parameter is set to OK when the parameter is set to active, and OFFLINE when the parameter is set to inactive. TempTSLeft and TempTSLeftPctthese parameters are set offline when all temporary tablespaces are excluded from monitoring. The parameters under the ORACLE_MTS, ORACLE_PQO, and ORACLE_REPLICATION application classes are offline or online, depending on whether the features associated with these application classes are active for the Oracle instance. The ListenerTraceSize and ListenerLogSize parameters under the ORANET_LISTENER application class are offline or online depending upon whether tracing or logging is on or off.
146
Chapter 4
147
Increasing poll times could cause untimely notification of problems as they arise. Decreasing poll times increases the resources used by PATROL for Oracle, which could lead to performance problems. Poll times must exceed the amount of time it takes to execute the query and allow time for the parameter to parse and distribute the data obtained before it must resend the query. To avoid problems, use Debug to find the Query Execution Time before decreasing a poll time.
WARNING
Changing the poll time for a standard or collector parameter to an amount of time that is shorter than the amount of time it takes to complete the execution of the query or collection command used by that parameter can cause the parameter to go into an infinite loop or other serious problems.
148
Make changes in one instance through the parameter property dialog boxes. Test the changes in that instance to make sure that the changes operate as expected. Export the modified parameter changes to PATROL Configuration Manager. Deploy the modified parameter changes to other instances through the PATROL Configuration Manager.
This method takes advantage of the validations performed by PATROL for Oracle and gives you the opportunity to verify that the changes perform as expected before deploying those changes throughout your environment.
1 Navigate to the parameter properties for the parameter you want to change:
I
In the PATROL Console for UNIX, click on Attributes and then on Application Classes to open a list of the application classes. Select an application class, then click on Attributes and then on Parameters to open the list of parameters provided by the selected application class. In the PATROL Console for Microsoft Windows, select the KM tree tab and expand the appropriate application class, then click Global and then click Parameters to open the list of parameters provided by the selected application class.
2 Right-click (Windows) or click (UNIX) the parameter you want to access the
parameter properties.
(Windows) Select the General tab and select or clear Active. (UNIX) Double-click the parameter, and select or clear Active.
4 To change the interval between polling cycles, perform one of these actions:
I I
(Windows) Select the Scheduling tab, and change the polling time. (UNIX) Click on the parameter and change the polling time.
5 To change the alarm thresholds and disable the alarms, perform one of these
actions:
I I
(Windows) Select the Border, Alarm1, and Alarm2 tabs and make changes. (UNIX) Click Alarm Ranges, and double-click Border, Alarm1, or Alarm 2, and make changes.
Chapter 4
149
6 Save the configuration by choosing File => Save Configuration. 7 Test the changes on the instance until you are satisfied that they are working. 8 Using the PATROL KM for Event Management, convert the parameters in the
instance to a rule set in PATROL Configuration Manager. The rules that represent each parameter contain the _ANYINST_ for the instance name. The _ANYINST_ designation allows you to apply these changes to any instance without adding specific instance name.
9 Drag and drop the rule set to any other AgentHostName where you want the
changes applied.
NOTE
The following rule forces the instance to apply parameter changes immediately: /AS/EVENTSPRING/PARAM_SETTINGS/STATUSFLAGS/ paramSettingsStatusFlag ={REPLACE = 2} If you do not want the changes to take place immediately, change the 2 to a 1 or remove this rule and reinitialize the agent for the instance when you want to apply the changes. For more information, see the PATROL Configuration Manager User Guide.
ConfigureETF.cfgusing this rule, you can modify the pconfig variable that determines which of the ETF consumer parameters the CollETF collector parameter sets. DisableETF.cfgusing this rule, you can disable all of the ETF consumer parameters and the CollETF collector parameter.
150
ETF parameter
CollETFThis standard collector parameter sets the values for the ETF parameters under the Availability and Capacity parameters. ETF parameters under the Availability application ArchFreeSpaceETF ArchFreeSpace Reports how long until the primary archive destination device can no longer accommodate a new archive log in the amount of free space remaining. Reports how long until a non-excluded object in a non-excluded user schema can no longer accept additional extents. Reports how long until the non-excluded tablespaces run out of free space. Reports how long until the SYSTEM tablespace runs out of space. Reports how long until the background dump directory runs out of space. Reports how long until the core dump directory runs out of space. Reports how long until the instance can support no more processes. Reports how many additional user sessions are allowed by the instance in its current configuration. Reports how long until the file system, device, or mount point that contains the user dump directory runs out of space.
ExtentsLeftETF
ExtentsLeft
FreeSpaceETF SystemTSLeftETF
FreeSpace SystemTSLeft
ETF parameters under the Capacity application BGDumpLeftETF CoreDumpLeftETF ProcsLeftETF SessionsLeftETF BGDumpLeft CoreDumpLeft ProcsLeft SessionsLeft
UserDumpLeftETF
UserDumpLeft
Chapter 4
151
To use ConfigureETF.cfg to limit the parameters set by CollETF 1 Open the ConfigureETF.cfg file. 2 Copy the OracleETF._ANYINST_.Parameter rule. 3 In PATROL Configuration Manager, open the rule set folder that you created for
the PATROL for Oracle instances where you want to modify the ETF collector.
4 Paste the OracleETF._ANYINST_.Parameter rule into the PATROL for Oracle rule
set folder.
7 In the Edit Rule/Variable dialog box, change the N to Y in front of each ETF
parameter for which you want the CollETF collector parameter to continue to collect data.
8 Drag and drop the rule set to any Agent host name where you want to apply the
changes. The parameters icons are still displayed, but the collector, CollETF, no longer sets values for the ETF consumer parameters that you removed from the CollETF configuration variable by using this procedure. If you do not want the icons to appear, you can also disable the consumer parameters that you removed from the CollETF collector parameter configuration.
NOTE
You can apply the OracleETF._ANYINST_.Parameter rule to any instance. The _ANYINST_ designator works for all instances. This is not true for changes made to instance configuration, but it does work for most parameter modifications.
To use DisableETF to disable all ETF parameters 1 Open the DisableETF.cfg file.
Edit the rule set to remove the following rule from the rule set:
152
/AS/EVENTSPRING/PARAM_SETTINGS/STATUSFLAGS/paramSettingsStatusFlag" = {REPLACE = 1}
2 Copy the remaining rules contained in this file. 3 In PATROL Configuration Manager, open the rule set folder that you created for
PATROL for Oracle.
4 Paste all of the rules from DisableETF.cfg into the PATROL for Oracle rule set
folder.
5 Drag and drop the rule set to the AgentHostName where you want to disable the
CollETF collector and all of the ETF consumer parameters.
WARNING
When you make changes to a KM by directly modifying rules and rulesets in the PATROL Configuration Manager, no validations are performed. Alternatively, if you make changes by using the menu commands and parameter property dialog boxes provided by the KM, the values you enter are validated by the KM.
Chapter 4
153
NOTE
If the example rule set does not contain the POKKMConfigUpdated rule, you must add the POKKMConfigUpdated rule before applying the rule set to an instance.
The following are the optional rules and rule sets installed with PATROL for Oracle and a short description for each:
I
Blackout.cfg provides examples for the blackout variable. For more information on Blackout, see Modifying the blackout configuration variable on page 143. ConfigUpdate_Activate.cfg activates the ConfigUpdate parameter. It is active by
default, but if you deactivated the ConfigUpdate parameter, you can reactivate it globally using this rule.
I
ConfigUpdate parameter is active by default. You can use it to deactivate it throughout the enterprise, and use ConfigUpdate_Activate.cfg to reactivate.
I
DisableListener.cfg provides a rule that you can use to disable a listener. EnableListener.cfg provides a rule that you can use to enable a listener. GlobalParams.cfg provides all of the Oracle parameters in rules that you can use to modify parameter settings and apply to any instance. ModifyInstance.cfg provides rules that you can use to change the Always Online
configured instances.
I
configured instance.
154
Topic how to use Oracle utilities from PATROL for Oracle how to monitor the tablespace capacity and user activity on an Oracle instance using PATROL for Oracle how to monitor instance health using PATROL for Oracle how to monitor Oracle options using PATROL for Oracle how to monitor the the RAC environment
Source of information Chapter 5, Using Oracle utilities from PATROL for Oracle on page 157 Chapter 6, Monitoring tablespaces, users, and SQL statements on page 179 Chapter 7, Monitoring instance health on page 225 Chapter 8, Monitoring Oracle options on page 271 Chapter 9, Monitoring the RAC environment on page 293
how to access the KM menu commands, Appendix A, Accessing menu commands, InfoBoxes, and online Help InfoBoxes, and online Help on page 313 definitions and default values for parameters PATROL for Oracle online Help
PATROL Agent configuration variables Appendix B, PATROL database objects on page 317 instructions about installing and using PATROL for Oracle with firewalls detailed descriptions of the applications, menu commands, parameters, and InfoBoxes Appendix C, Firewall and port-forwarding considerations on page 353 PATROL for Oracle online Help
Chapter 4
155
156
Chapter
5
158 158 159 159 160 163 164 164 165 167 170 170 171 173 173 173 174 175 175 175 176 176 177 177
This chapter presents the following topics: Using Oracle utilities . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Using Server Manager and SQL*Plus from PATROL . . . . . . . . . . . . . . . . . . . . . . Using Explain Plan from PATROL . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Issuing SQL commands to Oracle from PATROL . . . . . . . . . . . . . . . . . . . . . . . . . Managing Oracles job queue from PATROL . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Monitoring Oracle Net from PATROL . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ORANET requirements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Listener Password configuration menu option. . . . . . . . . . . . . . . . . . . . . . . . . . . . Configuring a listener . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Configuring multiple listeners . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Starting and stopping a listener. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Monitoring ORANET alarms. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Viewing ORANET reports . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Starting and shutting down instances. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Starting instances . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Shutting down instances . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Scheduling blackouts. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Nesting blackout periods . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Scheduling unending blackouts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Setting the time zone variable . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Setting blackout periods for categories and parameters . . . . . . . . . . . . . . . . . . . . Deleting blackout periods . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Debugging blackouts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Where to go from here. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Chapter 5
157
You must have Server Manager or SQL*Plus installed and running on the Oracle instance. If you are using the PATROL Console for UNIX, you must have an xterm program installed and configured on the console computer. If you are using the PATROL Console for Microsoft Windows, you must have an xemulator program configured and running on the console computer.
NOTE
Server Manager is not accessible on a Microsoft Windows local instance.
158
To use SQL*Plus
Access SQL*Plus by choosing Oracle Server Admin => SQL*Plus from the INSTANCE menu. You must enter the user name and password of a valid account for the instance. You can use any valid SQL*Plus commands in the xterm window. After the session is completed, you can exit SQL*Plus and close the xterm window.
NOTE
SQL*Plus is not accessible on a remote Oracle instance or on a Microsoft Windows local instance.
Chapter 5
159
160
If a job fails to run 16 times in a row, it is flagged as broken, it is removed from the Failed Jobs Report, and it appears in the Broken Jobs Report.
NOTE
If you are monitoring an Oracle 8.0.4 database on an AIX host, the Failed Jobs report might not correctly report the number of times that a job has failed to run. A column in the dba_jobs table in Oracle does not increment the number of times that a job fails. The FailedJobs parameter reflects this Oracle problem.
Chapter 5
161
You can see all overdue jobs by choosing Jobs => Overdue Jobs from the JOBS menu or Reports => Jobs => Overdue Jobs from the INSTANCE menu. All overdue jobs are listed in a text window. Table 24 lists the information in the report. Table 24
Item Job Owner Job Number Broken Failures Job Definition Next Run
Flagging jobs
You can manually flag a job as broken if you do not want the job to run again until you have corrected a problem. After you have corrected the problem, you can flag the job as not broken, and it will run again during its next scheduled execution time.
1 From the JOBS menu, choose Jobs => Flag Job => As Broken or Jobs => Flag Job => As
Not Broken.
2 Select the user name of the owner of the job from the list, type the owner's
password, and click OK.
3 Select one or more of the jobs that you want to flag, and click OK.
If no unbroken or broken jobs exist, the task output window displays a message saying that no unbroken or broken jobs exist.
162 PATROL for Oracle User Guide
1 From the JOBS menu, choose Run Job. 2 Select the user name of the owner of the job from the list, type the owner's
password, and click OK.
1 From the JOBS menu, choose Remove Job. 2 Select the user name of the owner of the job from the list, type the owner's
password, and click OK.
Chapter 5
163
ORANET requirements
ORANET requirements
To monitor Oracle Net listeners using ORANET, ensure that the system meets the following requirements:
I
Oracle Net is installed, started, and configured. See the Oracle Network Manager Administrator's Guide and the Oracle installation guide for your system for more information. The ORANET application is loaded and running. The ORANET application does not appear until you have the Oracle instance configured. The PATROL user account is either in the DBA group or has permissions to write to the directory where the Oracle Net listener log files are located. If the PATROL user account lacks these privileges, you cannot start or stop the listener process. You must configure the instance associated with the listener that you would like to monitor by PATROL for Oracle. To monitor ORANET, following are the permission required for the PATROL OS account: Executable permission to the lsnrctl utility. Read permission for the listener.ora file. Read permission for the tnsnames.ora file on local machine to monitor remote instance.
Consult your Oracle installation guide if you need more information about these requirements.
parameters for that listener below the ORANET icon will be offline. You may observe the following, or similar, error messages:
164
Configuring a listener
From the PATROL Console System Output Window (SOW) log: PatrolAgent-W-EUSER: Discovery/ prediscovery proc `ORANET_LISTENER' may be in an infinite loop - executed 5000047 instructions. From the ListenerStatus debug: TNS-01169: The listener has not recognized the password. To remedy this problem, a new configuration menu option is added and will need to be set:
Right-click on the ListenerName => KM Commands => Password Configure.
A Listener Password dialog box, enter the ASCII password in the Password field and click Apply.
NOTE
When the value of the LOCAL_OS_AUTHENTICATION_<listener_name> parameter was set to ON, PATROL for Oracle correctly detected the status of the listener regardless of whether a password was set.
Configuring a listener
Before you can monitor a listener, you must configure the specific listener. If you have a clustered environment, you need to perform an additional configuration. Figure 13 on page 166 displays the tasks.
Chapter 5
165
Configuring a listener
Figure 13
No
Yes
Does listener use cluster alias or logical host name in the listener.ora file?
Configure listener using Cluster Configuration command from ORANET menu and specify cluster alias
Non-clustered configuration
To configure a listener that is not part of a cluster, use the following steps:
1 From the ORANET menu, choose Configuration, select the listener to configure
from the list of detected listeners, and click Apply.
2 Ensure that the HOME for the listener in the Listener Home field is correct. 3 To start monitoring the listener, select the Enable Monitoring check box and click
Apply.
PATROL creates a LISTENER icon and begins monitoring the listener. You can use the Exit buttons to exit the box and function.
NOTE
If you want to stop monitoring a listener, select the Disable Monitoring check box in the listener information screen.
166
Cluster configuration
To monitor a listener that is part of a cluster, use the following steps:
1 From the ORANET menu, Cluster Configuration, enter the following information
into the dialog box and click Accept: Table 26
Field Physical Host Cluster Alias for <Physical Host> (Server Name or IP Address):
Enter the logical host name(s) separated by blank space(s) Logical Hosts for <Physical only if you are using Logical Host Names in the listener.ora Host> (Host Names or IP Addresses separated by blank file. If you are using cluster aliases, leave this field blank. space(s)):
If you have enabled the OS Authentication check box and are configuring an instance through the auto configuration process, you need to enter the value of the CUSTOMLISTENERCONFIGLOCS variable as 1 in the default_auto_conf_PortNumber.txt file. However, the default configuration file (default_auto_config.txt) is only available when you load the ORACLE_AUTO_CONFIG.kml file. To use the default_auto_config.txt file, see Using the default_auto_config.txt file on page 94.
Chapter 5
167
OR
I
If you have configured an instance through the interface, you can still use this discovery method by creating the /OracleConfig.CUSTOMLISTENERCONFIGLOCS pconfig variable and setting its value to 1.
Once the CUSTOMLISTENERCONFIGLOCS pconfig variable is set, you must complete one of the following tasks:
I I
To configure multiple listeners in a structured directory. To configure multiple listeners in an unstructured directory on page 169
To configure multiple listeners in a structured directory 1 In a single file system /qa/products/user that is running three instances Test1,
Test2, Test3, create a directory structure and drop the necessary listener.ora files in the specified location: /qa/products/user
I
NOTE
Each listener.ora file might have multiple listeners defined in it.
EXAMPLE
TNS_ADMIN needs to be set to /qa/products/user
168
Discovery process identifies the listener.ora files from the above locations and starts monitoring the listeners. However, this method has the following limitations:
I
Works only on UNIX platform. PATROL for Oracle uses the highest configured $ORACLE_HOME/bin/lsnrctl to determine the status of all the listeners. ORANET monitors only those listeners for Oracle instances that are configured for monitoring by PATROL for Oracle.
EXAMPLE
The following are the location of listener.ora files:
I I I
From $PATROL_HOME/oracle/oranet of the agent computer, clear the contents of the locate_lsnr_configs script, and echo the paths in locate_lsnr_configs script as follows:
I I I
The above paths are temporarily stored in a variable and executed through a loop to discover the listeners. However, this method has the following limitations:
I
Works only on UNIX platform. ORANET monitors only those listeners for Oracle instances that are configured for monitoring by PATROL for Oracle.
Chapter 5
169
error messages written to the listener alert log the size of the listener trace and log files status of the listener
Enter a search string that puts the ListenerLog parameter into a warning state if it is written to the log file Enter a search string that the ListenerLog parameter does not monitor nor detect. You can remove an excluded error string from the exclusion list.
After you have filtered the error messages, you must deactivate and reactivate the ListenerLog parameter in the LISTENER application class. See Deactivating parameters on page 124 for information about activating and deactivating parameters.
170 PATROL for Oracle User Guide
dedicated servers from listener.ora dispatcher information prestarted or prespawned dedicated server processes
The Services summary describes the service name and the service handlers count. To run this report, choose Listener Services Info from the LISTENER menu.
Chapter 5
171
the current settings of the logging and tracing options the list of database SIDs that are available through this listener, defined in the SID mapping section in the listener.ora file whether a password is encrypted in the listener.ora file. If the listener password is encrypted, you can have only one password
whether the network listener can respond to queries from an Simple Network Management Protocol-based (SNMP) system the addresses the listener is listening on
DD-Mon-YY HH:MM:SS
the total amount of time that the listener has been running the level of trace:
I I I I I
OFF ON USER (User trace information) ADMIN (Administration trace information) SUPPORT (WorldWide Customer Support trace information)
Security SNMP Listener Parameter File Listener Log File Services Summary
whether security is ON or OFF whether SNMP is ON or OFF the directory and filename of the parameter file the directory and filename for the listener log file the service name and service handler count
To run this report, choose Listener Status Info from the LISTENER menu.
172
Debugging listeners
Debugging listeners
To debug the ListenerStatus, ListnerLog, ListenerTraceSize, or ListenerLogSize parameter, type the following command in the system output window:
%PSL set(/ORANET/DEBUG_PARAM_STAT, 1);
Starting instances
From the INSTANCE application, choose Oracle Server Admin => Instance Startup. You can select one of the following startup options:
Startup mode Open No Mount Mount Description The database is initialized, mounted, and open for normal operations. The database is created and initialized. Only DBAs can access the database at this point. The database control files are read and opened. Only DBAs can access the database at this point.
After the instance is started, any messages appear in a task output window.
Chapter 5
173
Scheduling blackouts
Description The instance shuts down normally. The database waits for all users to disconnect, prohibits new connections, closes and dismounts the database, and shuts down the instance. The instance shuts down immediately. The database cancels current calls like a system interrupt, closes and dismounts the database, and shuts down the instance. PMON (Process Monitor) gracefully shuts down the user processes. No instance recovery is needed upon instance startup. The instance is aborted. The databases are closed immediately. Instance recovery might be necessary on startup.
Immediate
Abort
All currently connected users and the number of sessions that they are running are listed for your reference.
Scheduling blackouts
You can use PATROL to schedule suspended states for applications and parameters. A suspended state, or blackout period, stops parameter collection and alarms for a specified amount of time. You can use this feature to ensure that maintenance or backups to the instance do not trigger erroneous alarms or reports.
NOTE
Blackouts can be overridden or terminated from outside PATROL for Oracle. During a Blackout period, the ORACLE_ETSM instances are turned off and the icons for ETSM disappear.
When you set a blackout period, you can schedule it to last for a few minutes, for hours, or for days. The blackout function does not use specific dates for scheduling, but uses the day of the week and the time of the day.
EXAMPLE
You cannot schedule the blackout for Tuesday, July 21, at 2200 (10 p.m.), for four hours, but you can schedule the blackout for Tuesday at 2200 for four hours. Until the blackout period is deleted, the instance is blacked out every Tuesday at 2200 for four hours.
174
Monday 0600
Chapter 5
175
You must calculate the number of hours difference between your time and Greenwich Mean Time (GMT). For example, to specify the difference from Houston in the U.S. central time zone, you would enter GMT +0600. You can set this variable using a developer console only.
To set blackout periods for categories and parametersfor an Oracle instance 1 Choose Blackout Instance(s) from the ORACLE menu, or KM Admin => Blackout
from the INSTANCE menu for the instance that you want to black out.
2 Select the instances for which you want to set this blackout period if you selected
the menu command from the ORACLE menu, and click Add a Blackout Period. If you select more than one instance, all the selected instances are set for the blackout period. If you want different blackout periods for multiple instances, you must set each instance separately.
3 Select the day of the week when you want the blackout period to start. Enter the
duration of the blackout period and select the time units from the menu.
4 Click Accept.
The blackout period is entered as an event. To set blackout periods by using PATROL Configuration Manager, see Modifying the blackout configuration variable on page 143.
2 Select Delete a Blackout Period, select the blackout period from the Blackout
period(s) to delete list box and click Accept.
176
Debugging blackouts
Debugging blackouts
To debug a blackout, right-click the Oracle instance icon and choose KM Commands => KM Admin => Debug and set the Debug option to YES.
how to access the KM menu commands, Appendix A, Accessing menu commands, InfoBoxes, and online Help InfoBoxes, and online Help on page 313 definitions and default values for parameters PATROL for Oracle online Help
PATROL Agent configuration variables Appendix B, PATROL database objects on page 317 Instructions about installing and using PATROL for Oracle with firewalls Appendix C, Firewall and port-forwarding considerations on page 353
Chapter 5
177
178
Chapter
6
180 180 182 183 183 184 188 189 192 189 192 192 192 193 194 196 197 197 199 200 202 209 211 212 213 214 215 216 217 217 218
179
This chapter presents the following topics: Tablespace monitoring overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Using the TABLESPACES application to monitor tablespaces . . . . . . . . . . . . . . . . . . TBSP_INSTANCE parameters. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Activating TABLESPACES application monitoring. . . . . . . . . . . . . . . . . . . . . . . . Selecting tablespaces for monitoring . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Viewing reports on tablespaces. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Using the ETSM applications to monitor tablespaces . . . . . . . . . . . . . . . . . . . . . . . . . ETSM parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Activating the ETSM applications. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Defining tablespace types. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Viewing the ETSM reports . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Debugging the ETSM application . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Using Space Expert to monitor tablespaces . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . User monitoring overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . USERS parameters. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . USERS_INSTANCE parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Activating user monitoring . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Selecting users or user sessions for monitoring . . . . . . . . . . . . . . . . . . . . . . . . . . . Monitoring problem users . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Viewing the All Problem Users report . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Viewing other reports on users . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Excluding parameter alarms . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Differences between exclusion types . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Exclusion examples . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Excluding tablespaces . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Excluding objects . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Excluding users from space monitoring . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Viewing the monitoring settings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Monitoring SQL statements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . SQL Snapshot overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Using SQL Snapshot . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Chapter 6 Monitoring tablespaces, users, and SQL statements
SQL Viewer tables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 219 Activating SQL Viewer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 220 Starting and stopping SQL Viewer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 220 Viewing SQL Viewer reports . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 220 Archiving SQL Viewer data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 223 Terminating SQL Viewer sessions. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 223 Where to go from here . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 224
Using the TABLESPACES application to monitor tablespaces on page 180 does not monitor any tablespaces until you activate tablespace monitoring and select tablespaces for monitoring. Using the ETSM applications to monitor tablespaces on page 188 monitors all tablespaces that are not excluded from monitoring. Using Space Expert to monitor tablespaces on page 192 requires that you have Space Expert installed and configured.
NOTE
PATROL for Oracle does not support blank space within a tablespace name. For example, te st is not a valid tablespace name.
180
Use the parameters in the TBSP_INSTANCE application to see how busy and how full the tablespace is. The TBSP_INSTANCE application provides the PctUsed and the SpaceLeft parameter to warn you when the space in the tablespace is becoming limited and physical input-output information if the tablespace is non-autoextensible. Otherwise, it will provide physical input-output information if the tablespace is autoextensible. You can use the TBSP_INSTANCE application as a diagnostic or troubleshooting tool for your Oracle environment. Use the parameters in the TBSP_INSTANCE application to see how busy and how full the tablespace is. Set warnings or alarms in the PctUsed or the SpaceLeft parameter to warn you when the space in the tablespace is becoming limited.
NOTE
I
To prevent performance problems, you should monitor no more than 30 tablespaces at one time. A TBSP_INSTANCE icon may not appear in the TABLESPACES container if the tablespace is not running or has not been selected for monitoring. The SpaceLeft and PctUsed parameters are inactive for autoextensible tablespaces.
Figure 15 displays the hierarchy of the applications that deal with tablespaces. The information that each application or category provides is also displayed. Figure 15 TABLESPACES hierarchy
AVAILABILITY application: reports on availability of resources in the instance, including all tablespaces in the instance
TABLESPACES application: reports on status and storage of all tablespaces in the instance NOTE: only appears if the TABLESPACES category has been enabled
TBSP_INSTANCE application: reports on file I/O and space for a specific tablespace NOTE: only appears if a tablespace has been selected for monitoring
Chapter 6
181
TBSP_INSTANCE parameters
If you do not want a tablespace to go into an alarm state if space or extent problems occur, you must exclude the tablespace. See Excluding parameter alarms on page 209 for information and instructions.
EXAMPLE
The Tablespace Storage and Status Report informs you that the Data99 tablespace does not have much free space left, but many reads and writes are occurring in the tablespace. You can monitor this tablespace to determine if the storage parameters should be changed or if the data should be divided into other tablespaces.
TBSP_INSTANCE parameters
The information that the TBSP_INSTANCE parameters provides is described in Parameter summary in the PATROL for Oracle online Help. Table 28 lists a brief description of each parameter. Table 28
Parameter AutoExtended
TBSP_INSTANCE parameters
Description signals when a tablespace has automatically extended one or more of its data files Note: If the autoextend option is not enabled for the tablespace, this parameter does not appear.
reports the total number of logical block reads performed per second on the monitored tablespace during the previous polling interval reports the total number of logical block writes performed per second on the monitored tablespace during the previous polling interval shows the percentage of space that is allocated in the monitored tablespace reports the total number of physical reads performed per second on the monitored tablespace in the previous polling interval reports the total number of physical writes performed per second on the monitored tablespace in the previous polling interval shows the amount of free space in megabytes in the monitored tablespace
182
NOTE
To prevent performance problems, you should monitor no more than 30 tablespaces at one time.
1 From the TABLESPACES menu, choose KM Admin => TableSpace Monitoring. 2 Select the tablespace or tablespaces you want to monitor from the Tablespaces
Available list and click Apply.
3 In the Regular Expression box, type search name with regular expression to
add/stop tablespaces from monitoring with PATROL. Supported characters are * and ?:
I
* indicates 0 or more positions of a character. For example, ts* to select the tablespaces that start with ts. ? indicates single position of a character. For example, ts?11 to select ts011 or tsa11.
You can combine the regular expressions. For example, use ts*11? To select the tablespaces that starts with ts and has one character after 11.
Chapter 6
183
4 Choose Select and then click Apply to add the tablespaces to start monitoring with
PATROL.
5 Choose Deselect and then click Apply to stop the tablespaces from monitoring with
PATROL. The parameters and reports gather information during the next polling cycle. The tablespace appears as a TBSP_INSTANCE application icon. You can also use this function to stop monitoring a tablespace. After you stop monitoring a tablespace, the TBSP_INSTANCE icon disappears in the next polling cycle. However, the tablespace information appears on reports and is reflected in the parameter values in the AVAILABILITY category.
tablespace free space tablespace size tablespace segments tablespace status and storage
184
From the INSTANCE application menu, choose Reports => Database =>Tablespace Information and select the tablespace from the list. From the TBSP_INSTANCE menu, choose Tablespace.
Chapter 6
185
Table 30
Item
1 Choose Reports => Segments from the TABLESPACES menu, or choose Reports
=>Tablespaces =>Tablespace Segments from the INSTANCE menu.
2 Select a tablespace from the list or select ALL TABLESPACES, and click Accept.
Table 31 shows the information that the report provides. Table 31
Item Tablespace name Segment Name Type Owner Size Extents
Run the report by choosing Reports => Sorted by Size from the TABLESPACES menu, or choose Reports =>Tablespaces =>Tablespace By Size from the INSTANCE menu. Table 32 shows the information that the report provides.
186
Table 32
Item
Phys Writes Phys Reads Blk Writes Blk Reads File Name Tablespace Name % Free Bytes Free Blocks Free Max Bytes Free
number of physical writes on the tablespace number of physical reads on the tablespace number of block writes on the tablespace number of block reads on the tablespace file name and location of the database file for the tablespace Storage name of the tablespace percentage of free space in the tablespace number of bytes that are free in the tablespace number of free blocks in the tablespace size of largest free extent in bytes
Chapter 6
187
Table 33
Item
Max Blk Free Total Size (Bytes) Total Size (Blks) Tablespace Name Next Extents Min Extents Max Extents % Inc Status
188
creates an ETSM_TBSP_INSTANCE for that tablespace places that ETSM_TBSP_INSTANCE under the appropriate ETSM_tablespaceType application monitors that ETSM_TBSP_INSTANCE with the same set of parameters used in the original tablespace monitoring (except for the AutoExtended parameter)
ETSM parameters
Table 34 lists a brief description of the parameter provided by the ETSM application. Table 34
Parameter CollPopulateContainers
Table 35 lists a brief description of the parameters provided by the ETSM_tablespace type applications.
Chapter 6
189
Table 35
Parameter
Table 36 lists a brief description of the parameters provided by the ETSM_TBSP_INSTANCE application. Table 36
Parameter BlkReads BlkWrites PctUsed PhyReads PhyWrites SpaceLeft
For more information about parameters, see the PATROL for Oracle online Help.
190
For auto-configuration, you can use regular expressions in the following tablespace variables:
I I I I I I I
To set these pconfig variables with regular expressions, use the Agent Configuration option and then add a variable from the PATROL Configuration Manager. You can set the agent pconfig variables in the following ways:
I
EXAMPLE
print(pconfig(REPLACE,/OracleConfig.kol920db.ExcludeTablespaces,T*E?)); kol920db is the database name and T*E? is the regular expression for the ETSM tablespaces. After executing the command, PATROL for Oracle excludes all the tablespaces that have the T*E? string in their name from ETSM monitoring.
From the host, right-click and choose Development => Agent Configuration => Edit => Add Variable, and add a variable.
You can also manually set the agent configuration variables to exclude or sort the tablespaces into different containers by using the regular expressions. For manual database configuration, you can set the following agent pconfig variables by using the* and ? characters in regular expressions:
I I I I I I I
Chapter 6
191
When a space problem is found by PATROL for Oracle, the find_problems collector for Space Expert determines if the problem is in a tablespace or a tablespace object. If the problem is in a tablespace object, the StorageProblemsCnt parameter in the SPACE_EXPERT_ORA_OBJ application goes into alarm. The StorageProblems parameter in the SPACE_EXPERT_ORA_OBJ application displays a description of the problem and the object with the problem. If the problem is a tablespace, the StorageProblemsCnt parameter in the SPACE_EXPERT_ORA_TS application goes into alarm. The StorageProblems parameter in the SPACE_EXPERT_ORA_TS application displays a description of the problem and the tablespace with the problem.
192 PATROL for Oracle User Guide
Once you find the description of the problem, you can use Space Expert to solve the space problem.
NOTE
A USERS_INSTANCE application icon may not appear in the USERS container if the user is not logged in or the user session is not running or has been terminated.
You can use the USER_INSTANCE application as a diagnostic or troubleshooting tool for your Oracle environment. For example, if you find that the user is blocking other users or taking too many resources, you can terminate the user session.
EXAMPLE
The user ApplicationAdmin periodically exceeds the excessive CPU threshold and becomes a problem user. To determine why ApplicationAdmin uses too many CPU resources, you can select to monitor the user and run the User Session Detail Report or the Active SQL Statements Report.
Figure 16 displays the hierarchy of the applications that monitor users. The information that each application provides is also displayed.
Chapter 6
193
USERS parameters
Figure 16
USERS hierarchy
CAPACITY application reports on availability of resources in the instance, including resources for all users on the instance
USERS application reports on status and resources for all users in the instance NOTE: This icon appear only if the USERS category has been enabled.
USERS_INSTANCE application reports on CPU resources and file I/O consumed by the user NOTE: This icon appears only if a user has been selected for monitoring.
USERS parameters
The parameters contained in the USERS category show many users are active and how many resources those users are using. A complete description of the USERS parameters is provided in Parameter summary in the PATROL for Oracle online Help. Table 37 lists a brief description of each parameter.
194
USERS parameters
Table 37
Parameter ActiveCalls
USERS parameters
Description reports the number of users with a call to the server currently in process If this number is too high, examine the servers performance, the networks performance, or consider redistributing the users to use different servers.
IDsInUse
reports the number of SIDs that are currently connected to the database If this number is too high, you may want to terminate some user sessions.
ProblemUsers
reports the session detail for each problem user discovered during the current polling interval A problem user is defined as a session that is:
I I I I I
waiting too long for a lock (BLOCKED or BLOCKEE) using too much CPU as a percentage (CPUHOG) blocking other users by holding a lock (BLOCKER) doing nothing (IDLE) running too long without returning any data (RUNAWAY)
Users
Reports the total number of user sessions that are currently running
Chapter 6
195
USERS_INSTANCE parameters
USERS_INSTANCE parameters
The parameters in the USERS_INSTANCE application show many resources a particular user or user session is consuming. A complete description of the USERS_INSTANCE parameters is described in the PATROL for Oracle online Help. Table 38 provides a brief description of each parameter. Table 38
Parameter USRCpuSeconds
USERS_INSTANCE parameters
Description displays the CPU seconds consumed by the user session This parameter is based on the statistic CPU used by this session. To retrieve CPU data, the TIMED_STATISTICS parameter in the init.ora file must be set to TRUE (TIMED_STATISTICS=TRUE). If the parameter is not set to TRUE, the USRCpuSeconds parameter does not retrieve any CPU data. To change the parameter, you must shut down the database, change the parameter in the init.ora file, and restart the database.
USRDiskSorts
displays the percentage of sorts not in memory This parameter is based on the Oracle statistic sorts (disk).
USRLogicalReads
displays the number of logical reads performed by the user session This parameter is based on the Oracle statistic session logical reads.
USRMemoryUsed
displays the amount of available memory used by the user session This parameter is based on the Oracle statistic session memory used.
USROpenCursors
displays the number of current cursors opened by the user session This parameter is based on the Oracle statistic opened cursors current.
USRPhysReads
displays the number of physical reads performed by the user session This parameter is based on the statistic physical reads.
USRPhysWrites
displays the number of physical writes performed by the user session This parameter is based on the statistic physical writes.
196
NOTE
To prevent performance problems, you should monitor no more than thirty users at one time. If you are using an application such as Oracle Applications or Peoplesoft, monitoring the applications account may overload your system. You may want to monitor a specific session instead.
1 Choose KM Admin => Users Monitoring from the USERS menu. 2 Select the user or users you want to monitor from the Users Available list and click
Apply.
3 In the Regular Expression box, type search name with regular expression to
add/stop users from monitoring with PATROL.
Chapter 6
197
* indicates 0 or more positions of a character. For example, ts* to select the users that start with ts. ? indicates single position of a character. For example, ts?11 to select ts011 or tsa11.
You can combine the regular expressions. For example, use ts*11? To select the tablespaces that starts with ts and has one character after 11.
4 Choose Select and then click Apply to add users to start monitoring with PATROL. 5 Choose Deselect and then click Apply to stop users from monitoring with PATROL.
The parameters and reports gather information during the next polling cycle. The user appears as a USERS_INSTANCE application icon. You can also use this function to remove a user from monitoring by PATROL. Once a user is removed from monitoring, the USERS_INSTANCE icon disappears during the next polling cycle. However, the information about the user appears on reports and is reflected in the values of the parameters in the AVAILABILITY category.
The session or sessions appear in the Sessions To Be Monitored list. The parameters and reports gather information during the next polling cycle. The sessions appears as a USER_INSTANCE application icon. You can also use this function to remove a user session from monitored by PATROL. Once a user session is removed from monitoring, the USERS_INSTANCE icon disappears during the next polling cycle. However, the information about the session appears on reports and is reflected in the values of the parameters in the AVAILABILITY and CAPACITY categories.
198
waiting too long to obtain a lock. blocking other sessions by holding a block too long. doing nothing. running too long without returning any data using too much CPU as a percentage of total CPU use
If a user or user session exceeds the threshold, the ProblemUsers parameter goes into an alarm state. The parameter displays the name of the user or user session and the threshold that the user exceeded.
NOTE
The parameter TIMED_STATISTICS in the init.ora file must be set to TRUE to monitor and determine excessive CPU users
Chapter 6
199
Table 39
Item
User Runaway
NOTE
You can also use this function to include a user you have previously excluded. After you include the user, if the user exceeds a problem user threshold, the ProblemUsers parameter goes into an alarm state.
After you exclude the problem user, the user does not appear as a problem user even if the user exceeds a problem user threshold. You can still monitor the user with the User Monitoring function, however, and the user continues to appear on the user reports.
200
The ProblemUsers parameter also creates an annotation that contains the following information:
I I I I I I I I
time, date, and instance of the alert explanation of the ProblemUser alert user name auditing session ID (AUDSID) SID of the session that caused the alert current threshold settings thresholds for the problem user SQL text that exceeded the threshold
You can save the annotation report to a file for later reference.
Chapter 6
201
Active Sessions SQL Statements Display Oracle Users Profiles Role Information User Account Info User Role/Column Privilege User Session and User Session Data User Session SQL and User Session Detail Users/Objects in SYSTEM Users with DBA Role
202
Table 41
Item
Serial Number
Type Resource_id1 Resource_id2 Lock Held Lock Request OS User Oracle User Session ID Connect Time in Minutes
Chapter 6
203
Profiles report
Description name of the profile name of the database or system resource threshold of the resource that is available to the profile If the limit is UNLIMITED, no thresholds are set for that resource for the profile. If the value is DEFAULT, the thresholds are the default settings that were set by the system administrator.
204
Table 45
Field
User or Role Granted Role Admin Option Default Role Role Name Privilege Admin Option
number of bytes that the user has used on the tablespace percentage of the allotted space that the user has used User System Privileges Report name of the Oracle user
Chapter 6
205
Table 46
Item Privilege
Admin Option
206
Table 48
Field OS Users
CPU used by this session execute count physical reads physical writes session logical reads sorts (disk) sorts (memory) table fetch continued row table scan rows gotten table scans (long tables) table scans (short tables) user commits user rollbacks
Stat Value Oracle Username Session ID Serial # Type Resource_id1 Resource_id2 Lock Held
value of the statistic Locks Held/Session Report Oracle user name ID of the session serial number for the user session type of lock held by the user session first resource that is locked by the user session second resource that is locked by the user session the type of lock held :
I I I I I I I
None Null RS - Row Share RX - Row Exclusive S - Share SRX - Share Row Exclusive X - Exclusive
Lock Request
Chapter 6
207
Viewing the User Session SQL and User Session Detail reports
The User Session SQL report provides the SQL command that was issued by the user in the current session. From the USERS_INSTANCE menu, choose Reports =>User Session SQL. For more detailed information about a specific user session, from the USERS_INSTANCE menu, choose User Session Detail. Table 49 shows the information that the User Session Detail report provides. Table 49
Field OS User ID Oracle User ID Session ID Statistic Name
CPU used by this session execute count physical reads physical writes session logical reads sorts (disk) sorts (memory) table fetch continued row table scan rows gotten table scans (long tables) table scans (short tables) user commits user rollbacks
value of each statistic Oracle Connect Time/Session report user name for the operating system account user name for the Oracle account ID of the session for the username how long the user has been logged in and running
208
Owner of the object Object name Object Type Status of the object Object creation date
Run this report from a USERS application menu by choosing Reports => Users/Objects in SYSTEM.
Chapter 6
209
Table 50 lists the tablespace or tablespace object conditions that cause the listed space parameters in the AVAILABILITY application to go into a warning or alarm state. Table 50
Condition
I I
less than 10% of free space left has less than two extents that can be added does not have enough rollback segment space left does not have enough extents left for a rollback segment cannot allocate its next extent because the object does not have enough free space
ExtentsLeftETF ExtentsLeftPct ExtentsLeft FreeSpaceDeficit FreeSpace (tablespaces only) FreeSpaceETF (tablespaces only) RSExtentsLeftPct RSExtentsLeft RSSpaceLeftPct RSSpaceLeft CannotExtend TempTSLeft TempTSLeftPct
tables cluster index schemas partitions tablespaces (Locally Managed TablespacesUNIFORM extent size) temporary tablespaces (both Dictionary Managed Temporary Tablespaces and Locally Managed Temporary Tablespaces)
When you exclude an object in a tablespace, only that object is excluded from setting off parameter alarms.
I
If you exclude a tablespace, all objects in that tablespace is not monitored by the space parameters. If you exclude an object in a tablespace, only that object is not monitored by the space parameters. If you exclude a schema, all objects that are owned by the user, wherever they are located in the instance, are not monitored by the space parameters. If you exclude a partition, only that partitioned part of the table is excluded. To exclude all of a partitioned table from being monitored, you must exclude all partitions that create that table.
210
If you exclude a tablespace or tablespace object, PATROL still monitors the tablespace, but the space parameters do not go into alarm. However, the information about the tablespace or tablespace object still appears on relevant reports, and the tablespace is still monitored for file input and output.
Menu command Exclusion => Tablespace Exclusion Exclusion => Object Exclusion Exclusion => Object Exclusion Exclusion => Object Exclusion Exclusion => User Exclusion Exclusion => Partition Exclusion
Affected objects Tablespace1 and all objects inside Table1, Table3, Table5 Cluster1, Cluster2 Index1, Index2, Index3, Index4 Only the objects that are owned by the specified user Partition1, Partition2, Partition3, Partition4 (to exclude Table2 or Table4, you must exclude all partitions contained the table)
Chapter 6
211
Exclusion examples
Exclusion examples
Example 1 describes excluding a tablespace, and Example 2 describes excluding a tablespace object.
EXAMPLE
Excluding the Sales96 tablespace The Sales96 tablespace is 99% full but you know that nothing new will be added to it. To prevent unnecessary alarms, you exclude the tablespace. The following parameters do not go into an alarm state even though the tablespace is nearly full:
I I I I I I I I I I I I I
CannotExtend ExtentsLeftPct ExtentsLeftETF FreeSpaceDeficit ExtentsLeft FreeSpaceETF (Tablespaces only) FreeSpace (Tablespaces only) RSExtentsLeft RSExtentsLeftPct RSSpaceLeft RSSpaceLeftPct TempTSLeftPct TempTSLeft
However, the tablespace appears on all reports that list the tablespaces in the instance.
212
Excluding tablespaces
EXAMPLE
Excluding the Flex99 table You want to monitor the space left in the Personnel tablespace. A few tables in the tablespace are 99% full. You do not anticipate adding any new information to the Flex99 table. You do not want to see space alarms on the Personnel tablespace if the only object in the tablespace that is running out of room is the Flex99 table. You exclude the Flex99 table object in the Personnel tablespace from being monitored by the following parameters:
I I I I I I I I I I I I I
CannotExtend ExtentsLeftPct ExtentsLeftETF FreeSpaceDeficit ExtentsLeft FreeSpaceETF (Tablespaces only) FreeSpace (Tablespaces only) RSExtentsLeft RSExtentsLeftPct RSSpaceLeft RSSpaceLeftPct TempTSLeftPct TempTSLeft
If these parameters go into an alarm state on the Personnel tablespace, you now know that the alarm is for another tablespace object that is running out of room.
Excluding tablespaces
Use this task to exclude a permanent or temporary tablespace from triggering the space parameter alarms.
1 Choose Tablespace Exclusion from the AVAILABILITY menu. 2 Select a tablespace or tablespaces you want to exclude from the Tablespaces
Available list, and click Apply.
Chapter 6
213
Excluding objects
The tablespaces are added to the Tablespaces Being Excluded list and are excluded from monitoring by the following parameters in the next polling cycle:
I I I I I I I I I I I I
ExtentsLeftETF ExtentsLeftPct ExtentsLeft FreeSpaceDeficit FreeSpace FreeSpaceETF RSExtentsLeftPct RSExtentsLeft RSSpaceLeftPct RSSpaceLeft TempTSLeftPct TempTSLeft
3 To include a tablespace that you have excluded, select the tablespace from the
Tablespaces Being Excluded list, and click Apply.
Excluding objects
Use this task to exclude certain objects in a tablespace from being monitored by the following parameters:
I I I I I I I I
1 Select Object Exclusion from the AVAILABILITY menu. 2 Select a tablespace whose objects you want to exclude, and click Accept.
214
3 Select the type of object from the tablespace that you want to exclude, then select
the user who owns the type of object you want to exclude. You can select from the following:
I I I I I
4 Click Accept. 5 Select the objects to exclude from the dialog box that lists the object that the user
owns in the tablespace, and click Accept. The objects are now excluded from monitoring by the space parameters. You can also use this function to include objects you have previously excluded from monitoring.
1 Choose Exclusion => User Exclusion from the AVAILABILITY menu. 2 Select a user whose objects you want to exclude from the Users Available list, and
click Apply. The user is moved to the Users To Be Excluded list. The schema of the user you have selected is now excluded from monitoring by the following parameters:
I I I I I I I I
3 To include a user that you have excluded from space monitoring, select the user
from the Users to Be Excluded list, and click Apply. The user is now included in space monitoring.
Chapter 6 Monitoring tablespaces, users, and SQL statements 215
NOTE
The FreeSpace parameter does not take into account whether the segment is a partition or a table.
To exclude partitions from monitoring 1 Choose Partition Exclusion from the AVAILABILITY menu to display the Partition
Exclusion dialog box.
2 Select a type of partition you want to include or exclude, and select the the schema
or user that owns objects in that partition.
3 Click Apply. 4 Select an table or index that belongs to the schema you selected, and click Apply. 5 Select the partitions to be added or removed from the exclusion list, and click
Apply.
These partitions are excluded from the parameter in the next polling cycle.
216
name and service of the instance whether the instance is being monitored if the instance should be always online home path of the instance what tablespaces are being excluded what tablespaces are being monitored problem user settings categories that have been selected to monitor the instance blackouts scheduled for the instance
SQL Snapshot displays the last SQL statement sent by a client process. You can use SQL Snapshot to examine the SQL statements being currently executed by a problem process. SQL Viewer captures all SQL statements that are sent in the instance during a time
interval. You can use SQL Viewer to examine all SQL statements in a polling cycle to find trends or continuous problems.
Chapter 6
217
NOTE
Some SQL statements run too rapidly to be captured by SQL Snapshot. For these types of statements, consider using SQL Viewer.
1 From the INSTANCE menu, choose SQL => Snapshot and select the sorting criteria
you want to use:
I I I I
Statement CPU sorts by the SQL statement. Session CPU sorts by the session number. Session Block Gets sorts by the block gets of a session. Session Physical I/O sorts by the physical input and output of a session.
2 Move the slider to select the number of users whose SQL statements you want to
see, and click Accept. The maximum number is 20, and the default is 10. The current active users or sessions are listed in descending order, and the list includes the user name, the PID, the SID, and the value of the sorting criteria.
3 To view the SQL statement, select the user or session whose SQL statement you
want to see, and click Accept. The SQL Text dialog box displays the SQL statement for the user or session.
run Oracle's Explain Plan utility quit SQL Snapshot cancel and view another SQL statement
5 To run Oracle's Explain Plan utility, select Run Explain Plan and then click Accept.
You must enter the user's name and the password for that username. The user name for the session is displayed in the SQL Text dialog box.
NOTE
You may need to enter the SYS user name and the password.
218
The console window displays the actions for the Explain Plan utility. For more information about the Explain Plan utility, see your Oracle documentation.
6 To view another SQL statement, click Cancel to return to the SQL Text dialog box,
or quit SQL Snapshot by selecting Quit Snapshot.
NOTE
To retrieve CPU data, the TIMED_STATISTICS parameter in the init.ora file must be set to TIMED_STATISTICS=TRUE. If the parameter is not set to true, SQL Snapshot does not retrieve any CPU data. To change the parameter, you must shut down the database, change the parameter in the init.ora file, and restart the database.
P$SQL P$SQL_TEXT
You can access reports about SQL statements through the SQLVIEWER menu. You can also access the tables through SQL*Plus or Server Manager to create your own reports.
P$SQL table
The P$SQL table stores history and trend information about each SQL statement. The information includes the date that the SQL was first loaded. If a SQL statement is executed more than once by the same Oracle user, that statement is listed in the P$SQL table only once. However, SQL Viewer keeps track of the total number of times that the SQL is reloaded, invalidated, parsed, and executed and provides history and trend information. The table is always appended; values are not updated. The table is emptied during the archive and truncate process.
Chapter 6
219
P$SQL_TEXT table
The P$SQL_TEXT table collects the text of each unique SQL statement. The SQL is readable text, and the number of text characters that the table can store is unlimited.
220
Use any of the following reports to identify statements that should be pinned in the SGA:
I
A standard report ordered by buffer identifies high CPU use by a SQL statement. A standard report ordered by executions identifies the most frequently executed SQL statements. A standard report ordered by disk reads identifies the statements that are generating the most I/O activity on the system.
NOTE
You must stop the SQL Viewer collection before you can run any reports.
To view this report, choose Reports => Standard Report from the SQLVIEWER menu. Then select the following items from the dialog box:
I I I I
statistic to display in the report user to report on beginning and end date range number of rows for the report to return.
Chapter 6 Monitoring tablespaces, users, and SQL statements 221
The report is sorted by the criteria that you selected and is displayed in a text window. Table 52 shows the information provided in the report. Table 52
Item SQL Text Statistic Parsing User
sort order to use for the report user or users to report on beginning and end date range number of rows for the report to return
The report is sorted by the criteria that you selected and is displayed in a text window. Table 53 shows the information provided in the report. Table 53
Item SQL Text First Loaded Statistics
Sharable_mem Persistent_mem Runtime_mem Buffer_gets Executions Users_executing Sorts Loaded Versions Invalidations Disk reads Loads Parse Calls
222
NOTE
The SQL Viewer must be stopped before you can archive the data.
To archive the SQL statements, choose Archive Data from the SQLVIEWER menu. You can change the directory where the files are created, and then click Accept to delete the information from the database tables and save to the flat files. The following files are created:
I I
psql.dat, which contains the statistics about the SQL statements psqltest.dat, which contains the text of the SQL statements
The data is deleted from the tables. You can now open the file and view the SQL information in a text editor.
Chapter 6
223
Enter the authorized user name and password (SYS or DBA) in the entry fields and click Accept. The session is immediately terminated.
how to access the KM menu commands, Appendix A, Accessing menu commands, InfoBoxes, and online Help InfoBoxes, and online Help on page 313 definitions and default values for parameters consumer and collector parameter dependencies PATROL for Oracle online Help PATROL for Oracle online Help
PATROL Agent configuration variables Appendix B, PATROL database objects on page 317 Instructions about installing and using PATROL for Oracle with firewalls Appendix C, Firewall and port-forwarding considerations on page 353
224
Chapter
7
226 226 228 234 237 240 246 249 250 251 253 254 254 255 255 255 256 256 256 257 258 260 260 262 263 268 270
225
Alerts parameter Availability reports Backup and Recovery reports Capacity reports Database reports SGA reports
Alerts parameter
You can use PATROL to determine if any Oracle errors occurred on the instance, and if an error occurred, view the error message. When an Oracle error occurs, the Alerts parameter in the AVAILABILITY application goes into warning or alarm. To view the error, open the parameter. The error text is displayed in an annotated data point on the parameter graph. By default, the Alerts parameter goes into alarm when it detects one of the ORA006XX errors in the error log. If you want the Alerts parameter to monitor the error log for other errors or exclude from monitoring one or more of the ORA-006XX errors, you can make those changes using the Error Log Filter menu command from the AVAILABILITY application. Using the Error Log Filter menu command, you can specify new error strings that you want monitored and specify error strings that you want excluded from monitoring.
EXAMPLE
If you enter testing error as a string that you want excluded from monitoring, the Alerts parameter ignores the ORA-00608 testing error, if one occurs, and does not go into an alarm state when it detects this error in the error log. If you enter tablespace name as a string that you want monitored, the Alerts parameter goes into a warning state each time it detects an error message that contains tablespace name.
After making changes to the error strings, you must deactivate and reactivate the Alerts parameter so that the changes can take effect.
226
Alerts parameter
all error messages ORA-006XX error messages privilege violations messages in the last 40 lines of the alert log
To view all error messages, choose Reports => Alert Log => All Error Messages from the INSTANCE menu. The report prints to a text window. Any error messages that were generated on the instance are listed. To view ORA-006XX error messages, choose Reports => Alert Log => All ORA-006XX Messages from the INSTANCE menu. The report prints to a text window. Any critical 006XX error messages that were generated on the instance are listed. To view privilege violations, choose Reports => Alert Log => Privilege Violations from the INSTANCE menu. The report prints to a text window. Any violations of privileges by users or user sessions are listed. To view the last 40 lines of the alert log, choose Reports => Alert Log => Show Tail from the INSTANCE menu. The report prints to a text window. Any violations of privileges by users or user sessions are listed.
If you select Facility Name, enter the prefix for the error message and click Apply. The default is ORA. If you select Error Number, enter the number of the error message and click Apply.
227
Availability reports
Availability reports
PATROL provides the following reports to determine space, lock and extent availability on the instance:
I
Space and lock information Free Space Lock Conflicts Object Space Analysis Space Usage by Object Extent information Auto Extend DBFiles Free Space Deficit Maximum Extents Temporary Extents
228
Availability reports
1 Choose Reports => Availability =>Object Space Analysis from the INSTANCE menu,
or Reports => Object Space Analysis from the AVAILABILITY menu for that instance.
2 Select the type of object for which you want the space analysis and the schema for
that object. Click Accept. Table 55 shows the information that the report provides. Table 55
Item Object Name Size (bytes) Size (blk) Extents Next Extent Min Extents Max Extents % Inc
1 Choose Reports => Availability =>Space Usage by Object from the INSTANCE menu,
or Reports => Space Usage by Object from the AVAILABILITY menu for that instance.
2 Select the type of object for which you want the space analysis and the schema for
that object. Click Accept.
3 Select the object for which you want information and click Accept.
229
Availability reports
230
Availability reports
Auto Extend DBFiles Report Free Space Deficit Report Maximum Extents Report Temporary Extents Report
231
Availability reports
1 Choose Reports => Free Space Deficit from the AVAILABILITY menu, or Reports =>
Availability => Free Space Deficit from the INSTANCE menu.
2 Select the type of object or select all objects, and click Accept.
The report displays in a text window. Table 59 shows the information that the report provides. Table 59
Item Next Extent Max Available Deficit Type Segment Name Tablespace Owner
232
Availability reports
1 Choose Reports => Availability => Maximum Extents from the INSTANCE menu, or
Reports => Maximum Extents from the AVAILABILITY menu for that instance.
2 Enter the Maximum Extents Threshold setting, select a tablespace, and click Accept.
This setting is the threshold for extents. When an object reaches this threshold, the object appears on the report. If you select ALL TABLESPACES, extent information for all tablespaces on the instance is displayed. Table 60 shows the information that the report provides. Table 60
Item Segment Type Tablespace Current Extents Max Extents Extents Left Pct Max
1 Choose Reports => Availability => Temporary Extents from the INSTANCE menu or
Reports => Temporary Extents from the AVAILABILITY menu.
2 Select the tablespace or tablespaces you want information about, or select ALL
TABLESPACES. Click Accept.
233
name of temporary segment associated tablespace name current number of extents maximum number of extents specified for this segment system limit of maximum extents for a segment percent of maximum extents currently allocated
Archiving State Backup Status Log History Media Recovery Redo Log Files
1 Choose Reports => Backup and Recovery => Backup Status from the INSTANCE
menu.
234
OFFLINE ONLINE SYSTEM RECOVER SYSOFF (an offline file from the SYSTEM tablespace)
SCN at last checkpoint timestamp of the datafile creation datafile path and file name
ARCHIVELOG NOARCHIVELOG
whether the automatic archival option is set to TRUE or FALSE directory the archive should be saved to
235
236
Capacity reports
Capacity reports
Instance capacity is defined by the Oracle resources that are used by the users, processes, and transactions on the instance. The following reports give information about the availability of the instance:
I I I I I
Access Statistics Locks Outstanding Resources Used Trace Files Analysis Wait State Analysis
Before you can manage the job queue, you must activate the CAPACITY application by choosing KM Admin => Monitor Settings Modify from the INSTANCE menu, and enabling the CAPACITY category. The CollCapacity parameter starts collecting information on the next polling cycle, and then populates the consumer parameters. The CAPACITY icon should appear within two polling cycles.
237
Capacity reports
Table 65
Item
Namespace
Memory Loads
amount of memory the object uses number of times the object has been loaded This count also increases when an object has been invalidated
number of executions on the object number of users currently locking this object number of users currently pinning this object number of buffers on the object
Choose Reports => Capacity => Resources Used from the INSTANCE menu, or Reports => Resources Used from the CAPACITY menu. The report is displayed in a text window.
238
Capacity reports
debugging trace files for the background processes (LGWR, DBWR, and so on) are written during Oracle operations.
I I
I I
239
Database reports
Table 66
Item Wait Event
SQL Statement
1 Choose Reports => Capacity => Locks Outstanding from the INSTANCE menu, or
Reports => Locks Outstanding from the CAPACITY menu.
For all user sessions, select List all user sessions sorted by, and select the sort order to use. For an individual user session, select the user session from the User Name list.
The locks for specific users, session, and objects are listed. The locks that are waiting are also listed.Table 67 shows the information that the report provides. Table 67
Item User Name Session ID Lock Object
Database reports
Use the following reports to get information about the database files:
I I I I
Database Files Oracle License Limits Parameter File (init.ora) Schema Table Information
240
Database reports
Use the following reports to get information about the functions, packages, procedures, and triggers used in the database:
I I I I
Use the following reports for information about activity in the database:
I I
1 Choose Reports => Database => Schema Table Info from the INSTANCE menu. 2 Select a schema and click Accept. Select a table in the schema or select ALL
TABLES, and click Accept. Table 68 shows the information that the report provides. Table 68
Item Constraint Name Type Owner Table Name
Report 1 - lists all table constraints ordered by owner and table name
Database reports
Table 68
Item Status
Report 2 - lists the storage parameters for all tables ordered by owner and table name Table Name Tablespace Name Init Extent Next Extent Min Ext Max Ext Pct Table Name Tablespace Name Bytes Extents Table Owner Table Name Column Column ID
Report 3 - lists storage allocated for all table segments ordered by owner and table name
Report 4 - lists table column information ordered by owner, table_name, and column_id
Report 5 - lists storage allocated for all segment types, except Table, ordered by owner and segment name Table Name Segment Type Tablespace Name Bytes Extents name of the table name of the segment in the table name of the tablespace the table is in number of bytes in the tablespace number of extents in the tablespace
Choose Reports => Database => Oracle License Limits from the INSTANCE menu.
242
Database reports
Value
Reports => Database => Schema Function Info Reports => Database => Schema Package Info Reports => Database => Schema Procedure Info Reports => Database => Schema Trigger Info
owner of the object name of the object status of the object date and time that the object last executed
243
Database reports
1 Choose Reports => Database => Rollback Segments from the INSTANCE menu. 2 Select a rollback segment or select ALL SEGMENTS, and click Accept.
Table 70 shows the information that the report provides. Table 70
Item Segment Name Tablespace Name Owner Status Bytes Blocks Extents Init Extents Min Extents Max Extents % Inc Segment Name Writes Gets Waits Wraps Extends Ave Shrinks Ave Active
244
Database reports
1 Choose Reports => Database => Statistic Summary from the INSTANCE menu. 2 Select a statistic type that you want reported and click Accept: 3 Select a class of system-wide statistics from the list of Statistics of system-wide
values and click Accept.
User Redo Enqueue Cache OS Parallel Server SQL Debug Statistics of Rollback Segments
Value Rollback Segment Status Extents RS Size Writes Transactions Gets Waits Shrinks Wraps Extends Event Name Total Waits Total Timeouts
value of the statistic rollback segment number rollback segment status number of extents in rollback segment size in bytes of rollback segment number of bytes written to rollback segment number of active transactions number of header gets number of header waits number of times the size of a rollback segment decreases number of times that the rollback segment is wrapped number of times that the rollback segment size is extended System Events name of the wait event total number of waits for this event total number of timeouts for this event
245
SGA reports
Table 71
Item
SGA reports
Because tuning any part of the Oracle server or database involves the system global area (SGA), you must tune the SGA as well. You can use the following reports to view the current memory usage in the SGA.
I
SGA Information SGA Memory Analysis Report Shared Pool Report Buffer Pool Information Buffer/Lib/Dict Cache Info Report Buffer Cache Contents Report Redo Log Cache Report
Before you can manage the job queue, you must activate the SGA application by choosing KM Admin => Monitor Settings Modify from the INSTANCE menu and enabling the SGA category. The CollSGA parameter starts collecting information on the next polling cycle, and then populates the consumer parameters. The SGA icon should appear within two polling cycles.
246
SGA reports
Choose Reports => SGA => SGA Memory Analysis from the INSTANCE menu, or Reports => SGA Memory Analysis from the SGA menu. Table 72 shows the information that the report provides. Table 72
Item SGA Component Name Size (bytes)
Reloads Invalidations
247
SGA reports
Unknown segment consistent read number of consistent reads for unknown segments
248
Batch reporting
Choose Reports => SGA => Buffer/Lib/Dict Cache Info from the INSTANCE menu, or Reports => Buffer/Lib/Dict Cache Info from the SGA menu.
Batch reporting
You can schedule jobs to run at specific times from PATROL for Oracle using the Batch Scheduler. You can also schedule more than one report to run on the instance. A job is one of the following items:
I I I
SQL Scripta script file that runs a SQL script OS Commandan operating system command or an executable file PSL Scripta script file that runs a PSL script
All scripts and commands are stored and run on the host computer, not the console computer.
NOTE
Selecting the PSL Script option does not generate any output. The results of the job are not displayed by the Batch Scheduler.
You can schedule to run any of the reports contained in PATROL for Oracle.
249
Oncethe job or report runs once at the specified time Daily Oncethe job or report runs every day at the specified time Daily Recurthe job or report runs every day at a specified time interval Weekly Oncethe job or report runs every week at the specified time and day of the week Weekly Recurthe job or report runs every week on the specified day and at the specified time interval
You can select the following types of output for the Scheduler:
Output Mode Text Window Annotation Description Output is sent to a text window. All reports are appended to the text window. Output is sent to the parameter SchedulerOutput, to be displayed as an annotation report. The axis gives the time and date that the job ran. Output is sent to the Scheduler Log File. You can view the output for the job using the View Log File Admin commands. The log file is stored in the $PATROL_HOME/oracle/log directory on the agent.
Log File
EXAMPLE
OS command file You have a batch file on your Oracle NT computer that periodically cleans out the trace file directories. You can schedule this batch file to run every morning at 5:00 a.m. You select the output type Annotation so that you can quickly check that the job ran on schedule by viewing the SchedulerOutput parameter.
250
EXAMPLE
Report You want to examine the redo log cache throughout one day. You can set the Redo Log Cache Report to run on Monday, starting at 8:00am, and run every 30 minutes until the end of the day. You select the output type Text Window so that you can view the results every time the report runs.
NOTE
The Scheduler Admin menu command captures only the status of the last executed statement. It does not capture the return codes from the batch job itself.
1 Choose Scheduler Admin => Schedule Jobs => Add Job from the INSTANCE menu. 2 In the Job Name field, enter a unique name for the job, and select the category for
the job from the Category menu:
I I I
3 Select a Schedule Type option to specify how often the script or command runs. 4 Select the type of notification for PATROL to send when the job runs. 5 Select the type of output for PATROL to use when it displays the results of the job,
and select when PATROL sends the results:
I
AlwaysPATROL always sends the results to the output type you specified. Job SucceedsPATROL only sends the results when the job succeeds. Job FailsPATROL only sends the results when the job fails. Job CompletesPATROL sends the results when the job completes, whether it
succeeds or fails.
251
NOTE
A job is flagged as a failed job if it fails to execute. Jobs fail for several reasons: an invalid statement from the OS command; invalid PSL file permissions; compilation or process errors; or ORA- errors from the SQL statement. Since a PSL job returns no output, select the No output option, and use the Job Fails option to catch any privilege or file errors.
6 (Optional) If the job requires certain criteria, select the number of parameters to use
for this job from the Number of Parameters list. The default value is None. Enter the criteria for the job once you complete this screen. You can specify any criterias that are relevant to the script or the command. PATROL does not perform any check on the job criterias.
7 (Optional) In Actions When Done, select whether to delete the job when it has
completed.
252
1 Choose Scheduler Admin => Schedule Jobs => Add Report from the INSTANCE
menu.
3 Select a Schedule Type option to specify how often the report runs and the type of
notification that PATROL sends when the report runs.
4 Select the type of output for PATROL to use when it displays the results of the
report and when PATROL sends the results:
I
AlwaysPATROL always sends the results of the report to the output type you
specified.
I
Job SucceedsPATROL only sends the results of the report when the job succeeds. Job FailsPATROL only sends the results of the report when the job fails. Job CompletesPATROL sends the results of the report when the job completes, whether it succeeds or fails.
5 Optional. Select whether to delete the report when it has completed in the Actions
When Done check box.
6 Click Apply. 7 Specifying the time the job or report should run on page 254 NOTE
You can modify a report by choosing Scheduler Admin => Schedule Reports => Modify Report from the INSTANCE menu.
253
TIP
The Time field uses the 24-hour clock. A job or report cannot be scheduled to run sooner than 10 minutes from the current time.
Specify the time and day for the job or report to run:
I
If you selected to run the job or report only once, select the date and time that the job or report should run, and click Apply. If you selected to run the job or report Daily or Weekly Recur, select the time interval to run the job or report, select the start and end time for the time interval, and select the date to start and stop running the job or report. Click Apply. If you selected to run the job or report Weekly Once, select the day of the week and the time of the day. Select the start and end date of the job or report, and click Apply.
254
To delete results from the log file, choose View Log File Admin => Delete Log File from the INSTANCE menu. Select the job whose results you want to delete, or select All jobs, and click Apply.
255
NOTE
The Compress Log Files and Move Log Files recovery actions are not available on an OpenVMS host or a Microsoft Windows host.
1 Choose Recovery Admin => Log File Recovery Admin from the AVAILABILITY
menu.
2 Select one of the recovery action radio buttons, and click Accept:
I
Compress Logs automatically compresses the log files into a compressed file
Move Logs automatically moves the log files to another directory on the
monitored server. You must specify the directory on the monitored server to move the log files to. The PATROL operating system account must have permission to read and write the files to this directory.
3 You can remove an already-set recovery action by selecting the Do not move or
compress logs option.
HTML reporting
1 Choose Recovery Admin => Resize Next Extent from the AVAILABILITY menu 2 Select an object type and schema from the Resize Next Extent dialog box, and click
Accept.
3 Select an object from the list, and select Enable to set the recovery action.
You can remove this type of recovery action by selecting Disable.
4 Enter the SYS password to grant the PATROL account for Oracle the privileges to
alter the object, and click Apply. If you do not enter the password, the PATROL account for Oracle cannot set the recovery action.
HTML reporting
HTML Reporting allows you to create a web page that displays the state of PATROL for Oracle parameters and application classes. While you cannot take any action from the web page, you can monitor the state of your Oracle environment from any web browser behind your firewall. Figure 18 on page 258 describes the architecture of HTML Reporting.
257
Requirements
Figure 18
PATROL Agent
FTP Connection
Web Server
Index Page lists all instances monitored by HTML Reporting Oracle Instance 1 Oracle Instance 2
Requirements
You must configure the web server that hosts the HTML Reporting web pages. If you have installed a web server for PATROL Central-Web Edition, you can use the same versions of the web server and the Tomcat servlet engine for HTML reporting.
258
Requirements
If you are not using the PATROL Central-Web Edition, or want to install a separate web server for HTML reporting, you must ensure that the web server fulfills the following requirements:
Resource Operating system Requirements
I I
UNIX (any UNIX platform that See Chapter 2, Installing and migrating PATROL for Oracle on page 45. is supported by PATROL for Oracle) FTP Publishing service must be run on the web server, and you must be able to read and write to the default FTP directories. Microsoft IIS Windows 2000 Apache Web Server JAVA2 Platform Standard Edition
I
FTP communication
PATROL Agent host must be able to communicate via FTP to the web server.
Web Server
I I I
For Microsoft Windows NT and Windows 2000 computers, the DNS address must be static.
JAVA
set the new environment variable JAVA_HOME to point to the root directory of the JDK hierarchy add JAVA_HOME/bin directory to your PATH environment variable
Set the new environment variable TOMCAT_HOME to point to the root directory of your Tomcat hierarchy if you are not using the Tomcat that is installed as part of PATROL Central - Web Edition. During the FTP setup from PATROL for Oracle you must update the server.xml file for the Tomcat servlet engine, which is stored in the TOMCAT_HOME/conf directory.
259
To set up HTML reporting 1 Choose HTML Configuration => HTML Reporting Setup from the ORACLE menu.
The HTML Reporting for Instances dialog box displays the instances for which you can set up HTML reporting, and the option to select the default categories and parameters.
2 Select the instances that you want reported by HTML reporting. 3 If you want to view the default categories and parameters, select the Choose default
catagories and Their parameters option and click Apply. Go to step 9.
260
CAPACITY LOG
4 If you want to select the categories and parameters, clear the Choose default
catagories and Their parameters option and click Apply.
5 From the HTML Reporting for Selected Instances dialog box, select the categories
that you want to monitor, and click Apply.
NOTE
The categories and their parameters to display must be active before you can select them.
The Customized Configuration for <instance> displays the parameter in that category.
6 Select the parameters you want to monitor from the Available Params list, and
click Apply.
7 You can select parameters from the Selected Params list and click Apply to remove
them from the HTML reporting.
261
9 Click Exit on the HTML Reporting for Selected Instances dialog box. 10 Click Exit on all remaining dialog boxes. 11 You are reminded to set up FTP configuration before HTML Reporting can start.
Click OK.
To set up FTP information 1 Choose HTML Configuration => FTP Info Setup from the ORACLE menu. You will
need to enter the following information: Table 76
Field Web Server (Name or IP Address)
262
Table 76
Field
Destination for PATROL files directory that you want PATROL to send the HTML (Destination Directory) reporting files to This directory must already exist, and should be under the ftproot directory for your web server. User Name/Password user name and password that has FTP access to the web server This account must have read and write permissions to the ftproot directory.
To update the server.xml file for a stand-alone Tomcat environment on page 264 To update the server.xml file for Tomcat version 3.3.x or 4.0.x stand-alone environment on page 265 To update the server.xml file by using Tomcat and PATROL Central - Web Edition on page 265 To update the server.xml file by using Apache Web Server and PATROL Central Web Edition on page 266
263
Description the root directory for your FTP server Microsoft Windows: drive:\full path for ftprootdirectory UNIX: absolute path for ftproot
destination directory
directory that you want PATROL to send the HTML reporting files to This directory must already exist, and should be under the ftproot directory for your web server. This directory is also the directory specified in Configure FTP information on page 262.
The directory that PATROL has been installed into. UNIX default: $BMC_ROOT\webcentral Microsoft Windows default: $BMC_ROOT\WebCentral
TOMCAT_HOME
The directory that the version of Tomcat you are using has been installed into.
If you are using the Apache Web Server, the owner of the files under the PATROL Installation directory, and the HTTPD user name that was specified during installation of the PATROL Central - Web Edition must be the same.
To update the server.xml file for a stand-alone Tomcat environment 1 Open the file server.xml in a text editor.
This file is found in the TOMCAT_HOME/conf directory.
2 Search for the Special webapps section near the end of the file. 3 Enter the following lines exactly as shown (context sensitivity applies) before the
</ContextManager> tag: <Context path="/patrolpok" docBase="<ftproot directory>\<destination directory>\patrol" debug="0" reloadable="true"> </context> Microsoft Windows Example: docBase="c:\inetpub\ftproot\htmlreporting\patrol" UNIX Example: docBase="/apps/useraccount/htmlreporting/patrol"
264
To update the server.xml file for Tomcat version 3.3.x or 4.0.x stand-alone environment 1 Rename the apps-admin.xml file in the $TOMCAT_HOME/conf directory to appspatrolpok.xml by copying it or renaming it.
2 Open the apps-patrolpok.xml file in a text editor. 3 Search for the Special webapps section near the end of the file. 4 Enter the following lines exactly as shown (context sensitivity applies) before the
</ContextManager> tag: <Context path="/patrolpok" docBase="<ftproot directory>\<destinationdirectory>\patrol" debug="0" reloadable="true"> </context> Microsoft Windows Example: docBase="c:\inetpub\ftproot\htmlreporting\patrol" UNIX Example: docBase="/apps/useraccount/htmlreporting/patrol"
These lines must be added before the </ContextManager> tag. The destination directory is the directory for the PATROL files that you entered in the HTML Reporting FTP Info Setup dialog box .
To update the server.xml file by using Tomcat and PATROL Central - Web Edition 1 Back up the server.xml file in the BMC_ROOT/PATROL Installation
Directory/tomcat401/conf directory.
2 Open the server.xml file in a text editor. 3 Search for the Special webapps section near the end of the file.
265
4 Enter the following lines exactly as shown (context sensitivity applies) before the
</ContextManager> tag: <Context path="/patrolpok" docBase="<ftproot directory>\<destination directory>\patrol" debug="0" reloadable="true"> </context> Microsoft Windows Example: docBase="c:\inetpub\ftproot\htmlreporting\patrol" UNIX Example: docBase="/apps/useraccount/htmlreporting/patrol"
5 Save your changes in a text only format. 6 Change directory to BMC_ROOT/PATROL Installation Directory/bin, and log in as
root.
8 Once all the ports are not in use and Tomcat has been shut down, execute
./pwcctl start in the BMC_ROOT/PATROL Installation Directory/bin directory.
This will restart the Tomcat servlet engine and make it use the modified server.xml file.
To update the server.xml file by using Apache Web Server and PATROL Central Web Edition 1 Back up the server.xml file in the BMC_ROOT/PATROL Installation
Directory/tomcat401/conf directory.
2 Open the server.xml file in a text editor. 3 Search for the Special webapps section near the end of the file. 4 Enter the following lines exactly as shown (context sensitivity applies) before the
</ContextManager> tag: <Context path="/patrolpok" docBase="<ftproot directory>\<destination directory>\patrol" debug="0"
266
5 Save your changes in a text only format. 6 Change directory to BMC_ROOT/PATROL Installation Directory/bin, and log in as
root.
7 Execute ./pwcctl stop to shut down Tomcat and the Apache Web Server.
It may take a few moments before the ports are no longer in use.
9 Back up the httpd.conf file. 10 Open the httpd.conf file in a text editor. 11 Search for the line JkMount /patrol/* ajp13. 12 Right above the JkMount /patrol/* ajp13 line, enter the following line:
JkMount /patrolpok/* ajp13
13 Save your changes in a text only format. 14 Change directory to BMC_ROOT/PATROL Installation Directory/bin, and log in as
root (if you are not currently logged in as root).
267
http://localhostname:8080/patrolpok/dbReport
You are able to see the HTML reports for the instances that you selected in the task Configuring HTML reporting on page 260.
The browser displays the index page listing all instances that you configured for HTML reporting. You can sort the list of instances by clicking the table column title. The index page is sorted by the current state of the instances, and is refreshed every 20 minutes by default. If you change the setting of the refresh rate on the index page, the change is active only for the web session. As soon as you close the web browser, the refresh rate returns to the default setting of 20 minutes. Click an instance name to display the instance page. The instance page displays all the selected parameters and their current value. An annotated parameter will have the phrase "More Info" next to the value. Click a parameter to view the online help for the parameter.
268
When you configure HTML Reporting, you specify the refresh rate for all HTML Reporting. You can change the refresh rate for the current HTML reporting session as you view the HTML reports. On the HTML Reports index page, select the number of minutes you want to use as the refresh rate for the HTML pages, and click Change. The HTML reports for the instances are refreshed at the new refresh rate. Once you close the web browser, however, the refresh rate returns to the default you selected when you first configured HTML reporting.
Choose HTML Configuration => HTML Reporting Remove from the ORACLE menu. Select the instance whose information you want to remove. The instance is removed from the HTML Reporting index page once the page refreshes.
269
how to access the KM menu commands, Appendix A, Accessing menu commands, InfoBoxes, and online Help InfoBoxes, and online Help on page 313 definitions and default values for parameters consumer and collector parameter dependencies PATROL for Oracle online Help PATROL for Oracle online Help
PATROL Agent configuration variables Appendix B, PATROL database objects on page 317 Instructions about installing and using PATROL for Oracle with firewalls detailed descriptions of the applications, menu commands, parameters, and InfoBoxes Appendix C, Firewall and port-forwarding considerations on page 353 PATROL for Oracle online Help
270
Chapter
Distributed Database Multithreaded Server Parallel Query Option Replication Archive Logs
Step-by-step instructions are available in the online Help. This chapter presents the following topics: Distributed database monitoring. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Getting information about distributed databases. . . . . . . . . . . . . . . . . . . . . . . . . . Getting transaction and snapshot information . . . . . . . . . . . . . . . . . . . . . . . . . . . . MTS reports. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Getting dispatcher information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Getting dispatcher information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . PQO reports . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Getting PQO operations statistics information . . . . . . . . . . . . . . . . . . . . . . . . . . . . Getting PQO server statistics information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Getting PQO session statistics information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Getting PQO system statistics information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Replication activities . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Monitoring database links . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Monitoring replication . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Getting replication information. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Enhanced monitoring of the Oracle archive logs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ORACLE_ARCHIVE_SPEC parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Activating the ORACLE_ARCHIVE_SPEC parameters . . . . . . . . . . . . . . . . . . . . Debugging the ARCHIVE application . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Where to go from here. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 272 272 273 275 276 276 279 279 280 281 282 283 283 284 286 289 290 290 291 291
271
272
273
Mixed
whether the transaction was partially committed and partially rolled back:
I I
YES NO
Advice
C for commit R for rollback NULL for no advice (transaction was not mixed)
Snapshot report
Description view used by users and applications for viewing the snapshot owner of the snapshot name of the master table of which this snapshot is a copy type of refresh for all automatic refreshes:
I I I
274
MTS reports
MTS reports
The Oracle MTS (multithreaded server) option enables many user requests to share a small number of server processes by using dispatcher processes. The number of shared server processes are dynamically adjusted according to the following items:
I I I
length of the request queue MTS_SERVERS initialization parameter value MTS_MAX_SERVERS initialization parameter value
Because Oracle enables you to make changes to the number of shared server and dispatcher processes, you can use the parameters and reports in the MTS application to determine what the changes should be. The following reports provide information about the multithreaded server structure of the instance:
I I I I I
Dispatcher Dispatcher Busy Rates Dispatcher Wait Times MTS init.ora parameters Shared Servers
The following parameters monitor the processes and dispatchers for the MTS:
I I I I I I I I
PATROL for Oracle online Help provides information about the MTS parameters. Before you can monitor multithreaded server activity, you must activate the MTS application by choosing KM Admin => Monitor Settings Modify from the INSTANCE menu, and enabling the MTS category. You must also ensure that the CollMTS collector parameter is activated. The CollMTS collector parameter starts collecting information in the next polling cycle, and then populates the consumer parameters. The MTS icon should appear within two polling cycles. Any active dispatchers are discovered, and MTS_DISP icons appear for each dispatcher inside the MTS application.
Chapter 8 Monitoring Oracle options 275
Dispatcher report
Description network protocol supported by this dispatcher name of the dispatcher process dispatcher status:
I I I I I I I
WAIT (idle) SEND (sending a message connection) RECEIVE (receiving a message), CONNECT (establishing a connection) DISCONNECT (handling a disconnect request) BREAK (handling a break) OUTBOUND (establishing an outbound connection)
Accept
276
Table 83
Item Idle (secs)
Percent Busy
277
To run this report, choose Reports => MTS init.ora parameters from the MTS menu.
EXEC (executing SQL) WAIT (ENQ) (waiting for a lock) WAIT (SEND) (waiting to send data to user) WAIT (COMMON) (idle; waiting for a user request) WAIT (RESET) (waiting for a circuit to reset after a break) QUIT (terminating)
total idle time in hundredths of a second total busy time in hundredths of a second percentage of the time that the shared server was busy
278
PQO reports
PQO reports
You can use PATROL to monitor the parallel query option (PQO) activity on the instance. The following reports provide information about statistics for the PQO:
I I I I
PATROL for Oracle online Help provides information about the PQO parameters. Before you can monitor the PQO, you must activate the PQO application by choosing KM Admin => Monitor Settings Modify from the INSTANCE menu, and enabling the PQO category. You must also ensure that the CollPQO collector parameter is activated. The CollPQO collector parameter starts collecting information on the next polling cycle, and then populates the consumer parameters. The PQO icon should appear within two polling cycles.
279
280
Table 87
Item
281
Table 89
Statistic
Allocation Width Local Msgs Sent Distr Msgs Sent Local Msgs Recv'd Distr Msgs Recv'd
The names statistics in this report are described in Table 91. Table 91
Statistic Servers Busy Servers Idle Servers Highwater Server Sessions Servers Started Servers Shutdown Servers Cleaned Up Queries Initiated DML Initiated DFO Trees Sessions Active 282 PATROL for Oracle User Guide
Replication activities
Table 91
Statistic
Local Msgs Sent Distr Msgs Sent Local Msgs Recv'd Distr Msgs Recv'd
Replication activities
You can use PATROL for Oracle to monitor the replication activities and the database links used in your replication environment. The replication activity on an instance and the links from the instance are monitored. To monitor database links and replication, you must activate the DB_LINKS and REPLICATION applications by choosing KM Admin => Monitor Settings Modify from the INSTANCE menu and enabling the DB_LINKS and REPLICATION categories. You must also ensure that the CollDbLinks and CollReplication collector parameters are activated. The CollDbLinks and CollReplication collector parameters start collecting information on the next polling cycle, and then populate the consumer parameters. The DB_LINKS and REPLICATION icons should appear within two polling cycles.
Monitoring replication
PATROL will now monitor the link. A DB_LINKS_INSTANCE application icon is created under DB_LINKS. You can also use this function to remove a database link from being monitored.
Monitoring replication
You can monitor replication activities on the Oracle instance. You can also suspend and resume replication, and monitor specific replication groups. The replication reports provide information about conflicts, deferred calls, and pending transactions for the replication environment. You can also view information about conflict resolution methods, database links, and replicated objects in a specific replication group.
284
Monitoring replication
The dblink returned is the database link to the master site for this replication group. You must suspend master activities before calling any of the Oracle procedures that trigger or alter replication. If an unexpected conflict is detected and not resolved, you may want to suspend master activities and manually perform queries and updates on the replicated sites to resynchronize the data between sites. To suspend replication, choose Administration => Suspend from the REPLICATION_INSTANCE menu from the master instance for the replication group. To resume replication, choose Administration => Resume from the REPLICATION_INSTANCE menu from the master instance for the replication group.
If the query returns QUIESCED, replication has been suspended. If the query returns NORMAL, replication is running normally.
285
Type of information Database Links for a replication group Conflicts in the replication environment, or automatic methods for resolving conflicts for a replication group Transactions and calls in the replication environment Objects that are replicated in a replication group
Conflicts report
Run the Conflicts report for information about any replication conflicts. Choose Reports => Conflicts from the REPLICATION menu. Table 94 shows the information that the report provides. Table 94
Item Copy ID Call ID Dest Link Error Time Err Num Error Message
Conflicts report
Description ID of the deferred transaction unique ID of the call of the deferred transaction database link used to address the destination time and date that the conflict occurred Oracle error number Message text of the error
286
whether the transaction was partly committed and partly rolled back (YES or NO), and the time and date that the row was inserted. time of manual force decision (null if not forced locally) time automatic recovery (RECO) last tried to recover the transaction
287
Choose Reports => Conflict Resolution Methods from the REPLICATION_INSTANCE menu. Table 97 shows the information that the report provides. Table 97
Item Schema Name Object Name Conflict Type
Reference Name
for delete conflicts, this is the table name. for uniqueness conflicts, this is the constraint name. for update conflicts, this is the column group name.
DB Links report
Run the DB Links report for information about database links. Choose Reports => DB Links from the REPLICATION_INSTANCE menu. Table 98 shows the information that the report provides. Table 98
Item Database Link Owner Username Connect String Database Link
DB Links report
Description name of the database link owner of the database link user name that is currently using the database link connect string for the database link name of the database link
288
Table View Package Package body Procedure Function Index Synonym Trigger Snapshot
monitor one or more archive log destinations when using the log_archive_dest_N syntax
NOTE
If you are the log_archive_dest syntax and have only one destination, use the ArchFreeSpace parameter in the AVAILABILITY application.
I I
monitor mandatory and optional destinations take into account all three methods for configuring log archiving
The ARCHIVE application is installed with, and requires the presence of, PATROL for Oracle and the appropriate operating system KM files to operate.
289
ORACLE_ARCHIVE_SPEC parameters
NOTE
When you load ORACLE_ARCHIVE.kml, the ArchFreeSpace parameter in the AVAILABILITY application goes offline.
ORACLE_ARCHIVE_SPEC parameters
Table 100 describes the parameters that the ORACLE_ARCHIVE_SPEC application provides. Table 100 ORACLE_ARCHIVE_SPEC application parameters
Parameter ArchFreeSpaceColl ArchFreeSpace ArchFreeSpaceOptional Description a collector parameter that gathers archive free space data and sends it to the ArchFreeSpaceOptional and ArchFreeSpace consumer parameters a consumer parameter that provides the total number of archive logs that can be created in this mandatory destination a consumer parameter that provides the total number of archive logs that can be created in this optional destination
For more information about parameters, see the PATROL for Oracle online Help.
NOTE
Mandatory and optional destinations are defined in the init.ora file.
290
how to access the KM menu commands, Appendix A, Accessing menu commands, InfoBoxes, and online Help InfoBoxes, and online Help on page 313 definitions and default values for parameters consumer and collector parameter dependencies PATROL for Oracle online Help PATROL for Oracle online Help
PATROL Agent configuration variables Appendix B, PATROL database objects on page 317 Instructions about installing and using PATROL for Oracle with firewalls detailed descriptions of the applications, menu commands, parameters, and InfoBoxes Appendix C, Firewall and port-forwarding considerations on page 353 PATROL for Oracle online Help
291
292
Chapter
9
293 294 298 299 299 300 300
WARNING
Do not load the ORACLE_RAC application if you are using the Oracle Parallel Server.
Chapter 9
293
NOTE
During RAC database configuration, all the RAC instances must be running to validate the TNS Service string.
You can configure an RAC instance by choosing ORACLE_RAC => RAC DB Configure from the host. To configure an RAC database and add the RAC instances, see the PATROL for Oracle User Guide and online Help. For each configured RAC instance, the KM creates an agent configuration variable /AgentSetup/ORACLE_RAC_DATABASE/RACInstanceName.defaultAccount. This default account is used by the MemberStatus parameter, which polls every 5 minutes to connect to each RAC instance through the TNS Service string to determine the member status. For an instance to be configured successfully by the autoconfiguration process, you must add the following variable to the initInstanceName.ora file:
remote_os_authent = TRUE
Because the remote connection is made by the TNS Service string, this variable is required. Also, you must update all the initialization parameter files of RAC instances.
294
DatabaseName RAC configured instance1 RAC configured instance2 RAC configured instance3 MemberStatus parameter
Figure 19 displays the nested hierarchy for RAC: Figure 19 Icon hierarchy for RAC
The PATROL Agent must be installed on at least one of the RAC cluster node. You must configure at least one of the RAC database instances through the PATROL for Oracle KM. The listener related to the RAC database instance must be running.
Chapter 9
295
To monitor RAC, following are the permission required for the PATROL OS account: Executable permission of srvctl utility for RAC configuration on an RAC environment. Read permission for the tnsnames.ora file.
The OpenVMS operating system is not supported. The Microsoft Windows operating system is not supported. Remote instance configuration is not supported. Common TNS Service string name is not supported. The ORACLE_FAILOVER application does not work. The blackout function does not work. To remove an RAC instance from the PATROL for Oracle KM, you must remove the RAC database and stop RAC monitoring. For any changes in the TNS Service string after configuration, you must update the /RACConfig.RACInstanceName.TNSService pconfig variable. Otherwise, you must reconfigure the RAC database. You cannot add, delete, or modify an RAC database instance. To update an RAC database instance, you must to remove the RAC database from monitoring and reconfigure it.
To configure instances for RAC monitoring 1 Load ORACLE.kml and ORACLE_RAC.kml on at least one node in the RAC
environment.
NOTE
The Debug menu command provides a way to turn debug on and off for the RAC instance represented by the ORACLE_RAC application class instance. When debug is turned on for ORACLE_RAC, the debug output is written to the system output window (SOW) and not to a separate window.
296
EXAMPLE
Three instances (a, b, and c) are running on three nodes (1, 2, and 3) on database TEST. Configure instance a on node 1 for RAC monitoring as described in To configure instances for RAC monitoring on page 296. After configuration, the following conditions are true:
I I
The ORACLE_RAC icon is displayed in the PATROL console. Under the ORACLE_RAC application, the TEST database icon is visible, and under that database level, all the member nodes are visible. If the ORACLE_RAC_MEMBER_INSTANCE application is in an alarm state, the MemberStatus parameter is also in a warning state. The annotation report that is generated shows which node instance is down.
To configure a RAC database 1 Select ORACLE_RAC => RAC DB Configure from the host.
The RAC DB Configure dialog box appears.
2 In the RAC DB Name field, enter the RAC database name. 3 In the RAC DB Home field, enter the RAC database home directory. 4 Click Exit.
Once you click Exit, the RAC Instance Information dialog box appears. Use this dialog box to add TNS Service string for each RAC instance. If you have provided valid information and the instance is running, PATROL for Oracle will configure the RAC database instance. Use the RAC Instance Information dialog box to add the RAC instances and a TNS Service string for each RAC instance.
To add the RAC instances 1 In the RAC Instance Name field, enter the RAC instance name. 2 In the TNS Service String field, enter the TNS service string. 3 Click Apply.
Chapter 9
297
ORACLE_RAC parameter
PATROL for Oracle validates the TNS Service string for each RAC instance by connecting to the instance. It uses the following command: PATROLDatabaseUser/PATROLDatabaseUserPassword@TNSServiceString
4 Click Exit. To remove a RAC database 1 Select ORACLE_RAC => RAC DB Remove from the host. 2 In the RAC DB Name field, enter the RAC database name. 3 Click Apply.
If you have provided valid information, the RAC database will be removed from monitoring.
4 Click Exit.
ORACLE_RAC parameter
Table 101 describes the parameter that the ORACLE_RAC_DATABASE application provides. Table 101 ORACLE_RAC_DATABASE application parameter
Parameter MemberStatus Description a standard parameter with a stoplight icon that checks the membership status of all instances in the RAC database collectively
The MemberStatus parameter checks the status of the configured RAC instances running in an Oracle RAC database cluster environment.
I
If the status of a RAC instance is mount, the parameter goes into the warning state with a value of 1. If the status of a RAC instance is down, the parameter goes into the alarm state with a value of 2. If the status of the RAC instance is a combination of mount and alarm states, then the parameter considers the highest state and goes into the alarm state with a value of 2.
298
The annotation report for this parameter lists the status of the RAC instances that are in the down and mount states. Also, if the RAC instance collection has any errors, then the MemberStatus parameter goes into the alarm state.
EXAMPLE
If the listener related to the RAC instance RAC922 is not running, then MemberStatus goes into the alarm state with the following error in the annotation report: RAC922 ----------ERROR: ORA-12541: TNS:no listener
For more information about parameters, see the PATROL for Oracle online Help.
environment, except for the one instance for which you want to see the databasespecific parameters go into an alarm state. ActivateDBParmThresholds.cfgApply this ruleset to an instance for which the DeActivateDBParmThresholds.cfg ruleset was applied earlier, but for which you now want to see the database-specific parameters go into an alarm state.
Chapter 9
299
The rulesets are stored in $PATROL_HOME/oracle/rulesets/. For more information about rules and rulesets and how to use them, see the PATROL Configuration Manager User Guide and Chapter 4, Using PATROL Configuration Manager to modify and migrate configuration on page 131.
how to access the KM menu commands, Appendix A, Accessing menu commands, InfoBoxes, and online Help InfoBoxes, and online Help on page 313 definitions and default values for parameters consumer and collector parameter dependencies PATROL for Oracle online Help PATROL for Oracle online Help
PATROL Agent configuration variables Appendix B, PATROL database objects on page 317 Instructions about installing and using PATROL for Oracle with firewalls Appendix C, Firewall and port-forwarding considerations on page 353
300
Chapter
10
301 302 304 305 305 306 306 311 311 312
This chapter presents the following topics: Overview of dataguard environment monitoring . . . . . . . . . . . . . . . . . . . . . . . . . . . . Dataguard configuration requirements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Configuring standby instance for monitoring . . . . . . . . . . . . . . . . . . . . . . . . . . . . Removing standby instance from monitoring . . . . . . . . . . . . . . . . . . . . . . . . . . . . Debugging the ORACLE_DATAGUARD application . . . . . . . . . . . . . . . . . . . . . . . . . Limitations in the dataguard KM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Parameters to monitor standby instance . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Activating the ORACLE_DATAGUARD parameters . . . . . . . . . . . . . . . . . . . . . . Troubleshooting the dataguard KM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Where to go from here. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Physical standby database - provides a physically identical copy of the primary database, with on-disk database structures that are identical to the primary database on a block-for-block basis. The database schema, including indexes, are the same. A physical standby database is kept synchronized with the primary database by recovering the redo data received from the primary database.
Chapter 10 Monitoring the dataguard environment 301
Logical standby database - Contains the same logical information as the production database, although the physical organization and structure of the data can be different. It is kept synchronized with the primary database by transforming the data in the redo logs received from the primary database into SQL statements and then executing the SQL statements on the standby database. A logical standby database can be used for other business purposes in addition to disaster recovery requirements. This allows users to access a logical standby database for queries and reporting purposes at any time. Thus, a logical standby database can be used concurrently for data protection and reporting.
Using the ORACLE_DATAGUARD KM, you can monitor the log gap parameters and status of the configured standby instances, both physical and logical. Although there are three protection modes, the KM supports only the default protection mode, maximum performance mode. The ORACLE_DATAGUARD KM monitors the dataguard instance configured through the KM command. During standby configuration, the ORACLE_DATAGUARD KM queries to all the configured instances of PATROL for Oracle. The initial configuration window displays the particular instances as primary instances and lets you select one of them. After selecting a primary instance, you need to enter the information of the standby instance. Once you enter the information, validation is done for that standby instance and the dataguard instance is configured. The ORACLE_DATAGUARD KM monitors a configured standby instance in any state, for example, log_archive_dest_state_x = DEFERED, ALTERNATE.
EXAMPLE
*.log_archive_dest_4='service="(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL =tcp)(HOST=mogra)(PORT=1521)))(CONNECT_DATA=(SERVICE_NAME=site2_XPT)(INS TANCE_NAME=dg3)(SERVER=dedicated)))"','LGWR ASYNC NOAFFIRM delay=0 OPTIONAL max_failure=0 max_connections=1 reopen=300 db_unique_name="site2" register net_timeout=180 valid_for=(online_logfile,primary_role)'
If you have set the log_archive_dest_n to a dataguard broker format, you need to change to simple service= format to monitor it in ORACLE_DATAGUARD km.
302
EXAMPLE
for Oracle 9i, LOG_ARCHIVE_DEST_2=SERVICE=payroll2 for Oracle 10g, LOG_ARCHIVE_DEST_2= SERVICE=boston LGWR ASYNC VALID_FOR=(ONLINE_LOGFILES,PRIMARY_ROLE) DB_UNIQUE_NAME=boston
During standby instance configuration, SYS user and its password is required. Do not append as sysdba or as sysoper to the SYS password. The hierarchy of the dataguard implementation is as follows:
ORACLE_DATAGUARD
I
Primary instance database name Configured standby instance name LogTransferGap parameter LogApplyGap parameter StandbyStatus parameter
Figure 20 displays the nested hierarchy for dataguard: Figure 20 Icon hierarchy for dataguard
Chapter 10
303
To select a primary instance whose standby needs to be configured 1 Select the ORACLE_DATAGUARD => KM Command => DataGuard Instance
Configure menu command.
2 From the DataGuard Instance Configure dialog box, select the primary instance.
The DataGuard Instance Configure dialog box lists the local primary instances available on the corresponding host based on the following criterias: Instances that are running and enabled for monitoring in the ORACLE KM. service = entry is set for the archive destinations. The standby instances are associated with the primary instances.
3 Click Apply to accept the primary instance and to go to the standby instance dialog
box.
4 Click Exit to close this dialog box. To provide information for the standby instance 1 In the Standby TNS Entry field, enter the TNS service entry name that you will use
to connect to the standby instance.
2 In the Standby SYS Password field, enter the SYS user password for connecting to
the standby instance. However, do not append as sysdba to the password.
3 Click Apply to accept the information and configure the standby instance. 4 Click Exit to close the dialog box. NOTE
I
The entered TNS service entry must be present in one of the log_archive_dest_n parameters of the primary instance. Do not configure a standby instance through the Oracle KM.
The standby instance type will be checked. The type should be either logical or physical standby. For a physical standby, the database name of standby and primary must be same.
304
2 From the DataGuard Instance Remove dialog box, select the primary database
name whose standby you want to remove.
3 Click Apply. 4 From the DataGuard Instance Removal dialog box, select the standby instance that
you want to remove.
5 Click Apply.
The selected standby instance, along with its corresponding parameters and related pconfig variables are cleared from the PATROL console. When none of the standby instance is available for monitoring, the parent level database name icon disappears from the PATROL console along with the corresponding agent pconfig variables.
NOTE
If the primary instance is removed from monitoring the Oracle KM then you must remove all its configured standby instances from the dataguard KM using the ORACLE_DATAGUARD => KM Command => DataGuard Instance Remove menu command. Else, all the dataguard parameters will go into an offline state.
DataGuard instance configuration - ORACLE_DATAGUARD => KM Commands =>Debug => DataGuard Instance Configuration => ON/OFF Dataguard gap parameters collector - ORACLE_DATAGUARD_DATABASE => KM Commands =>DataGuard Collector Debug => ON/OFF
Chapter 10
305
Switch over and failover of a standby instance is not supported. ASM and RAC-based standby instance is not supported. VMS platform is not supported. You cannot configure the standby instance for a primary instance which is remotely monitored in the ORACLE KM. The dataguard environment that has cascaded standby destinations is not supported. The primary instance requires to be in the logging mode. Enable or disable monitoring feature for configured standby instance is not available.
The CollDataGuard collector in the ORACLE_DATAGUARD database runs every 10 minutes to collect the data for the LogTransferGap and LogApplyGap parameters.
306
For information about the default parameter attributes, see the PATROL for Oracle online Help.
LogTransferGap parameter
During the transfer from a primary to a standby destination, the LogTransferGap parameter displays a gap, either in the redo logs or the archive logs. When the LGWR process is used, the LGWR process of the primary instance simultaneously tries to write redo information to the standby redo log files. When the ARCH process is used, the archive redo logs are simultaneously generated on the standby destination. The log_archive_dest_n parameter of a primary instance can either have a LGWR or an ARCH process to transfer redo data to the standby site.
EXAMPLE
log_archive_dest_n = <tns-service_entry> LGWR/ARCH .
The redo gap at the standby site can be for the following reasons:
I
Problem in the primary instance. Network between the primary and the standby instance is slow. Primary instance is unable to identify the standby site. Standby TNS service entry is deactivated, deferred, or removed from the primary LOG_ARCHIVE_DEST_n parameter. Problems in the standby instance, for example, when the standby listener is down. the standby instance is down. there is an error at the standby destination.
The primary instances LGWR or ARCH process is unable to write to the standby site. The primary instance is unable to resolve the service name when the TNS service entry of a standby instance is removed from the tnsnames.ora file at the primary site.
Chapter 10
307
Logs missing in between during transfer Logs missing sequentially during transfer
The following example explains the sequential gaps for logical and physical standy:
Sequence at the primary site 16 17 18 19 20 Sequence at the standby site 16 - - Logs missing sequentially - - Logs missing sequentially - - Logs missing sequentially - - Logs missing sequentially
The sequential gap formula for both logical and physical standby is: max (last archived sequence on primary destination) max(last archived sequence on standby destination) When you apply the above formula to the example and subtract the highest sequence number at the standby site (16) from the highest sequence number at the primary site (20), the result is 4. The following example explains the in between gaps for physical standy:
Sequence at the primary site 10 11 12 13 14 15 Sequence at the standby site 10 11 - - Logs missing in between - - Logs missing in between - - Logs missing in between 15
In this example, the query uses the v$archive_gap from the standby instance and it displays
high_sequence# low_sequence# 14 12
308
In this example, the query uses the v$archive_gap view and it displays a high sequence value of 14 and a low sequence value of 12. When you apply the formula to the example, subtract the lowest unmatched sequence number at the standby site (12) from the highest unmatched sequence number at the standby site (14), and add 1 to the result of that calculation, the result is 3.
NOTE
The v$archive_gap view displays rows only when the recovery process is running on the physical standby instance. The view displays only one gap that appears to be stopping the recovery process from applying log files.
The total LogTransferGap for physical standby = sequential gap calculation plus the v$archive gap calculation (4 + 3 = 7) The following example explains the formula to find in between gap for a logical standby:
Sequence# return 4 rows from first query 91 103 105 108 Sequence# return 4 rows from second query 85 93 105 108
Chapter 10
309
The in-between gap for above scenario is 1+1+2 = 4 The total LogTransferGap for logical standby = sequential gap + in-between gap (3 + 4 = 7)
LogApplyGap parameter
The LogApplyGap parameter displays a gap in the number of applied logs from the available log files. The gap displayed at the standby site is due to following reasons:
I
When the standby instance has purposely stopped the log apply process. When the standby instance did not get the log files from the Primary site. When the standby instance is unable to apply the next log due to missing logs. When the standby instance is down or log apply issues at standby destination.
StandbyStatus parameter
The StandbyStatus parameter queries to the standby instance to get the status. The annotation report for this parameter lists the status of the standby instance. Also, if the CollStandbyStatus collector has any standby connection issue, the corresponding StandbyStatus parameter goes into an alarm state. Table 103 explains the status of the standby database: Table 103 Status of the standby database
Standby database type Physical Mode Mount Open read only Open read write Down Nomount Logical Open read write Mount Open read only Down Nomount ORATNSTNS Error ORATNSTNS Status/Value Ok/0 Warning/1 Alarm/2 Alarm/2 Alarm/2 Ok/0 Warning/1 Alarm/2 Alarm/2 Alarm/2
The StandbyStatus parameter will go into an offline state when primary instance is removed from the Oracle KM monitoring.
310 PATROL for Oracle User Guide
The connection to standby instance is always made with sys/<Standby SYS Password>@<Standby TNS Entry> as sysdba. If the connection is not successful, you will get a corresponding error message. When you change the sys password for the standby instances, you must remove and reconfigure the standby instance. For any changes of the standby TNS entry at a primary instance, you need to remove and reconfigure the standby instance. The ORACLE_DATAGUARD KM does not detect change of standby type, for example, the standby instance changes from a physical to a logical standby. In such mode change, you need to remove and configure the standby instance. During the standby configuration, a primary instance might not be displayed in the primary instance list due to the following reasons: The instance is not configured in PATROL for Oracle. The instance is configured but it is not in open or in mount stage. The instance is configured but disabled for monitoring PATROL for Oracle. The instance does not have the service= entry in any of the log_archive_dest_n destinations.
Chapter 10
311
how to access the KM menu commands, Appendix A, Accessing menu commands, InfoBoxes, and online Help InfoBoxes, and online Help on page 313 definitions and default values for parameters consumer and collector parameter dependencies PATROL Agent configuration variables Appendix B, PATROL database objects on page 317 Instructions about installing and using PATROL for Oracle with firewalls Appendix C, Firewall and port-forwarding considerations on page 353 PATROL for Oracle online Help
312
Appendix
In this appendix, the following topics are discussed: Accessing KM commands and InfoBoxes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 313 Accessing online Help . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 314
Right-click the application icon and Right-click the application icon to choose KM Commands. display its pop-up menu and then choose InfoBox. Right-click the application icon. Click MB2 on the instance icon.
Appendix A
313
Right-click the application icon and From the Monitored Systems page, choose Knowledge Module click the system that you want, and Commands. click the Infobox tab to view the InfoBox for that system. To view the InfoBox for an application, drill down into a Monitored System until you can click the application instance that you want, and click the Infobox tab.
NOTE
If you are trying to access Help from a UNIX console, you may want to refer to the PATROL Installation Guide for specific instructions on how to install and setup a browser in the UNIX environment.
314
From the console menu bar, choose Help => Help Topics. Then double-click the name of your KM.
Double-click the parameter icon to open its display window. Click the Help button.
and then click the application class name. PATROL Central Operator - Web Edition Click the Help link, and Click the link for the Click the link for the then click the link for your application class, and then parameter, and then click KM. click the Page Help link. the Page Help link.
Appendix A
315
316
Appendix
B
317 321 321 322 331 332 334
Table 106 lists the grants given to the PATROL account when a SYS or SYSTEM account is specified Table 107 on page 320 lists the grants given to the PATROL account when a DBA account is specified.
Appendix B
317
318
Appendix B
319
Table 107 PATROL account grants and privileges ( NON-SYS DBA) (part 1 of 2)
Type of grant Create Create Create Create Create Grant GRANT CREATE SESSION GRANT CREATE TABLE GRANT CREATE SEQUENCE GRANT CREATE VIEW GRANT CREATE SYNONYM
320
Table 107 PATROL account grants and privileges ( NON-SYS DBA) (part 2 of 2)
Type of grant Create Drop Create Select Select Grant GRANT CREATE PUBLIC SYNONYM GRANT DROP PUBLIC SYNONYM GRANT CREATE PROCEDURE GRANT SELECT ANY DICTIONARY GRANT SELECT ANY TABLE
PACKAGE BODY PACKAGE PACKAGE BODY PACKAGE PACKAGE PACKAGE PACKAGE BODY TABLE TABLE INDEX INDEX VIEW TABLE TABLE
not applicable not applicable not applicable not applicable not applicable not applicable not applicable 329 330 not applicable not applicable 334 331 331
322
Table 110
Name
P$AUTOEXTEND table
Null? Data type VARCHAR2(30) NUMBER Description name of the tablespace maximum size (in bytes) of the next extent for the segments in the tablespace size (in bytes) of the largest free extent maximum available space (in bytes) in an autoextensible file of the tablespace maximum number of free operating system bytes size (in bytes) that the file can allocate when more space is required ID of the file name of the file
TABLESPACE_NAME MAX_SEG_NEXT_EXTENT
MAX_FREE_BYTES MAX_FILE_AVAIL
NUMBER NUMBER
Table 111
Name FILE# BYTES FILE_TYPE
P$AUTOEXTFILE table
Null? NOT NULL Data type NUMBER NUMBER NOT NULL NUMBER Description number of the file file size (in bytes) of the autoextensible data/temp files decides the type of the file: datafile (0) or tempfile (1)
Table 112
Name
P$AUTOEXTTS table
Null? Data type VARCHAR2(30) VARCHAR2(9) Description name of the tablespace name of the tablespace allocation type
TABLESPACE_NAME ALLOCATION_TYPE
Appendix B
323
Table 113
Name
P$BUFFERCACHE table
Null? NOT NULL NOT NULL NOT NULL NOT NULL NOT NULL Data type VARCHAR2(60) VARCHAR2(16) NUMBER(38) NUMBER(38) NUMBER(38) Definition name of the object currently in the buffer cache type of the object currently in the buffer cache number of headers in the buffer cache number of data blocks in the buffer cache number of consistent blocks in the buffer cache
Table 114
Name FILE_ID
P$CANTEXTFILE table
Null? Data type NUMBER VARCHAR2(513) VARCHAR2(30) NUMBER NUMBER Description ID of the file name of the file name of the tablespace size (in bytes) that the file can allocate when more space is required available space (in bytes)
Table 115
Name
P$CANTEXTMAXFILE table
Null? Data type VARCHAR2(30) NUMBER Description name of the tablespace maximum available space (in bytes) in an auto extensible file of the tablespace
TABLESPACE_NAME MAX_FILE_AVAIL
Table 116
Name
P$CANTEXTMAXTBSP table
Null? Data type VARCHAR2(30) NUMBER Description name of the tablespace maximum size (in bytes) of the next extent for the segments in the tablespace size (in bytes) of the largest free extent
TABLESPACE_NAME MAX_SEG_NEXT_EXTENT
MAX_FREE_BYTES
NUMBER
324
Table 117
Name
P$DATA_OS_SPACE table
Null? N/A N/A Data type VARCHAR2(513) NUMBER Description name of the file system space left according to the operating system
FILESYSTEM OSAVAIL
Table 118
Name
P$DATA_TS_SPACELEFT table
Null? N/A N/A N/A Data type VARCHAR2(30) NUMBER NUMBER Description name of the permanent tablespace free space left in table total amount of space in table
Table 119
Name FILE# LOWB HIGHB EXT#
P$EXTENTMAP table
Null? NOT NULL NOT NULL NOT NULL NOT NULL NOT NULL NOT NULL NOT NULL Data type NUMBER NUMBER NUMBER NUMBER VARCHAR2(30) VARCHAR2(30) VARCHAR2(12) NUMBER Definition number of the file block number block number plus the length of the extent (in blocks) minus 1 number of the extent name of the object name of the owner of the object kind of object number of the object
PSL SQL OS
OUTPUTMODE
NUMBER
Appendix B
325
time the job is supposed to terminate parameter to use for the job parameter to use for the job parameter to use for the job name of the log file on the agent computer text of the job results
326
SCHOCCURS SCHDAY SCHFREQ STARTING ENDING STARTDATE ENDDATE DESCRIPTION NOT NULL
number of iterations the job is supposed to run day of the week the job is scheduled to run how frequently the job is supposed to run time the job is scheduled to start time the job is scheduled to stop date the job is scheduled to start date the job is scheduled to end description of the job
Appendix B
327
Null?
NOT NULL N/A N/A N/A N/A N/A
Data type NUMBER NUMBER NUMBER VARCHAR2(30) VARCHAR2(30) VARCHAR2(30) file identifier
Definition tablespace identifier starting block location name of the owner of the object type of object that is excluded name of the object
PatrolAgentHost PatrolAgentPort
VARCHAR2(15) VARCHAR2(8)
328
Value
VARCHAR2(256)
If any of the attributes does not have a value or is not applicable, it uses the default value of POKBMCNA. For the PatrolAgentEUI attribute, the password is stored in the PATROL encrypted form IF the security level is 0 - 2. Otherwise, the password is stored at PATROLSecurityLevel3 or PATROLSecurityLevel4, depending on which PATROL security level the PATROL Agent uses.
Appendix B
329
330
Appendix B
331
332
XCUR is held exclusive by this instance SCUR is held shared by this instance CR is only valid for consistent read READ is being read from disk MREC is in media recovery mode IREC is in instance (crash) recovery mode
XNC
NUMBER
Number of PCM x to null lock conversions due to contention with another instance. This column is obsolete but is retained for historical compatibility. the address of the lock element that contains the PCM lock that is locking this buffer. The address of the lock element that contains the PCM lock that is covering the buffer. If more than one buffer has the same address, then these buffers are covered by the same PCM lock. Y if the block has been modified Y if the block is temporary Y if the block is pinged Y if the block is stale Y if the block is a direct block Always set to N. This column is obsolete but is retained for historical compatibility
LOCK_ELEMENT_ADDR
RAW(4)
CLASS
NUMBER
Appendix B
333
Pconfig variables
Pconfig variables
Table 138 on page 335 lists and describes variables that are set in the PATROL Agent for Product Short. Use the agent configuration utility to view these variables. Some variables are created for internal use only. These variables are used by Product Short and alteration of these variables harms the operation of Product Short.
WARNING
Do not change variables that are designated For internal use only; do not modify or delete. Modification or deletion of these variables harms the operation of PATROL for Oracle.
334
Pconfig variables
Make sure that you are aware of the implications before changing a variable. Create a record of the original setting for a variable before you change it. If you use the PATROL Configuration Manager to change variables, make sure that the Backup Agents Before Apply option remains selected.
For more information, see Chapter 4, Using PATROL Configuration Manager to modify and migrate configuration on page 131 and the PATROL Configuration Manager User Guide. Table 138 pconfig variables set by PATROL for Oracle (part 1 of 17)
Variable /AgentSetup/ORACLE_CATEGORY. ORACLE_SID.defaultAccount Description For internal use only; do not modify or delete. default username/password combination for the application class (ORACLE_CATEGORY) in its name. /AgentSetup/ORACLE_DATAGUARD_INSTANCE. standbyInstanceName.defaultAccount For internal use only; do not modify or delete. stores the sys user password of the configured standby instance /AgentSetup/ORACLE_DATAGUARD_DATABASE. primaryInstanceName.defaultAccount For internal use only; do not modify or delete. stores the PATROL database user password of the configured primary instance in Oracle KM /AgentSetup/ORACLE_DATAGUARD_DATABASE. standbyInstanceName.defaultAccount For internal use only; do not modify or delete. stores the sys user password of the configured standby instance /AgentSetup/ORACLE_SQLVIEWER. ORACLE_SID.archDest location of data files to which SQL Viewer writes
I I I
/AgentSetup/ORACLE_SQLVIEWER. ORACLE_SID.collectorRunning
For internal use only; do not modify or delete. flag that indicates whether the collector for SQL Viewer is running
For internal use only; do not modify or delete. start time of the SQLViewer collector For internal use only; do not modify or delete. stop time of the SQLViewer collector For internal use only; do not modify or delete. temporary default account Appendix B PATROL database objects 335
Pconfig variables
Table 138 pconfig variables set by PATROL for Oracle (part 2 of 17)
Variable /AgentSetup/ORACLE_RAC_DATABASE/ RACInstanceName.defaultAccount Description default account of the Real Application Clusters (RAC) instance This account information is used by RAC for opening a channel and connecting to the RAC instance to check its status. /DGConfig.standbyInstanceName.monDGInstType For internal use only; do not modify or delete. stores the type of standby, it can be physical or logical /DGConfig.standbyInstanceName.TNSService For internal use only; do not modify or delete. indicates the TNS entry of a standby instance /DGConfig.monDGDBList For internal use only; do not modify or delete. stores the list of configured database names of the primary instances /DGConfig.primaryDatabaseName.monDGInstList For internal use only; do not modify or delete. stores the names of the standby instances configured for a primary database /DGConfig.primaryInstanceName.DBHome For internal use only; do not modify or delete. ORACLE HOME of primary instance /DGConfig.primaryInstanceName.DBName For internal use only; do not modify or delete. stores the database name of primary instance This pconfig gets created only when primary instance is configured with auto db configuration in ORACLE.kml. /ORACLE_AVAILABILITY.ORACLE_SID. ArchFreeSpace.active. For internal use only; do not modify or delete. flag that indicates whether archive logging is active for the monitored instance /ORACLE_AVAILABILITY.sid.tempTSparams. deactivatedByKM For internal use only; do not modify or delete. flag that indicates whether the temp tablespaces were deactivated by the KM /ORACLE_AVAILABILITY.ORACLE_SID. tempOSTableExists For internal use only; do not modify or delete. flag that indicates that the p$temp_os_space table exists, the collector need not create this table, and the collector can count on the presence of this table
336
Pconfig variables
Table 138 pconfig variables set by PATROL for Oracle (part 3 of 17)
Variable /ORACLE_AVAILABILITY.ORACLE_SID. temp.TableExists Description For internal use only; do not modify or delete. flag that indicates that the p$temp_ts_space table exists, the collector need not create the table, and the collector can count on the presence of this table /ORACLE_AVAILABILITY.ORACLE_SID. FreeSpace.kmactive For internal use only; do not modify or delete. flag that indicates whether the FreeSpace parameter is active /ORACLE_AVAILABILITY.ORACLE_SID. FreeSpaceDeficit.kmactive For internal use only; do not modify or delete. flag that indicates whether the FreeSpaceDeficit parameter is active /ORACLE_INSTANCE.ORACLE_SID. localInstance For internal use only; do not modify or delete. flag that indicates whether an instance is monitored locally or remotely /OracleConfig.FailoverMonitoring.Listener. ORACLE_LISTENER.Active For internal use only; do not modify or delete. flag that indicates whether the named listener is a part of the Failover Configuration /OracleConfig.ORACLE_SID. AlertFileInfo_eof_pos /OracleConfig.ORACLE_SID. AlertFileInfo_modtime /OracleConfig.ORACLE_SID. AlertFileInfo_size /OracleConfig.ORACLE_SID.ALTERNEXT. SCHEMA NAME.OBJECT NAME For internal use only; do not modify or delete. end of the file for the alert log For internal use only; do not modify or delete. last time the alert log was modified For internal use only; do not modify or delete. size of the Alert Log For internal use only; do not modify or delete. flag that indicates whether the KM will alter the next extent of the object in the schema if there is a space problem.
Appendix B
337
Pconfig variables
Table 138 pconfig variables set by PATROL for Oracle (part 4 of 17)
Variable /OracleConfig.ORACLE_SID.AlwaysOnLine Description flag that indicates whether the InstanceStatus parameter goes into a warning or an alarm state when the instance is offline This variable uses the following values:
I
0 = AlwaysOnLine not selected during configuration of the instance; InstanceStatus parameter goes into a warning state if the instance goes down. 1 = AlwaysOnLine selected during configuration of the instance; InstanceStatus parameter goes into an alarm state if the instance goes down.
For internal use only; do not modify or delete. archive log directory list of users who are excluded from monitoring by the following space parameters:
I I I I I I I I I I I I
CannotExtend ExtentsLeft ExtentsLeftETF ExtensLeftPct FreeSpace FreeSpaceETF FreeSpaceDeficit RSExtentsLeft RSExtentsLeftPct RSSpaceLeftPct TempTSLeft TempTSLeftPct
Values for this variable are the users selected in the Users Excluded dialog box. You can change this variable by using the Exclusion => User Exclusion menu command in the AVAILABILITY menu.
338
Pconfig variables
Table 138 pconfig variables set by PATROL for Oracle (part 5 of 17)
Variable /OracleConfig.ORACLE_SID. Categories Description categories (application classes) that are selected to monitor this instance Values for this variable are the following:
I I I I I I I I I I I I I I I I
AVAILABILITY COLLECTORS CAPACITY DBLINKS ENVIRONMENT JOBS LOG MTS NETWORK PERFORMANCE PQO REPLICATION SGA SQLVIEWER TABLESPACES USERS
The default categories are AVAILABILITY and COLLECTORS. You can select some or none of the other categories by using Configuration => Advanced => Instance Configuration from the ORACLE menu. /OracleConfig.ORACLE_SID. ConfigTime For internal use only; do not modify or delete. time of last configuration or reconfiguration activity for the ORACLE_SID instance /OracleConfig.ORACLE_SID. DBAUsername For internal use only; do not modify or delete. username of the dba account used to configure the KM for ORACLE_SID /OracleConfig.ORACLE_SID. DBName /OracleConfig.ORACLE_SID. dbObjectsDeinstalled For internal use only; do not modify or delete. database name For internal use only; do not modify or delete. flag that indicates whether the database objects have been deinstalled
Appendix B
339
Pconfig variables
Table 138 pconfig variables set by PATROL for Oracle (part 6 of 17)
Variable /OracleConfig.ORACLE_SID. Exclusion Description flag that indicates whether the instance is excluded from monitoring by PATROL This variable uses the following values:
I
0 = instance is not excluded; the instance is monitored by PATROL 1 - instance is excluded; the instance is not monitored by PATROL
You can change this variable by selecting Configuration => Advanced => Monitoring Enable/Disable from the ORACLE menu. Warning: If you update this variable via PATROL Configuration Manager, you must reinitialize the agent. /OracleConfig.ORACLE_SID. FailoverMonitoring.Active flag that indicates whether failover monitoring is active or inactive for the instance This variable uses the following values:
I I
Also, if the variable does not exist, failover monitoring is not active for the instance. You can change this variable by selecting the Failover Monitoring => Configure menu command from the ORACLE_INSTANCE menu, filling in all fields, and clicking Accept. /OracleConfig.ORACLE_SID. FailoverMonitoring.AlternateHost computer name for the backup instance; alternate host for failover monitoring Alternate Host name entered in the Configure ORACLE_SID for Failover Monitoring dialog box, accessed by using the Failover Monitoring => Configure menu command from the ORACLE_INSTANCE menu /OracleConfig.ORACLE_SID. FailoverMonitoring.AlternateListenerName For internal use only; do not modify or delete. alternate listener for failover monitoring
340
Pconfig variables
Table 138 pconfig variables set by PATROL for Oracle (part 7 of 17)
Variable /OracleConfig.ORACLE_SID. FailoverMonitoring.AlternateORASid Description SID for the backup computer designated for failover monitoring Backup Oracle SID entered in the Configure ORACLE_SID for Failover Monitoring dialog box, accessed by using the Failover Monitoring => Configure menu command from the ORACLE_INSTANCE menu. /OracleConfig.ORACLE_SID. FailoverMonitoring.AlternatePort port number for the PATROL Agent on the backup computer designated for failover monitoring Backup Agent Port entered the Configure ORACLE_SID for Failover Monitoring dialog box, accessed by using the Failover Monitoring => Configure menu command from the ORACLE_INSTANCE menu. /OracleConfig.ORACLE_SID. FailoverMonitoring.LocalFailoverListenerName /OracleConfig.ORACLE_SID. FilterExcl For internal use only; do not modify or delete. local listener name for failover monitoring strings in the Alert Logs that are excluded from monitoring Values for this variable are the strings entered in the Enter a New String to Exclude from Monitoring text box in the Error Log Filters dialog box. You can change this variable by using the Error Log Filters menu command from the AVAILABILITY menu. /OracleConfig.ORACLE_SID. FilterIncl strings in the Alert Logs that are included for monitoring Values for this variable are the strings entered in the Enter a New String to Monitor for: text box in the Error Log Filters dialog box. You can change this variable by using the Error Log Filters menu command from an AVAILABILITY menu. /OracleConfig.ORACLE_SID. Home ORACLE_HOME for data base identified by ORACLE_SID The following are sample values by platform:
I I I
Appendix B
341
Pconfig variables
Table 138 pconfig variables set by PATROL for Oracle (part 8 of 17)
Variable /OracleConfig.ORACLE_SID. InUsers Description list of users (other than problem users) that are selected for monitoring The values for this variable are the users who are selected for monitoring. You can change this variable by using the User Monitoring => Users Monitoring menu command from the USERS instance menu. /OracleConfig.ORACLE_SID. InProbUsers list of users excluded from Problem User monitoring The values for this variable are the users who are selected for exclusion from problem user monitoring. You can change this variable by using User Monitoring => Problem User Exclusion menu command from the USERS instance menu. /OracleConfig.ORACLE_SID. InSessions sessions that are selected for Users monitoring This variable is created the first time you use the Sessions Monitoring menu command. A value of means that no sessions are selected. For each session selected, the value includes the name of the user and the session number, separated by a dash, as in the following example where ORA4, SYS, and ORA3 are user names: ORA4-10 SYS-0 ORA3-5 You can change this variable by using User Monitoring => Sessions Monitoring menu command from the USERS instance menu.
342
Pconfig variables
Table 138 pconfig variables set by PATROL for Oracle (part 9 of 17)
Variable /OracleConfig.ORACLE_SID. InTablespaces Description list of the tablespaces selected for tablespace monitoring The value for this variable contains the names of the tablespaces that you selected for monitoring, along with a numeric identifier for each tablespace. The names and numeric identifier are separated by a comma, as in the following example where TEST1, SYSTEM, and EXAMPLE are tablespace names: TEST1,31 SYSTEM,0 EXAMPLE,4 You can change this variable by using Tablespace Monitoring menu command from a TABLESPACE instance menu. /OracleConfig.ORACLE_SID. Name /OracleConfig.ORACLE_SID. NumPrivs /OracleConfig.ORACLE_SID. ProbUserMaxBlocked For internal use only; do not modify or delete. name of database; identical to SID For internal use only; do not modify or delete. number of privileges granted to patrol user maximum threshold for determining a problem user The value of this variable is the number of minutes entered in the Problem User Settings Config dialog box as the maximum number of minutes that you can set for user idle. The number entered here changes the threshold in the Problem User Settings dialog box. You can change this variable by using the User Monitoring => Problem User Settings Config menu command from a USERS instance menu. /OracleConfig.ORACLE_SID. ProbUserMaxIdle maximum threshold for determining a problem user The value for this variable is the number of minutes entered in the Problem User Settings Config dialog box as the maximum number of minutes that you can set for idle user. The number entered here changes the threshold in the Problem User Settings dialog box. You can change this variable by using the User Monitoring => Problem User Settings Config menu command from a USERS instance menu.
Appendix B
343
Pconfig variables
Table 138 pconfig variables set by PATROL for Oracle (part 10 of 17)
Variable /OracleConfig.ORACLE_SID. ProbUserMaxRunaway Description maximum threshold for determining a problem user The value for this variable is the number of minutes entered in the Problem User Settings Config dialog box as the maximum number of minutes that you can select for runaway user. The number entered here changes the threshold in the Problem User Settings dialog box. You can change this variable by using the User Monitoring => Problem User Settings Config menu command from a USERS instance menu. /OracleConfig.ORACLE_SID. ProbUserMinBlocked minimum threshold for determining a problem user The value for this variable is the number of minutes entered in the Problem User Settings Config dialog box as the minimum number of minutes that you can select for the user blocked threshold. The number entered here changes the threshold in the Problem User Settings dialog box. This number must exceed the polling cycle of the CollUsers collector, which is 30 minutes by default. You can change this variable by using the User Monitoring => Problem User Settings Config menu command from a USERS instance menu. /OracleConfig.ORACLE_SID. ProbUserMinIdle minimum threshold for determining a problem user The value for this variable is the number of minutes entered in the Problem User Settings Config dialog box as the minimum number of minutes that you can use for the user idle threshold. The number entered here changes the threshold in the Problem User Settings dialog box. This number must exceed the polling cycle of the CollUsers Collector, which is 30 minutes by default. You can change this variable by using the User Monitoring Config => Problem User Settings menu command from a USERS instance menu.
344
Pconfig variables
Table 138 pconfig variables set by PATROL for Oracle (part 11 of 17)
Variable /OracleConfig.ORACLE_SID. ProbUserMinRunaway Description minimum threshold for determining a problem user The value of this variable is the number of minutes entered in the Problem User Settings Config dialog box as the minimum number of minutes that you can use for the user runaway threshold. The number entered here changes the threshold in the Problem User Settings dialog box. This value must exceed the polling cycle for CollUsers collector, which is 30 minutes by default. You can change this variable by using the User Monitoring => Problem User Settings Config menu command from a USERS instance menu. /OracleConfig.ORACLE_SID. RdbmsVersion Oracle version If the instance is properly configured, this variable contains the version number for the Oracle instance. The value of this variable takes the form of a dot-separated version number, as in the following example: 9.0.1.0.0 /OracleConfig.ORACLE_SID. RECOVERY /OracleConfig.ORACLE_SID. RECOVERY.ARCHIVELOG For internal use only; do not modify or delete. flag that indicates whether recovery is set For internal use only; do not modify or delete. action that PATROL for Oracle performs when the archive log destination gets full. A value of compress indicates that the log files would be compressed and MOVE indicates where the log files would be moved to. /OracleConfig.ORACLE_SID. Service /OracleConfig.ORACLE_SID. UserBlocked Oracle Net service name specified at instance configuration number of seconds a user can remain blocked before it is detected as a problem user The output for this variable is in seconds; it equals the number of minutes you selected for User Blocked in the Problem User Settings dialog box multiplied by 60. You can change this variable by using the User Monitoring => Problem User Settings menu command from a USERS instance menu.
Appendix B
345
Pconfig variables
Table 138 pconfig variables set by PATROL for Oracle (part 12 of 17)
Variable /OracleConfig.ORACLE_SID. UserCpu Description percentage of CPU a user can use before it is detected as a problem user The output for this variable is a percentage. You can change this variable by using the User Monitoring => Problem User Settings menu command from a USERS instance menu. /OracleConfig.ORACLE_SID. UserCriteria flags that indicate which criteria are active for monitoring problem users Four values in some combination of 1s and 0s.
I
The first value indicates whether Idle is active (1) or inactive (0). The second value indicates whether Blocked is active (1) or inactive (0). The third value indicates whether Runaway is active (1) or inactive (0). The fourth value indicates whether Cpu Hog is active (1) or inactive (0).
You can change this variable by using the User Monitoring => Problem User Settings menu command from a USERS instance menu. /OracleConfig.ORACLE_SID. UserIdle number of seconds a user can remain idle before it is detected as a problem user The output for this variable is in seconds; it equals the number of minutes you selected for User Idle in the Problem User Settings dialog box multiplied by 60. You can change this variable by using the User Monitoring => Problem User Settings menu command from a USERS instance menu.
346
Pconfig variables
Table 138 pconfig variables set by PATROL for Oracle (part 13 of 17)
Variable /OracleConfig.ORACLE_SID. UserRunaway Description number of seconds a user can perform a process without returning any data before it is detected as a problem user The output for this variable is in seconds; it equals the number of minutes you select for User Runaway in the Problem User Settings dialog box multiplied by 60. You can change this variable by using the User Monitoring => Problem User Settings menu command from a USERS instance menu. /OracleConfig.blackout list of scheduled blackouts Each scheduled blackout is expressed as follows:
I I I I
server_name day-of-the-week starting time in seconds after midnight duration expressed in minutes
For example, if you set a blackout period on a server called Oracle1 for Monday, starting at 1:00 a.m., and lasting for 60 minutes, the following value would display for this variable: Oracle1 Monday 3600 60 See also Modifying the blackout configuration variable on page 143 Warning: Blackout periods set by using PATROL Configuration Manager are not verified. /OracleConfig.Debug flag that indicates whether debug is active for discovery This variable uses the following values:
I I
0 = inactive 1 = active (displays all debug messages generated during discovery in a task output window)
You can change this variable by using the Debug command from the ORACLE menu.
Appendix B
347
Pconfig variables
Table 138 pconfig variables set by PATROL for Oracle (part 14 of 17)
Variable /OracleConfig.DebugConf Description flag that indicates whether debug is active for instance configuration This variable uses the following values:
I I
0 = inactive 1 = active (displays all debug messages generated during instance configuration in a task output window)
You can change this variable by using the Debug command from the ORACLE menu. /OracleConfig.FailoverMonitoring.Listener. ORACLE_LISTENER.Active /OracleConfig.Instances flag that indicates whether the named listener is a part of the Failover Configuration list of Oracle instances that are configured If the value for this variable is null or contains , then no instances are configured. If instances are configured, the value should contain the names of the configured instances, as in the following example: rhe901d1 rhe901d2 /OracleConfig.ObjectsList For internal use only; do not modify or delete. list of database objects (tables, views, synonyms) created by instance configuration /OracleConfig.PackageBodyList For internal use only; do not modify or delete. list of package bodies created by instance configuration /OracleConfig.PackageList For internal use only; do not modify or delete. list of packages created by instance configuration /OracleConfig.SessTimeStamp For internal use only; do not modify or delete. time of completion of last activity for session settings /OracleConfig.TimeStamp For internal use only; do not modify or delete. time of completion of last instance configuration or reconfiguration activity /OracleConfig.UsrTimeStamp For internal use only; do not modify or delete. time of completion of last activity for User settings
348
Pconfig variables
Table 138 pconfig variables set by PATROL for Oracle (part 15 of 17)
Variable /OracleETF.ORACLE_SID.Parameters Description list of the consumer parameters that are set by the ETF collector See Modifying ETF parameters through PATROL Configuration Manager on page 150. /OraNetConfig.listener_name.ConfigHome /OraNetConfig.listener_name.LsnrConfigHomeFlag Stores Oracle Home to check the status of the listener. Holds a value of 1 if the user modifies the Listener Home for the listener from the Configuration menu command of the ORANET application class.
/AgentSetup/ORANET_LISTENER.listener_name.defa This account information is used by ORANET to ultAccount check the status of a 10g or later passwordprotected listener with the LOCAL_OS_AUTHENTICATION_listenerName = OFF. /OraNetConfig.listener_name.localosauthn indicates the value of the local os authentication flag for the listener This pconfig variable is created when the 10g or later password protected listener with the local OS authentication flag set to OFF is disabled from ORANET monitoring. /OraNetConfig.LISTENER NAME.home /OraNetConfig.LISTENER NAME.monitorflag /OraNetConfig.clusterConfigChanged Oracle Home directory holding the Oracle Net installation under which this listener runs flag that indicates whether monitoring of the listener specified by LISTENER NAME is enabled flag that indicates whether a value was entered through the Cluster Configuration command from the ORANET menu If values are entered through the Cluster Configuration menu command, the value of this variable is set to 1, which forces ORANET to go through a FULL discovery (reading the listener.ora files). When discovery completes, the value of this variable is reset to 0. /OraNetConfig.Instances /OraNetConfig.logicalHosts /OraNetConfig.virtualServers list of Oracle Net listeners being monitored by ORANET list of logical hosts for ORANET list of virtual servers for ORANET
Appendix B
349
Pconfig variables
Table 138 pconfig variables set by PATROL for Oracle (part 16 of 17)
Variable /ORACLE_ETSM.oracle_sid.dataOSTableExists Description indicates existence of the database table P$DATA_OS_SPACE If the value is 0, the P$DATA_OS_SPACE table is not created. If the value is 1, the P$DATA_OS_SPACE table is created. /ORACLE_ETSM .oracle_sid.dataTableExists indicates existence of the database table P$DATA_TS_SPACELEFT If the value is 0, the P$DATA_TS_SPACELEFT table is not created. If the value is 1, the P$DATA_TS_SPACELEFT table is created. /RACConfig.Databases lists the configured and monitored RAC databases This pconfig variable is created for each monitored RAC database. /RACConfig.RACDatabaseName.DBHome stores the RAC database home path This pconfig variable is created for each monitored RAC database. /RACConfig.RACDatabaseName.DownInstList lists the RAC instances that are down This pconfig variable is created for each monitored RAC database. /RACConfig.RACDatabaseName.MountInstList /RACConfig.RACDatabaseName.Monitoring lists instances that are in the mount state indicates the success of monitoring the RAC database If the value is 1, the RAC database is monitored successfully. When the RAC database has been removed from monitoring, this pconfig variable is also removed from the pconfig database This pconfig variable is created for each monitored RAC database. /RACConfig.RACDatabaseName.RACInsList lists the RAC instances that are monitored under the RAC database This pconfig variable is created for each monitored RAC database.
350
Pconfig variables
Table 138 pconfig variables set by PATROL for Oracle (part 17 of 17)
Variable /RACConfig.RACInstanceName.rdbmsVersion Description stores the RDBMS version of the RAC instance This pconfig variable is created for each RAC instance that is monitored under the RAC database. /RACConfig.RACInstanceName.TNSService stores the TNS service name of the monitored RAC instance This pconfig variable is created for each RAC instance that is monitored under the RAC database.
Appendix B
351
Pconfig variables
352
Appendix
Because PATROL for Oracle connects directly to your production databases, BMC Software recommends that communication between tiers of the product, especially if any tier lies outside your internal network, be handled through virtual private networking (VPN) connections for the strongest security. This appendix provides information about setting up those communications in your environment. In this appendix, the following topics are discussed: Benefits of VPNs. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 353 Protocols, port numbers, and blocking . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 354 Configuring a firewall for PATROL for Oracle . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 354
Benefits of VPNs
A VPN allows two or more private networks (protected by various security mechanisms such as encryption and authentication) to be connected over a publicly accessed network such as the Internet. While a VPN can support the same intranet and extranet services as a Wide Area Network (WAN), VPNs can also support secure remote access services. Employees working remotely can then call in to a local service provider to access their companys internal intranet. PATROL provides some VPN functionality within the product in the capability to configure the Security Socket Layer (SSL) protocol for connections between clients and servers. SSL uses several network security techniques including public and private cryptographic keys and trusted authority certificates. See the PATROL Security User Guide for a further discussion of the security techniques that PATROL uses.
Appendix C
353
PATROL uses both UDP and TCP/IP communications protocols. See your firewall documentation for detailed information about using the firewall with the TCP/IP and UDP protocols. Port numbers enable multiple processes to use TCP/IP or UDP services on the same host. A server makes its services available to the network using numbered ports. Each port is specified for a particular service (for example, port 80 can be used for a Web server and port 21 can be used for an FTP server). Well-known ports are port numbers that the industry has agreed to reserve for specific services such as telnet, FTP, and SMTP. Well-known ports are numbered 1 through 49,151. Ports greater than 49,151 are considered dynamic ports because they are not associated with any specific service. In general, a firewall administrator sets up a firewall by first blocking all incoming and outgoing traffic and then selecting what types of traffic to allow. If the server computer accepts inbound connections on a port from the outside world and a firewall is not protecting the port, anyone can connect to the port and use its services. If a port is generally known to be used by other applications, opening this port will allow your application to work, but it will also allow other applications to use the port as well. For example, if you choose port 2049 for a BMC Software application, this may inadvertently open up NFS to an attack from outside the firewall on other computers. Therefore, it is important to carefully choose a port for a new application that is not already used for something else by another application.
354
To deploy Knowledge Modules (KMs), ensure that the following ports are open:
I
port 8160 for TCP/IP, which is the only communication protocol used For Windows only, both computers must be members of the same domain.
For UNIX only, port 21 for FTP For UNIX only, port 23 for Telnet
See the PATROL Installation Reference Manual for details about configuring a firewall for communication between the PATROL Agents and the PATROL console. Table 139 lists the protocols, ports, and connection directions required for each major feature. Note that day-to-day operations involving only the Distribution Manager and executing distributions requires only one connection protocol and port HTTP:80 or HTTPS:443, depending on the security level. Table 139 Protocols, ports, and connections
Feature Distribution Manager (web interface) Distribution Server COS (TCP, RT) Command Line Interface Distribution Server PATROL (pexec) Command Line Interface WIN MAP (SMB) WIN Remote Reg FTP Telnet SFTP SSH Distribution (pull files) Distribution (pull files) Distribution (wake up) HTTP / HTTPS HTTP / HTTPS TCP 2059 3181 135 - 139 135 - 139 21 23 115 22 80 / 443 80 / 443 50005 Distribution Client => Distribution Server CLI => Distribution Server Distribution Server => target system Protocol HTTP/HTTPS (TCP) Default port 80 / 443 Connection Web browser => Web Server
Appendix C
355
356
A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
Glossary
O7_DICTIONARY_ACCESSIBILITY parameter The O7_DICTIONARY_ACCESSIBILITY initialization parameter controls whether to continue Oracle7 data dictionary behavior. Use of this initialization parameter is only a temporary expedient. Starting with the release of Oracle version 9.0.1, the default value of this initialization parameter is false. application account An account that you define at KM setup; can be changed for an application class or instance. An application account is commonly used to connect to an RDBMS on a server where the database resides or to run SQL commands. application instance A system resource discovered by PATROL. An application instance contains the information and attributes of the application class that it belongs to. See also instance. blackout A scheduled suspended state for application classes and parameters. No information is collected for parameters or reports, and no parameters will alarm or warn in the blacked out application. category A group of parameters that monitor specific areas of an Oracle installation. In this PATROL KM, a category is similar to an application class. collector parameter A type of parameter that contains instructions for gathering values for consumer and standard parameters to display. A collector parameter does not display any value, issue alarms, or launch recovery actions. (A standard parameter can have collector properties; this means that in addition to gathering its own value, the parameter gathers other values for consumer parameters to display.) See also consumer parameter, parameter cache, and standard parameter. command type The designation assigned to a command according to its manner of execution. This attribute must be defined for a parameter command, a parameter recovery action, a menu command, an InfoBox command, a setup command, or a state change action. The PATROL console provides two command types: operating system and PSL. PATROL KMs provide other command types. Only a PATROL Developer Console can be used to add or change command types.
Glossary
357
A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
commit The process of saving to PATROL Agent computers the changes that have been made to a KM by a PATROL Developer Console. A PATROL user can disable a PATROL consoles ability to commit KM changes. consumer parameter A type of parameter that only displays a value that was gathered by a collector parameter or a standard parameter with collector properties. A consumer parameter never issues commands and is not scheduled for execution; however, it has alarm definitions and can run recovery actions. See also collector parameter, parameter cache, and standard parameter. CPU hog The user that has used the highest percentage of CPU cycles over the most recent collection interval. deactivate a parameter To stop running a parameter for selected computer or application instances. In the PATROL Console for Windows NT, deactivating a parameter stops parameter commands and recovery actions and deletes the parameter icon from the application instance window without deleting the parameter definition in the KM tree. A deactivated parameter can be reactivated at any time. See also snooze an alarm and suspend a parameter. deactivate an application class To stop monitoring an application class and all of its instances on selected computer instances. In the PATROL Console for Windows NT, deactivating an application class deletes the application class and all of its instance icons from the computer window without deleting the application class or definition in the KM tree. A deactivated application class can be reactivated at any time. See also deactivate a parameter. dedicated server A database server that is configured so that a server process handles requests for a single user process. See also shared server. dimmed A condition indicating an offline or a void state. When an icon is dimmed, either no connection is established to the object (for a computer icon) or the object is not active (for an application instance). disable a KM To temporarily or permanently block an application or KM from loading and to block the PATROL Agent from using that KM. When a KM is disabled (added to the disabled list) in the agent configuration file, the KM files are not deleted from the PATROL Agent computers, but the PATROL Agent stops using the KM to collect parameter data and run recovery actions. The default is that no KMs are disabled. See also preloaded KM. disabled application See disable a KM. (Most KMs are composed of individual application files with a .km extension.)
358
A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
environment variable A variable used to specify settings, such as directories, for the environment in which PATROL runs. You can set environment variables for computer classes, computer instances, application classes, application instances, and parameters. global channel A single dedicated connection through which PATROL monitors and manages a specific program or operating system. The PATROL Agent maintains this connection to minimize the consumption of program or operating system resources. init.ora See initialization file. initialization file An initialization file is a text file that contains a list of initialization parameters. The file is written in the default character set of the client. The name of the initialization file varies depending on the operating system. For example, it can be in mixed case or lowercase, or it can have a logical name or a variation of the name init.ora. The database administrator can choose a different filename for the initialization parameter file. Refer to your operating system-specific Oracle documentation for the default locations and filenames for initialization parameter files on your operating system. The initialization parameter file is read by the client-side tool used to start the server (such as SQL*Plus). instance A computer or discovered application that is running in the PATROL-managed environment. An instance has all the attributes of the class that it belongs to. A computer instance is a monitored computer that has been added to the PATROL console. An application instance is discovered by PATROL. See also application instance. In Oracle, the instance is made of up the System Global Area (SGA), the Oracle background processes, and the data files that make up your database. join In Oracle, a query that selects data from more than one table, and combines the data into a new database or table. message window A window that displays command output and error messages from the PATROL console graphical user interface. See also response window, system output window, and task output window. long idle A user that has been inordinately idle. This inactivity may indicate a client-side system crash that has left a process hanging in the database.
Glossary
359
A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
MTS See multithreaded server or shared server architecture. multithreaded server (MTS) See shared server architecture. Oracle Net In Oracle9i (9.x) and later, the Oracle Networking product, formerly SQL*Net in Oracle7 (7.x), Net8 in Oracle8 (8.0.x) and Net8i in Oracle8 (8.1.x), is now called Oracle Net Services. For consistency, the term Oracle Net is used throughout this book and refers to all Oracle Networking product versions. oratab file In Oracle on UNIX platforms, a file that contains the Oracle SIDs and whether to start the instance when the server is started. This file is no longer necessary in current versions of Oracle. OS account An account that is set up for the PATROL Agent at installation and that is used or can be changed in a configuration utility. All OS commands executed by the PATROL Agent use this account. parallel query option (PQO)
parameter cache The memory location where current parameter data is kept. In the PATROL Agent's configuration file, you can set the size of the cache, the maximum number of data points that can be stored, and the interval (in seconds) for emptying the cache. polling cycle The schedule on which a parameter starts running and the intervals at which it reruns; the cycle is expressed in seconds. PQO See parallel query option preloaded KM A KM that is loaded by the PATROL Agent at startup and runs as long as the agent runs. See also disable a KM. recovery action A procedure that fixes a problem that caused a warning or alarm condition. A recovery action is defined within a parameter by a user or by PATROL and triggered when the returned parameter value falls within a defined alarm range. redo log file In Oracle, a file that contains a copy of all the data blocks that a data transaction has modified.
360
A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
refresh parameter An action that forces the PATROL Agent to run one or more parameters immediately, regardless of their polling cycle. Refreshing does not reset the polling cycle but gathers a new data point between polling cycles. remote Oracle Server An Oracle Server that is connected to the PATROL console through Oracle Net, instead of a PATROL Agent. response window An input and output display for many KM menu commands that provides a customizable layout of the information (for example, the sort method for outputting system process IDs). See also system output window and task output window. rollback In Oracle, undoing changes that were made by a transaction. rollback segment In Oracle, a place in the database where the undo information is kept and can be obtained if a rollback is needed. schema In Oracle, a collection of objects associated with the database. session The set of events that occur from when a user connects to the Oracle RDBMS to when the user disconnects. SGA System Global Area. The shared memory region that is used to store data and control information for one Oracle instance. Each Oracle instance has its own SGA; the SGA is allocated when the instance starts, and is de-allocated when the instance is shut down. The SGA is comprised of the database buffers, the redo log buffer, and the shared pool. shared server A database server that is configured so that many user processes can share a small number of server processes, minimizing the number of server processes and maximizing the use of available system resources. Also known as a multithreaded server or MTS. See also dedicated server. SID In Oracle, the identifier for the instance or session. snooze an alarm To temporarily suspend an alarm so that a parameter does not exhibit an alarm state. During the user-set snooze period, the parameter continues to run commands and recovery actions, and the
Glossary
361
A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
parameter icon appears to be in an OK state. See also deactivate a parameter and suspend a parameter. standard parameter A type of parameter that collects and displays data as numeric values or text. Some standard parameters can also execute commands and gather data for consumer parameters to display. See also collector parameter, consumer parameter, and parameter cache. suspend a parameter To stop running a parameter for selected computers or application instances. Suspending a parameter stops parameter commands and recovery actions but does not delete the parameter icon from the application instance window and does not delete the parameter definition from the KM tree in the PATROL Console for Windows NT. A suspended parameter can be resumed at any time. You can suspend a parameter from its pop-up menu. See also deactivate a parameter and snooze an alarm. system output window A message window that displays the output of operating system (OS) and PSL commands and tasks that the PATROL console and the PATROL Agent submit to a particular computer. PATROL displays a yellow triangle when there are unread messages in the system output window. You can enter OS and PSL commands in the bottom part of the window. task output window A window that contains command output generated by a task (for example, a KM menu command or a parameter warning or alarm); while executing, each task has its own icon, which usually appears in the PATROL Desktop or main window but may appear in an appropriate object window. threshold A point or points that define a range of values, outside of which a parameter is considered to be in a warning or alarm range. TNS See transparent network substrate. transaction A set of database statements representing a logical unit of work or function. A database transaction starts when the first SQL statement is submitted, and ends when the rollback or the commit has occurred. transparent network substrate (TNS) A technology used by Oracle Net that provides a single, common interface that functions over all industry-standard protocols. In other words, TNS enables peer-to-peer application connectivity. In a peer-to-peer architecture, two or more computers (called nodes when they are employed in a networking environment) can communicate with each other directly, without the need for any intermediary devices.
362
A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
trigger A mechanism that allows procedures to automatically execute when an INSERT, UPDATE, or DELETE statement is executed on a table or view.
Glossary
363
A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
364
A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
Index
Symbols
$ORACLE_HOME directory 84, 86, 88, 89, 91, 99, 113 $PATROL_HOME/lib/psl directory 22 $PATROL_HOME/oracle directory 22 $PATROL_HOME/oracle/log directory 250 $PATROL_HOME/patrol 60 $PATROL_INSTALL/oracle/conf directory 90 %PATROL_CACHE% 60 %PATROL_HOME% 60 ./setup.sh -serveronly 55 .cfg files 133 .km file 76, 77, 78, 79, 163 discovery 19 ENVIRONMENT 25 functional 19 hierarchy 29, 295 icons 19, 22 INSTANCE 23, 28 JOBS 26, 160163 list of 19 LISTENER 163 LOCKS 26 LOG 289 MTS 49, 275 MTS_DISP 275 NETWORK 26 ORACLE_AVAILABILITY 146 ORACLE_DATAGUARD 25 ORACLE_TBS_INSTANCE 146 ORANET 163 PERFORMANCE 27 PQO 49, 279 RAC 27 REPLICATION 27, 283 SGA 27 SPACE_EXPERT_ORA 27, 192 SPACE_EXPERT_ORA_OBJ 192 SPACE_EXPERT_ORA_TS 192 SQLVIEWER 220 TABLESPACES 183 TBSP_INSTANCE 182 USERS 28, 193 ArchFreeSpace (ARCHIVE parameter) 37 ArchFreeSpace parameter 37, 82, 151, 261 ArchFreeSpaceColl (ARCHIVE parameter) 37 ArchFreeSpaceETF parameter 37, 82, 151 ArchFreeSpaceOptional (ARCHIVE parameter) 37 ARCHIVE application 289 archiving archive log files 26 ARCHIVELOG option 26 recovery actions 256 archiving configuration settings 132 ArchLogCreated parameter 147 ASM command 128 configuring 126 monitoring 125
A
accessing Explain Plan 159 Server Manager 158 SQL*Plus 159 account DBA 83, 84, 87, 91, 100, 101, 106, 164, 170, 173 NON -SYS DBA 320 PATROL 101, 105, 107, 164, 170 privileged 91, 100 SYS 48, 83, 84, 87, 88, 89, 90, 91, 100, 101, 106, 123, 218, 224, 248, 257 SYSTEM 65, 83, 90, 91, 101, 208, 282 Activate parameter 93 ActiveCalls parameter 195 agent, PATROL 35, 36 alarm state 30 AlertLogSize parameter 37 Alerts parameter 37, 147, 170, 226, 227, 261 application administrative 19 ARCHIVE 37, 289 ASM 26 AVAILABILITY 24, 37 Availability 24 CAPACITY 25 COLLECTORS 25 container 19 DB_LINKS 25, 283 DB_LINKS_INSTANCE 284 descriptions 22
Index
365
A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
parameter 127 removing an instance 127 ASM application 26 ASM hierarchy 126 AutoExtended parameter 146, 147, 182 automated recovery actions 256257 automatic configuration log file 120 automatic recovery actions compressing log files 256 moving log files 256 AVAILABILITY application 24, 102, 107, 261 reports 228234 Availability application description 24 icon 24 browser requirements 47 BuffBusyRate parameter 249 BuffHitRatio parameter 249, 261 BusyRate parameter 275
C
C shell 64 CannotExtend parameter 37, 146, 147, 210, 212, 213, 231, 261 CAPACITY application 25, 37, 261 reports 237240 categories 102, 108 AVAILABILITY 102, 107, 184, 198, 226, 261 CAPACITY 193, 237, 261 COLLECTORS 102, 107 DB_LINKS 25, 283 JOBS 160 LOG 261 MTS 49 PERFORMANCE 261 PQO 49, 279 REPLICATION 283 SGA 261 SQLVIEWER 220 TABLESPACES 183 USERS 194, 197, 261 channels debug 123 cluster alias 167 cluster environments 165, 167 cluster monitoring 3843, ??68, ??129 CollCapacity parameter 237 CollDbLinks parameter 283 collection commands 148 collection failure 30 collector parameters 30 COLLECTORS application 25, 102, 107 Collectors application description 30 CollETF parameter 151 CollJobs parameter 160 CollMTS parameter 275 CollPopulateContainers 189 CollPQO parameter 279 CollReplication parameter 283 CollSGA parameter 246 CollSqlViewer parameter 219 colormap option 65 ColSpaceLeft 190 commit point site 272 commit_point_strength init.ora parameter 273 components KM 20 ConfigUpdate parameter 147 configuration
B
backing up before migration 60 backup reports 234237 batch configuration 8692 creating file 89 file syntax 86 keywords 87 ora_batch_conf.tpl file 91 template file 86 batch configuration log file 120 batch scheduling 249255 adding job 251 adding reports 253 deleting jobs 255 examples 250 jobs 249, 255 log file 254 PSL scripts 252 setting time 254 BGChkPntRate parameter 261 BGDumpLeft parameter 37, 82, 151, 261 BGDumpLeftETF parameter 37, 82, 151 BGDumpUsed parameter 37, 82 BGDumpUsedPct parameter 37, 82 blackout 174176 configuration 176 debug 177 deleting periods 176 nesting 175 setting 176 string 143 time zones 175 unending 175 validating 143 variable 143 BlkReads parameter 182, 190 BlkWrites parameter 182, 190 BMC Software, contacting 2 Bourne shell 64
366
A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
adding instances 98 advanced 97112 batch 8692 blackout 176 category monitoring 108 deleting instances 111 installing PATROL objects 123 instance 99112 LISTENER application 165 listing settings 109 modifying 141 modifying configuration for an instance 105 monitoring instance 104 PATROL Configuration Manager 135 remote instance 98, 99 removing instances 111 requirements 83 restricted instances 103 uninstalling PATROL objects 123 Configure parameter 93 ConfigureETF rule 150, 152 ConnectCheck parameter 147 ConnectDB parameter 39, 41, 147 consumer parameters 30 CoreDumpLeft parameter 37, 82, 151 CoreDumpLeftETF parameter 37, 82, 151 CoreDumpUsed parameter 37, 82 CoreDumpUsedPct parameter 37, 82 Custom installation 56 customer support 3 customizations migrating manually 58 customized PSL migrating 59 account 84, 100, 101, 106 account grants 320 group privileges 173 DBWR (database writer) 27 debug blackout 177 channels 123 discovery 123 failover monitoring 117 graphical user interface 122 InstanceStatus parameter 122 options 120 query execution time 148 default_auto_conf_agent port number.txt 93 default_auto_config.txt 189 deleting instances 111 tablespaces 183, 197 deleting old version 60 DictHitRatio parameter 249, 261 directories $ORACLE_HOME 84, 99, 113 $PATROL_HOME/lib/psl 22 $PATROL_HOME/oracle 22 $PATROL_INSTALL/oracle/conf 90 TOMCAT_HOME 259 TOMCAT_HOME/conf 264 DisableETF 152 DisableETF rule 150 discovery debug 123 instance 98 disk space 47 DiskSorts parameter 261 distributed databases commit point site 272 links 272, 273 pending transactions 273 reports 272274 snapshots 273 transactions 273
D
data history 32 data retrieval parameters 30 summary 30 database links 272, 273, 283288 database reports 240246 database SIDs 172 dataguard debugging information 305 icon hierarchy 303 instance removal 305 limitations 306 parameter 306 primary instance 304 standby instance 304 troubleshooting information 311 DB_LINKS application 25, 283 DB_LINKS_INSTANCE application 284 DBA
E
Edit Rule/Variable dialog box 152 Enable OS Authentication 97 ENVIRONMENT application 25 environment variables LANG 64 PATH 64 PATROL_BROWSER 64 setting for Help browser 64 setting for the browser 64 errors filter 170 lookup 227
Index
367
A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
ORANET 170 TNS- 170 estimated time to failure (ETF) 150 ETF parameters 151 ETSM description 26 ETSM application 37 ETSM Application Parameter 189 ETSM_ tablespace type 188 ETSM_REGULAR application 189 ETSM_tablespace type Applications Parameters 190 ETSM_TBSP_INSTANCE application 26, 189 ETSM_TBSP_INSTANCE Application Parameters 190 eXceed 65 Excluded Tablespaces report 192 exclusion examples 212 objects 214 settings 216 tablespaces 182, 209256 types 211 users 215 Explain Plan utility 159 ExtentsLeft parameter 151, 210, 212, 213, 214, 215, 231, 261 ExtentsLeftETF parameter 151, 210, 214, 215, 231 ExtentsLeftPct parameter 210, 212, 213, 214, 215, 231 filters listener error log 170 find_problems parameter 147, 192 first time installation 53 FOMonitor parameter 116 FreeSpace parameter 151, 210, 212, 213, 214, 216, 261 FreeSpaceDeficit parameter 147, 210, 212, 213, 214, 215, 231, 256, 261 FreeSpaceETF parameter 151, 210, 212, 213, 214 functions not available OpenVMS 256 remote instance 159 Windows NT 158, 159, 256
G
global channel, resetting 119 GUI debug 122
H
hierarchy dataguard 303 hierarchy, PATROL for Oracle 29, 295 history files 32 HTML Reporting 257269 configuration 260 FTP information configuration 262 modifying 268 refresh rates 269 requirements 269 viewing information 268
F
FailedJobs parameter 161 failover monitoring 3843, ??68, ??129 active/active environments 40 active/passive environments 38 configuring 112 debug 117 high availability environments 38 PATROL Agent 38 PATROL virtual agent 38 workload balancing environments 40 file .cfg 133 .km 20 init.ora 83, 196, 199, 241, 243, 275, 278 listener.ora 171, 172 OPSINST.km 22 ora_batch_conf.tpl 91 ORACLEPARALLELSERVER.km 22 ORACLEPARALLELSERVER.kml 75, 76 psql.dat 223 psqltest.dat 223 removing from PATROL_CACHE 60 server.xml 259, 263 tnsnames.ora 35, 98, 99, 100, 273 files param.hist 32 FILESYSTEM.km 46, 82, 83
I
icons alarm state 30 types of 22 IDsInUse parameter 195 init.ora file 49, 83, 98, 196, 199, 219, 238, 240, 241, 243, 275, 277, 278 init.ora parameters 83, 196, 199, 241, 243, 275, 278 background_dump_dest 239 commit_point_strength 273 core_dump_dest 239 license_max_sessions 242 license_max_users 242 license_sessions_warning 242 mts_dispatchers 278 mts_listener_address 278 mts_max_dispatchers 278 mts_max_servers 275, 278 mts_multiple_listeners 278 mts_rate_log_size 278 mts_rate_scale 278
368
A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
mts_servers 275, 278 mts_service 278 timed_statistics 49, 83, 196, 199, 219 user_dump_dest 239 installable image 52 installation backing up before migration 60 system requirements 46 verifying requirements 46 installing clearing cache 60 for the first time 53 online Help 63 remotely 51 rule sets 133 instance adding 98 blackout 173176 category monitoring 108 configuration 99, 105 configuration settings 109 deleting 111 disabling monitoring 104 discovery 98 enabling monitoring 104 excluding tablespaces 209256 failover 112 installing PATROL objects 123 local 35 modify configuration 105 monitoring in restricted mode 103 remote 35, 98, 100 removing 111 starting 173174 stopping 173174 uninstalling PATROL objects 123 INSTANCE application 23 InstanceCheck parameter 147 InstanceStatus parameter 39, 41, 86, 90, 91, 114, 117, 147, 261 debug 122
K
kill session 223 KM customizations, migrating manually 58 FILESYSTEM 46, 82, 83 hierarchy 29, 295 NT_LOGICAL_DISKS 46, 82, 83 knowledge module components 20 Korn shell 64
L
LANG environment variable 64 LatchGetRatio parameter 261 LibGetHitRatio parameter 249 LibGetHits parameter 261 LibGetPinRatio parameter 249 license requirements 47 list configuration settings 109 LISTENER application 163 configuration 165 starting a process 170 stopping a process 170 listener.ora file 171, 172 ListenerLog parameter 147, 170, 171 listeners 163 ListenerStatus parameter 147 local installation 51 local instance 35 LockConflict parameter 261 LOCKS application 26 LOG application 26, 261, 289 LogApplyGap parameter 306 logical host names 167 logs archive 26, 256 batch reporting 254 enhanced monitoring 289 redo 26 Scheduler 254 LogTransferGap parameter 306
J
JAVA_HOME variable 259 jobs batch reporting 249 broken 162 failed 161 flagging 162 job queue 160163 overdue 161 removing 163 running 163 JOBS application 26, 160163
M
manual migration of customizations 58 master activities, replication 285 MaxBusyRate parameter 275 MaxWaitTimes parameter 275 MemberStatus parameter 298 migrating customized PSL 59 KM customizations manually 58 removing files from PATROL_CACHE 60 migration
Index
369
A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
backing up current installation before 60 modify configuration 105 modifying instances 136 Monitored Tablespaces report 192 monitoring logs 289 restricted instances 103 monitoring database links 283288 monitoring instances category 108 disabling 104 enabling 104 excluding tablespaces 209256 failover 112 remote Oracle instances 98, 99 starting 105 stopping 105 monitoring tablespaces 180187, 188 deleting 183, 197 selecting 183, 197 monitoring users 193209 problem users 200, 201 reports 208 moving rule sets 133 MTS application 26, 49, 275 reports 275278 MTS_DISP application 275 MTSProcsIdle parameter 275 MTSProcsLeft parameter 275 MTSProcsUsed parameter 275 database writer 27 errors 227 Explain Plan 159 home directory 84 init.ora file 83, 196, 199, 241, 243, 275, 278 optimizer 159 server name 84 SQL commands 159 System Identifier 100, 113, 195, 201, 203, 204, 231, 240, 280 tnsnames.ora 35, 98, 99 utilities 158163 Oracle account 48 Oracle account, removing 135 ORACLE application 28 Oracle Net 18, 35, 46, 163 Oracle Net Sercvices 35 Oracle Net Services 18, 46 Oracle objects, removing 135 ORACLE_ASM.km 22 ORACLE_ASM.kml 22 ORACLE_ASM_DGROUP.km 22 ORACLE_ASM_DISK.km 22 ORACLE_ASM_INSTANCE.km 22 ORACLE_AUTO_CONFIG.km 21 ORACLE_AUTO_CONFIG.kml 21, 93, 189 ORACLE_AVAILABILITY 146 ORACLE_DATAGUARD application 25 ORACLE_DATAGUARD.km 21 ORACLE_DATAGUARD_DATABASE.km 21 ORACLE_DATAGUARD_INSTANCE.km 21 ORACLE_ETSM application 188 ORACLE_ETSM.km 21 ORACLE_ETSM.kml 192 ORACLE_ETSM.kml file icon 26 ORACLE_ETSM_LARGE.km 21 ORACLE_ETSM_READONLY.km 21 ORACLE_ETSM_REGULAR.km 21 ORACLE_ETSM_ROLLBACK.km 21 ORACLE_ETSM_TBSP_INSTANCE.km 21 ORACLE_ETSM_TEMP.km 21 ORACLE_ETSM_UNDO.km 21 ORACLE_ETSM_VERY_LARGE.km 21 ORACLE_RAC.km 21 ORACLE_RAC_DATABASE.km 21 ORACLE_RAC_MEMBER_INSTANCE.km 21 ORACLE_TBS_INSTANCE 146 OracleETF._ANYINST_.Parameter rule 152 OracleStatus parameter 39, 41, 147 ORACreateUser.sql 92 ORAFailoverMonitor 21 ORANET application 23, 172 alarms 170 cluster configuration 165, 167 monitoring processes 163173 multiple listeners 167
N
Net8 18, 35, 46 monitoring 163170 Net8i 18, 35 Netscape Navigator 63 Netscape Navigator requirements 47 NETWORK application 26 NT_LOGICAL_DISKS.km 46, 82, 83
O
O7_DICTIONARY_ACCESSIBILITY 49 online Help, installing 63 OpenVMS 35, 88, 91, 98, 256, 259 functions not available 256 ora_batch_conf.configuring file 90, 91 ora_batch_conf.done file 90, 91 ora_batch_conf.err file 90, 91 ora_batch_conf.tpl file 91 ORA_ROOT directory 88, 91 ORA-006XX errors 226, 227 Oracle (server) ARCHIVELOG option 26
370
A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
reports 171172 requirements 164 structured directory 168 unstructured directory 169 oratab file 98 orauser_.com file 88, 91 ETF 150, 151 ExtentsLeft 151 ExtentsLeftETF 151 find_problems 147, 192 fixed thresholds 147 FreeSpace 151 FreeSpaceDeficit 147 FreeSpaceETF 151 history data 32 history file 32 InstanceCheck 147 InstanceStatus 86, 91, 117, 147 LatchGetRatio 261 LibGetHits 261 ListenerLog 147 ListenerStatus 147 LockConflict 261 MaxBusyRate 275 MaxWaitTimes 275 modifying 145, 149 MTSProcsIdle 275 MTSProcsLeft 275 MTSProcsUsed 275 OracleStatus 147 overview of 30 PctUsed 82, 181 PingTime 283 ProblemUsers 147, 261 ProcsLeft 151, 261 ProcsLeftETF 151 QueriesInitiated 279 QueueLength 275 QueueWaitTime 275 reactivating 146 RedoArchDelay 261 RedoNotArch 261 reviewing data 30 RSExtentsLeft 146 RSExtentsLeftPct 146 RSSpaceLeft 146 RSSpaceLeftPct 146 SchedulerOutput 147, 250 SessionsLeft 151 SessionsLeftETF 151 ShutdownInProgress 147 SlavesCPUUsed 279 SlavesLeft 279 SlavesPctBusy 279 SlavesUsed 279 SpaceLeft 82, 181 standard 30 StorageProblems 147, 192 StorageProblemsCnt 147, 192 storing data 30 SystemTSLeft 146, 151, 261 SystemTSLeftETF 151 SystemTSLeftPct 146
P
P$AUTOEXTEND Table 323 P$AUTOEXTTS Table 323 P$CANTEXTFILE Table 324 P$CANTEXTMAXFILE Table 324 P$CANTEXTMAXTBSP Table 324 P$DATA_OS_SPACE table 325 P$DATA_TS_SPACELEFT table 325 P$LOCKCONFLICTTX Table 327 P$LOCKCONFLICTUSER Table 327 P$OBJ_EXCLUSIONS Table 328 P$POK_CFG Table 328 P$SQL table 219 P$SQL_TEXT table 220 P$TBSP_DATA_FILES View 334 parallel query option 279 param.hist file 32 parameter properties, changing 149 parameters Alerts 147, 226, 261 ArchFreeSpace 82, 151, 261 ArchFreeSpaceETF 82, 151 ArchLogCreated 147 AutoExtended 146, 147 BGChkPntRate 261 BGDumpLeft 82, 151, 261 BGDumpLeftETF 82, 151 BGDumpUsed 82 BGDumpUsedPct 82 BuffHitRatio 261 BusyRate 275 CannotExtend 37, 146, 147 changing poll times 148 changing thresholds 147 collector 30 CollETF 151 ConfigUpdate 147 ConnectCheck 147 ConnectDB 147 consumer 30 CoreDumpLeft 82, 151 CoreDumpLeftETF 82, 151 CoreDumpUsed 82 CoreDumpUsedPct 82 data retrieval 30 deactivating 145 DictHitRatio 261 DiskSorts 261
Index
371
A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
UserDumpLeft 82, 151 UserDumpLeftETF 82, 151 UserDumpUsed 82 UserDumpUsedPct 82 USERS 194 Users 261 USERS_INSTANCE 196 with status set 146 partitions 210, 211, 215, 216 PATH environment variable 64 PATROL account 101, 105, 107 installing objects for 123 KM tables storage parameters 331 uninstalling objects for 123 PATROL Agent 35, 36, 38 parameter data, storing 30 PATROL Agent, virtual 38 PATROL Configuration Manager archiving 132 modifying instances 136 overview 132 removing instances 136 requirements 132 PATROL console 63 parameter data, reviewing 30 PATROL KM for Event Management 132, 150 PATROL product directory 56 PATROL security 50 PATROL virtual agent 38 PATROL_BROWSER environment variable 64 PATROL_CACHE 60 removing files from 60 PATROL_HOME 60 PctUsed 37 PctUsed parameter 37, 181, 182, 190 Pending Transactions Report 274 PERFORMANCE application 261 PERFORMANCE application application 27 PhyReads parameter 182, 190 PhyWrites parameter 182, 190 PingTime parameter 283 POKKMConfigInstanceRemoved rule removing 135 removing instance 141 using 134 POKKMConfigUpdated rule modifying instance 140 removing 135 using 134 poll times 148 polling cycles 148 ports 47 PQO application 27, 49, 279 reports 279283 privileges DBA group 173 privileges for DBA group 173 problem users blocking process 201 monitoring 199 parameter 195 solving 200 ProblemUsers parameter 147, 195, 261 ProcsLeft parameter 151, 261 ProcsLeftETF parameter 151 product directory 57 product support 3 Profiles Report 204 Provide the PATROL 3.x Product Directory window 57 PSL, migrating 59 psql.dat file 223 psqltest.dat file 223
Q
QueriesInitiated parameter 279 query execution time 148 QueueLength parameter 275 QueueWaitTime parameter 275
R
RAC application 27 RAC hierarchy 295 RAC_DATABASE application 298 Real Application Cluster (RAC) application description 27 configuring 294 parameters 298 requirements 295 recovery actions automated 256257 compressing log files 256 moving log files 256 recovery reports 234237 redo logs 26 RedoArchDelay parameter 261 RedoNotArch parameter 261 Regular expression choosing a tablespace 190 selecting a user for monitoring 197 tablespace monitoring 183 remote installation 51 remote instance 35, 98, 99, 100 adding 98 configuring 98, 99 functions not available 159 menu items not available 36 parameters not available 36, 37 SQL*Net 36 removing instances 111
372
A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
replication automatic conflict resolution 287 conflict resolution 287 conflicts 286 database links 288 deferred calls 287 master activities 285 objects 288 pending transactions 287 replicated objects 288 replication groups 284 resuming 285 status 285 suspending 285 two-phase transactions 287 REPLICATION application 27, 283289 reports Access Statistics 237 Active Sessions Report 202 Active SQL Statements Report 203 Alerts 226228 All Error Messages 227 All Jobs Report 160 All ORA-006XX Messages 227 Archiving State 235 AutoExtend DB Files Report 232 AVAILABILITY 228234 backup 234237 Backup Status 235 batch 249255 Broken Jobs Report 162 Buffer Cache Contents 101, 248 Buffer/Lib/Dict Cache Info 249 CAPACITY 237240 Commit Point Strength 273 Conflict Resolution Methods Report 287 Conflicts Report 286 database 240246 Database Files 241 Database Links 273 DB Links Report 288 Deferred Calls Report 287 Dispatcher 276 Dispatcher Busy Rates 276 Dispatcher Wait Times 277 Display Oracle Users 204 distributed databases 272274 Failed Jobs Report 161 Free Space 228 Free Space Deficit Report 232 HTML 257269 Link Information Report 284 Listener Services Info 171, 172 Listener Services Info report 171, 172 Listener Status Info 172 Listener Status Info report 172 Lock Conflicts 231 Locks Outstanding 240 Maximum Extents 233 Media Recovery 236 MTS 275277 Object Space Analysis 229 Operations Statistics 280 Oracle init.ora Parameters 243 Oracle License Limits 242 ORANET 171172 Overdue Jobs Report 162 Pending Transactions 274, 287 PQO 279283 Privilege Violations 227 Profiles Report 204 recovery 234237 Redo Log 236 Redo Logs Buffer Cache 249 Replicated Objects Report 288 REPLICATION 286 Resources Used 238 Roles 205 Rollback Segments 244 Schema Table Information 241 Server Statistics 280 Session Details 203 Session Locks Held 202 Session Statistics 202, 281 SGA 246249 SGA Memory Analysis 247 Shared Pool 247 Shared Servers 278 Show Tail 227 Snapshot 274 Space Usage By Object 230 SQLVIEWER 220222 Statistic Summary 245 Statistics Summary 245 Tablespace Free Space 184 Tablespace Segments 186 Tablespace Storage and Status 187 Temporary Extents 233 Trace Files Space Analysis 239 User Account Information 205 User Column/Role Privilege Report 206 User Session Detail 208 User Session Report 206 USERS 208 Wait State Analysis 239 requirements browser 47 HTML Reporting 258 Oracle MTS parameters 49 Oracle PQO parameters 49 Oracle software 49 overview 46 PATROL 82 PATROL KM dependencies 82
Index
373
A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
system 46 resetting global channel 119 retrieving data 30 Review Selections and Install window 57 RSExtentsLeft parameter 146, 210, 212, 213, 214, 215, 231, 261 RSExtentsLeftPct parameter 146, 210, 212, 213, 214, 215, 231 RSSpaceLeft parameter 146, 210, 212, 213, 214, 215, 261 RSSpaceLeftPct parameter 146, 210, 212, 213, 214, 215 rule sets directory 133 installed 133 moving 133 SlavesUsed parameter 279 Space Expert 192 SPACE_EXPERT_ORA application 27, 192 SPACE_EXPERT_ORA_OBJ application 192 SPACE_EXPERT_ORA_TS application 192 SpaceLeft parameter 37, 181, 182, 190 Specify Installation Directory window 56 SQL commands 159 SQL Snapshot 217, 218, 218224 SQL Viewer 219223 archiving data 223 kill sessions 223 reports 220222 starting 220 stopping 220 tables 219220 SQL*NET 35 SQL*Net 18, 46, 83, 98, 163 SQL*Plus 158, 159 SQLVIEWER application 220 standard collectors 30 standard parameters 30 standby instance configuring 304 removing 305 selecting primary instance 304 StandbyStatus parameter 306 storage parameters PATROL KM tables 331 StorageProblems parameter 147, 192 StorageProblemsCnt parameter 147, 192 storing parameter data 30 support, customer 3 SYS account 84, 100, 101, 106, 218, 224, 248, 257 system requirements 46 SYSTEM account 65, 83, 90, 91, 101, 208, 282 system global area 246 System Identifier 100, 195, 201, 203, 204, 231, 240, 280 system requirements 46 SYSTEM tablespace 209, 235 SystemTSLeft parameter 146, 151, 261 SystemTSLeftETF parameter 151 SystemTSLeftPct parameter 146
S
sample batch configuration template file 86 sample_config.wri file 86 Scheduler 249255 adding job 251 adding reports 253 deleting jobs 255 examples 250 job status 255 jobs 249 log file 254 parameter 250 PSL scripts 252 setting time 254 SchedulerOutput parameter 147, 250 security 50 security level 50 security levels requirements 47 Select Products and Components to Install window 56 Select System Roles window 56 Select Type of Installation window 56 selecting tablespaces 183, 197 Server Manager 158 server.xml file 259, 263 sessions, killing 223 SessionsLeft parameter 151 SessionsLeftETF parameter 151 setting environment variables for Help browser 64 SGA application 27, 261 reports 246249 shells Bourne 64 C 64 Korn 64 ShutdownInProgress parameter 147 SID 100, 113, 172, 195, 201, 203, 204, 231, 240, 280 SlavesCPUUsed parameter 279 SlavesLeft parameter 279 SlavesPctBusy parameter 279
T
tables 219 P$AUTOEXT 322 P$AUTOEXTEND 323 P$AUTOEXTFILE 323 P$AUTOEXTTS 323 P$BUFFERCACHE 324 P$CANTEXTFILE 324 P$CANTEXTMAXFILE 324 P$CANTEXTMAXTBSP 324
374
A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
P$EXTENTMAP 325 P$JOBACTION 325 P$JOBGENERAL 326 P$JOBHISTORY 326 P$JOBSCHEDULE 326 P$LOCKCONFLICTTX 327 P$LOCKCONFLICTUSER 327 P$OBJ_EXCLUSIONS 328 P$POK_CFG 328 P$SQL 219, 329 P$SQL_TEXT 220 P$SQLID 330 P$SQLTEXT 330 PATROL for Oracle 322330 SQL Viewer 219220 storage parameters 331 Tablespace monitoring regular expression 183 tablespace name limitation 180 tablespaces deleting 183, 197 excluding 182, 209256 monitoring 180 selecting 183, 197 SYSTEM 209, 235 TABLESPACES application 28, 180, 183 TBSP_INSTANCE application parameters 182 technical support 3 temporary tablespaces 24, 49, 84, 88, 91, 100, 101, 107, 205, 210, 213 TempTSLeft parameter 210, 212, 213, 214 TempTSLeftPct parameter 210, 212, 213, 214 The 317 thresholds, changing for parameters 147 TIMED 49 TNS_ADMIN 49 tnsname.ora 49 tnsnames.ora file 35, 98, 99, 273 Tomcat servlet engine TOMCAT_HOME variable 259 TOMCAT_HOME/conf directory 259, 264 Typical installation 56 UserDumpUsed parameter 37, 82 UserDumpUsedPct parameter 37, 82 users monitoring 193209 problem 200, 201 problem users 200, 201 USERS application 28, 193, 261 parameters 194 using 193209 Users parameter 195, 261 USERS_INSTANCE application parameters 196 USRCpuSeconds parameter 49
V
variable JAVA_HOME 259 PATROL_BROWSER 64 TOMCAT_HOME 259 Variables deploying 142 variables for internal use only 137 not in pconfig 136 views P$TBSP_DATA_FILES 334 PATROL for Oracle 332??
W
Windows NT functions not available 158, 159, 256 wpconfig utility 74, 75, 79, 80, 103, 104
X
x-emulator 158, 159 xpconfig utility 74, 75, 76, 80, 81 xterm 158, 159
U
upgrading removing files from PATROL_CACHE 60 upgrading and saving your customizations 59 upgrading, choosing a procedure 53 user account 64 User monitoring regular expression 197 UserDumpLeft parameter 37, 82, 151 UserDumpLeftETF parameter 37, 82, 151
Index
375
A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
376
Notes