Oracle K

378
www.bmc.com PATROL User Guide for Oracle ® Supporting PATROL version 8.9 for Oracle June 2008

description

Oracle KM

Transcript of Oracle K

Page 1: Oracle K

www.bmc.com

PATROLUser Guidefor Oracle®

Supporting

PATROL version 8.9 for Oracle

June 2008

Page 2: Oracle K

Contacting BMC Software

You can access the BMC Software website at http://www.bmc.com. From this website, you can obtain information about the company, its products, corporate offices, special events, and career opportunities.

United States and Canada

Address BMC SOFTWARE INC2101 CITYWEST BLVDHOUSTON TX 77042-2827 USA

Telephone 713 918 8800 or800 841 2031

Fax 713 918 8000

Outside United States and Canada

Telephone (01) 713 918 8800 Fax (01) 713 918 8000

© 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.

Restricted rights legendU.S. Government Restricted Rights to Computer Software. UNPUBLISHED -- RIGHTS RESERVED UNDER THE COPYRIGHT LAWS OF THE UNITED STATES. Use, duplication, or disclosure of any data and computer software by the U.S. Government is subject to restrictions, as applicable, set forth in FAR Section 52.227-14, DFARS 252.227-7013, DFARS 252.227-7014, DFARS 252.227-7015, and DFARS 252.227-7025, as amended from time to time. Contractor/Manufacturer is BMC SOFTWARE INC, 2101 CITYWEST BLVD, HOUSTON TX 77042-2827, USA. Any contract notices should be sent to this address.

Page 3: Oracle K

3

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

■ 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

Support by telephone or e-mail

In the United States and Canada, if you need technical support and do not have access to the web, call 800 537 1813 or send an e-mail message to [email protected]. (In the subject line, enter SupID:<yourSupportContractID>, such as SupID:12345). Outside the United States and Canada, contact your local support center for assistance.

Before contacting BMC

Have the following information available so that Customer Support can begin working on your issue immediately:

■ 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

■ 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

Page 4: Oracle K

4 PATROL for Oracle User Guide

License key and password information

If you have questions about your license key or password, contact BMC as follows:

■ (USA or Canada) Contact the Order Services Password Team at 800 841 2031, or send an e-mail message to [email protected].

■ (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 [email protected].

■ (Asia-Pacific) Contact your BMC sales representative or your local BMC office.

Page 5: Oracle K

ContentsChapter 1 Product components and capabilities 17

Features of PATROL for Oracle . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17Structure of PATROL for Oracle . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19

Application classes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19Parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30Menu commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33InfoBoxes. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34

Local and remote monitoring. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35Oracle servers with a PATROL Agent . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36Oracle servers without a PATROL Agent . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36

Failover and cluster monitoring scenarios . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38Failover and cluster monitoring by using the PATROL Agent . . . . . . . . . . . . . . . 38Failover and cluster monitoring by using PATROL for Oracle . . . . . . . . . . . . . . . 38

Where to go from here. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43

Chapter 2 Installing and migrating PATROL for Oracle 45

Verifying installation requirements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 46Preparing for installation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 50

Reviewing PATROL security. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 50Determining the version of the installation utility . . . . . . . . . . . . . . . . . . . . . . . . . . 51Determining whether to install locally or remotely . . . . . . . . . . . . . . . . . . . . . . . . . 51Determining how to install and upgrade. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 52

Installing for the first time or upgrading over an existing installation . . . . . . . . . . . . 53Migrating customizations manually . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 58Upgrading and preserving customizations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 59

Preparing to upgrade and migrate . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 60Creating an installation package of the merged PATROL for Oracle . . . . . . . . . . 61

Importing into Distribution Server . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 62Installing the online Help . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 63

Installing the UNIX version of the Help browser. . . . . . . . . . . . . . . . . . . . . . . . . . . 63Setting the environment variables for the browser . . . . . . . . . . . . . . . . . . . . . . . . . 64Additional considerations for using online Help for UNIX . . . . . . . . . . . . . . . . . . 65

Uninstalling PATROL for Oracle. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 66Uninstalling PATROL for Oracle from a UNIX environment . . . . . . . . . . . . . . . . 66Uninstalling PATROL for Oracle from a Windows environment . . . . . . . . . . . . . 67

Where to go from here. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 68

Contents 5

Page 6: Oracle K

Chapter 3 Loading and configuring PATROL for Oracle 69

Preparing to use PATROL for Oracle . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 70Loading and preloading KMs. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 70

Determining which .kml and .km files to load . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 70Determining which KMs to preload . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 71Loading KMs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 72Preloading KMs on the PATROL Agent. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 74

Removing KMs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 76Unloading KMs from a PATROL console . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 77Removing KMs from the PATROL Agent preload list. . . . . . . . . . . . . . . . . . . . . . . 79

Configuration overview. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 81Configuration requirements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 81Requirements checklist . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 83Required configuration information form . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 83Configuration task flow . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 84Configuration methods . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 85

Batch configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 86Batch configuration file syntax. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 86Creating a batch configuration file . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 89

Automatic configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 92Using sqlplus to create PATROL database user . . . . . . . . . . . . . . . . . . . . . . . . . . . . 92Overview of the ORACLE_AUTO_CONFIG application . . . . . . . . . . . . . . . . . . . . 93Using the default_auto_config.txt file. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 94Modifying instances that were automatically configured . . . . . . . . . . . . . . . . . . . . 97

PATROL advanced configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 97Instance discovery . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 98Adding instances . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 98Configuring instances for monitoring. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 99Configuring instances in restricted mode for monitoring . . . . . . . . . . . . . . . . . . . 103Enabling and disabling instance monitoring . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 104Modifying instance configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 105Modifying category monitoring for an instance . . . . . . . . . . . . . . . . . . . . . . . . . . . 108Viewing instance configuration settings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 109Removing instances . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 111

Failover monitoring . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 112Configuring failover monitoring . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 112

If a problem occurs in configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 119Resetting the global channel . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 119Setting debugging options . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 120Uninstalling PATROL objects . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 123Deactivating parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 124

Monitoring ASM instances . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 125Configuring an ASM instance . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 126ASM parameters. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 127ASM menu commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 128

Where to go from here . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 129

6 PATROL for Oracle User Guide

Page 7: Oracle K

Chapter 4 Using PATROL Configuration Manager to modify and migrate configuration 131

Overview of PATROL Configuration Manager . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 132Installation and setup requirements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 132

Setting the archive option to save a backup . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 132Moving rule sets to the PATROL Configuration Manager directory . . . . . . . . . 133

ConfigUpdate parameter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 134Using the ConfigUpdate parameter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 134Understanding how the ConfigUpdate parameter operates . . . . . . . . . . . . . . . . 134

Configuring PATROL for Oracle instances . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 135Using PATROL Configuration Manager to modify or remove an instance . . . . . . . 136

Configuration data not stored in pconfig variable . . . . . . . . . . . . . . . . . . . . . . . . . 136Configuration variables that are for internal use only. . . . . . . . . . . . . . . . . . . . . . 137Application classes with status changes set in code. . . . . . . . . . . . . . . . . . . . . . . . 139Modifying or removing a configured instance . . . . . . . . . . . . . . . . . . . . . . . . . . . . 140Modifying the blackout configuration variable . . . . . . . . . . . . . . . . . . . . . . . . . . . 143

Using PATROL Configuration Manager to manage parameters . . . . . . . . . . . . . . . . 144Deactivating parameters. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 145Changing parameter thresholds . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 147Changing parameter polling cycles . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 148Modifying parameter properties. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 149Modifying ETF parameters through PATROL Configuration Manager. . . . . . . 150

Using the rule and rule set examples . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 153Where to go from here. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 154

Chapter 5 Using Oracle utilities from PATROL for Oracle 157

Using Oracle utilities . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 158Using Server Manager and SQL*Plus from PATROL . . . . . . . . . . . . . . . . . . . . . . 158Using Explain Plan from PATROL . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 159Issuing SQL commands to Oracle from PATROL . . . . . . . . . . . . . . . . . . . . . . . . . 159Managing Oracle’s job queue from PATROL . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 160

Monitoring Oracle Net from PATROL . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 163ORANET requirements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 164Listener Password configuration menu option. . . . . . . . . . . . . . . . . . . . . . . . . . . . 164Configuring a listener . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 165Configuring multiple listeners . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 167Starting and stopping a listener. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 170Monitoring ORANET alarms. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 170Viewing ORANET reports . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 171Debugging listeners. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 173

Starting and shutting down instances. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 173Starting instances. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 173Shutting down instances . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 173

Scheduling blackouts. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 174Nesting blackout periods . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 175Scheduling unending blackouts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 175Setting the time zone variable . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 175Setting blackout periods for categories and parameters . . . . . . . . . . . . . . . . . . . . 176

Contents 7

Page 8: Oracle K

Deleting blackout periods. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 176Debugging blackouts. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 177

Where to go from here . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 177

Chapter 6 Monitoring tablespaces, users, and SQL statements 179

Tablespace monitoring overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 180Using the TABLESPACES application to monitor tablespaces . . . . . . . . . . . . . . . . . . 180

TBSP_INSTANCE parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 182Activating TABLESPACES application monitoring . . . . . . . . . . . . . . . . . . . . . . . . 183Selecting tablespaces for monitoring . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 183Viewing reports on tablespaces . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 184

Using the ETSM applications to monitor tablespaces. . . . . . . . . . . . . . . . . . . . . . . . . . 188Defining tablespace types . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 189ETSM parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 189Using regular expressions to choose tablespaces . . . . . . . . . . . . . . . . . . . . . . . . . . 190Activating the ETSM applications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 192Viewing the ETSM reports . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 192Debugging the ETSM application . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 192

Using Space Expert to monitor tablespaces . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 192User monitoring overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 193

USERS parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 194USERS_INSTANCE parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 196Activating user monitoring . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 197Selecting users or user sessions for monitoring . . . . . . . . . . . . . . . . . . . . . . . . . . . 197Monitoring problem users . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 199Viewing the All Problem Users report . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 200Viewing other reports on users . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 202

Excluding parameter alarms . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 209Differences between exclusion types . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 211Exclusion examples . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 212Excluding tablespaces . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 213Excluding objects . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 214Excluding users from space monitoring. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 215Excluding partitions from monitoring . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 216Viewing the monitoring settings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 216

Monitoring SQL statements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 217SQL Snapshot overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 217Using SQL Snapshot . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 218SQL Viewer tables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 219Activating SQL Viewer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 220Starting and stopping SQL Viewer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 220Viewing SQL Viewer reports . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 220Archiving SQL Viewer data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 223Terminating SQL Viewer sessions. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 223

Where to go from here . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 224

Chapter 7 Monitoring instance health 225

Reports and tuning. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 226

8 PATROL for Oracle User Guide

Page 9: Oracle K

Alerts parameter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 226Availability reports . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 228Backup and recovery reports . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 234Capacity reports. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 237Database reports . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 240SGA reports . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 246

Batch reporting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 249Batch Scheduler examples . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 250Adding a job to the scheduler . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 251Adding a report to the scheduler . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 253Specifying the time the job or report should run . . . . . . . . . . . . . . . . . . . . . . . . . . 254Using the Scheduler log file . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 254Checking the status of a scheduled job or report . . . . . . . . . . . . . . . . . . . . . . . . . . 255Checking the settings for a job or report . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 255Deleting a job from the scheduler . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 255

Automated recovery actions. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 256Compressing or moving log files . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 256Resizing the next extent . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 256

HTML reporting. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 257Requirements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 258Setting up HTML reporting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 260Configuring HTML reporting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 260Configure FTP information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 262Updating the server.xml file . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 263Viewing and modifying HTML reporting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 268

Where to go from here. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 270

Chapter 8 Monitoring Oracle options 271

Distributed database monitoring. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 272Getting information about distributed databases. . . . . . . . . . . . . . . . . . . . . . . . . . 272Getting transaction and snapshot information . . . . . . . . . . . . . . . . . . . . . . . . . . . . 273

MTS reports. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 275Getting dispatcher information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 276Getting MTS configuration information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 277

PQO reports . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 279Getting PQO operations statistics information . . . . . . . . . . . . . . . . . . . . . . . . . . . . 279Getting PQO server statistics information. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 280Getting PQO session statistics information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 281Getting PQO system statistics information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 282

Replication activities . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 283Monitoring database links . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 283Monitoring replication . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 284Getting replication information. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 286

Enhanced monitoring of the Oracle archive logs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 289ORACLE_ARCHIVE_SPEC parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 290Activating the ORACLE_ARCHIVE_SPEC parameters . . . . . . . . . . . . . . . . . . . . 290Debugging the ARCHIVE application . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 291

Where to go from here. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 291

Contents 9

Page 10: Oracle K

Chapter 9 Monitoring the RAC environment 293

Overview of RAC environment monitoring. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 293Configuring RAC monitoring. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 294

ORACLE_RAC parameter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 298Activating the ORACLE_RAC parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 299Rulesets that manage database-specific alerts in a RAC environment . . . . . . . . 299Debugging the RAC application . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 300

Where to go from here . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 300

Chapter 10 Monitoring the dataguard environment 301

Overview of dataguard environment monitoring. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 301Dataguard configuration requirements. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 302

Configuring standby instance for monitoring . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 304Removing standby instance from monitoring . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 305

Debugging the ORACLE_DATAGUARD application . . . . . . . . . . . . . . . . . . . . . . . . . 305Limitations in the dataguard KM. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 306Parameters to monitor standby instance. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 306

Activating the ORACLE_DATAGUARD parameters . . . . . . . . . . . . . . . . . . . . . . 311Troubleshooting the dataguard KM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 311Where to go from here . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 312

Appendix A Accessing menu commands, InfoBoxes, and online Help 313

Accessing KM commands and InfoBoxes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 313Accessing online Help . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 314

Appendix B PATROL database objects 317

Grants and privileges for the PATROL account . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 317PATROL for Oracle database objects. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 321

Where are PATROL objects installed? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 321PATROL for Oracle tables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 322

Storage parameters for PATROL tables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 331PATROL for Oracle views. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 332Pconfig variables. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 334

Appendix C Firewall and port-forwarding considerations 353

Benefits of VPNs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 353Protocols, port numbers, and blocking . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 354Configuring a firewall for PATROL for Oracle . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 354

Glossary 357

Index 365

10 PATROL for Oracle User Guide

Page 11: Oracle K

FiguresIcon hierarchy for PATROL for Oracle . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29Collector application, parameters, and a graph . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32Instance application menu in Windows . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33InfoBox for an Oracle instance . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34Remote and local servers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35Configuration with PATROL Agents not in cluster-specific mode . . . . . . . . . . . . . . . 40Distributed environment configuration - local PATROL Agents only . . . . . . . . . . . . 42Tree view when ORACLE.kml and ORACLE_AUTO_CONFIG.kml

files are loaded . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 74PATROL for Oracle configuration task flow . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 85Oracle Parallel Server configuration: basic failover . . . . . . . . . . . . . . . . . . . . . . . . . . . 118Icon hierarchy for ASM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 126Get command in PATROL Configuration Manager . . . . . . . . . . . . . . . . . . . . . . . . . . 142Listener configuration task flow . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 166Blackout period priority . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 175TABLESPACES hierarchy . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 181USERS hierarchy . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 194Exclusion types . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 211HTML reporting overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 258Icon hierarchy for RAC . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 295Icon hierarchy for dataguard . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 303

Figures 11

Page 12: Oracle K

12 PATROL for Oracle User Guide

Page 13: Oracle K

TablesPATROL for Oracle .kml and .km files . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20PATROL for Oracle applications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23System requirements for installing PATROL for Oracle . . . . . . . . . . . . . . . . . . . . . . . 46Choosing an installation and upgrade procedure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 53PATROL for Oracle KM files . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 71PATROL for Oracle requirements checklist . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 83PATROL for Oracle configuration information summary . . . . . . . . . . . . . . . . . . . . . . 84Batch configuration keywords . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 87Batch config template dialog box fIelds . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 90Variables in the default_auto_config.txt file . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 95Configuration tasks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 97PATROL account modification results . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 106Configure [instance] for Failover Monitoring dialog box fIelds . . . . . . . . . . . . . . . . . 113Troubleshooting configuration tasks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 119ASM parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 127Parameters supported in the ASM-monitoring feature . . . . . . . . . . . . . . . . . . . . . . . . 128ASM menu commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 128Variables that are for internal use only . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 137Parameters that you must reactivate via PATROL Configuration Manager . . . . . . 146PATROL for Oracle parameters with fixed thresholds . . . . . . . . . . . . . . . . . . . . . . . . 147ETF parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 151All jobs report . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 160Failed jobs report . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 161Overdue jobs report . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 162Broken jobs report . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 162Cluster configuration information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 167Listener Status Info report . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 172TBSP_INSTANCE parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 182Tablespace Free Space report . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 184Tablespace report . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 185Tablespace Segments report . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 186Tablespaces by Size report . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 187Tablespace Status and Storage report . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 187ETSM application parameter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 189ETSM_tablespaceType application parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 190ETSM_TBSP_INSTANCE application parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . 190USERS parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 195USERS_INSTANCE parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 196Problem User Settings dialog box . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 199All Problem Users report . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 200

Tables 13

Page 14: Oracle K

Active Sessions report . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 202SQL Statements report . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 203Display Oracle Users report . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 204Profiles report . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 204Role Information report . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 205User Account Info report . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 205User Column/Role Privilege report . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 206User Session report . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 206User Session Detail report . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 208AVAILABILITY alarm conditions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 210SQL Viewer statistics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 221SQL Viewer standard report . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 222SQL Viewer Detail report . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 222Free Space report . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 228Object Space Analysis report description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 229Space Usage By Object report . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 230Lock conflicts report . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 231AutoExtend DB Files report description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 232Free Space Deficit report . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 232Maximum Extents report . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 233Backup Status report . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 235Archiving State report description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 235Media Recovery report description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 236Redo Log report description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 236Access Statistics report . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 237Wait State Analysis report . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 239Locks Outstanding report . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 240Schema Table Information report . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 241Parameter File init.ora report . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 243Rollback Segments report . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 244Statistic Summary report . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 245SGA Memory Analysis report . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 247Shared Pool report . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 247Buffer Cache Contents report . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 248HTML reporting setup task flow . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 260FTP information items . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 262HTML reporting refresh cycles . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 269Commit Point Strength report . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 273Database Links report . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 273Pending Transactions report . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 274Snapshot report . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 274Dispatcher report . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 276Dispatcher busy rates report . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 276Dispatcher Wait Times report . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 277Shared Servers report . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 278Operation Statistics report . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 280Server Statistics report . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 280Session Statistics report . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 281Session Statistic report statistic names . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 281

14 PATROL for Oracle User Guide

Page 15: Oracle K

System Statistics report . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 282System Statistics report statistic names . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 282Link Information report . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 284Replication reports summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 286Conflicts report . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 286Deferred Calls report . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 287Pending Transactions report . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 287Conflict Resolution Methods report . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 288DB Links report . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 288Replicated Objects report . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 289ORACLE_ARCHIVE_SPEC application parameters . . . . . . . . . . . . . . . . . . . . . . . . . . 290ORACLE_RAC_DATABASE application parameter . . . . . . . . . . . . . . . . . . . . . . . . . 298ORACLE_DATAGUARD application parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . 306Status of the standby database . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 310Accessing KM commands and InfoBoxes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 313Accessing online Help . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 315PATROL account grants and privileges (SYS) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 317PATROL account grants and privileges ( NON-SYS DBA) . . . . . . . . . . . . . . . . . . . . 320PATROL database objects . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 321P$AUTOEXT table . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 322P$AUTOEXTEND table . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 323P$AUTOEXTFILE table . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 323P$AUTOEXTTS table . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 323P$BUFFERCACHE table . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 324P$CANTEXTFILE table . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 324P$CANTEXTMAXFILE table . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 324P$CANTEXTMAXTBSP table . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 324P$DATA_OS_SPACE table . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 325P$DATA_TS_SPACELEFT table . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 325P$EXTENTMAP table . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 325P$JOBACTION table . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 325P$JOBGENERAL table . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 326P$JOBHISTORY table . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 326P$JOBSCHEDULE table . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 326P$LOCKCONFLICTTX table . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 327P$LOCKCONFLICTUSER table . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 327P$OBJ_EXCLUSION table . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 328P$POK_CFG table . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 328P$SQL table . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 329P$SQLID table . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 330P$SQLTEXT table . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 330P$TEMP_TS_SPACELEFT table . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 331P$TEMP_OS_SPACE table . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 331PATROL tables storage parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 331P$ARCHDEST view . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 332P$BH view . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 332P$DBA_TABLESPACES view . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 334P$TBSP_DATA_FILES view . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 334pconfig variables set by PATROL for Oracle . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 335

Tables 15

Page 16: Oracle K

Protocols, ports, and connections . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 355

16 PATROL for Oracle User Guide

Page 17: Oracle K

C h a p t e r 1

1 Product components and capabilities

This chapter provides you with a brief overview of the PATROL for Oracle product.

In this chapter, the following topics are discussed:

Features of PATROL for Oracle . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17Structure of PATROL for Oracle . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19

Application classes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19Component files. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20Parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30Menu commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33InfoBoxes. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34

Local and remote monitoring. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35Oracle servers with a PATROL Agent . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36Oracle servers without a PATROL Agent . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36

Failover and cluster monitoring scenarios . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38Failover and cluster monitoring by using the PATROL Agent . . . . . . . . . . . . . . . 38Failover and cluster monitoring by using PATROL for Oracle . . . . . . . . . . . . . . . 38

Where to go from here. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43

Features of PATROL for OracleThe PATROL for Oracle solutions contain knowledge in the form of scripts, parameters, and recovery actions. This knowledge is used by PATROL to monitor, analyze, and manage an Oracle installation.

Chapter 1 Product components and capabilities 17

Page 18: Oracle K

Features of PATROL for Oracle

PATROL for Oracle monitors the following elements of your Oracle installation:

■ 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

■ 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.

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.

18 PATROL for Oracle User Guide

Page 19: Oracle K

Structure of PATROL for Oracle

Structure of PATROL for OraclePATROL for Oracle provides functionality in the form of parameters, menu commands, and InfoBoxes that are organized and presented under application classes. The following sections describe each of these functional components of PATROL for Oracle, what they look like, and how they are accessed.

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:

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.

Application type Description

discovery discovers the PATROL for Oracles in your environment and stores the configuration and setup information

container enables the organization and display of parameters by function

functional uses specific parameters, menu commands, and InfoBox items to provide information about a specific database object

Chapter 1 Product components and capabilities 19

Page 20: Oracle K

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 PATROL for Oracle .kml and .km files (part 1 of 3)

.kml file .km component files

ORACLE.kml The following .km files, which are loaded when you load the ORACLE.kml files, contain the application classes that monitor Oracle instances:

■ 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:

■ SPACE_EXPERT_ORA.km■ SPACE_EXPERT_ORA_OBJ.km■ SPACE_EXPERT_ORA_TS.km■ SPACE_EXPERT_SXX.km

ORACLE_ARCHIVE.kml The following .km files contain the application classes for the ORACLE_ARCHIVE application:

■ ORACLE_ARCHIVE.km■ ORACLE_ARCHIVE_SPEC.km

20 PATROL for Oracle User Guide

Page 21: Oracle K

Application classes

ORACLE_AUTO_CONFIG.kml The following .km file contains the application classes for the ORACLE_AUTO_CONFIG application:

ORACLE_AUTO_CONFIG.km

ORACLE_DATAGUARD.kml The following .km files contain the application classes for the ORACLE_DATAGUARD application:

■ ORACLE_DATAGUARD.km■ ORACLE_DATAGUARD_DATABASE.km■ ORACLE_DATAGUARD_INSTANCE.km

ORACLE_ETSM.kml The following .km files contain the application classes for the ORACLE_ETSM application:

■ ORACLE_ETSM.km■ ORACLE_ETSM_LARGE.km■ ORACLE_ETSM_READONLY.km■ ORACLE_ETSM_REGULAR.km■ ORACLE_ETSM_ROLLBACK.km■ ORACLE_ETSM_TBSP_INSTANCE.km■ ORACLE_ETSM_TEMP.km■ ORACLE_ETSM_UNDO.km■ ORACLE_ETSM_VERY_LARGE.km

ORACLE_RAC.kml The following .km files contain the application classes for the ORACLE_RAC application:

■ ORACLE_RAC.km■ ORACLE_RAC_DATABASE.km■ ORACLE_RAC_MEMBER_INSTANCE.km

ORACLE_FAILOVER.kml The following .km file contains the application classes for the ORACLE_FAILOVER application:

ORAFailoverMonitor.km

Table 1 PATROL for Oracle .kml and .km files (part 2 of 3)

.kml file .km component files

Chapter 1 Product components and capabilities 21

Page 22: Oracle K

Application classes

When you install PATROL for Oracle, scripts are also installed in the following directories:

■ On the PATROL Agent:— $PATROL_HOME/lib/psl

— PATROLRoot\oracle (Windows)— PATROLRoot/UNIX (UNIX)

■ On the PATROL console:PATROLRoot/oracle

Applications and icons

Table 2 on page 23 contains a short description of each application class and a graphic of the icon that represents each application class. See “Application icon hierarchy” on page 28 for a description of how these icons appear in your interface.

ORACLEPARALLELSERVER.kml The following .km files contain the application classes that monitor the Oracle Parallel Servers:

■ 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:

■ ORACLE_ASM.km■ ORACLE_ASM_INSTANCE.km■ ORACLE_ASM_DGROUP.km■ ORACLE_ASM_DISK.km

Table 1 PATROL for Oracle .kml and .km files (part 3 of 3)

.kml file .km component files

22 PATROL for Oracle User Guide

Page 23: Oracle K

Application classes

Table 2 PATROL for Oracle applications (part 1 of 6)

Application name and icon Definition

Server The application is the parent application class for PATROL for Oracle. This application discovers the Oracle products in your environment and provides the setup or configuration of PATROL for Oracle.

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:

■ 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.

Chapter 1 Product components and capabilities 23

Page 24: Oracle K

Application classes

Archive The ORACLE_ARCHIVE (Archive) application provides information about archive destinations and enables you to monitor multiple archive destinations. The Archive application monitors both optional and mandatory archive destinations.

However, to monitor multiple archive destinations, the database must be running in archive mode.

This application icon appears only when you load the ORACLE_ARCHIVE.kml file.

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:

■ 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

■ chart more than one parameter on a graphYou 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

Table 2 PATROL for Oracle applications (part 2 of 6)

Application name and icon Definition

24 PATROL for Oracle User Guide

Page 25: Oracle K

Application classes

Capacity The ORACLE_CAPACITY (Capacity) container application holds the parameters that pertain to the capacity of the selected server, such as the number of user connections, the number of locks remaining, and the number of idle processes.

The ORACLE_CAPACITY application enables you to monitor the capacity left on the Oracle instance, including:

■ 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:

■ block change ratio■ block change transaction■ block update ration■ parse call ratio

Table 2 PATROL for Oracle applications (part 3 of 6)

Application name and icon Definition

Chapter 1 Product components and capabilities 25

Page 26: Oracle K

Application classes

ETSM You can choose to load the ORACLE_ETSM.kml file, which provides a phased approach that monitors both autoextensible and non-autoextensible tablespaces for PctUsed and SpaceLeft, and then creates individual ETSM_TBSP_INSTANCE applications whenever the PctUsed or SpaceLeft parameters exceed predefined limits. ETSM also enables you to view physical writes and reads to specific non-autoextensible tablespaces.

This application icon appears only when you load the ORACLE_ETSM.kml file.

BMC Software recommends that you use either the ORACLE_TABLESPACE application or the ORACLE_ETSM application to monitor tablespaces, but not both. See “Tablespaces” on page 28.

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.

Log 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.

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.

Table 2 PATROL for Oracle applications (part 4 of 6)

Application name and icon Definition

26 PATROL for Oracle User Guide

Page 27: Oracle K

Application classes

Performance The ORACLE_PERFORMANCE (Performance) application is a container application that holds the parameters that pertain to the performance of the selected server. The following areas are monitored:

■ 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:

■ database links and activity■ transactions and conflicts

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.

Space Expert 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.

Table 2 PATROL for Oracle applications (part 5 of 6)

Application name and icon Definition

Chapter 1 Product components and capabilities 27

Page 28: Oracle K

Application classes

Application icon hierarchy

The ORACLE application is a discovery application and the parent application that contains all of the other Oracle applications. The ORACLE application discovers and creates an INSTANCE application icon for each database instance on the Oracle servers that you configure for monitoring. The INSTANCE applications discover and contain all of the functional and container applications for the instance it represents. Functional applications are displayed under container applications. Figure 1 on page 29 displays this nested hierarchy for the applications in PATROL for Oracle.

Tablespaces The ORACLE_TABLESPACES application enables you to monitor the current state of the tablespaces in the instance. The TBSP_INSTANCE application, contained in the ORACLE_TABLESPACES application, enables you to view physical writes and reads to specific tablespaces, as well as problems such as used and space left in the tablespace.

Users The ORACLE_USERS (Users) application is a functional application that provides specific parameters, menu commands, and InfoBox items to monitor the PATROL for Oracle users or processes.

Users application icons do not display unless you select User Instance as a problem alert method in the Configure Auto User Monitoring dialog box, or you manually select specific users or processes for monitoring. You can set thresholds to notify you if a user becomes a problem user. Once a user becomes a problem user, you can then monitor the reads, writes, transactions, and CPU consumed by the specific user.

For more information, see “User monitoring overview” on page 193 and the online Help for PATROL for Oracle.

Table 2 PATROL for Oracle applications (part 6 of 6)

Application name and icon Definition

28 PATROL for Oracle User Guide

Page 29: Oracle K

Application classes

Figure 1 Icon hierarchy for PATROL for Oracle

ConfigUpdate OracleStatus

ORACLE_DATAGUA

Chapter 1 Product components and capabilities 29

Page 30: Oracle K

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.

■ 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

Page 31: Oracle K

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.

Chapter 1 Product components and capabilities 31

Page 32: Oracle K

Parameters

Figure 2 Collector application, parameters, and a graph

Parameter history file

All parameter history data is stored on the computer where the PATROL Agent resides, in a single file named param.hist located in the following directory:

$PATROL_HOME\log\history\computername\portnumber

See the PATROL user guide for your console for detailed information about the parameter history file.

1. Double-clicking the Collector application icon displays the standard collector icons.

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.

32 PATROL for Oracle User Guide

Page 33: Oracle K

Menu commands

Menu commands

The PATROL for Oracle menu commands allow you to perform the following tasks:

■ 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

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.

Oracle instance icon

console menu

instance application menu

Chapter 1 Product components and capabilities 33

Page 34: Oracle K

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

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.

Check marked items

Update button

34 PATROL for Oracle User Guide

Page 35: Oracle K

Local and remote monitoring

Local and remote monitoringPATROL for Oracle can monitor both local and remote instances. Local instances are servers that have a PATROL Agent running on them. Remote instances do not have a PATROL Agent running on the server.

PATROL for Oracle connects to remote instances through Oracle Net from an instance with a PATROL Agent. The SQL*Net connect string or Service name is defined in the tnsnames.ora file. A remote instance, once configured for monitoring, looks and acts like a local instance to the PATROL console.

Some functions, however, do not work with remote monitoring because of the limitations of the connection. The instance with the PATROL Agent must have a version of the Oracle software that can connect to a remote database.

Figure 5 shows the relationships between the PATROL console, local instances, and remote instances.

Figure 5 Remote and local servers

PATROL console (Microsoft Windows or UNIX)

UNIX with Oracle

PATROL Agent

Full functionality

Microsoft Windows with Oracle

PATROL Agent

Full functionality

Linux with Oracle

PATROL Agent

Full functionality

UNIX with Oracle No PATROL Agent

Some functions not available on remote Instance

Ora

cle

Net

TCP

/IP

TCP/IP

TCP/IP

Local server

Local server

Remote server

communication goes through the Remote Server but appears as a local instance to the PATROL console

Local server

Chapter 1 Product components and capabilities 35

Page 36: Oracle K

Oracle servers with a PATROL Agent

Oracle servers with a PATROL Agent

If the server you are monitoring has a PATROL Agent, you can use all the functions and tools contained in PATROL for Oracle.

Oracle servers without a PATROL Agent

PATROL for Oracle monitors Oracle servers without a PATROL Agent through Oracle Net. An Oracle server that is monitored through Oracle Net is called a remote Oracle server. Because a remote server does not have a PATROL Agent, the following menu items are not available for remote Oracle Servers:

■ Oracle Server Admin

— Explain Plan— Instance Shutdown— Instance Startup— Server Manager— SQL Plus

■ Reports => Alert Log

— 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 PATROL for Oracle User Guide

Page 37: Oracle K

Oracle servers without a PATROL Agent

Parameters that are unavailable for remote Oracle servers

The following parameters, which require operating system access, are unavailable for remote Oracle Servers:

■ 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

Chapter 1 Product components and capabilities 37

Page 38: Oracle K

Failover and cluster monitoring scenarios

Failover and cluster monitoring scenariosThe following failover and cluster monitoring scenarios are discussed:

■ “Failover and cluster monitoring by using the PATROL Agent”■ “Failover and cluster monitoring by using PATROL for Oracle”

Failover and cluster monitoring by using the PATROL Agent

The PATROL Agent provides failover tolerance by operating in a cluster-specific mode (also known as the PATROL virtual agent). To install the PATROL Agent into a cluster configuration, see the PATROL Agent Reference Manual.

Failover and cluster monitoring by using PATROL for Oracle

You can use PATROL for Oracle to monitor the following types of failover environments:

■ “Active/passive environments” on page 38■ “Active/active environment” on page 40

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.

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.”

38 PATROL for Oracle User Guide

Page 39: Oracle K

Failover and cluster monitoring by using PATROL for Oracle

3 On Instance 1 on Node 1, configure the failover system by using the Failover Monitoring => Configure command from the ORACLE_INSTANCE menu.

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.

Chapter 1 Product components and capabilities 39

Page 40: Oracle K

Failover and cluster monitoring by using PATROL for Oracle

Figure 6 Configuration with PATROL Agents not in cluster-specific mode

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).

Node 3Node 1

InstanceStatus

OracleStatus

InstanceStatus

OracleStatus

InstanceStatus

OracleStatus

InstanceStatus

OracleStatus

Instance 1 up

Instance 1 down

Instance 1 Node 3 waiting

Instance 1 Node 3 up

Normal operation

Failover operation

Instance 1Instance 1

(in failover mode)

Shared Drive for Oracle

PATROL OS KMPATROL Agent PATROL for OraclePATROL OS KM

PATROL Agent PATROL for Oracle

ConnectDB ConnectDB

ConnectDBConnectDB

40 PATROL for Oracle User Guide

Page 41: Oracle K

Failover and cluster monitoring by using PATROL for Oracle

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.

Chapter 1 Product components and capabilities 41

Page 42: Oracle K

Failover and cluster monitoring by using PATROL for Oracle

Figure 7 Distributed environment configuration - local PATROL Agents only

InstanceStatus

OracleStatus

InstanceStatus

OracleStatus

InstanceStatus

OracleStatus

InstanceStatus

OracleStatus

Instance 1 up on Node 1

Instance 1 down on Node 1

Instance 1 on Node 3

Instance 1 up on Node 3

Normal operation

Failover operation

Node 3Node 1

Instance 1

Instance 2

Instance 1

Instance 2

*The following description uses Instance 1 as an example; all instances will work the same.

Oracle Instance 1

Common Oracle Disk

Oracle Instance 2

PATROL OS KMPATROL Agent -p nnnn (monitors both OS and Oracle instance)PATROL for Oracle

PATROL OS KMPATROL Agent -p nnnn (monitors both OS and Oracle instance)PATROL for Oracle

ConnectDB ConnectDB

ConnectDBConnectDB

42 PATROL for Oracle User Guide

Page 43: Oracle K

Where to go from here

Where to go from hereThe following table suggests topics that you should read next:

Topic Source of information

how to install and migrate PATROL for Oracle

Chapter 2, “Installing and migrating PATROL for Oracle” on page 45

how to set up and configure PATROL for Oracle

Chapter 3, “Loading and configuring PATROL for Oracle” on page 69 and PATROL for Oracle online Help

how to use PATROL Configuration Manager with PATROL for Oracle to change configuration variables or parameter properties

Chapter 4, “Using PATROL Configuration Manager to modify and migrate configuration” on page 131

how to use Oracle utilities from PATROL for Oracle

Chapter 5, “Using Oracle utilities from PATROL for Oracle” on page 157

how to monitor the tablespace capacity and user activity on an Oracle instance using PATROL for Oracle

Chapter 6, “Monitoring tablespaces, users, and SQL statements” on page 179

how to monitor instance health using PATROL for Oracle

Chapter 7, “Monitoring instance health” on page 225

how to monitor Oracle options using the PATROL for Oracle

Chapter 8, “Monitoring Oracle options” on page 271

how to monitor the the RAC environment

Chapter 9, “Monitoring the RAC environment” on page 293

how to access the KM menu commands, InfoBoxes, and online Help

Appendix A, “Accessing menu commands, 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

detailed descriptions of the applications, menu commands, parameters, and InfoBoxes

PATROL for Oracle online Help

Chapter 1 Product components and capabilities 43

Page 44: Oracle K

Where to go from here

44 PATROL for Oracle User Guide

Page 45: Oracle K

C h a p t e r 2

2 Installing and migrating PATROL for Oracle

This chapter presents the following topics:

Verifying installation requirements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 46Preparing for installation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 50

Reviewing PATROL security. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 50Determining the version of the installation utility . . . . . . . . . . . . . . . . . . . . . . . . . . 51Determining whether to install locally or remotely . . . . . . . . . . . . . . . . . . . . . . . . . 51Determining how to install and upgrade. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 52

Installing for the first time or upgrading over an existing installation . . . . . . . . . . . . 53Migrating customizations manually . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 58Upgrading and preserving customizations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 59

Preparing to upgrade and migrate . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 60Creating an installation package of the merged PATROL for Oracle . . . . . . . . . . 61

Importing into Distribution Server . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 62Installing the online Help . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 63

Installing the UNIX version of the Help browser. . . . . . . . . . . . . . . . . . . . . . . . . . . 63Setting the environment variables for the browser . . . . . . . . . . . . . . . . . . . . . . . . . 64Additional considerations for using online Help for UNIX . . . . . . . . . . . . . . . . . . 65

Uninstalling PATROL for Oracle. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 66Uninstalling PATROL for Oracle from a UNIX environment . . . . . . . . . . . . . . . . 66Uninstalling PATROL for Oracle from a Windows environment . . . . . . . . . . . . . 67

Where to go from here. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 68

Chapter 2 Installing and migrating PATROL for Oracle 45

Page 46: Oracle K

Verifying installation requirements

Verifying installation requirementsVerify that the target computer meets the requirements listed in Table 3.

For information about support for specific operating systems, Oracle servers, PATROL products, or other third-party products, see the release notes for the version of PATROL for Oracle that you are installing.

NOTE Any information about UNIX in Table 3 applies to any supported versions of Linux, unless otherwise specified.

Table 3 System requirements for installing PATROL for Oracle (part 1 of 4)

Resource Requirements Comments

Oracle Net SQL*Net, Net8, or Oracle Net Services Oracle Net is required only if you want to monitor a remote instance. See “Local and remote monitoring” on page 35.

PATROL Agent and consoles

A PATROL Agent and one or more of the following consoles:

■ PATROL Console for UNIX■ PATROL Console for Microsoft Windows■ PATROL Central Operator – Web Edition ■ PATROL Central Operator – Microsoft

Windows Edition

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 Microsoft Windows in a Developer Console mode is required to configure PATROL for Oracle initially.

other required PATROL products

The following PATROL products are also required:

■ PATROL for UNIX ■ PATROL for Microsoft Windows

PATROL for Oracle collects disk space information from the following PATROL operating system .km files:

■ FILESYSTEM.km and UNIX_OS.km for UNIX

■ NT_LOGICAL_DISKS.km for Microsoft Windows

■ PATROL Installation Utility 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 PATROL for Oracle User Guide

Page 47: Oracle K

Verifying installation requirements

other optional PATROL products

■ Distribution Server Distribution Server is required only if you plan to use it to distribute the KM.

■ PATROL Configuration Manager ■ PATROL Knowledge Module® for Event

Management

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.

other general requirements

■ JAVA2 Platform, Standard Edition■ Tomcat Servlet Engine, or similar

software

These products are required for HTML reporting.

For more information, see “HTML reporting” on page 257.

browser Netscape Navigator for UNIX and Red Hat Linux platforms.

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 PATROL for Oracle operates in all PATROL security levels.

For more information about security, see “Reviewing PATROL security” on page 50.

For information about installing with a firewall, see Appendix C, “Firewall and port-forwarding considerations” on page 353.

license You must have a valid demonstration license (typically good for 30 days) or a permanent license to run your PATROL products.

If you do not have a permanent license, contact your BMC Software sales representative or the BMC Software contract administration department for licensing information.

ports The installation utility might require you to specify the port number for agents

The default port number for agents is 3181.

disk space needed to install

The following disk space is needed to install PATROL for Oracle on agents and consoles:

■ UNIX agent—60 MB ■ UNIX console—86 MB ■ Windows agent—75 MB ■ Windows console—86 MB

These numbers are approximate and assume that you are installing both PATROL for Oracle and PATROL for Oracle Parallel Server.

disk space used after installation

The following disk space is needed to operate PATROL for Oracle on agents and consoles:

■ UNIX agent—30 MB ■ UNIX console—10 MB■ Windows agent—30 MB■ Windows console—10 MB

These numbers are approximate, and assume you are operating both PATROL for Oracle and PATROL for Oracle Parallel Server.

Table 3 System requirements for installing PATROL for Oracle (part 2 of 4)

Resource Requirements Comments

Chapter 2 Installing and migrating PATROL for Oracle 47

Page 48: Oracle K

Verifying installation requirements

OS accounts on Windows

If you are installing on Microsoft Windows, a PATROL Windows account

Use the following guidelines when setting up the PATROL Windows account:

■ 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

If you are installing on UNIX, a PATROL UNIX account

Use the following guidelines when setting up the PATROL UNIX account:

■ 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.

Oracle account

PATROL account for Oracle Use one of the following accounts for the configuration process:

■ SYS■ account with the DBA role granted to it

For more information, see “Configuring instances for monitoring” on page 99.

Table 3 System requirements for installing PATROL for Oracle (part 3 of 4)

Resource Requirements Comments

48 PATROL for Oracle User Guide

Page 49: Oracle K

Verifying installation requirements

Oracle database objects

Requires 10-15 MB available in the default tablespace and the default temporary tablespace.

For more information, see “Configuring instances for monitoring” on page 99.

Oracle database modes

If a database is in restricted mode, you must configure PATROL to monitor the database.

For more information, see “Configuring instances in restricted mode for monitoring” on page 103.

other settings SQL Snapshot CPU data retrieval TIMED_STATISTICS = TRUE

Monitoring high CPU users TIMED_STATISTICS = TRUE

USRCpuSeconds parameter TIMED_STATISTICS = TRUE

For Oracle 8i and a non-SYS account, set the 07_DICTIONARY_ ACCESSIBILITY parameter to TRUE.

O7_DICTIONARY_ACCESSIBILITY = TRUE

For more information, see “Account requirements” on page 83.

PQO parameter settings To monitor a parallel query option (PQO) environment, you must set the PQO parameters in the initialization file (init.ora) for a PQO environment. (The name of the init.ora file can vary. See “initialization file” on page 359.)

MTS or shared server parameter settings To monitor a multithreaded server (MTS) or shared server environment, you must set the MTS or shared server parameters in the init.ora file for a shared server environment.

TNS_ADMIN If the file is not in the default location, specify the location of the tnsname.ora file.

The TNS_ADMIN environment variable is used to explicitly define the directory location for Oracle Net to resolve where to find its configuration files. TNS_ADMIN overrides the default Oracle Net location. For example, if TNS_ADMIN is set to ORACLE_HOME\test\admin, Oracle Net looks for its configuration files in ORACLE_HOME\test\admin to make a database connection or start other Oracle Networking products such as the Listener, Connection Manager, Names Server, and so on.

Table 3 System requirements for installing PATROL for Oracle (part 4 of 4)

Resource Requirements Comments

Chapter 2 Installing and migrating PATROL for Oracle 49

Page 50: Oracle K

Preparing for installation

Preparing for installationBefore installing PATROL for Oracle in a production environment, BMC Software recommends that you first install, configure, and test PATROL for Oracle on a limited number of development or test computers.

Before you begin■ 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)

Reviewing PATROL security

PATROL security is installed as part of the PATROL Agent, console server, and consoles. The PATROL Agent, console server, and consoles must operate at the same security level to communicate with each other. PATROL for Oracle inherits the security policy from the agent, console server, and console on which it is installed. PATROL for Oracle can operate at any PATROL security level.

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:

■ %BMC_ROOT\..\common\security\bin\OS (Windows)■ $BMC_ROOT/../common/security/bin/OS (UNIX)

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:

■ PATROL Security User Guide■ PATROL Security Release Notes

50 PATROL for Oracle User Guide

Page 51: Oracle K

Determining the version of the installation utility

Determining the version of the installation utility

The version of the installation utility included on the CD or Electronic Product Download (EPD) image you use to install PATROL for Oracle might differ from a version included on another product CD or from a version that you downloaded from the BMC Software Electronic Product Download (EPD) Web site. You should use the version of the installation utility that comes with the product that you are installing.

To determine the version of an installation utility

1 Open a command prompt.

2 Navigate to the directory where the installation utility is located:

■ %BMC_ROOT\..\common\security\bin\platform (Windows)■ $BMC_ROOT/../common/security/bin/platform (UNIX)

3 Enter one of the following commands:

■ setup.exe -v (Windows)■ setup.sh -v (UNIX)

A message box displays the version of the installation utility.

Determining whether to install locally or remotely

You can install products on the computer on which you are running the installation utility (local installation), or you can create an installable image that you can install at a later time on multiple computers (remote installation functionality). With an installable image, you can create one product image with one pass through the installation utility and then use that image to install to remote computers in your environment.

NOTE If your environment contains a firewall, please see Appendix C, “Firewall and port-forwarding considerations” on page 353.

Chapter 2 Installing and migrating PATROL for Oracle 51

Page 52: Oracle K

Determining how to install and upgrade

If you create an installable image, all computers on which the image is installed must use identical configuration information for the following settings:

■ 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.

Determining how to install and upgrade

If you do not currently have a version of PATROL for Oracle installed, proceed to “Installing for the first time or upgrading over an existing installation” on page 53.

If you already have a version of PATROL for Oracle installed in your environment, you need to determine whether or not there are any customizations in the installed product that you want to save.

Customizations to Knowledge Modules (.km) and PSL (.psl) files are stored in the cache, but they are not preserved and incorporated automatically. Customizations made to PATROL for Oracle can include the following:

■ 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 PATROL for Oracle User Guide

Page 53: Oracle K

Installing for the first time or upgrading over an existing installation

Use Table 4 to determine whether you should upgrade and save your customizations or upgrade without saving any customizations, and use the appropriate procedure.

Installing for the first time or upgrading over an existing installation

Use the following installation instructions if you are performing one of the following procedures:

■ installing for the first time■ upgrading and manually migrating customizations■ upgrading without saving or migrating any customizations

Table 4 Choosing an installation and upgrade procedure

Situation Procedure

■ 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.

Install or upgrade by using the “Installing for the first time or upgrading over an existing installation” procedure on page 53.

You made one or more of the following changes or customizations to your previous version of PATROL for Oracle, but you plan to migrate those customizations manually:

■ created new Knowledge Modules■ modified PSL code

Upgrade by using the “Installing for the first time or upgrading over an existing installation” procedure on page 53.

You made one or more of the following customizations to your currently installed version of PATROL for Oracle, you plan to save those customizations, and migrate them to the new version of PATROL for Oracle by using the Distribution Server:

■ created new Knowledge Modules■ modified PSL code

Upgrade “Upgrading and preserving customizations” on page 59.

Chapter 2 Installing and migrating PATROL for Oracle 53

Page 54: Oracle K

Installing for the first time or upgrading over an existing installation

If you are unsure which procedure you should perform, see “Determining how to install and upgrade” on page 52.

Before you begin

■ 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.

WARNING Upgrading over an existing installation does not preserve:

■ 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.

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 PATROL for Oracle User Guide

Page 55: Oracle K

Installing for the first time or upgrading over an existing installation

■ 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:

■ To install locally now, select Install products on this computer now and click Next to continue.

Chapter 2 Installing and migrating PATROL for Oracle 55

Page 56: Oracle K

Installing for the first time or upgrading over an existing installation

■ 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:

■ 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.

For more information about the PATROL consoles and PATROL Console Server or RTserver, see the following documents:

■ 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:

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.

56 PATROL for Oracle User Guide

Page 57: Oracle K

Installing for the first time or upgrading over an existing installation

■ 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.

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:

■ 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.

NOTE PATROL for Oracle does not provide a Quick Start Package.

Chapter 2 Installing and migrating PATROL for Oracle 57

Page 58: Oracle K

Migrating customizations manually

Where to go from here

If you have customizations that you want to migrate manually, see “Migrating customizations manually” on page 58.

Migrating customizations manuallyIf you have only a few customizations, you might find manual migration easier. If you have made customizations to the PATROL Script Language (PSL) code, you must manually migrate your customizations. This task contains a procedure for migrating customizations manually.

Before you begin

Ensure that you have made a record of your customizations and have backed up the customized files in the PATROL_HOME and PATROL_CACHE directories.

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 PATROL for Oracle User Guide

Page 59: Oracle K

Upgrading and preserving customizations

To migrate customized PSL code

Customizations made to PATROL Script Language (PSL) code are not automatically migrated. These customizations are sometimes embedded in .km files or stored in separate .psl files. Migrate these customizations manually, using the following guidelines:

■ 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.

Upgrading and preserving customizationsIf you want to upgrade and save your customizations by migrating your customizations manually, you can use the “Installing for the first time or upgrading over an existing installation” installation instructions on page 53.

You can also migrate your KM customizations to a new version of the KM and distribute those migrated customizations to PATROL Agents throughout your enterprise by using the following BMC Software products:

■ PATROL Configuration Manager■ Distribution Server

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 Installing and migrating PATROL for Oracle 59

Page 60: Oracle K

Preparing to upgrade and migrate

Preparing to upgrade and migrate

No matter what method you use for upgrading and migrating customizations, you must first perform the following tasks:

■ back up PATROL_HOME and PATROL_CACHE ■ remove PATROL for Oracle files from PATROL_CACHE

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:

■ PATROL_HOME for agent and console installation directories■ PATROL_CACHE for the console working cache

To remove PATROL for Oracle files from PATROL_CACHE

Before you install, you must remove the current PATROL for Oracle files from the PATROL_CACHE directory for the console. If you do not, old product files in PATROL_CACHE are loaded instead of the newly installed files from PATROL_HOME.

Remove all PATROL for Oracle files with the following naming patterns from PATROL_CACHE\knowledge and PATROL_CACHE\psl:

■ ORA*■ OPS*

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.

NOTE If you are using History.km, do not delete ORACLE_history_loader.km.

60 PATROL for Oracle User Guide

Page 61: Oracle K

Creating an installation package of the merged PATROL for Oracle

Creating an installation package of the merged PATROL for Oracle

After you have migrated and merged your customizations, you must create an installation package that can be used with the installation utility.

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.

Where to go from here

Install PATROL for Oracle from the target server using the instructions in “Installing for the first time or upgrading over an existing installation” on page 53, or to install using the Distribution Server, go to “Importing into Distribution Server” on page 62.

Chapter 2 Installing and migrating PATROL for Oracle 61

Page 62: Oracle K

Importing into Distribution Server

Importing into Distribution Server The Distribution Server product performs remote installations (or uninstallations) of BMC Software distributed system products across multiple systems from a central location.

With the Distribution Server you can perform the following tasks:

■ 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

Before you begin

Ensure that you use a version of the Distribution Server that is currently supported by the PATROL for Oracle KM that you are installing, and that you have applied any available patches. For information about supported products, see the Release Notes for the version of PATROL for Oracle that you are installing.

To import PATROL for Oracle into the Distribution Server

This task describes how to import components into the Distribution Server for deployment to multiple locations.

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 PATROL for Oracle User Guide

Page 63: Oracle K

Installing the online Help

If the components are not accessible on a local drive, you can specify them by using the NFS name and path.

6 Select the check boxes for the components that you want to import and click OK.

7 Click Import to import the selected components.

Installing the online HelpFor the PATROL consoles, the online Help for PATROL for Oracle is automatically installed when you install the console KM package to the console. For PATROL Central Operator consoles (either Microsoft Windows Edition or Web Edition), the online Help for PATROL for Oracle is automatically installed when you install the KM package to the console server.

If you plan to install the UNIX version of PATROL for Oracle on a PATROL console for UNIX, do the following:

■ 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

Installing the UNIX version of the Help browser

The browser that is required for the UNIX version of PATROL Help on PATROL version 3.x is Netscape Navigator version 3.01 through 4.78. However, if you are running a Red Hat Linux platform, you must run Netscape Navigator version 4.x to display the online Help. Currently, PATROL Help does not support Netscape Navigator 6.0.

You must install Netscape Navigator on the computer where the PATROL console resides. You can install Netscape anywhere on your UNIX computer as long as the binary is in the 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

■ (Windows) merged_CD\Products\pokchm■ (UNIX) merged_CD/Products/pukchm

Chapter 2 Installing and migrating PATROL for Oracle 63

Page 64: Oracle K

Setting the environment variables for the browser

Setting the environment variables for the browser

For the Help browser to run properly, you must have the LANG, PATH, and PATROL_BROWSER environment variables set properly. The following sections describe these variables.

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.

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.

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:

Type of shell Export command for LANG variable

Bourne LANG=Cexport LANG

Korn export LANG=C

C setenv LANG=C

Type of shell Export command for PATH variable

Bourne PATH=$PATH:/netscape_locationexport PATH

Korn export PATH=$PATH:/netscape_location

C setenv PATH=$PATH:/netscape_location

64 PATROL for Oracle User Guide

Page 65: Oracle K

Additional considerations for using online Help for UNIX

To use different arguments, set the value of PATROL_BROWSER to the appropriate string.

Additional considerations for using online Help for UNIX

When you select Help from the PATROL console on a UNIX system, it takes a few seconds for the Help browser to launch. During the launch process, two windows are displayed in the following order:

■ the Netscape Navigator window appears as an icon■ a browser window that contains the Help

In addition, you should take the following conditions into consideration:

■ 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.

Type of shell Export command for PATROL_BROWSER variable

Bourne PATROL_BROWSER=netscape -display $DISPLAY -install -iconicexport LANG

Korn export PATROL_BROWSER=netscape -display $DISPLAY -install -iconic

C setenv PATROL_BROWSER=netscape -display $DISPLAY -install -iconic

EXAMPLE For Korn shell:

export PATROL_BROWSER=/usr/local/bin/netscape -raise

Chapter 2 Installing and migrating PATROL for Oracle 65

Page 66: Oracle K

Uninstalling PATROL for Oracle

Uninstalling PATROL for OracleYou must use the same version of the installation utility that you used to install PATROL for Oracle to uninstall the product. Use the installation utility in the uninstall mode to uninstall PATROL for Oracle from your system. If you use a different version of the installation program to uninstall, you might remove files needed to perform uninstallation of other BMC Software products.

If you want to uninstall without removing log files or configuration files, see the PATROL Installation Reference Manual.

Uninstalling PATROL for Oracle from a UNIX environment

The following procedure describes how to uninstall PATROL for Oracle from a UNIX environment.

Before you begin

Ensure that all instances have been removed. To remove instances, see “Removing instances” on page 111.

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

2 In the Welcome window, click Next.

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:

■ PATROL for UNIX User Guide■ PATROL Agent Reference Manual

66 PATROL for Oracle User Guide

Page 67: Oracle K

Uninstalling PATROL for Oracle from a Windows environment

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.

Uninstalling PATROL for Oracle from a Windows environment

Use the following procedure to uninstall PATROL for Oracle from a Windows environment.

Before you begin

Ensure that all instances have been removed. To remove instances, see “Removing instances” on page 111.

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.

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.

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.

Chapter 2 Installing and migrating PATROL for Oracle 67

Page 68: Oracle K

Where to go from here

Where to go from hereThe following table suggests other topics that you should read next:

Topic Source of information

how to set up and configure PATROL for Oracle

Chapter 3, “Loading and configuring PATROL for Oracle” on page 69 and PATROL for Oracle online Help

how to use PATROL Configuration Manager with PATROL for Oracle to change configuration variables or parameter properties

Chapter 4 “Using PATROL Configuration Manager to modify and migrate configuration” on page 131

how to use Oracle utilities from PATROL for Oracle

Chapter 5 “Using Oracle utilities from PATROL for Oracle” on page 157

how to monitor the tablespace capacity and user activity on an Oracle instance using PATROL for Oracle

Chapter 6 “Monitoring tablespaces, users, and SQL statements” on page 179

how to monitor instance health using PATROL for Oracle

Chapter 7 “Monitoring instance health” on page 225

how to monitor Oracle options using the PATROL for Oracle

Chapter 8 “Monitoring Oracle options” on page 271

how to monitor the the RAC environment

Chapter 9 “Monitoring the RAC environment” on page 293

how to access the KM menu commands, InfoBoxes, and online Help

Appendix A, “Accessing menu commands, 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 PATROL for Oracle User Guide

Page 69: Oracle K

C h a p t e r 3

3 Loading and configuring PATROL for Oracle

This chapter presents the following topics:

Preparing to use PATROL for Oracle . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 70Loading and preloading KMs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 70

Determining which .kml and .km files to load . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 70Determining which KMs to preload . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 71Loading KMs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 72Preloading KMs on the PATROL Agent . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 74

Removing KMs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 76Unloading KMs from a PATROL console . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 77Removing KMs from the PATROL Agent preload list . . . . . . . . . . . . . . . . . . . . . . 79

Configuration overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 81Configuration requirements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 81Requirements checklist . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 83Required configuration information form . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 83Configuration task flow . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 84Configuration methods. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 85

Batch configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 86Batch configuration file syntax . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 86Creating a batch configuration file . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 89

Automatic configuration. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 92Using sqlplus to create PATROL database user . . . . . . . . . . . . . . . . . . . . . . . . . . . . 92Overview of the ORACLE_AUTO_CONFIG application . . . . . . . . . . . . . . . . . . . . 93Using the default_auto_config.txt file . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 94Modifying instances that were automatically configured. . . . . . . . . . . . . . . . . . . . 97

PATROL advanced configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 97Instance discovery . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 98Adding instances . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 98Configuring instances for monitoring . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 99Configuring instances in restricted mode for monitoring. . . . . . . . . . . . . . . . . . . 103Enabling and disabling instance monitoring. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 104Modifying instance configuration. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 105Modifying category monitoring for an instance . . . . . . . . . . . . . . . . . . . . . . . . . . . 108

Chapter 3 Loading and configuring PATROL for Oracle 69

Page 70: Oracle K

Preparing to use PATROL for Oracle

Viewing instance configuration settings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 109Removing instances . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 111

Failover monitoring . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 112Configuring failover monitoring . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 112Oracle Parallel Server and failover . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 117

If a problem occurs in configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 119Resetting the global channel. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 119Setting debugging options . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 120Uninstalling PATROL objects . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 123Deactivating parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 124

Monitoring ASM instances . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 125Configuring an ASM instance . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 126ASM parameters. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 127ASM menu commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 128

Where to go from here . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 129

Preparing to use PATROL for OracleBefore you can configure PATROL for Oracle, you must first load the Knowledge Modules (KMs) into the PATROL console and the PATROL Agent. For more information, see “Component files” on page 20.

Loading and preloading KMsWhen you load a KM from the PATROL console, the .km files are loaded on all the PATROL Agents to which your console is connected. The icons appear in your console, usually under each agent icon, during discovery. Each PATROL Agent then collects data based on the instructions defined in the .km files.

Preloading KMs is a PATROL Agent feature that causes KM files to continue to run on the agent when no consoles are connected. KMs that are not preloaded only collect data while a PATROL console is connected to the PATROL Agent.

Determining which .kml and .km files to load

Before you can configure and use PATROL for Oracle, you must load its .km and .kml files into the PATROL console so that the product, in the form of applications, commands, and parameters, appears in the PATROL console. Table 5 on page 71 lists the .kml and .km files in this product that you can load. You can find the steps for loading .km and .kml files in “Loading KMs” on page 72.

70 PATROL for Oracle User Guide

Page 71: Oracle K

Determining which KMs to preload

Determining which KMs to preload

Preloaded KMs collect data as long as the PATROL Agent runs, even when no PATROL console is connected. With preloaded KMs, you can view a KM’s data collection history without having the gaps that would otherwise occur when the console is absent.

If you use certain KM files regularly and want to maintain their data collection history without gaps, preload the .kml files (listed in Table 5 on page 71) on the appropriate PATROL Agents as described in “Preloading KMs on the PATROL Agent” on page 74.

Table 5 PATROL for Oracle KM files

.kml files Description

ORACLE.kml Loads application classes to monitor Oracle databases and servers.

ORACLE_AUTO_CONFIG.kml Loads the automatic configuration file, which uses the default_auto_conf_port number.txt file to apply specified configuration settings to all instances on a host.

Load this .kml file only if you are using an OS authenticated account.

ORACLE_ETSM.kml Loads enterprise tablespace monitoring, which monitors PctUsed and SpaceLeft for all tablespaces, except for those tablespaces that you specifically excluded.

ORACLE_ARCHIVE.kml Loads the application classes to provide enhanced archive monitoring.

ORACLE_RAC.kml Loads the application classes to monitor a RAC environment.

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 Loading and configuring PATROL for Oracle 71

Page 72: Oracle K

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.

To load KMs from PATROL Central Operator – Microsoft Windows Edition

You can use the Loading KMs wizard to control which KMs are loaded on which computers.

1 On the Common Tasks tab of the taskpad, click the Load Knowledge Modules icon to display the wizard.

2 Click Next to start the wizard.

The wizard lists each computer where a PATROL Agent is installed.

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.

To load KMs from PATROL Central Operator – Web Edition

You can use the Loading KMs feature to control which KMs are loaded on which computers.

1 From the Monitored Systems page, click Load/Unload KMs.

The Load KMs page opens and lists each computer on which a PATROL Agent has been installed.

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

Page 73: Oracle K

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.

2 Select one or more of the .kml files, and click Open.

PATROL loads the selected KMs on all of the computers listed under PATROLMainMap.

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.

2 Select one or more of the .kml files and click Open.

PATROL loads the selected KMs on all of the computers that are connected to your console.

Where to go from here

Verify that you have loaded the .km files. Figure 8 on page 74 shows the tree view that you should see if you loaded ORACLE.kml and ORACLE_AUTO_CONFIG.kml. Some application classes only appear after you configure them. If your PATROL console does not have a tree view, double-click the agent computer icon to view the application classes that are loaded.

Chapter 3 Loading and configuring PATROL for Oracle 73

Page 74: Oracle K

Preloading KMs on the PATROL Agent

Figure 8 Tree view when ORACLE.kml and ORACLE_AUTO_CONFIG.kmlfiles are loaded

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.

Preloading KMs on the PATROL Agent

If you want your KMs to continue collecting data even when there is no console running, preload your KMs. A preloaded KM is a KM that is loaded by the PATROL Agent at startup and runs as long as the PATROL Agent runs. To preload a KM, add it to the agent’s preload list using the wpconfig or xpconfig utilities.

Before you begin

■ 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 PATROL for Oracle User Guide

Page 75: Oracle K

Preloading KMs on the PATROL Agent

The Modify Variable dialog box displays.

4 Double-click the highlighted REPLACE line in the Change Entries field.

The Change Entry dialog box displays.

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.

10 Click OK to apply your updated configuration to the PATROL Agent.

The wpconfig utility applies the updated configuration.

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.

3 Click Get Configuration.

The configuration variables for the selected computer display in the Variables column in the right pane.

4 In the Filter field, type /AgentSetup/pre*.

Chapter 3 Loading and configuring PATROL for Oracle 75

Page 76: Oracle K

Removing KMs

The filter displays all the variables that begin with “/AgentSetup/pre.”

5 Double-click the preloadedKMs variable.

The Edit Variable dialog box displays.

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.

11 Close the xpconfig window.

Removing KMsIf 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 PATROL for Oracle User Guide

Page 77: Oracle K

Unloading KMs from a PATROL console

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.

Unloading KMs from a PATROL console

If you no longer want to view a KM that currently appears in your console, you can unload the corresponding application class’s .km files that make up the KM.

To unload KMs from PATROL Central – Microsoft Windows Edition

You can use the PATROL Central – Microsoft Windows Edition wizard which to unload specified .km files from specified computers.

1 On the Common Tasks tab of the taskpad, click the Unload Knowledge Modules icon.

PATROL Central – Microsoft Windows Edition displays the wizard.

2 Click Next to start the wizard.

The wizard lists each computer on which a PATROL Agent has been installed.

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.

To unload KMs from PATROL Central – Web Edition

You can use the Load/Unload KMs feature to unload specified .km files from specified computers.

1 From the Managed Systems page, click Load/Unload KMs.

The Load KMs page opens, listing each computer on which a PATROL Agent is installed.

Chapter 3 Loading and configuring PATROL for Oracle 77

Page 78: Oracle K

Unloading KMs from a PATROL console

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.

To unload KMs from the PATROL Console for Microsoft Windows

Unloading a KM is also referred to as deleting a KM in the PATROL Console for Microsoft Windows. However, the files are actually unloaded from the console’s memory rather than deleted from your hard drive.

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.

2 Click Yes to delete the application class.

The application class is removed from your console and its corresponding .km file is removed from your console session file when you save your changes.

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 console’s 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 PATROL for Oracle User Guide

Page 79: Oracle K

Removing KMs from the PATROL Agent preload list

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.

Removing KMs from the PATROL Agent preload list

If you want to remove a KM or application class so that it no longer runs on the PATROL Agent, you should remove the corresponding .kml or .km file from the agent preload list.

Before you begin

■ 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 Agent’s pop-up menu and choose Development => Agent Configuration...

The console starts the wpconfig utility, and the wpconfig window displays.

2 Click the AgentSetup folder in the left pane.

The variables in the AgentSetup folder display in the right pane.

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

Page 80: Oracle K

Removing KMs from the PATROL Agent preload 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.

10 Click OK to apply your updated configuration to the PATROL Agent.

The wpconfig utility applies the updated configuration.

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 Agent’s 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.

3 Click Get Configuration.

The configuration variables for the selected computer display in the Variables column in the right pane.

4 In the Filter field, type /AgentSetup/pre*.

The filter displays all the variables that begin with “/AgentSetup/pre.”

5 Double-click the preloadedKMs variable.

The Edit Variable dialog box is displayed.

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 PATROL for Oracle User Guide

Page 81: Oracle K

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 overviewWhen 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:

■ 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 Loading and configuring PATROL for Oracle 81

Page 82: Oracle K

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):

■ FILESYSTEM.km and UNIX_OS.km for PATROL for UNIX— FSAvailableSpace— FSUsedSpace— FSInodeUsedPercent — FSFreeInodes

■ NT_LOGICAL_DISKS.km for PATROL for Microsoft Windows— LDLogicalDiskColl— LDldFreeMegabytes— LDldFreeSpacePercent

The following parameters in PATROL for Oracle are affected if the above components and parameters are not activated and running:

■ ArchFreeSpace■ ArchFreeSpaceETF■ BGDumpLeft■ BGDumpLeftETF■ BGDumpUsed■ BGDumpUsedPct■ CannotExtend■ CoreDumpLeft■ CoreDumpLeftETF■ CoreDumpUsed■ CoreDumpUsedPct■ PctUsed■ SpaceLeft■ UserDumpLeft■ UserDumpLeftETF■ UserDumpUsed■ UserDumpUsedPct

NOTE The DFColl and the DCMColl parameters are not FILESYSTEM.km parameters, but belong to the UNIX_COLLECTORS.km and DCM.km respectively.

82 PATROL for Oracle User Guide

Page 83: Oracle K

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.

Required configuration information form

Use this table to organize the configuration information for the Oracle instances that you want to monitor using PATROL. You can copy this page as needed.

Table 6 PATROL for Oracle requirements checklist

Met? Requirement

A supported version of an Oracle Database Server

SQL*Net (Net8, Net8i, Oracle Net Services) software version 2.x or later

init.ora parameters are set:

■ TIMED_STATISTICS■ MTS (if applicable)■ PQO (if applicable)

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):

■ FILESYSTEM for UNIX■ NT_LOGICAL_DISKS for Microsoft Windows

One of the following accounts to use to configure instances for monitoring:

■ SYS in the DBA group■ Non-SYS in the DBA group■ Non-SYS in a non-DBA group

Chapter 3 Loading and configuring PATROL for Oracle 83

Page 84: Oracle K

Configuration task flow

Configuration task flow

Figure 9 on page 85 presents the task flow for configuring PATROL for Oracle and the Oracle instance.

Table 7 PATROL for Oracle configuration information summary

Required information Instance 1 Instance 2 Instance 3

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 PATROL for Oracle User Guide

Page 85: Oracle K

Configuration methods

Figure 9 PATROL for Oracle configuration task flow

Configuration methods

PATROL for Oracle allows you to use different methods of configuration:

■ 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.

Does Instance Configure list all

instances on Oracle server host?

Add Instance and specify Service

Add the instance but do not specify service

Are unlisted instances local or remote (does the

host have a PATROL Agent?)

Configure instance on host

No

Local (has Agent)

Remote (has no Agent)

Yes Configure instance on host

Chapter 3 Loading and configuring PATROL for Oracle 85

Page 86: Oracle K

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.

Configuring multiple Oracle installations on Microsoft Windows

If a Microsoft Windows computer has multiple Oracle for Microsoft Windows installations with different $ORACLE_HOME directories, you can do one of the following options to allow PATROL to monitor the instances:

■ 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 configurationBatch 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:

■ 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

Batch configuration file syntax

The batch configuration file should be formatted in three columns, using the pipe character (|) as the separator. You must end each row with a separator. The columns should be in the following form:

86 PATROL for Oracle User Guide

Page 87: Oracle K

Batch configuration file syntax

<sid>|<keyword>|value|

There must be no spaces in the columns. The comment character (#) can be used only in the following two circumstances:

■ at the beginning or end of a row■ directly before the category value in the CATEGORIES keyword row

The following lines demonstrate the proper syntax for comments:

The keywords you can use are listed in the following table:

#ORCL|DB_USER|patrol|ORCL|CATEGORIES|AVAILABILITY COLLECTORS #LOG CAPACITY|

Table 8 Batch configuration keywords (part 1 of 2)

Keyword Description

DB_USER username for the PATROL account for Oracle that you created

DB_PASSWD password for the PATROL account for Oracle. You can use either the PATROL encrypted string or plain text.

PRIV_USER username of the privileged account, which is either a SYS or a DBA account

PRIV_PASSWD password for the privileged account. You can use either the PATROL encrypted string or plain text.

ALWAYS_ON_LINE the flag that triggers an alarm when the instance is offline. The values are either 1 (TRUE, default) or 0 (FALSE).

MONITORING indicates whether monitoring is enabled for this SID

Values are 1 (TRUE, default) or 0 (FALSE).

DEF_TABLESPACE default tablespace for the PATROL account

DEF_TMP_TABLESPACE default TEMP tablespace for the PATROL account

Chapter 3 Loading and configuring PATROL for Oracle 87

Page 88: Oracle K

Batch configuration file syntax

Example files

This section provides examples for the following scenarios:

■ a local instance■ a remote instance

Local instance batch configuration example

The following example illustrates a batch configuration file for the instance SID ora816, using the monitoring category CAPACITY. The default tablespace is USERS, and the temporary tablespace is TEMP. Since this is a local UNIX instance, the ORACLE_HOME, ORA_DB, and the CONNECT_STRING keyword values are not necessary.

CATEGORIES categories to use to monitor the instance

The default categories are AVAILABILITY and COLLECTORS. You can select from the following categories:

■ CAPACITY■ DB_LINKS■ ENVIRONMENT■ JOBS■ LOG ■ MTS■ NETWORK■ PERFORMANCE■ PQO■ REPLICATION ■ SGA ■ SQLVIEWER ■ TABLESPACES■ USERS

ORA_DB (for OpenVMS only )

directory where the orauser_dbname.com file is located; normally located under the ORA_ROOT directory

ORACLE_HOME $ORACLE_HOME for the SID

This keyword may be necessary for OpenVMS, Microsoft Windows, or remote instances.

CONNECT_STRING Service name or connect string for a remote database SID

ora816|DB_USER|patrol|ora816|DB_PASSWD|FB0A195D60626300|ora816|PRIV_USER|SYS|

Table 8 Batch configuration keywords (part 2 of 2)

Keyword Description

88 PATROL for Oracle User Guide

Page 89: Oracle K

Creating a batch configuration file

Remote instance batch configuration example

In this example, the SID becomes neo901s1@neon_neo901s1.

Creating a batch configuration file

Use either of the subtasks described in this task to create a batch configuration file.

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 Enter the SID and the Connect String in separate lines. PATROL for Oracle automatically formats the SID as follows: sid@ConnectString.

neo901s1|DB_USER|patrol|neo901s1|DB_PASSWD|FB0A195D60626300|neo901s1|PRIV_USER|SYS|neo901s1|PRIV_PASSWD|63DB00D4E96AE020|neo901s1|ALWAYS_ON_LINE|1|neo901s1|MONITORING|1|neo901s1|DEF_TABLESPACE|USERS|neo901s1|DEF_TMP_TABLESPACE|TEMP|neo901s1|CATEGORIES|AVAILABILITY COLLECTORS CAPACITY DB_LINKS ENVIRONMENT JOBS LOG MTS NETWORK PERFORMANCE PQO REPLICATION SGA SQLVIEWER TABLESPACES USERS|#neo901s1|ORA_DB|| #for VMS onlyneo901s1|ORACLE_HOME|/usr/oracle/8.1.5|neo901s1|CONNECT_STRING|neon_neo901s1|

NOTE The $ORACLE_HOME is the local directory where the PATROL Agent is running.

Chapter 3 Loading and configuring PATROL for Oracle 89

Page 90: Oracle K

Creating a batch configuration file

Before you begin

■ 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 Batch config template dialog box fIelds

Field Description

SID the SID that you want to configure

DB User the username to use for the PATROL database account. Do not use a reserved Oracle user such as SYS or SYSTEM. The PATROL account should be used exclusively for PATROL

You must surround the entry with double-quotation marks.

90 PATROL for Oracle User Guide

Page 91: Oracle K

Creating a batch configuration file

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:

6 Close and save the file as ora_batch_conf<port_number>.txt as a text-only file. Make sure that you add _batch to the name and change the file type to .txt.

The InstanceStatus collector parameter searches for this file, and when found, starts processing the file to configure the instances for the 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.

DB Password the password to use for the PATROL database account

You must surround the entry with double-quotation marks.

Confirm DB Password the password to use for the PATROL database account for confirmation

Privileged User 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

the password to use for the privileged account

Confirm Privileged Password

the password to use for the privileged account for confirmation

Default Tablespace the tablespace to use for the PATROL database account. The default is SYSTEM

Temporary Tablespace the temporary tablespace you want to use for the PATROL database account. The default is TEMP

Keyword Value

ORA_DB (for OpenVMS only) directory where the orauser_<dbname>.com file is located, normally the ORA_ROOT directory

ORACLE_HOME (for OpenVMS, Windows, or a remote instance)

$ORACLE_HOME for the SID

CONNECT_STRING service name or connect string for remote databases

Table 9 Batch config template dialog box fIelds

Field Description

Chapter 3 Loading and configuring PATROL for Oracle 91

Page 92: Oracle K

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 configurationThe 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.

Using sqlplus to create PATROL database user

ORACLE_AUTO_CONFIG requires an OS authenticated account. Use the following procedure to create that user.

To create a PATROL database user via sqlplus

1 Open a command line and navigate to the AutoDBConfig directory.

$ cd ${PATROL_HOME}/oracle/AutoDBConfig

2 Enter the following:

$ sqlplus ‘DBA ACCOUNT/DBA PASSWORD AS SYSDBA’

The following displays: SQL> start ORACreateUser.sql

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 PATROL for Oracle User Guide

Page 93: Oracle K

Overview of the ORACLE_AUTO_CONFIG application

$ sqlplus /

The following should display: SQL>

Overview of the ORACLE_AUTO_CONFIG application

When you load the ORACLE_AUTO_CONFIG.kml file, the ORACLE_AUTO_CONFIG application parameters perform the following tasks:

■ 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 Loading and configuring PATROL for Oracle 93

Page 94: Oracle K

Using the default_auto_config.txt file

Using the default_auto_config.txt file

The ORACLE_AUTO_CONFIG application applies the variables set in the default_auto_config.txt file to configure instances. The default_auto_config.txt file is similar to the batch configuration file, except that it does not specify a separate set of configuration variables for each instance. It specifies the configuration variables that are used to configure all instances on a host.

To modify the default_auto_config.txt file

Use the following guidelines when entering the values:

■ 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|

■ A pipe should always follow the list of values.

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.

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.

94 PATROL for Oracle User Guide

Page 95: Oracle K

Using the default_auto_config.txt file

Variables in the default_auto_config.txt file

The following table contains the variables in the default_auto_config.txt file and their values.

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 Variables in the default_auto_config.txt file (part 1 of 2)

Variable Values

ALWAYS_ON_LINE|value| 1 = InstanceStatus parameter goes into alarm if the instance goes offline for any reason

0 = nothing happens if the instance goes offline

MONITORING|value| 1 = instance is enabled for monitoring

0 = instance is not enabled for monitoring

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 Loading and configuring PATROL for Oracle 95

Page 96: Oracle K

Using the default_auto_config.txt file

CUSTOMLISTENERCONFIGLOCS|value| 1 = script that creates a list of all fully qualified listener.ora files and their locations is activated

Note: The default script was written for a specific system. If you want to use this script, you must modify it to work with your system. ORANET uses the list created to discover listeners.

The script is located in PATROL_HOME/oracle/oranet and it is called: locate_lsnr_configs.

0 = script is not activated

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| names of tablespaces that you want to define as the default or REGULAR tablespaces

inst_name|LARGE_TBS|value| names of tablespaces that you want to define as large tablespaces

inst_name|VERY_LARGE_TBS|value| names of tablespaces that you want to define as very large tablespaces

inst_name|READONLY_TBS|value| names of tablespaces that you want to define as readonly tablespaces

inst_name|ROLLBACK_TBS|value| names of tablespaces that you want to define as rollback tablespaces

inst_name|TEMPORARY_TBS|value| names of tablespaces that you want to define as temporary tablespaces

inst_name|UNDO_TBS|value| names of tablespaces that you want to define as undo tablespaces

Table 10 Variables in the default_auto_config.txt file (part 2 of 2)

Variable Values

96 PATROL for Oracle User Guide

Page 97: Oracle K

Modifying instances that were automatically configured

Modifying instances that were automatically configured

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, and you want to apply those changes to existing instances, you must do the following:

■ 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.

PATROL advanced configurationThis method allows you to configure an instance in real-time from within PATROL. Use this method of configuration if you have a small number of servers to configure, or if you want to immediately deal with any configuration problems.

Table 11 lists the advanced configuration tasks.

Table 11 Configuration tasks

Task Page

Adding instances 98

Configuring instances for monitoring 99

Chapter 3 Loading and configuring PATROL for Oracle 97

Page 98: Oracle K

Instance discovery

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:

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

Configuring failover monitoring 112

Table 11 Configuration tasks

Task Page

98 PATROL for Oracle User Guide

Page 99: Oracle K

Configuring instances for monitoring

For a local instance:■ name of the instance on the host■ $ORACLE_HOME directory on the local server running a PATROL Agent■ For a remote instance:■ name of the instance■ $ORACLE_HOME directory on the local server running a PATROL Agent■ 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.

Configuring instances for monitoring

This task configures PATROL for Oracle to monitor specific Oracle instances. Before you begin, ensure that a database account created strictly for PATROL exists. All PATROL objects are installed into this account.

If you are configuring multiple instances of Oracle for Microsoft Windows on one host, you might have to perform some additional steps. Refer to “Configuration task flow” on page 84 for more instructions.

Before you begin

■ 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 Loading and configuring PATROL for Oracle 99

Page 100: Oracle K

Configuring instances for monitoring

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.

2 Select the instance or instances to configure.

■ 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 PATROL for Oracle User Guide

Page 101: Oracle K

Configuring instances for monitoring

5 Click Apply.

The account username and password are verified, and messages inform you of any problems or errors.

6 Click Exit to close the Privileged Account Information dialog box.

You must close the Privileged Account information dialog box before configuration can continue.

The Database Account dialog box for the instance appears.

7 Type the following information:

■ the user name and password for the PATROL account■ the default tablespace for the PATROL account ■ the temporary tablespace for the PATROL account

8 Select or clear the Enable Instance Monitoring, Always On Line, Enable OS Authentication, and Enable ASM Storage check boxes.

■ 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.

SYS account DBA account

full functionality for PATROL for Oracle full functionality except for the Buffer Cache Report

“grant select’ only on certain SYS-owned objects that PATROL interacts with

‘grant select any’ given to the PATROL account for Oracle

NOTE ■ 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.

Chapter 3 Loading and configuring PATROL for Oracle 101

Page 102: Oracle K

Configuring instances for monitoring

■ If you select Enable ASM Storage, the ASM storage support is enabled.

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.

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.

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:

■ ASM Instance name ■ ASM home directory■ ASM SYS password

NOTE Until you have properly exited all configuration dialog boxes, the instance does not appear and discovery does not start.

102 PATROL for Oracle User Guide

Page 103: Oracle K

Configuring instances in restricted mode for monitoring

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.

Where to go from here

If you have configured the instance but did not enable monitoring, you must enable the monitoring for the instance. Go to “Enabling and disabling instance monitoring” on page 104.

If you need to modify the instance configuration, go to “Modifying instance configuration” on page 105 or “Viewing instance configuration settings” on page 109.

Configuring instances in restricted mode for monitoring

By default, PATROL for Oracle does not monitor instances that are in restricted mode. To enable monitoring for instances in restricted mode, by enabling the ORACLE_INSTANCE.InstanceID.restrictSessionEnabled variable. See “To configure instances in restricted mode for monitoring” on page 103.

If an instance is in restricted mode and the ORACLE_INSTANCE.InstanceID.restrictSessionEnabled variable is enabled:

■ 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

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.

NOTE Enabling monitoring for instances in restricted mode, establishes the SQL session and collectors can collect data.

Chapter 3 Loading and configuring PATROL for Oracle 103

Page 104: Oracle K

Enabling and disabling instance monitoring

3 Scroll down the variable list and double-click the ORACLE_INSTANCE.InstanceID.restrictSessionEnabled variable.

The Modify Variable dialog box is displayed.

4 Double-click the highlighted REPLACE line in the Change Entries field.

The Change Entry dialog box is displayed.

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.

Enabling and disabling instance monitoring

Use this task to start or stop PATROL for Oracle monitoring for an instance. If you disable monitoring of the instance, the instance is still configured.

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.

2 Enable or disable monitoring as necessary:

■ To enable monitoring for an instance, select an instance or instances from the Instances Being Disabled list box and click Accept.

104 PATROL for Oracle User Guide

Page 105: Oracle K

Modifying instance configuration

The instance name is moved from the right side to the left side and is now enabled for monitoring.

■ 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.

3 Click Exit to exit this function.

If an instance has been enabled, the instance is discovered and its icon appears in the ORACLE container in the next polling cycle. If an instance has been disabled, the instance icon disappears from the ORACLE container in the next discovery cycle.

Where to go from here

Now you can start monitoring the instance.

Modifying instance configuration

Use this task to modify the configuration settings for an instance. You can also modify the settings for the PATROL database account on an instance. This account is used to configure PATROL to monitor instances.

Before you begin

Review the results of modifying an instance configuration, as shown in Table 12.

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.

Chapter 3 Loading and configuring PATROL for Oracle 105

Page 106: Oracle K

Modifying instance configuration

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.

4 Click Exit to close the Privileged Account Information dialog box.

Table 12 PATROL account modification results

Change options Result

no change(the modify configuration task is run but no changes are made to the account information)

PATROL performs an Oracle ALTER USER command on the PATROL account, keeping the tablespace and account information. Any new category settings or monitoring settings are updated.

If any of the database objects are missing or invalid, the objects are deleted and re-created. If all database objects exist, nothing is changed.

password changed PATROL performs an Oracle ALTER USER command on the PATROL account to change the password. Nothing else is changed.

default tablespace 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.

106 PATROL for Oracle User Guide

Page 107: Oracle K

Modifying instance configuration

5 In the Database Account dialog box, type the following information:

■ the user name and password for the PATROL account■ the default tablespace for the PATROL account ■ the temporary tablespace for the PATROL account

6 Select or clear the Enable Instance Monitoring, Always On Line, Enable OS Authentication, and Enable ASM Storage check boxes.

■ 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.

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.

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:

■ ASM Instance name ■ ASM home directory■ ASM SYS password

Chapter 3 Loading and configuring PATROL for Oracle 107

Page 108: Oracle K

Modifying category monitoring for an instance

After you have modified the instance, the instance is automatically discovered or its icons is deleted according to their monitoring status.

Where to go from here

If you have configured the instance but did not enable monitoring, you must enable the monitoring for the instances. Go to “Enabling and disabling instance monitoring” on page 104.

Modifying category monitoring for an instance

Use this task to modify the category monitoring for a single instance. The category is the application class that monitors certain functions for the instance.

Before you begin

The instance must have been configured to be monitored by PATROL.

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.

2 Select or clear the Enable Instance Monitoring, Always On Line, Enable OS Authentication, and Enable ASM Storage check boxes.

■ 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 PATROL for Oracle User Guide

Page 109: Oracle K

Viewing instance configuration settings

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.

5 Click Exit to exit this function.

Where to go from here

Now you can start monitoring the instance.

Viewing instance configuration settings

Use this task to view PATROL configuration information for an instance or instances. You can view the information either in a dialog box or in the task output window for later copying or editing.

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:

■ ASM Instance name ■ ASM home directory■ ASM SYS password

Chapter 3 Loading and configuring PATROL for Oracle 109

Page 110: Oracle K

Viewing instance configuration settings

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.

3 Select the output mode for the report:

■ Response Window displays the report information in a response box. You cannot print this box.

■ Text Window displays the report information in a task output window. You can open this report in a text editor for printing.

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.

NOTE If a report is longer than 40 lines, it is automatically displayed in a text window.

110 PATROL for Oracle User Guide

Page 111: Oracle K

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.

Before you begin

If you are removing an instance that you have disabled from monitoring, you must first enable the instance, and then remove it. See “Enabling and disabling instance monitoring” on page 104.

If you remove an instance that you have configured for HTML Reporting, you must first remove it from HTML Reporting. See “Removing an instance from HTML reporting” on page 269.

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:

■ 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.

4 Click Exit to exit this function.

Chapter 3 Loading and configuring PATROL for Oracle 111

Page 112: Oracle K

Failover monitoring

Where to go from here

You can later monitor the instance by using the steps in “Adding instances” on page 98 and “Configuring instances for monitoring” on page 99.

Failover monitoringYou 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.

Configuring failover monitoring

Use the following task to set up failover monitoring. When the failover instance comes online during a failover, you can configure ORACLE_FAILOVER to automatically disable the instance on the secondary machine to avoid InstanceStatus going into an alarm state.

Before you begin

You must meet the following requirements:

■ 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 PATROL for Oracle User Guide

Page 113: Oracle K

Configuring failover monitoring

To configure a failover instance

1 From the ORACLE_INSTANCE application menu for the primary instance, choose KM Admin => Failover Monitoring => Configure.

2 In the dialog box, enter the following information:

■ 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.

4 Provide the following information and click Accept:

A link is established, and all PATROL for Oracle configuration information is transferred to the failover computer.

NOTE The ORACLE_FAILOVER application

■ does not work in a RAC environment■ is available only in a UNIX environment

NOTE This dialog box appears only the first time you configure a failover instance.

Table 13 Configure [instance] for Failover Monitoring dialog box fIelds

Field Description

Backup Host Name enter the computer name for the failover instance

Backup Agent Port enter the port number for the PATROL Agent on the failover instance computer

Backup Oracle SID enter the Oracle SID for the failover instance

Backup Oracle Home enter the Oracle home directory for the failover instance

Chapter 3 Loading and configuring PATROL for Oracle 113

Page 114: Oracle K

Configuring failover monitoring

5 Verify that the following pconfig variables have been successfully transferred to the failover computer:

■ all configuration settings, including category and 24x7 monitoring■ all exclusions for database objects, users, and tablespaces■ all users selected for monitoring

Configuring advanced failover monitoring

When the primary instance goes down, and the failover instance comes online, the InstanceStatus parameter for the failover instance goes into the OK state. The InstanceStatus parameter for the primary instance goes into an alarm or warning state, depending on the instance’s online 24x7 status.

If you do not want the InstanceStatus parameter to go into an alarm state when a failover occurs, you can configure automatic monitoring on the failover computer by using the ORACLE_FAILOVER application, which is advanced failover monitoring.

You can implement advanced failover monitoring with one of the following parameters:

■ 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.

Advanced failover monitoring with the FOBGPMonitor parameter

1 In pre-discovery, the following conditions must be true:

■ PATROL for Oracle is installed

■ There are instances configured for failover by using the Instance => KM Admin => Failover Monitoring => Configure menu command

NOTE Advanced failover monitoring is available in UNIX environments only.

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.

114 PATROL for Oracle User Guide

Page 115: Oracle K

Configuring failover monitoring

2 When these conditions are true, the AuxFailoverMonitor application instance appears under the ORACLE application.

3 From the Oracle icon menu of the failover host, choose KM Commands => KM Admin => Configuration => Advanced => Monitor Enable/Disable command, select the instance to exclude, and then click Apply.

4 After discovery is complete, the standard parameter, FOBGPMonitor, runs every sixty seconds. The parameter looks for Oracle instances that are running:

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:

■ 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.

■ 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.

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.

NOTE If you want to be notified of such an occurrence, you can set up notifications.

NOTE If you want to be notified of such an occurrence, you can set up notifications.

Chapter 3 Loading and configuring PATROL for Oracle 115

Page 116: Oracle K

Configuring failover monitoring

Advanced failover monitoring with the FOMonitor parameter

Failover environments such as HP ServiceGuard and Solaris Clustering allow for the definition of packages or logical hosts. In this case, an application and the disks it uses are associated with a package. When a failover occurs, the relevant disks and packages are unmounted from the first host and mounted to the host to which the application moves.

The FOMonitor parameter looks for one of the application disks and uses the visibility of that disk to determine whether to activate monitoring.

This is a slightly stronger monitoring option than the monitoring option provided by the FOBGPMonitor parameter. The FOMonitor parameter determines where the instance should be running based on the presence of the disk, whereas the FOBGPMonitor parameter makes its determination based on where the instance is seen. If the instance is down on all hosts, no monitoring occurs at all. The InstanceStatus parameter could, for example, go into alarm if the disk is mounted and the instance did not come up.

However, the FOMonitor parameter requires setting up. You need to indicate the directory for the parameter to use for each instance. This can be the Oracle home. However, if the Oracle installation is on a common disk or is duplicated across local disks and is not part of the disks defined in the package, defining the Oracle home as the directory does not work. For information about setting up the FOMonitor parameter, see “To configure advanced failover monitoring with the FOMonitor parameter” on page 116.

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.

The pconfig window is displayed.

5 In the pconfig window, choose Edit => Add Variable.

The Add Variable dialog box is displayed.

6 In the Variable field, enter /OracleConfig/<ora_sid>/FailoverMonitoring/siddirpairslist.

Where <ora_sid> is the Oracle instance identifier.

116 PATROL for Oracle User Guide

Page 117: Oracle K

Configuring failover monitoring

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

8 Click Apply Configuration.

The AuxFailoverMonitor icon, which contains the FOMonitor parameter, is displayed in the PATROL console window, but the InstanceStatus parameter is in a warning state. The instance icon also appears on the failover computer, but InstanceStatus will be green.

After a failover, the FOMonitor parameter goes into a warning state on each host for sixty seconds. After that, the parameter resets to OK until a failback or another failover occurs.

Debugging failover monitoring

To debug failover monitoring, right-click the Oracle instance icon and choose KM Commands => KM Admin => Debug and set the Debug option to YES.

To debug advanced failover monitoring, activate tracing by using the Activate Tracing menu command available from the AuxFailoverMonitor icon. This command writes debugging information to the system output window. To deactivate tracing, use the Deactivate Tracing menu command.

Oracle Parallel Server and failover

You can also monitor failover in an Oracle OPS cluster. The following items must be installed on all nodes in the cluster:

■ 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.

Chapter 3 Loading and configuring PATROL for Oracle 117

Page 118: Oracle K

Configuring failover monitoring

Figure 10 on page 118 shows where to put each component if the PATROL Agent in its normal state is used.

■ 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.

■ 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.

Instance 1Configure 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.

Node 2

PATROL Agent PATROL for Oracle

Instance2

Node 1

PATROL Agent PATROL for Oracle

Instance 1

Node 3

PATROL Agent PATROL for Oracle

Instance 3

Database

PATROL OS KM PATROL OS KM PATROL KM for OPS

Instance 2Configure Instance 2 and 3 using Instance Configure command from the ORACLE menu.

118 PATROL for Oracle User Guide

Page 119: Oracle K

If a problem occurs in configuration

If a problem occurs in configurationThe following tasks can help you to troubleshoot any problems that occur while configuring PATROL for Oracle:

Resetting the global channel

The global channel provides a single connection between the PATROL Agent and the PATROL console. An excessive number of simultaneous requests for locks can block or choke the global channel. When this occurs, you can unblock the global channel by using the following tasks to reset it.

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:

Table 14 Troubleshooting configuration tasks

Task Page

Resetting the global channel 119

Setting debugging options 120

Uninstalling PATROL objects 123

Deactivating parameters 124

Item Description

Global Channel Name name given to the global channel when it was created or when it was changed from a local channel to a global channel

Status current status of the global channel, either open or closed

File/PID either the file name that is opened or the process ID of the external operating system process to which the channel is attached

Type type of the channel, either PIPE or FILE

Scope whether the channel is SHARED or NOT SHARED

Read PID the read PID of the PSL process waiting to read from the channel, if one exists

Read Name 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

Chapter 3 Loading and configuring PATROL for Oracle 119

Page 120: Oracle K

Setting debugging options

2 Select the global channel to reset and click Accept.

The selected global channel is reset.

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.

2 Select the global channel to reset and click Accept.

The selected global channel is reset.

3 Click Cancel to exit this function.

Setting debugging options

Use this task to set the options for the debugging function. Debug displays all messages from both PATROL and Oracle in a text window. This information can be useful for troubleshooting your installation or configuration.

For the configuration log files, see the appropriate log file:

■ 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.

Write PID the write PID of the PSL process waiting to write to the channel, if one exists

Write Name 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

Item Description

120 PATROL for Oracle User Guide

Page 121: Oracle K

Setting debugging options

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 instance’s configuration.

4 Click Accept.

The options are applied. When the instance is discovered or configured, the debugging messages appear in a task output window.

5 Click Exit to exit the function.

To save debug information to a file

To write the debug in external file when the InstanceStatus parameter goes into an alarm state:

1 In the system output window, enter the following command:

%PSL pconfig("REPLACE", "/OracleConfig/FILE_DEBUG", 1);

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>");

For example: %PSL pconfig("REPLACE", "/OracleConfig/dir_location", "c:\\abc");

On UNIX:

%PSL pconfig("REPLACE", "/OracleConfig/dir_location", "/<Directory>");

For example: %PSL pconfig("REPLACE", "/OracleConfig/dir_location", "/tmp");

NOTE ■ 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);

Chapter 3 Loading and configuring PATROL for Oracle 121

Page 122: Oracle K

Setting debugging options

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:

■ menu commands used on the instance■ collector parameters for the instance

2 Select Yes to select the debugging option for menu commands.

3 Select a collector parameter.

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.

To debug the InstanceStatus parameter

To debug the InstanceStatus parameter, right-click the ORACLE application and choose KM Commands => Debug => InstanceStatus.

NOTE If you select Yes, the option is set for all menu items. Every menu item that can print a debugging message does so.

EXAMPLE If the debugging option for a collector is OFF, select a parameter to set the debugging output to ON.

122 PATROL for Oracle User Guide

Page 123: Oracle K

Uninstalling PATROL objects

To debug discovery in the ORANET application

To debug full discovery in the ORANET application, right-click the ORANET application icon and choose KM Commands => Discovery Debug => On.

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);

Uninstalling PATROL objects

If the database objects become corrupted or are deleted, you may need to uninstall and then reinstall the PATROL database objects. If you uninstall the PATROL objects, all PATROL objects and the PATROL account are dropped, unless objects other than PATROL objects exist in the PATROL account. In this case, the PATROL account is not dropped.

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.

3 Click Exit to exit the function.

After you uninstall the objects, PATROL performs no more parameter monitoring. The application class, instance, and parameter icons remain visible in the console, and the parameters reflect the state that they were in at the time the database objects were uninstalled. The instance configuration, however, is not deleted.

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.

Chapter 3 Loading and configuring PATROL for Oracle 123

Page 124: Oracle K

Deactivating parameters

3 Click Exit to exit the function.

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 PATROL for Oracle User Guide

Page 125: Oracle K

Monitoring ASM instances

Monitoring ASM instancesAutomatic Storage Management (ASM) is a feature of Oracle 10g that you can use as a volume manager to manage and store Oracle database files, redo log files, control files, and archive log files. PATROL for Oracle monitors configured ASM instances, providing data for the

■ 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

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:

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.

Chapter 3 Loading and configuring PATROL for Oracle 125

Page 126: Oracle K

Configuring an ASM instance

Figure 11 Icon hierarchy for ASM

Configuring an ASM instance

A SYS account is required to configure an ASM instance for montoring.

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 +.

NOTE Auto-configuration and batch configuration are not supported in the ASM-monitoring features of PATROL for Oracle.

126 PATROL for Oracle User Guide

Page 127: Oracle K

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 ASM parameters (part 1 of 2)

Disk group parameter Disk parameter

FreeMb FreeMb

FreeMbPct FreeMbPct

UsedMb UsedMb

UsedMbPct UsedMbPct

UsableFileMb DiskIOReads

Chapter 3 Loading and configuring PATROL for Oracle 127

Page 128: Oracle K

ASM menu commands

Table 16 lists the parameters that the ASM-monitoring feature of PATROL for Oracle supports:

ASM menu commands

Table 17 lists the ASM menu commands for PATROL for Oracle that support ASM monitoring.

ActualFreeMb DiskIOWrites

DiskReads

DiskWrites

Table 16 Parameters supported in the ASM-monitoring feature

Parameter Application class

ArchFreeSpace CannotExtend

ORACLE_AVAILABILITY

ArchFreeSpace ArchFreeSpaceOptional

ORACLE_ARCHIVE

Table 17 ASM menu commands

Menu command Description

ORACLE_ASM => ASM Instance Configure

configures an ASM instance

ORACLE_ASM => ASM Instance Remove removes an ASM instance

ORACLE_ASM => Debug => Instance Configuration => ON

turns on instance configuration debugging

ORACLE_ASM => Debug => Instance Configuration => OFF

turns off instance configuration debugging

ORACLE_ASM => Debug => ASM Discovery => ON

turns on ASM discovery debugging

ORACLE_ASM => Debug => ASM Discovery => OFF

turns off ASM discovery debugging

Oracle_ASM_Instance => Debug => CollASM => ON

turns on ASM instance collector debugging

Oracle_ASM_Instance => Debug => CollASM => OFF

turns off ASM instance collector debugging

Table 15 ASM parameters (part 2 of 2)

Disk group parameter Disk parameter

128 PATROL for Oracle User Guide

Page 129: Oracle K

Where to go from here

Where to go from hereThe following table suggests other topics that you should read next:

Topic Source of information

how to use PATROL Configuration Manager with PATROL for Oracle to change configuration variables or parameter properties

Chapter 4, “Using PATROL Configuration Manager to modify and migrate configuration” on page 131

how to use Oracle utilities from PATROL for Oracle

Chapter 5, “Using Oracle utilities from PATROL for Oracle” on page 157

how to monitor the tablespace capacity and user activity on an Oracle instance using PATROL for Oracle

Chapter 6, “Monitoring tablespaces, users, and SQL statements” on page 179

how to monitor instance health using PATROL for Oracle

Chapter 7, “Monitoring instance health” on page 225

how to monitor Oracle options using the PATROL for Oracle

Chapter 8, “Monitoring Oracle options” on page 271

how to monitor the the RAC environment

Chapter 9, “Monitoring the RAC environment” on page 293

how to access the KM menu commands, InfoBoxes, and online Help

Appendix A, “Accessing menu commands, 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

Chapter 3 Loading and configuring PATROL for Oracle 129

Page 130: Oracle K

Where to go from here

130 PATROL for Oracle User Guide

Page 131: Oracle K

C h a p t e r 4

4 Using PATROL Configuration Manager to modify and migrate configuration

This chapter presents the following topics:

Overview of PATROL Configuration Manager . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 132Installation and setup requirements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 132

Setting the archive option to save a backup . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 132Moving rule sets to the PATROL Configuration Manager directory . . . . . . . . . 133

ConfigUpdate parameter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 134Using the ConfigUpdate parameter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 134Understanding how the ConfigUpdate parameter operates . . . . . . . . . . . . . . . . 134

Configuring PATROL for Oracle instances . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 135Using PATROL Configuration Manager to modify or remove an instance . . . . . . . 136

Configuration data not stored in pconfig variable . . . . . . . . . . . . . . . . . . . . . . . . . 136Configuration variables that are for internal use only. . . . . . . . . . . . . . . . . . . . . . 137Application classes with status changes set in code. . . . . . . . . . . . . . . . . . . . . . . . 139Modifying or removing a configured instance . . . . . . . . . . . . . . . . . . . . . . . . . . . . 140Modifying the blackout configuration variable . . . . . . . . . . . . . . . . . . . . . . . . . . . 143

Using PATROL Configuration Manager to manage parameters . . . . . . . . . . . . . . . . 144Deactivating parameters. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 145Changing parameter thresholds . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 147Changing parameter polling cycles . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 148Modifying parameter properties. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 149Modifying ETF parameters through PATROL Configuration Manager. . . . . . . 150

Using the rule and rule set examples . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 153Where to go from here. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 154

Chapter 4 Using PATROL Configuration Manager to modify and migrate configuration 131

Page 132: Oracle K

Overview of PATROL Configuration Manager

Overview of PATROL Configuration ManagerThe PATROL Configuration Manager component is intended for use by PATROL administrators, system administrators, and database administrators. PATROL Configuration Manager uses rules and rule sets to manage PATROL Agents on multiple hosts.

This chapter assumes that you have successfully installed and configured the following components:

■ PATROL Configuration Manager■ PATROL Knowledge Module for Event Management

This chapter also assumes that you know how to set up a host and operate PATROL Configuration Manager and PATROL KM for Event Management.

Installation and setup requirementsThe general requirements for installing PATROL Configuration Manager and the PATROL KM for Event Management are set out in the PATROL Configuration Manager User Guide version 1.4.01. For more information on general requirements for PATROL for Oracle, see “Verifying installation requirements” on page 46.

PATROL for Oracle requires the following setup considerations for PATROL Configuration Manager:

■ 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

Setting the archive option to save a backup

Check the configuration settings in PATROL Configuration Manager to make sure that the following archive option is selected before making any changes to PATROL for Oracle:

Save Backup Before Apply

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 PATROL for Oracle User Guide

Page 133: Oracle K

Moving rule sets to the PATROL Configuration Manager directory

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.

Moving rule sets to the PATROL Configuration Manager directory

When you install PATROL for Oracle, several .cfg files, which contain rules and rule sets, are also installed. Some of these rule sets are required to perform certain changes, and others are optional rule sets that you can use as described, or as examples of how rule sets are constructed and used. Before you can use these rules and rule sets, you must move these .cfg files to the appropriate folder.

Every time you install PATROL for Oracle on a console computer, these .cfg files are installed in one of the following folders:

■ (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:

■ (Windows)PATROLInstallationDirectory\pconfmgr\rulesets\Shipped\POK_v.r.mm■ (UNIX)PATROLInstallationDirectory/pconfmgr/rulesets/Shipped/POK_v.r.mm

Chapter 4 Using PATROL Configuration Manager to modify and migrate configuration 133

Page 134: Oracle K

ConfigUpdate parameter

ConfigUpdate parameterThe 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:

■ /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.

Using the ConfigUpdate parameter

When you make a change to the instance configuration variables or parameters by using PATROL Configuration Manager, you must add one or both of these rules to the rule sets using the following guidelines:

■ 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.

Understanding how the ConfigUpdate parameter operates

When one or both of the rules are applied to a rule set, the ConfigUpdate Parameter performs as follows:

1 The ConfigUpdate parameter checks (every 10 minutes, by default) for the POKKMConfigUpdated and POKKMConfigInstanceRemoved rules.

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 PATROL for Oracle User Guide

Page 135: Oracle K

Configuring PATROL for Oracle instances

A If an update request is applied, the ConfigUpdate parameter sets a value of 1 and goes into a warning state to let you know that a change was sent through the PATROL Configuration Manager.

B If an instance removal request is applied, the ConfigUpdate parameter sets a value of 2 and goes into a warning state to let you know that an instance removal request was sent through the PATROL Configuration Manager.

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.

3 Upon detection of the POKKMConfigUpdated or POKKMConfigInstanceRemoved rule, the ConfigUpdate parameter takes the following actions:

A Forces the Oracle KM to deactivate and reactivate the monitoring of each configured and actively monitored instance, even instances that were not modified. This causes the instance icons to disappear briefly and then reappear.

B Removes the POKKMConfigUpdated and POKKMConfigInstanceRemoved rules or variables from the instance.

4 After completion of 1 polling cycle (by default, 10 minutes), the ConfigUpdate parameter returns to a value of 0.

Configuring PATROL for Oracle instancesYou must configure each PATROL for Oracle instance separately using either batch configuration or the Instance Configure menu command. You cannot use PATROL Configuration Manager to perform the initial configuration of PATROL for Oracle instances. You can only use PATROL Configuration Manager to modify instances that were previously configured.

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 Using PATROL Configuration Manager to modify and migrate configuration 135

Page 136: Oracle K

Using PATROL Configuration Manager to modify or remove an instance

Using PATROL Configuration Manager to modify or remove an instance

You can modify or remove a configured instance by using either the PATROL Configuration Manager or by changing the variables through menu commands in an instance. However, you cannot change the variables and application classes listed in the following topics:

■ “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.

Configuration data not stored in pconfig variable

The following configuration information for PATROL for Oracle is not stored with the PATROL configuration variables:

■ P$OBJ_EXCLUSION—a table that contains information about object exclusions.■ SYS.P$POK_CFG—a 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 PATROL for Oracle User Guide

Page 137: Oracle K

Configuration variables that are for internal use only

Configuration variables that are for internal use only

Some variables are created for internal use only. These variables are used by PATROL for Oracle and alteration of these variables can harm the operation of PATROL for Oracle. Table 18 lists the configuration variables that are for internal use only, and that you should never delete or modify, whether through PATROL Configuration Manager or manually.

Table 18 Variables that are for internal use only (part 1 of 3)

Configuration variable Description

/AgentSetup/ORACLE_CATEGORY.ORACLE_SID.defaultAccount

specifies a default username and password combination for the application class (ORACLE_ CATEGORY) in its name

/AgentSetup/ORACLE_DATAGUARD_INSTANCE.standbyInstanceName.defaultAccount

stores the sys user password of the configured standby instance

/AgentSetup/ORACLE_DATAGUARD_DATABASE.primaryInstanceName.defaultAccount

stores the PATROL database user password of the configured primary instance in Oracle KM

/AgentSetup/ORACLE_DATAGUARD_DATABASE.standbyInstanceName.defaultAccount

stores the sys user password of the configured standby instance

/AgentSetup/ORACLE_SQLVIEWER. ORACLE_SID.collectorRunning

indicates whether the collector for SQL Viewer is running.

/AgentSetup/ORACLE_SQLVIEWER.ORACLE_SID.collStartTime

start time of the SQLViewer collector

/AgentSetup/ORACLE_SQLVIEWER.ORACLE_SID.collStopTime

stop time of the SQLViewer collector

/AgentSetup/ORACLE.temp.defaultAccount

temporary default account

/DGConfig.standbyInstanceName.monDGInstType stores the type of standby, it can be physical or logical

/DGConfig.standbyInstanceName.TNSService indicates the TNS entry of a standby instance

/DGConfig.monDGDBList stores the list of configured database names of the primary instances

/DGConfig.primaryDatabaseName.monDGInstList stores the names of the standby instances configured for a primary database

/DGConfig.primaryInstanceName.DBHome ORACLE HOME of primary instance

/DGConfig.primaryInstanceName.DBName 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

indicates whether the ArchFreeSpace parameter was deactivated by the KM

/ORACLE_AVAILABILITY.sid.tempTSparams.deactivatedByKM

indicates whether the TempTSLeftPct and TempTSLeft parameters were deactivated by the KM

Chapter 4 Using PATROL Configuration Manager to modify and migrate configuration 137

Page 138: Oracle K

Configuration variables that are for internal use only

/ORACLE_AVAILABILITY.ORACLE_SID.tempOSTableExists

indicates that the p$temp_os_space table exists, that the collector need not create this table, and that the collector can count on the presence of this table

/ORACLE_AVAILABILITY.ORACLE_SID.temp.TableExists

indicates that the p$temp_ts_space table exists, that the collector need not create the table, and that the collector can count on the presence of this table

/ORACLE_AVAILABILITY.ORACLE_SID.FreeSpace.kmactive

indicates whether the FreeSpace parameter was deactivated by the KM

/ORACLE_AVAILABILITY.ORACLE_SID.FreeSpaceDeficit.kmactive

indicates whether the FreeSpaceDeficit parameter was deactivated by the KM

/ORACLE_INSTANCE.ORACLE_SID.localInstance

indicates whether an instance is monitored locally or remotely

/OracleConfig.FailoverMonitoring.Listener.ORACLE_LISTENER.Active

indicates whether the named listener is a part of the Failover Configuration

/OracleConfig.ORACLE_SID.AlertFileInfo_eof_pos

indicates the end of the file for the alert log

/OracleConfig.ORACLE_SID.AlertFileInfo_modtime

last time the alert log was modified

/OracleConfig.ORACLE_SID.AlertFileInfo_size

size of the Alert Log

/OracleConfig.ORACLE_SID.ALTERNEXT.SCHEMA NAME.OBJECT NAME

indicates whether the KM is set to alter the next extent of the object in the schema if there is a space problem.

/OracleConfig.ORACLE_SID.ARCHIVELOG.DIRECTORY

directory where archive log is moved when the current archive destination is full

/OracleConfig.ORACLE_SID.ConfigTime

time of last configuration or reconfiguration activity for the ORACLE_SID instance

/OracleConfig.ORACLE_SID.DBAUsername

username of the dba account used to configure the KM for ORACLE_SID

/OracleConfig.ORACLE_SID.DBName name of the database

/OracleConfig.ORACLE_SID.dbObjectsDeinstalled

indicates whether the database objects have been deinstalled

/OracleConfig.ORACLE_SID>.FailoverMonitoring.AlternateListenerName

alternate listener for failover monitoring

/OracleConfig.ORACLE_SID.FailoverMonitoring.LocalFailoverListenerName

local listener name for failover monitoring

/OracleConfig.ORACLE_SID.Name name of database; identical to SID

/OracleConfig.ORACLE_SID.NumPrivs number of privileges granted to patrol user

/OracleConfig.ORACLE_SID.RECOVERY

indicates whether recovery is set

Table 18 Variables that are for internal use only (part 2 of 3)

Configuration variable Description

138 PATROL for Oracle User Guide

Page 139: Oracle K

Application classes with status changes set in code

Application classes with status changes set in code

The following application classes are activated or deactivated when the features they monitor are active in Oracle. Status changes made in PATROL Configuration Manager are overwritten by the internal status.

■ ORACLE_MTS■ ORACLE_PQO■ ORACLE_REPLICATION■ ORANET_LISTENER

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:

■ 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.

/OracleConfig.ORACLE_SID.RECOVERY.ARCHIVELOG

indicates which action PATROL for Oracle performs when the archive log destination is full: compress (compress log files), or MOVE (create new destination for log file)

/OracleConfig.ObjectsList list of database objects (tables, views, synonyms) created by instance configuration

/OracleConfig.PackageBodyList list of package bodies created by instance configuration

/OracleConfig.PackageList list of packages created by instance configuration

/OracleConfig.SessTimeStamp time of completion of last activity for session settings

/OracleConfig.TimeStamp time of completion of last activity for instance configuration

/OracleConfig.UsrTimeStamp time of completion of last activity for User settings

Table 18 Variables that are for internal use only (part 3 of 3)

Configuration variable Description

Chapter 4 Using PATROL Configuration Manager to modify and migrate configuration 139

Page 140: Oracle K

Modifying or removing a configured instance

Modifying or removing a configured instance

The following procedure for modifying and removing configured instances employs the strengths of the KM and PATROL Configuration Manager:

■ 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.

4 Paste the OracleConfig.POKKMConfigUpdated = {REPLACE = “1”} rule into the PATROL for Oracle rule set folder.

5 Apply the rule set to the instance.

140 PATROL for Oracle User Guide

Page 141: Oracle K

Modifying or removing a configured instance

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.

4 Paste the OracleConfig.POKKMConfigRemoveInstance = {REPLACE = “1”} rule into the PATROL for Oracle rule set folder.

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.

3 In PATROL Configuration Manager version 1.4.01, right-click the AgentHostName that contains the modified configuration and choose the Configuration => Get from the menu.

The instance status is displayed in the Job Status Information dialog box. The line that represents the instance turns green and OK is displayed in the Status field for the instance when the job has completed.

The Configuration => Get command copies the pconfig variables from the instance, converts them into rules, and pastes them into the PATROL Configuration Manager in the following folder:

Rule Sets\Change Spring\backup\hostName\instanceName\date-timestamp

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

Page 142: Oracle K

Modifying or removing a configured instance

Figure 12 Get command in PATROL Configuration Manager

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).

5 Create a folder in the following directory in PATROL Configuration Manager:

Rule Sets\Change Spring\newFolder

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\

6 Copy and paste the OracleConfig.POKKMConfiguUpdated = {REPLACE = “1”} rule in with the other rules in the new rule set.

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

Page 143: Oracle K

Modifying the blackout configuration variable

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.

Modifying the blackout configuration variable

Blackout periods set in PATROL Configuration Manager are not verified. To validate your changes you should set Blackout for one instance by using the Blackout menu command, then use the output for that variable in PATROL Configuration Manager to apply that blackout period to other instances.

When you create a blackout period for an instance using the Blackout menu command from an ORACLE or ORACLE_INSTANCE menu, the blackout information is stored in the /OracleConfig.blackout variable.

The value created for the variable contains the following information in the following format:

server_name day of the week start time in seconds after midnight duration of the blackout in minutes

For example, if you set a server called Oracle1 for a blackout period on Monday starting at 1:00 a.m. and lasting for 60 minutes, the following value would display for the /OracleConfig.blackout variable:

Oracle1 Monday 3600 60

You can change your blackout periods several ways:

■ 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.

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.

Chapter 4 Using PATROL Configuration Manager to modify and migrate configuration 143

Page 144: Oracle K

Using PATROL Configuration Manager to manage parameters

■ 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.

Using PATROL Configuration Manager to manage parameters

You can modify PATROL for Oracle parameters by using either the PATROL Configuration Manager or by changing the parameter properties in an instance.

However, there are restrictions to the modifications you can make to some PATROL for Oracle parameters, as described in the following topics:

■ “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:

■ “Deactivating parameters” on page 145■ “Changing parameter thresholds” on page 147■ “Changing parameter polling cycles” on page 148

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.

144 PATROL for Oracle User Guide

Page 145: Oracle K

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.

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:

■ 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.

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.

Chapter 4 Using PATROL Configuration Manager to modify and migrate configuration 145

Page 146: Oracle K

Deactivating parameters

Parameters with their status set in code

The following parameters directly set their status, and their status changes when conditions change. These internal status changes overwrite whatever changes are made through PATROL Configuration Manager.

■ Cannot Extend—the 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 TempTSLeftPct—these 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.

Reactivate parameters via PATROL Configuration Manager

Table 19 lists parameters that you must reactivate through PATROL Configuration Manager if you deactivated them through PATROL Configuration Manager.

Table 19 Parameters that you must reactivate via PATROL Configuration Manager

Application class Parameter

ORACLE_TBS_INSTANCE AutoExtended

ORACLE_AVAILABILITY CannotExtend

RSExtentsLeft

RSExtentsLeftPct

RSSpaceLeft

RSSpaceLeftPct

SystemTSLeft

SystemTSLeftPct

146 PATROL for Oracle User Guide

Page 147: Oracle K

Changing parameter thresholds

Changing parameter thresholds

Using the PATROL Configuration Manager, you can change the thresholds for most of the PATROL for Oracle parameters. You should use caution, however, before changing thresholds. PATROL for Oracle ships with the parameters set at thresholds that are appropriate for those parameters in the average environment. You should make changes to the thresholds in one instance and then test the results in that instance before exporting those changes throughout your entire enterprise.

Do not change parameters with fixed thresholds

You cannot change parameters that have fixed thresholds. Some PATROL for Oracle consumer parameters have thresholds that are not on a sliding scale, but are fixed at a particular value because that value is directly connected to the KM. For example, all parameters that have a Boolean output are created to react only to a setting of 0 or 1.

Table 20 provides a list of the PATROL for Oracle parameters that have fixed thresholds that you should never modify. For complete descriptions and the default values for these parameters, see the online Help. For a brief description and the default values for these parameters, see the PATROL for Oracle online Help.

Table 20 PATROL for Oracle parameters with fixed thresholds

Application class Parameters

Availability AlertsCannotExtendConnectCheckConnectDBFreeSpaceDeficitInstanceStatusSchedulerOutputShutdownInProgress

Listener ListenerLogListenerStatus

Log ArchLogCreated

Oracle ConfigUpdateInstanceCheckInstanceStatusOracleStatus

SPACE_EXPERT_ORA find_problems

SPACE_EXPERT_ORA_TS StorageProblemsStorageProblemsCnt

TBSP_INSTANCE AutoExtended

USERS ProblemUsers

Chapter 4 Using PATROL Configuration Manager to modify and migrate configuration 147

Page 148: Oracle K

Changing parameter polling cycles

Changing parameter polling cycles

Collector and standard parameters use queries to obtain data from a monitored server or database. The poll time assigned to a collector or standard parameter sets the interval between executions of the query used by the parameter. The default poll times set for collector and standard parameters in PATROL for Oracle are calculated to collect sufficient data to appropriately monitor most systems.

If your system requires longer or shorter poll times, you can change poll times, but do so with the following cautions in mind:

■ 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.

To find the query execution time

To find out how long it takes a collector or standard parameter to execute a query, turn Debug on for that parameter. When the parameter completes a polling cycle, look at the Debug output and find the Total Execution Time. Execution times can vary, so make sure that you find the longest possible execution time by running Debug on your busiest system during your busiest 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 PATROL for Oracle User Guide

Page 149: Oracle K

Modifying parameter properties

Modifying parameter properties

The following procedure for modifying parameters employs the strengths of the KM and PATROL Configuration Manager:

■ 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:

■ 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.

3 To activate or deactivate a parameter, perform one of these actions:

■ (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:

■ (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:

■ (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 Using PATROL Configuration Manager to modify and migrate configuration 149

Page 150: Oracle K

Modifying ETF parameters through PATROL Configuration Manager

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.

Modifying ETF parameters through PATROL Configuration Manager

PATROL for Oracle provides Estimated Time to Failure or ETF parameters, and these parameters depart from traditional PATROL mechanisms. Because these parameters depart from the usual PATROL mechanisms, you cannot deactivate them through the usual PATROL mechanisms. Therefore, we have provided the following rule sets that you can use to configure and deactivate the ETF parameters through PATROL Configuration Manager:

■ ConfigureETF.cfg—using this rule, you can modify the pconfig variable that determines which of the ETF consumer parameters the CollETF collector parameter sets.

■ DisableETF.cfg—using this rule, you can disable all of the ETF consumer parameters and the CollETF collector parameter.

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.

150 PATROL for Oracle User Guide

Page 151: Oracle K

Modifying ETF parameters through PATROL Configuration Manager

Overview of ETF parameters

Each ETF parameter monitors the data provided by a key parameter and goes into an alert state whenever that data indicates that a failure is likely to occur on the resource that the key parameter monitors. When the estimated time to failure is imminent, each ETF parameter goes into a warning or an alarm state, and provides a date and time when the monitored resource is expected to fail. If the ETF is 1 to 7 days, the ETF parameter goes into a warning state. If the ETF is 24 hours or less, then the ETF parameter goes into an alarm state.

Table 21 lists the ETF parameters, the parameters that they monitor and a description of the resource that each ETF parameter monitors.

Table 21 ETF parameters

ETF parameter Parameter Description

CollETF—This 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.

ExtentsLeftETF ExtentsLeft Reports how long until a non-excluded object in a non-excluded user schema can no longer accept additional extents.

FreeSpaceETF FreeSpace Reports how long until the non-excluded tablespaces run out of free space.

SystemTSLeftETF SystemTSLeft Reports how long until the SYSTEM tablespace runs out of space.

ETF parameters under the Capacity application

BGDumpLeftETF BGDumpLeft Reports how long until the background dump directory runs out of space.

CoreDumpLeftETF CoreDumpLeft Reports how long until the core dump directory runs out of space.

ProcsLeftETF ProcsLeft Reports how long until the instance can support no more processes.

SessionsLeftETF SessionsLeft Reports how many additional user sessions are allowed by the instance in its current configuration.

UserDumpLeftETF UserDumpLeft Reports how long until the file system, device, or mount point that contains the user dump directory runs out of space.

Chapter 4 Using PATROL Configuration Manager to modify and migrate configuration 151

Page 152: Oracle K

Modifying ETF parameters through PATROL Configuration Manager

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.

5 Select (highlight) and double-click on the OracleETF._ANYINST_.Parameter rule.

The Rule Set Dialog box opens.

6 In the Rule Set Dialog box, click Edit Value.

The Edit Rule/Variable dialog box opens and displays the contents of the OracleETF._ANYINST_.Parameter rule. It contains the nine ETF parameters, each preceded by an N. By default, this variable removes all of the ETF parameters from the CollETF collector.

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.

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:

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.

152 PATROL for Oracle User Guide

Page 153: Oracle K

Using the rule and rule set examples

/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.

6 Reinitialize the agent to apply the changes.

Using the rule and rule set examplesSome of the rules and rule sets that are installed when you install PATROL for Oracle are required: POKKMConfigUpdated and the POKKMConfigInstanceRemoved (see “Using the ConfigUpdate parameter” on page 134) trigger the ConfigUpdate parameter, and ConfigureETF and DisableETF (see “Modifying ETF parameters through PATROL Configuration Manager” on page 150) provide a way for you to manage the ETF parameters.

All of the other rules and rule sets installed with PATROL for Oracle are examples that you can use as an example of how that particular rule or rule set should appear.

NOTE If you disable the consumer parameters without disabling the CollETF collector, the CollETF collector parameter notates the System Output Window with an error each time it attempts to send information to a deactivated consumer parameter. You can avoid this by first removing the ETF consumer parameters from the CollETF collector configuration. See “To use ConfigureETF.cfg to limit the parameters set by CollETF” on page 152.

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 Using PATROL Configuration Manager to modify and migrate configuration 153

Page 154: Oracle K

Where to go from here

The following are the optional rules and rule sets installed with PATROL for Oracle and a short description for each:

■ 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.

■ ConfigUpdate_DeActivate.cfg deactivates the ConfigUpdate parameter. The ConfigUpdate parameter is active by default. You can use it to deactivate it throughout the enterprise, and use ConfigUpdate_Activate.cfg to reactivate.

■ 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 and Categories configuration variables.

■ Remove_All_ConfigInstance.cfg provides a rule that you can use to remove all configured instances.

■ Remove_One_ConfigInstance.cfg provides a rule that you can use to remove one configured instance.

Where to go from hereBefore making any changes to PATROL for Oracle, you might want to review “Parameter summary” in the PATROL for Oracle online Help and “Pconfig variables” on page 334. For more detailed information about each parameter, see the PATROL for Oracle online Help. The following table suggests topics:

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.

154 PATROL for Oracle User Guide

Page 155: Oracle K

Where to go from here

Topic Source of information

how to use Oracle utilities from PATROL for Oracle

Chapter 5, “Using Oracle utilities from PATROL for Oracle” on page 157

how to monitor the tablespace capacity and user activity on an Oracle instance using PATROL for Oracle

Chapter 6, “Monitoring tablespaces, users, and SQL statements” on page 179

how to monitor instance health using PATROL for Oracle

Chapter 7, “Monitoring instance health” on page 225

how to monitor Oracle options using PATROL for Oracle

Chapter 8, “Monitoring Oracle options” on page 271

how to monitor the the RAC environment

Chapter 9, “Monitoring the RAC environment” on page 293

how to access the KM menu commands, InfoBoxes, and online Help

Appendix A, “Accessing menu commands, 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

detailed descriptions of the applications, menu commands, parameters, and InfoBoxes

PATROL for Oracle online Help

Chapter 4 Using PATROL Configuration Manager to modify and migrate configuration 155

Page 156: Oracle K

Where to go from here

156 PATROL for Oracle User Guide

Page 157: Oracle K

C h a p t e r 5

5 Using Oracle utilities from PATROL for Oracle

This chapter presents the following topics:

Using Oracle utilities . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 158Using Server Manager and SQL*Plus from PATROL . . . . . . . . . . . . . . . . . . . . . . 158Using Explain Plan from PATROL . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 159Issuing SQL commands to Oracle from PATROL . . . . . . . . . . . . . . . . . . . . . . . . . 159Managing Oracle’s job queue from PATROL . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 160

Monitoring Oracle Net from PATROL . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 163ORANET requirements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 164Listener Password configuration menu option. . . . . . . . . . . . . . . . . . . . . . . . . . . . 164Configuring a listener . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 165Configuring multiple listeners . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 167Starting and stopping a listener. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 170Monitoring ORANET alarms. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 170Viewing ORANET reports . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 171

Starting and shutting down instances. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 173Starting instances. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 173Shutting down instances . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 173

Scheduling blackouts. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 174Nesting blackout periods . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 175Scheduling unending blackouts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 175Setting the time zone variable . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 175Setting blackout periods for categories and parameters . . . . . . . . . . . . . . . . . . . . 176Deleting blackout periods . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 176Debugging blackouts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 177

Where to go from here. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 177

Chapter 5 Using Oracle utilities from PATROL for Oracle 157

Page 158: Oracle K

Using Oracle utilities

Using Oracle utilitiesYou can access and use the following Oracle utilities from PATROL for Oracle:

■ Server Manager■ SQL*Plus■ Explain Plan ■ SQL command entry

You can also manage Oracle’s job queue from PATROL.

Using Server Manager and SQL*Plus from PATROL

You can access Server Manager and SQL*Plus from PATROL. However, the following requirements must be met:

■ 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 x-emulator program configured and running on the console computer.

To use Server Manager

Access Server Manager by choosing Oracle Server Admin => Server Manager from the INSTANCE menu. You must enter the user name and password of a valid account for the instance.

After you have entered the user name and password, you can use any valid Server Manager commands in the xterm window that opens. To close the window, type exit at the Server Manager prompt.

NOTE Server Manager is not accessible on a Microsoft Windows local instance.

158 PATROL for Oracle User Guide

Page 159: Oracle K

Using Explain Plan from PATROL

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.

Using Explain Plan from PATROL

You can run the Explain Plan utility from PATROL to review how the Oracle optimizer intends to process a specific SQL statement. This information predicts the performance of the SQL statement.

Access the Explain Plan utility by choosing Oracle Server Admin => Explain Plan from the INSTANCE menu. You can then enter the SQL statement and any arguments into the command dialog box. You can also use any of the tools on the command dialog box toolbar. On Microsoft Windows, click Help for instructions for using the command dialog box. Click Apply to submit the SQL statement to the utility. The resulting report appears in a task output window.

Issuing SQL commands to Oracle from PATROL

You can use either the SQL Command or SQL Task menu commands to input an SQL statement to the instance from PATROL. The SQL statement executes in the account that you used to log in.

To issue SQL Commands

After choosing Oracle Server Admin => SQL Command from the Instance menu, you must enter a user name and password for an account on the instance. After the account is accepted, a command dialog box appears.

When you enter the SQL command into the dialog box, the command is sent to the instance where it is executed. Any output appears in the system output window, and the dialog box is closed.

NOTE SQL*Plus is not accessible on a remote Oracle instance or on a Microsoft Windows local instance.

Chapter 5 Using Oracle utilities from PATROL for Oracle 159

Page 160: Oracle K

Managing Oracle’s job queue from PATROL

To issue a SQL Task

After choosing Oracle Server Admin => SQL Task from the INSTANCE menu, you must enter a user name and password for an account on the instance. Once the account is accepted, a command dialog box appears.

When you enter the SQL task into the dialog box, the command is sent to the instance where it is executed. An icon is displayed on the navigation area that shows the total execution time. Any output from the statement is displayed in the task output window, and the dialog box is closed.

You can repeat the SQL task by right-clicking on the task output window icon and choosing Repeat. You can choose Destroy to delete the task output window.

Managing Oracle’s job queue from PATROL

You can use PATROL to view and manage the job queue in the Oracle instance. You can run jobs manually, flag jobs as broken or not broken, and remove jobs from the job queue.

Before you can manage the job queue, you must activate the JOBS application by choosing KM Admin => Monitor Settings Modify from the INSTANCE menu, and enabling the JOBS category. You can also use this function to deactivate job queue monitoring.

The CollJobs parameter starts collecting information and populates the consumer parameters during the next polling cycle. The JOBS icon should appear within two polling cycles.

Viewing all jobs in the queue

To view all the jobs in the job queue, choose Reports => All Jobs from the JOBS menu or Reports => Jobs => All Jobs from the INSTANCE menu. All the jobs currently in the job queue are listed in the report, with the following information for each job:

Table 22 All jobs report

Item Description

Job Owner name of the owner of the job

Job Number number of the job

Broken whether the job is broken or not

Failures how many times the job failed to run

Job Definition PL/SQL code that defines the job

Next Run time when the job is set to run next

160 PATROL for Oracle User Guide

Page 161: Oracle K

Managing Oracle’s job queue from PATROL

Finding failed jobs

A failed job is an Oracle task that has not executed properly 15 or fewer times (if it fails to execute properly 16 times in a row, it is flagged as a broken job). The FailedJobs parameter graphs the number of jobs that have failed to run. You can also run the Failed Jobs Report by choosing Jobs => Failed Jobs from the JOBS menu or Reports => Jobs => Failed Jobs from the INSTANCE menu.

Table 23 lists the information included in the Failed Jobs report.

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.

Finding overdue jobs

An overdue job is a job that is more then two minutes overdue. An overdue job may be a broken job or a failed job, or it may simply be blocked from running at its appointed time. The OverdueJobs parameter graphs the number of jobs that have not run at their proper time.

Table 23 Failed jobs report

Item Description

Job Owner name of the owner of the job

Job Number number of the job

Broken whether the job is broken or not

Failures how many times the job failed to run

Job Definition PL/SQL code that defines the job

Next Run time when the job is set to run next

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 Using Oracle utilities from PATROL for Oracle 161

Page 162: Oracle K

Managing Oracle’s job queue from PATROL

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.

Finding broken jobs

If a job has failed to run 16 times, it is automatically flagged as broken and does not run again. You can view all broken jobs by choosing Jobs => Broken Jobs from the JOBS menu or Reports => Jobs => Broken Jobs from the INSTANCE menu. All broken jobs are listed in the text window. Table 25 lists the information in the report.

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.

Table 24 Overdue jobs report

Item Description

Job Owner name of the owner of the job

Job Number number of the job

Broken whether the job is broken or not

Failures how many times the job failed to run

Job Definition PL/SQL code that defines the job

Next Run time when the job is set to run next

Table 25 Broken jobs report

Field Description

Job Owner name of the owner of the job

Job Number number of the job

Failures how many times the job failed to run

Job Definition PL/SQL code that defines the job

162 PATROL for Oracle User Guide

Page 163: Oracle K

Monitoring Oracle Net from PATROL

Running jobs immediately

Use the following task to manually execute a job immediately. When you run a job manually from PATROL, Oracle attempts to execute the job even if the job has failed or is broken.

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.

3 Select the job you want to run, and click OK.

Removing a job from the job queue

You can remove a job from the job queue, which prevents the job from being processed.

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.

3 Select the job you want to remove, and click OK.

You can remove all jobs that have not yet executed from the job queue. Jobs that you remove are not executed. However, you cannot remove a job that is currently executing. If you try to remove a job that is currently executing, the job is not interrupted and continues to execute.

Monitoring Oracle Net from PATROLYou can monitor Oracle Net listener processes from PATROL via the ORANET application. ORANET automatically discovers the Oracle Net listeners that are running and periodically verifies their status. When ORANET discovers a listener, it creates a LISTENER icon for it in the ORANET application.

Because the ORANET application is a separate .km file, Oracle instances may be down while ORANET is up and running, since the listener processes are up and running.

Chapter 5 Using Oracle utilities from PATROL for Oracle 163

Page 164: Oracle K

ORANET requirements

ORANET requirements

To monitor Oracle Net listeners using ORANET, ensure that the system meets the following requirements:

■ 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.

Listener Password configuration menu option

A major change to Listener security in Oracle 10g or later is the introduction of Local OS Authentication. By default, in the listener.ora file, the LOCAL_OS_AUTHENTICATION_listenerName parameter is set to ON. However, you can disable it by setting the value of the parameter to OFF.

If you set the password through LSNRCTL and the LOCAL_OS_AUTHENTICATION_listenerName parameter value is set to OFF, all related parameters for that listener below the ORANET icon will be offline. You may observe the following, or similar, error messages:

164 PATROL for Oracle User Guide

Page 165: Oracle K

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.

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.

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.

Chapter 5 Using Oracle utilities from PATROL for Oracle 165

Page 166: Oracle K

Configuring a listener

Figure 13 Listener configuration task flow

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.

Is listener part of a cluster?

Configure listener using Cluster Configuration command from ORANET menu and specify logical host name

Configure listener using Cluster Configuration command from ORANET menu and specify cluster alias

Does listener use cluster alias or logical host name in the listener.ora file?

No

uses cluster alias

uses logical host name

Yes

Configure listener using Configuration command from ORANET menu

166 PATROL for Oracle User Guide

Page 167: Oracle K

Configuring multiple listeners

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:

PATROL creates a listener icon and begins monitoring the listener.

Configuring multiple listeners

PATROL for Oracle provides an external script that you can use to tell ORANET where to go to read the listener.ora files. By activating this script through the new default configuration file, PATROL for Oracle reads multiple, arbitrarily located listener.ora files. Using this method, ORANET monitors only those listeners for Oracle instances that are configured for monitoring by PATROL for Oracle.

Before You Begin

■ 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.

Table 26 Cluster configuration information

Field Description

Physical Host Displays the name of the physical host

Cluster Alias for <Physical Host> (Server Name or IP Address):

Enter the Server Name or IP Address only if you are using a cluster alias in the listener.ora file. If you are using Logical Host Names, leave this field blank.

Logical Hosts for <Physical Host> (Host Names or IP Addresses separated by blank space(s)):

Enter the logical host name(s) separated by blank space(s) only if you are using Logical Host Names in the listener.ora file. If you are using cluster aliases, leave this field blank.

Chapter 5 Using Oracle utilities from PATROL for Oracle 167

Page 168: Oracle K

Configuring multiple listeners

OR

■ 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:

■ 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

■ Test1— listener.ora

■ Test2— listener.ora

■ Test3— listener.ora

2 From $PATROL_HOME/oracle/oranet, the locate_lsnr_configs script is used to resolve the listener.ora file locations. To resolve these locations, set the TNS_ADMIN environment variable before you start the Patrol Agent.

NOTE Each listener.ora file might have multiple listeners defined in it.

EXAMPLE TNS_ADMIN needs to be set to /qa/products/user

168 PATROL for Oracle User Guide

Page 169: Oracle K

Configuring multiple listeners

Discovery process identifies the listener.ora files from the above locations and starts monitoring the listeners.

However, this method has the following limitations:

■ 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.

To configure multiple listeners in an unstructured directory

When the listener.ora files are located in different locations across different file systems and in each listener.ora file there is only one listener defined in it.

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:

■ echo /qa/products/test1■ echo /dev/products/test2■ echo /export/products/test3

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:

■ Works only on UNIX platform.

■ 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:

■ /qa/products/test1/listener.ora■ /dev/products/test2/listener.ora■ /export/products/test3/listener.ora

Chapter 5 Using Oracle utilities from PATROL for Oracle 169

Page 170: Oracle K

Starting and stopping a listener

Starting and stopping a listener

You can stop and start a listener process from within PATROL. To start or stop listeners, the PATROL user account must either be in the DBA group or have 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.

To stop a listener, choose Stop Listener from the LISTENER menu. Any confirmation messages appear in a task output window, and the specific listener process is stopped.

To start a listener, choose Start Listener from the LISTENER menu. Any confirmation messages appear in a task output window, and the specific listener process is started.

Monitoring ORANET alarms

PATROL monitors the listener process for the following items:

■ error messages written to the listener alert log■ the size of the listener trace and log files■ status of the listener

Monitoring the listener alert log

If a TNS- error message or user-defined string is written to the listener alert log, the ListenerLog parameter goes into an alarm state. The annotation for the parameter displays the text of the error that was written to the log file.

Filtering the error messages that the ListenerLog parameter monitors

You can filter the error messages that trigger the ListenerLog parameter by using the Listener Log Filters menu command. You can perform the following actions:

■ 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

Page 171: Oracle K

Viewing ORANET reports

Viewing the error messages that the ListenerLog parameter detects

If the ListenerLog parameter is in an alarm state, you can double-click the annotated data point created when the error occurred to display the text of the alarm.

To find a specific error message that may be in the listener.log file, choose Reports => Enter Search String from the LISTENER menu. In the text box, enter the string to search for and click Apply. The error message and description appear in a text window.

To view all error messages that have been entered into the listener error log file, choose Reports => All Error Messages from the LISTENER menu. The report appears in a text window and lists all error messages in the listener.log file.

To view only the most recent error messages, choose Reports => Show Tail from the LISTENER menu. The last 40 lines of the listener.log file are displayed in a text window.

Viewing ORANET reports

The ORANET application provides the following reports:

■ Listener Services Info report■ Listener Status Info report

Viewing a report on listener services

This report provides detailed information about the services for which the listener listens. This information contains how many connections have been established and how many connections have been refused.

This report displays the following types of services:

■ 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 Using Oracle utilities from PATROL for Oracle 171

Page 172: Oracle K

Viewing ORANET reports

Viewing a report on listener status

This report displays basic information about the listeners. Use this report to check

■ 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

The report provides the information shown in Table 27.

To run this report, choose Listener Status Info from the LISTENER menu.

Table 27 Listener Status Info report

Item Description

Alias alias of the listener process

Version version of the listener program

Start Date date and time that the listener started, in the following formats:

■ DD-Mon-YY■ HH:MM:SS

Uptime the total amount of time that the listener has been running

Trace Level the level of trace:

■ OFF■ ON■ USER (User trace information)■ ADMIN (Administration trace information)■ SUPPORT (WorldWide Customer Support trace

information)

Security whether security is ON or OFF

SNMP whether SNMP is ON or OFF

Listener Parameter File the directory and filename of the parameter file

Listener Log File the directory and filename for the listener log file

Services Summary the service name and service handler count

172 PATROL for Oracle User Guide

Page 173: Oracle K

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 and shutting down instancesYou can start and shut down instances from within PATROL if you are a member of the DBA group.

If you shut down an instance, all parameter and report information is suspended. The instance icon displays in the offline, dimmed state. No menu items are accessible from the instance until you restart the instance.

Starting instances

From the INSTANCE application, choose Oracle Server Admin => Instance Startup. You can select one of the following startup options:

After the instance is started, any messages appear in a task output window.

Shutting down instances

From the INSTANCE menu, choose Oracle Server Admin => Instance Shutdown. You can select one of the following shutdown options:

Startup mode Description

Open The database is initialized, mounted, and open for normal operations.

No Mount The database is created and initialized. Only DBAs can access the database at this point.

Mount The database control files are read and opened. Only DBAs can access the database at this point.

Chapter 5 Using Oracle utilities from PATROL for Oracle 173

Page 174: Oracle K

Scheduling blackouts

All currently connected users and the number of sessions that they are running are listed for your reference.

Scheduling blackoutsYou 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.

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.

Shutdown mode Description

Normal 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.

Immediate 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.

Abort The instance is aborted. The databases are closed immediately. Instance recovery might be necessary on startup.

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.

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 PATROL for Oracle User Guide

Page 175: Oracle K

Nesting blackout periods

Nesting blackout periods

You can also nest blackout periods. If you have a set regular maintenance blackout period, you can also set an emergency blackout period that begins during the maintenance blackout period. However, if the maintenance blackout period covers the emergency blackout period, the emergency blackout period is not activated.

Figure 14 shows the overlapping blackout periods. In this example, the emergency blackout period scheduled from Monday at 2300 (11 p.m.) to Tuesday 0300 (3 a.m.) is not activated because the maintenance blackout period covers the emergency blackout period. However, if the regular maintenance blackout period is deleted, the emergency blackout period is activated.

Figure 14 Blackout period priority

Scheduling unending blackouts

If you set a blackout period for seven days, you are putting the instance in an unending blackout. For example, if you set the blackout period to run on Monday for a duration of seven days, on the following Monday the blackout function sees the event that triggers the blackout period and again triggers the blackout. This cycle repeats until the blackout period is deleted.

Setting the time zone variable

The blackout function attempts to determine the time zone that you are in. If it cannot, you must insert the following variable and value in the INSTANCE application class:

■ variable name = ORABOTZ ■ value = GMT hours +_difference_from_your_time zone

Monday 0600 Tuesday 0600

Regular MaintenanceMonday 2100 to Tuesday 0500

Emergency MaintenanceMonday 2300 to Tuesday 0300

Chapter 5 Using Oracle utilities from PATROL for Oracle 175

Page 176: Oracle K

Setting blackout periods for categories and parameters

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.

Setting blackout periods for categories and parameters

When you add a blackout period, all parameters in all categories for that instance do not collect any information or raise any warnings or alarms.

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.

Deleting blackout periods

1 Choose Blackout Instance(s) from the ORACLE menu, or KM Admin => Blackout from the INSTANCE menu.

2 Select Delete a Blackout Period, select the blackout period from the Blackout period(s) to delete list box and click Accept.

176 PATROL for Oracle User Guide

Page 177: Oracle K

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.

Where to go from hereThe following table suggests topics:

Topic Source of information

how to monitor the tablespace capacity and user activity on an Oracle instance using PATROL for Oracle

Chapter 6, “Monitoring tablespaces, users, and SQL statements” on page 179

how to monitor instance health using PATROL for Oracle

Chapter 7, “Monitoring instance health” on page 225

how to monitor Oracle options using PATROL for Oracle

Chapter 8, “Monitoring Oracle options” on page 271

how to monitor the the RAC environment

Chapter 9, “Monitoring the RAC environment” on page 293

how to access the KM menu commands, InfoBoxes, and online Help

Appendix A, “Accessing menu commands, 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 Using Oracle utilities from PATROL for Oracle 177

Page 178: Oracle K

Where to go from here

178 PATROL for Oracle User Guide

Page 179: Oracle K

C h a p t e r 6

6 Monitoring tablespaces, users, and SQL statements

This chapter presents the following topics:

Tablespace monitoring overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 180Using the TABLESPACES application to monitor tablespaces . . . . . . . . . . . . . . . . . . 180

TBSP_INSTANCE parameters. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 182Activating TABLESPACES application monitoring. . . . . . . . . . . . . . . . . . . . . . . . 183Selecting tablespaces for monitoring . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 183Viewing reports on tablespaces. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 184

Using the ETSM applications to monitor tablespaces . . . . . . . . . . . . . . . . . . . . . . . . . 188ETSM parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 189Activating the ETSM applications. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 192Defining tablespace types. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 189Viewing the ETSM reports . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 192Debugging the ETSM application . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 192

Using Space Expert to monitor tablespaces . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 192User monitoring overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 193

USERS parameters. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 194USERS_INSTANCE parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 196Activating user monitoring . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 197Selecting users or user sessions for monitoring . . . . . . . . . . . . . . . . . . . . . . . . . . . 197Monitoring problem users . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 199Viewing the All Problem Users report . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 200Viewing other reports on users . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 202

Excluding parameter alarms . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 209Differences between exclusion types . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 211Exclusion examples . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 212Excluding tablespaces . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 213Excluding objects . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 214Excluding users from space monitoring . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 215Viewing the monitoring settings. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 216

Monitoring SQL statements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 217SQL Snapshot overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 217Using SQL Snapshot . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 218

Chapter 6 Monitoring tablespaces, users, and SQL statements 179

Page 180: Oracle K

Tablespace monitoring overview

SQL Viewer tables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 219Activating SQL Viewer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 220Starting and stopping SQL Viewer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 220Viewing SQL Viewer reports . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 220Archiving SQL Viewer data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 223Terminating SQL Viewer sessions. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 223

Where to go from here . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 224

Tablespace monitoring overviewPATROL for Oracle provides two methods for monitoring tablespaces. Space Expert, when installed, also provides a method for monitoring tablespaces. You can select to use one or all methods. For details on each, see the following topics:

■ “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.

Using the TABLESPACES application to monitor tablespaces

PATROL monitors all tablespaces on an Oracle server for availability and space issues. The AVAILABILITY application shows the resources remaining in the instance. However, if you are concerned about a specific tablespace or if reports show that a tablespace is heavily used, you can activate the TABLESPACES application as a diagnostic or troubleshooting tool for your Oracle environment. You can select a particular tablespace on the instance for PATROL to monitor. If the tablespace you selected is running, an instance within the TABLESPACES container appears as an TBSP_INSTANCE icon.

NOTE PATROL for Oracle does not support blank space within a tablespace name. For example, “te st” is not a valid tablespace name.

180 PATROL for Oracle User Guide

Page 181: Oracle K

Using the TABLESPACES application to monitor tablespaces

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.

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

NOTE ■ 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.

AVAILABILITY application:

reports on availability of resources in the instance, including all tablespaces in the instance

INSTANCE application:

reports on 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 Monitoring tablespaces, users, and SQL statements 181

Page 182: Oracle K

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.

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.

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.

Table 28 TBSP_INSTANCE parameters

Parameter Description

AutoExtended 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.

BlkReads reports the total number of logical block reads performed per second on the monitored tablespace during the previous polling interval

BlkWrites reports the total number of logical block writes performed per second on the monitored tablespace during the previous polling interval

PctUsed shows the percentage of space that is allocated in the monitored tablespace

PhyReads reports the total number of physical reads performed per second on the monitored tablespace in the previous polling interval

PhyWrites reports the total number of physical writes performed per second on the monitored tablespace in the previous polling interval

SpaceLeft shows the amount of free space in megabytes in the monitored tablespace

182 PATROL for Oracle User Guide

Page 183: Oracle K

Activating TABLESPACES application monitoring

Activating TABLESPACES application monitoring

Before you can selectively monitor tablespaces, the TABLESPACES category must be activated. If this category is not activated, the TABLESPACES icon does not appear, and no tablespace monitoring is performed.

From the INSTANCE menu, choose KM Admin => Monitoring Settings, and activate the TABLESPACES category to start monitoring tablespaces.

The CollTablespaces collector parameter collects information and populate the consumer parameters during the next polling cycle. The TABLESPACES application icon appears within two polling cycles.

You can use this function to deactivate tablespace monitoring as well.

Selecting tablespaces for monitoring

After you have enabled the TABLESPACES application, you can select specific tablespaces to monitor.

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 ?:

■ * 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.

NOTE To prevent performance problems, you should monitor no more than 30 tablespaces at one time.

Chapter 6 Monitoring tablespaces, users, and SQL statements 183

Page 184: Oracle K

Viewing reports on tablespaces

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.

Viewing reports on tablespaces

PATROL provides reports that give you the following information:

■ tablespace free space■ tablespace size■ tablespace segments■ tablespace status and storage

These reports are described in the following sections.

Viewing the Tablespace Free Space report

The Tablespace Free Space report displays the amount of used and free space for all tablespaces.

Run the report choosing Reports =>Free Space from the TABLESPACES menu, or Reports =>Tablespaces =>Tablespace Free Space from the INSTANCE menu.

Table 29 shows the information that the report provides.

Table 29 Tablespace Free Space report

Item Description

Tablespace name name of the tablespace

Size Bytes size of the tablespace in bytes

Used Bytes amount of used space in bytes

Free Bytes amount of free space in bytes

%Used percentage of the total space that is used

184 PATROL for Oracle User Guide

Page 185: Oracle K

Viewing reports on tablespaces

Viewing information about tablespaces

The Tablespace report lists file, storage, and I/O information about the specified tablespace or tablespaces. If a tablespace has the autoextend feature or is not currently used, the tablespace is flagged. If a tablespace shows too much I/O activity, you may want to move the datafiles in the tablespace to another tablespace.

To run the report perform one of following steps:

■ From the INSTANCE application menu, choose Reports => Database =>Tablespace Information and select the tablespace from the list.

■ From the TBSP_INSTANCE menu, choose Tablespace.

Table 30 shows the information that the report provides.

Table 30 Tablespace report (part 1 of 2)

Item Description

File I/O

Tablespace name name of the tablespace

Autoextend whether the autoextend option is YES or NO

Monitoring whether state of monitoring for the tablespace is INCLUDED or EXCLUDED

Phys Writes number of physical writes on the tablespace

Phys Reads number of physical reads on the tablespace

Blk Writes number of physical blocks written on the tablespace

Blk Reads number of physical blocks read on the tablespace

File Name file name of the tablespace

Storage

Tablespace name name of the tablespace

% Free the percentage of free space in the tablespace

Bytes Free number of free bytes in the tablespace

Blocks Free number of free blocks in the tablespace

Max Bytes Free size of largest free extent in bytes

Max Blk Free size of largest free extent in blocks

Total Size (Bytes) the total size of the tablespace in bytes

Total Size (Blks) the total size of the tablespace in blocks

Parameters

Init Trans initial transactions

Init Extent size of the initial extent in the table

Next Extent size of the next extent to be allocated to the segment

Min Extents minimum number of extents allowed in the segment

Chapter 6 Monitoring tablespaces, users, and SQL statements 185

Page 186: Oracle K

Viewing reports on tablespaces

View a report on tablespace segments

The Tablespace Segment report provides information on the segments in the tablespace.

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.

View a report on tablespaces sorted by size

The Sorted by Size and the Tablespaces By Size reports list the tablespaces in the instance that exceed the criteria you select:

■ number of extents■ number of blocks■ number of bytes

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.

Max Extents maximum number of extents allowed in the segment

% Inc percentage to use to increase the size of the next allocated extent

Status tablespace status: ONLINE, OFFLINE, or READ ONLY

Table 31 Tablespace Segments report

Item Description

Tablespace name name of the tablespace

Segment Name name of the segment

Type type of segment

Owner the owner of the segment

Size the size of the segment in bytes

Extents the number of extents in the segment

Table 30 Tablespace report (part 2 of 2)

Item Description

186 PATROL for Oracle User Guide

Page 187: Oracle K

Viewing reports on tablespaces

Viewing a report about tablespace storage and status

Use this report to obtain storage and tablespace status information on selected tablespaces.

Run this report by choosing Reports => Status and Storage from the TABLESPACES menu, or choosing Reports =>Tablespaces =>Tablespace Information from the INSTANCE menu.

Table 33 shows the information that the report provides.

Table 32 Tablespaces by Size report

Item Description

Tablespace Name name of the tablespace

Owner owner of the tablespace segment

Type type of tablespace segment

Blocks number of blocks in the tablespace segment

Bytes number of bytes in the tablespace segment

Extents number of extents in the tablespace segment

Max Extents maximum extents allowed in the tablespace segment

Table 33 Tablespace Status and Storage report (part 1 of 2)

Item Description

File I/O

Tablespace Name name of the tablespace

AutoExtend whether the autoextend option is enabled for the tablespace

Exclusion whether the tablespace is excluded from PATROL parameter monitoring

“Excluding parameter alarms” on page 209

Phys Writes number of physical writes on the tablespace

Phys Reads number of physical reads on the tablespace

Blk Writes number of block writes on the tablespace

Blk Reads number of block reads on the tablespace

File Name file name and location of the database file for the tablespace

Storage

Tablespace Name name of the tablespace

% Free percentage of free space in the tablespace

Bytes Free number of bytes that are free in the tablespace

Blocks Free number of free blocks in the tablespace

Max Bytes Free size of largest free extent in bytes

Chapter 6 Monitoring tablespaces, users, and SQL statements 187

Page 188: Oracle K

Using the ETSM applications to monitor tablespaces

Using the ETSM applications to monitor tablespaces

The ORACLE_ETSM application supports the monitoring of both autoextensible and non-autoextensible tablespaces in the database except for those that are excluded. ORACLE_ETSM automatically sorts tablespaces into logical application containers. This method of monitoring tablespaces uses an exception-based approach that monitors tablespaces at one level and initiates additional monitoring only when a problem is detected. This new method of monitoring tablespaces does not replace the original ORACLE_TABLESPACE application monitoring.

The ORACLE_ETSM application discovers and monitors the percent used (PctUsed) and space left (SpaceLeft) for all tablespaces, except those that are excluded from monitoring. It places the tablespaces in ETSM_ tablespaceType applications according to types that are defined by you in the default_auto_config.txt file or by a default sorting method. For more information, see “Defining tablespace types” on page 189.

Autoextensible tablespaces are supported in ETSM monitoring. The SpaceLeft and PctUsed parameters consider the maximum size of a datafile and actual space available on the disk. ETSM monitors the autoextensible tablespaces correctly only when the PATROL Knowledge Module for the operating system is loaded.

Max Blk Free size of largest free extent in blocks

Total Size (Bytes) total size of the tablespace in bytes

Total Size (Blks) total size of the tablespace in blocks

Parameters

Tablespace Name name of the tablespace

Next Extents number of initial extents

Min Extents minimum number of extents allowed by Oracle

Max Extents maximum number of extents allowed by Oracle

% Inc percentage of the extents that were increased

Status the status of the tablespace

Table 33 Tablespace Status and Storage report (part 2 of 2)

Item Description

188 PATROL for Oracle User Guide

Page 189: Oracle K

Defining tablespace types

Defining tablespace types

When you also load the ORACLE_AUTO_CONFIG.kml file, you can define the tablespace types for the ETSM applications in the default_auto_config.txt file. If you do not have ORACLE_AUTO_CONFIG.kml loaded or if you do not have the tablespace types defined in the default_auto_config.txt file, tablespaces identified as undo, rollback, read-only, or temp are monitored by the appropriate ETSM_tablespaceType application, and the remaining tablespaces are monitored by the ETSM_REGULAR application.

To modify the tablespaces to be in different containers or to exclude tablespaces from monitoring, use the PATROL Configuration Manager. For more information, see Chapter 4, “Using PATROL Configuration Manager to modify and migrate configuration” on page 131.

When a tablespace exceeds the thresholds set for PctUsed and SpaceLeft, the ETSM application performs the following actions:

■ 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 35 lists a brief description of the parameters provided by the ETSM_tablespace type applications.

Table 34 ETSM application parameter

Parameter Description

CollPopulateContainers identifies the ETSM tablespaces and sorts them into the correct ORACLE_ETSM_ tablespace type applications. This collector parameter does not have an icon.

Chapter 6 Monitoring tablespaces, users, and SQL statements 189

Page 190: Oracle K

Using regular expressions to choose tablespaces

Table 36 lists a brief description of the parameters provided by the ETSM_TBSP_INSTANCE application.

For more information about parameters, see the PATROL for Oracle online Help.

Using regular expressions to choose tablespaces

PATROL for Oracle enables you to use regular expressions to add and remove tablespaces under ETSM, including the following wildcard (meta) characters:

■ * represents 0 or more characters.■ ? represents a single character.

You can also combine these meta-characters to form a regular expression.

Table 35 ETSM_tablespaceType application parameters

Parameter Description

ColSpaceLeft collects the data for and calculates the SpaceLeft and PctUsed for the tablespaces monitored by the ETSM_tablespace type application classes

PctUsed shows the percentage of space that is allocated in the monitored tablespace

SpaceLeft shows the amount of free space in megabytes in the monitored tablespace

Table 36 ETSM_TBSP_INSTANCE application parameters

Parameter Description

BlkReads shows the total number of logical block reads performed per second on the monitored tablespace during the previous polling interval

BlkWrites shows the total number of logical block writes performed per second on the monitored tablespace during the previous polling interval

PctUsed shows the percentage of space that is allocated in the monitored tablespace

PhyReads shows the total number of physical reads performed per second on the monitored tablespace in the previous polling interval

PhyWrites reports the total number of physical writes performed per second on the monitored tablespace in the previous polling interval

SpaceLeft shows the amount of free space in megabytes in the monitored tablespace

190 PATROL for Oracle User Guide

Page 191: Oracle K

Using regular expressions to choose tablespaces

For auto-configuration, you can use regular expressions in the following tablespace variables:

■ oracle-sid|EXCLUDE_TBS|CLASSIC TS*|■ oracle-sid|DEFAULT_TBS|S?STE*|■ oracle-sid|LARGE_TBS|TS_*|■ oracle-sid|READONLY_TBS||■ oracle-sid|ROLLBACK_TBS||■ oracle-sid|TEMPORARY_TBS||■ oracle-sid|UNDO_TBS||

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:

■ Execute the following command in the system output window:

print(pconfig(“REPLACE“,“/OracleConfig.oracle_sid.ExcludeTablespaces“,“RegularExpression“));

■ 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:

■ /OracleConfig.oracle-sid.DefaultTablespaces■ /OracleConfig.oracle-sid.LargeTablespaces■ /OracleConfig.oracle-sid.VeryLargeTablespaces■ /OracleConfig.oracle-sid.TemporaryTablespaces■ /OracleConfig.oracle-sid.RollbackTablespaces■ /OracleConfig.oracle-sid.UndoTablespaces■ /OracleConfig.oracle-sid.ReadonlyTablespaces

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.

Chapter 6 Monitoring tablespaces, users, and SQL statements 191

Page 192: Oracle K

Activating the ETSM applications

Activating the ETSM applications

The ETSM applications appear only when you load the ORACLE_ETSM.kml file. If you do not want to use the new ETSM monitoring, do not load the ORACLE_ETSM.kml file. For more information on loading KMs, see Chapter 3, “Loading and configuring PATROL for Oracle” on page 69.

Viewing the ETSM reports

The ETSM application provides the Excluded Tablespaces report, which lists the tablespaces that are excluded from monitoring.

The ETSM_tablespaceType applications provide the Monitored Tablespaces report, which lists the tablespaces monitored by the ETSM_tablespaceType instance whose parameters are in an alarm or warning state.

Debugging the ETSM application

In the ETSM application, right-click a sub-application, for example, ETSM_VERY_LARGE, and choose KM Commands => Force Execution with Debug.

Using Space Expert to monitor tablespaces

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.

NOTE The SPACE_EXPERT_ORA application requires that you have Space Expert installed and configured on the monitored instance.

192 PATROL for Oracle User Guide

Page 193: Oracle K

User monitoring overview

Once you find the description of the problem, you can use Space Expert to solve the space problem.

User monitoring overviewPATROL monitors all users on an Oracle server for resource issues. The resources left for users are reflected in the CAPACITY parameters. The USERS parameters shows you a general overview of user activity on the instance.

If your environment has users that use too many CPU resources, are idle too long, block other users, or are blocked by other users, you can set thresholds that declare a user who exceeds the threshold as a problem user. When a user exceeds the threshold, the ProblemUsers parameter goes into an alarm state.

If you need more detail about a user or user session, you can monitor a specific user or user session. If you select a to monitor a user that is logged in, a USERS_INSTANCE icon appears within the USERS application.

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.

Figure 16 displays the hierarchy of the applications that monitor users. The information that each application provides is also displayed.

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.

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.

Chapter 6 Monitoring tablespaces, users, and SQL statements 193

Page 194: Oracle K

USERS parameters

Figure 16 USERS hierarchy

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.

CAPACITY application

reports on availability of resources in the instance, including resources for all users on the instance

INSTANCE application

reports on all users in 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.

194 PATROL for Oracle User Guide

Page 195: Oracle K

USERS parameters

Table 37 USERS parameters

Parameter Description

ActiveCalls reports the number of users with a call to the server currently in process

If this number is too high, examine the server’s performance, the network’s 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:

■ 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 Monitoring tablespaces, users, and SQL statements 195

Page 196: Oracle K

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 USERS_INSTANCE parameters

Parameter Description

USRCpuSeconds 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 PATROL for Oracle User Guide

Page 197: Oracle K

Activating user monitoring

Activating user monitoring

Before you can selectively monitor users, you must select the USERS category. If this category is not selected, the USERS icon does not appear and no user monitoring is performed.

Choose KM Admin => Monitoring Settings from the INSTANCE menu, and enable the USERS category to start monitoring users. The CollUsers parameter collects information during the next polling cycle and populates the consumer parameters. The USERS icon should appear within two polling cycles.

You can also use this menu command to deactivate user monitoring.

Selecting users or user sessions for monitoring

Once the USERS application has been activated, you can select specific users or user sessions to be monitored. Once a user or user session is monitored, a USERS_INSTANCE icon appears in the USERS container, and the parameters for the USERS_INSTANCE instance become active.

Selecting users for monitoring

Select a specific user for monitoring by following these steps:

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.

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.

Chapter 6 Monitoring tablespaces, users, and SQL statements 197

Page 198: Oracle K

Selecting users or user sessions for monitoring

Supported characters are * and ?:

■ * 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.

Selecting user sessions for monitoring

1 Choose User Monitoring => Sessions Monitoring from the USERS menu.

2 Select the users you want to monitor from the Sessions Available list and click Apply.

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 PATROL for Oracle User Guide

Page 199: Oracle K

Monitoring problem users

Monitoring problem users

You can set thresholds to determine when a user or user session becomes a problem user. Problem users are sessions that exhibit one of the following performance behaviors:

■ 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.

Setting problem user thresholds

You can set the minimum and maximum values to use for each threshold setting.

From the USERS menu, choose User Monitoring => Problem User Settings Config, and enter the minimum and maximum values you want to use for the threshold ranges.

Once you have configured the threshold ranges, you can set the actual thresholds.

From the USERS menu, choose User Monitoring=> Problem User Settings, and move the slider to set the thresholds.

Table 39 lists the thresholds that you can set.

NOTE The parameter TIMED_STATISTICS in the init.ora file must be set to TRUE to monitor and determine excessive CPU users

Table 39 Problem User Settings dialog box

Item Description

User Idle how many minutes the user session must remain idle before the session is declared a problem user

User Blocked how many minutes the user session must remain blocked from completing a process before it is declared a problem user

Chapter 6 Monitoring tablespaces, users, and SQL statements 199

Page 200: Oracle K

Viewing the All Problem Users report

Excluding users from problem user monitoring

Some Oracle users, such as applications or department users, regularly exceed the thresholds you want to set for most users. If you do not want to have some users appear as problem users, you can exclude those users from problem user monitoring.

To exclude a user from problem user monitoring, choose User Monitoring => Problem User Exclusion from the USERS menu, and select the users you want to exclude.

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.

Viewing the All Problem Users report

The All Problem Users report lists all users that were detected as problem users.

To run this report, from the USERS menu, choose Reports => All Problem Users, or from the INSTANCE menu, choose KM Admin => Reports => Users => All Problem Users. The information shown in Table 40 is displayed for each user.

User Runaway how many minutes the user session must run a process without returning any data before it is declared a problem user

User CPU Usage percentage of CPU time the user session must use before it is declared a problem user

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.

Table 40 All Problem Users report

Item Description

User ID ID of the user

Session ID ID of the session

User Name user name with which the user is logged in

Reason reason that the user is a problem user

Table 39 Problem User Settings dialog box

Item Description

200 PATROL for Oracle User Guide

Page 201: Oracle K

Viewing the All Problem Users report

The ProblemUsers parameter also creates an annotation that contains the following information:

■ 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.

Finding the process that is blocking a problem user

If a user is blocked, you can find the process that is blocking the user.

From the USERS_INSTANCE menu for a problem user, choose Find Blocking Process.

This command generates a report that lists the process that is blocking the problem user and the user running the process.

If you want to terminate the session that is blocking, choose Kill Session from either the INSTANCE application menu or a specific USERS_INSTANCE application menu.

You must enter an authorized user name and password. After you terminate the user session that is blocking, the problem user can complete its task.

Chapter 6 Monitoring tablespaces, users, and SQL statements 201

Page 202: Oracle K

Viewing other reports on users

Viewing other reports on users

PATROL contains the following reports that provide further information about users and user sessions:

■ 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

These reports are described in the following sections.

Viewing the Active Sessions report

The Active Sessions report lists information about all active user sessions.

Run the report by choosing KM Admin => Reports => Users => Active Sessions from the INSTANCE menu, or Reports => Active Sessions from the USERS menu. Table 41 shows the information that the report provides.

Table 41 Active Sessions report (part 1 of 2)

Item Description

Session Statistics

OS User name of the user for the operating system

Oracle User name of the user in Oracle

Session ID ID of the user session in Oracle

Statistic Name name of the statistic that is currently active

Statistic Value value of the currently active statistic

Session Locks Held

Oracle User name of the user in Oracle

Session ID ID of the user session in Oracle

202 PATROL for Oracle User Guide

Page 203: Oracle K

Viewing other reports on users

Viewing the SQL Statements report

The SQL Statements report lists information about SQL statements that were issued by the current sessions.

Run the report by choosing Reports => SQL Statements from the USERS menu, or KM Admin => Reports => Users => SQL Statements from the INSTANCE menu. Table 42 shows the information that the report provides.

Serial Number Session serial numberThis number uniquely identifies the objects of a session. It guarantees that session-level commands are applied to the correct objects if the session ends and another session begins using the same session ID.

Type type of lock that is held

Resource_id1 lock identifier 1 for the type of lock

Resource_id2 lock identifier 2 for the type of lock

Lock Held user who is holding the lock

Lock Request user who is requesting the lock

Session Details

OS User name of the user for the operating system

Oracle User name of the user in Oracle

Session ID ID of the user session in Oracle

Connect Time in Minutes amount of time in minutes the user has been connected

Table 42 SQL Statements report

Item Description

Username user name that the SQL statement ran under

SID Oracle SID for the session

Name SQL statement that was run

Memory memory that the SQL statement used

Runtime Memory runtime memory that the SQL statement used

Sorts number of sorts retrieved by the SQL statement

Disk Reads number of disk reads the SQL statement generated

Buffers Read number of buffers that were read as a result of the SQL statement

Table 41 Active Sessions report (part 2 of 2)

Item Description

Chapter 6 Monitoring tablespaces, users, and SQL statements 203

Page 204: Oracle K

Viewing other reports on users

Viewing the Display Oracle Users report

The Display Oracle Users report displays all Oracle users on the instance.

Run this report by choosing Reports => Display Oracle Users from the USERS menu, or KM Admin => Reports => Users => Display Oracle Users from the INSTANCE menu. Table 43 shows the information that the report provides.

Viewing the Profiles report

The Profiles report displays all profiles that are available on the instance.

Run this report by choosing Reports => Profiles from the USERS menu, or KM Admin => Reports => Users => Profiles from the INSTANCE menu. Table 44 shows the information that the report provides.

Viewing the Role Information report

The Roles report displays the currently used roles in the instance.

Run this report by choosing Reports => Role Information from the USERS menu, or KM Admin => Reports => Users => Role Information from the INSTANCE menu. Table 45 on page 205 shows the information that the report provides.

Table 43 Display Oracle Users report

Item Description

OS User the username for the operating system

Username the username for Oracle

SPID the system ID number for the session

SID the session identifier for the session

Program the program that is running for the SID

Table 44 Profiles report

Item Description

Profile name of the profile

Resource Name name of the database or system resource

Limit 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 PATROL for Oracle User Guide

Page 205: Oracle K

Viewing other reports on users

Viewing the User Account Info report

The User Account Information report displays statistics and information for the user accounts that you select on the instance.

Run this report by choosing Access this report by choosing Reports => User Account Info from the USERS menu, or KM Admin => Reports => Users => User Account Info from the INSTANCE menu. Table 46 shows the information that the report provides.

Table 45 Role Information report

Field Description

Roles Granted

User or Role user name or name of the role

Granted Role granted role given to the user name

Admin Option whether the username can act as an administrator for that granted role

Default Role whether the granted role is the default

Role System Privileges Report

Role Name name of the role

Privilege privilege granted to the role

Admin Option whether the role can act as administrator

Table 46 User Account Info report (part 1 of 2)

Item Description

User Default/Temporary Tablespaces Report

Username name of the Oracle user

Default Tablespace default tablespace assigned to that user

Temporary Tablespace temporary tablespace assigned to the user

Profile profile assigned to the user

User Tablespace Quotas Report

Username name of the Oracle user

Tablespace tablespace assigned to the user

Quota (Bytes) amount of space that the user can use on the tablespace

A value of -1 indicates there is no limitation.

Used (Bytes) number of bytes that the user has used on the tablespace

Pct Used percentage of the allotted space that the user has used

User System Privileges Report

Username name of the Oracle user

Chapter 6 Monitoring tablespaces, users, and SQL statements 205

Page 206: Oracle K

Viewing other reports on users

Viewing the User Role/Column Privilege report

The User Role/Column Privilege report displays the column and table privileges for the user roles you select.

Run this report by choosing Reports => User Role/Column Privilege from the USERS menu, or KM Admin => Reports => Users => User Role/Column Privilege from the INSTANCE menu. Table 47 shows the information that the report provides.

Viewing the User Session and User Session Data reports

The User Session and User Session Data reports list information about the selected user or users.

Run this report by choosing Reports => User Session from the USERS menu, or KM Admin => Reports => Users => User Session Data from the INSTANCE menu. Select a user or ALL USERS, and then click Accept.

Table 48 shows the information that these reports provide.

Privilege privilege granted to the user

Admin Option whether the privilege granted to the user includes the ADMIN option

Table 47 User Column/Role Privilege report

Item Description

Username name of the Oracle user

Table Name name of table that the column is in

Column Name name of the column that has the object privileges

Privilege privilege granted to the user

Admin whether the privilege granted to the user includes the ADMIN option

Table 48 User Session report (part 1 of 2)

Field Description

Current SQL Commands Report

OS User operating system user name

Oracle User Oracle user name

Session ID ID of the session

SQL Statement SQL statement that was used in the session

Table 46 User Account Info report (part 2 of 2)

Item Description

206 PATROL for Oracle User Guide

Page 207: Oracle K

Viewing other reports on users

User Statistics

OS Users operating system user name

Oracle User Oracle user name

Session ID ID of the session

Stat Name name of the statistic that is reported in this report:

■ 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 value of the statistic

Locks Held/Session Report

Oracle Username Oracle user name

Session ID ID of the session

Serial # serial number for the user session

Type type of lock held by the user session

Resource_id1 first resource that is locked by the user session

Resource_id2 second resource that is locked by the user session

Lock Held the type of lock held :

■ None■ Null■ RS - Row Share■ RX - Row Exclusive■ S - Share■ SRX - Share Row Exclusive■ X - Exclusive

Lock Request user who requested the lock

Table 48 User Session report (part 2 of 2)

Field Description

Chapter 6 Monitoring tablespaces, users, and SQL statements 207

Page 208: Oracle K

Viewing other reports on users

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 User Session Detail report

Field Description

Oracle User Statistics report

OS User ID user name for the operating system account

Oracle User ID user name for the Oracle account

Session ID ID of the session for the username

Statistic Name name of the statistic that is reported in this report:

■ 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

Statistic Value value of each statistic

Oracle Connect Time/Session report

OS User ID user name for the operating system account

Oracle User ID user name for the Oracle account

Session ID ID of the session for the username

Connect Time in Minutes how long the user has been logged in and running

208 PATROL for Oracle User Guide

Page 209: Oracle K

Excluding parameter alarms

Viewing the Users/Objects in SYSTEM report

The Users/Objects in SYSTEM report lists the objects and their owners that are in the SYSTEM tablespace. The following information about the objects is displayed:

■ 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.

Viewing the Users with DBA Role report

The Users with DBA Role report lists all users in the instance that can have DBA privileges.

Run this report from a USERS application menu by choosing Reports => Users with DBA Role.

Excluding parameter alarms The PATROL space parameters go into an alarm state when a tablespace or tablespace object is full. If a tablespace or object does not have available free space or extents, but the tablespace or object is not scheduled to receive anymore data, you can exclude it from being monitored by the space parameters.

Chapter 6 Monitoring tablespaces, users, and SQL statements 209

Page 210: Oracle K

Excluding parameter alarms

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.

You can exclude the following types of objects:

■ tables ■ cluster■ index■ schemas■ partitions■ tablespaces (Locally Managed Tablespaces—UNIFORM 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.

■ 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.

Table 50 AVAILABILITY alarm conditions

Condition Parameter

■ 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

210 PATROL for Oracle User Guide

Page 211: Oracle K

Differences between exclusion types

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.

Differences between exclusion types

You can exclude a tablespace, selected objects in a tablespace, or the schema for a selected user. Figure 17 and the accompanying table describe the differences between the exclusion types:

Figure 17 Exclusion types

Object Menu command Affected objects

Tablespace Exclusion => Tablespace Exclusion Tablespace1 and all objects inside

Table Exclusion => Object Exclusion Table1, Table3, Table5

Cluster Exclusion => Object Exclusion Cluster1, Cluster2

Index Exclusion => Object Exclusion Index1, Index2, Index3, Index4

User schema Exclusion => User Exclusion Only the objects that are owned by the specified user

Partitions Exclusion => Partition Exclusion Partition1, Partition2, Partition3, Partition4 (to exclude Table2 or Table4, you must exclude all partitions contained the table)

Chapter 6 Monitoring tablespaces, users, and SQL statements 211

Page 212: Oracle K

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:

■ 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 PATROL for Oracle User Guide

Page 213: Oracle K

Excluding tablespaces

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.

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:

■ 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.

Chapter 6 Monitoring tablespaces, users, and SQL statements 213

Page 214: Oracle K

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:

■ 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.

4 Click Exit to exit the function.

Excluding objects

Use this task to exclude certain objects in a tablespace from being monitored by the following parameters:

■ ExtentsLeftETF ■ ExtentsLeftPct ■ ExtentsLeft■ FreeSpaceDeficit■ RSExtentsLeftPct■ RSExtentsLeft■ RSSpaceLeftPct■ RSSpaceLeft

1 Select Object Exclusion from the AVAILABILITY menu.

2 Select a tablespace whose objects you want to exclude, and click Accept.

214 PATROL for Oracle User Guide

Page 215: Oracle K

Excluding users from space monitoring

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:

■ Non-partitioned Table■ Non-partitioned Index■ Cluster■ Partition in a Table■ Partition in an Index

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.

Excluding users from space monitoring

Use this task to exclude a particular user schema from being monitored by the space parameters.

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:

■ ExtentsLeftETF ■ ExtentsLeftPct ■ ExtentsLeft■ FreeSpaceDeficit■ RSExtentsLeftPct■ RSExtentsLeft■ RSSpaceLeftPct■ RSSpaceLeft

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

Page 216: Oracle K

Excluding partitions from monitoring

Excluding partitions from monitoring

You can exclude specific partitions from being monitored by PATROL. Since a partition is part of a table, to exclude the table you must exclude all the partitions that create that 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.

Viewing the monitoring settings

Use these tasks to view the tablespaces and objects that have been excluded in an instance.

Viewing the List Monitoring Settings report for a specific instance

Choose KM Admin => List Monitoring Settings from the INSTANCE menu.

The Monitoring Settings report lists all monitoring settings, including the tablespaces that have been excluded.

NOTE The FreeSpace parameter does not take into account whether the segment is a partition or a table.

216 PATROL for Oracle User Guide

Page 217: Oracle K

Monitoring SQL statements

Viewing the List Monitoring Settings report for instances on a server

Choose Configuration => List Monitoring Settings from the ORACLE menu.

The following information is displayed:

■ 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

Monitoring SQL statementsFrom PATROL for Oracle, you can use the following functions to obtain information about SQL commands used in Oracle processes:

■ 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.

SQL Snapshot overview

SQL Snapshot displays the current SQL statement sent by a user or process in the polling cycle. If the process is currently executing an SQL statement, SQL Snapshot displays the name of the SQL statement and the text of the currently executing line within the SQL statement.

Chapter 6 Monitoring tablespaces, users, and SQL statements 217

Page 218: Oracle K

Using SQL Snapshot

Using SQL Snapshot

To capture a long-running SQL statement, perform the following steps:

1 From the INSTANCE menu, choose SQL => Snapshot and select the sorting criteria you want to use:

■ 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.

4 Choose any of the following actions:

■ 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 Some SQL statements run too rapidly to be captured by SQL Snapshot. For these types of statements, consider using SQL Viewer.

NOTE You may need to enter the SYS user name and the password.

218 PATROL for Oracle User Guide

Page 219: Oracle K

SQL Viewer tables

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.

SQL Viewer tables

The SQL Viewer utility captures SQL statements submitted to the Oracle server. SQL statements are captured at certain intervals that you set by specifying the scheduling of the CollSqlViewer parameter in the COLLECTORS application. The SQL Viewer stores information about the activities that occur on an SQL statement and the statistics related to the statement.

SQL Viewer captures information in the following tables:

■ 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.

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.

Chapter 6 Monitoring tablespaces, users, and SQL statements 219

Page 220: Oracle K

Activating SQL Viewer

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.

Activating SQL Viewer

Before you can begin capturing SQL statements, you must activate the SQLVIEWER application.

From the INSTANCE application, choose KM Admin => Monitoring Settings.

To change the time interval at which SQL statements are captured from the SGA, change the schedule of the CollSqlViewer parameter. The default polling time for CollSqlViewer is 30 minutes.

Starting and stopping SQL Viewer

After you activate the SQLVIEWER application, you can start capturing SQL statements from the V$SQL dynamic view.

To start SQL Viewer, choose Start Recording from the SQLVIEWER menu and click Accept. SQL Viewer begins recording all SQL statements sent in the monitored database.

To see the SQL information, run the SQL Viewer reports.

To stop SQL Viewer, choose Stop Recording from the SQLVIEWER menu, and click Accept.

Viewing SQL Viewer reports

You can use the SQL Viewer reports to determine if the SQL statements being processed on the instance should be tuned. You can run a standard report or a detail report.

220 PATROL for Oracle User Guide

Page 221: Oracle K

Viewing SQL Viewer reports

Use any of the following reports to identify statements that should be pinned in the SGA:

■ 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.

Viewing the SQL Viewer Standard report

The SQL Viewer Standard report lists the SQL statements in the SQL Viewer and the accompanying statistics that you select. Table 51 shows the statistics that this report can provide.

To view this report, choose Reports => Standard Report from the SQLVIEWER menu. Then select the following items from the dialog box:

■ statistic to display in the report■ user to report on■ beginning and end date range■ number of rows for the report to return.

NOTE You must stop the SQL Viewer collection before you can run any reports.

Table 51 SQL Viewer statistics

Statistic Description

Buffer Gets number of buffer gets read for this SQL statement to approximate CPU utilization for the statement

Disk Reads number of disk reads for this SQL statement

Executions number of times this SQL statement has been executed

Invalidations number of times this SQL statement has been invalidated

Loads number of times this SQL statement has been loaded

Parse Calls number of times this SQL statement has been parsed

Persistent Memory persistent memory in bytes used by this SQL statement

Runtime Memory runtime memory in bytes used by this SQL statement

Sharable Memory sharable memory in bytes used by this SQL statement

Sorts number of sorts that was done for this SQL statement

Chapter 6 Monitoring tablespaces, users, and SQL statements 221

Page 222: Oracle K

Viewing SQL Viewer reports

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.

Viewing the SQL Viewer Detail report

The SQL Viewer Detail report lists the SQL statements in the SQL Viewer and the all statistics for each statement, sorted by the sort criteria you specify. Table 51 on page 221 shows the statistics that you specify.

To view this report, choose Reports => Detail Report from the SQLVIEWER menu. Then select the following items from the dialog box:

■ 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 52 SQL Viewer standard report

Item Description

SQL Text text of the SQL statement

Statistic statistic that you selected for the SQL statement

Parsing User user who originally ran this SQL statement

Table 53 SQL Viewer Detail report

Item Description

SQL Text text of the SQL statement

First Loaded time and user who first loaded the statement

Statistics values for the following statistics for each SQL statement are listed:

■ Sharable_mem■ Persistent_mem■ Runtime_mem■ Buffer_gets■ Executions■ Users_executing■ Sorts■ Loaded Versions■ Invalidations■ Disk reads■ Loads ■ Parse Calls

222 PATROL for Oracle User Guide

Page 223: Oracle K

Archiving SQL Viewer data

Archiving SQL Viewer data

After you have collected the SQL statements, you can delete the data that has been collected from the SQL Viewer tables and save it in flat files for later viewing in a text editor. The data is deleted from the current SQL Viewer tables, leaving them empty for another collection.

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:

■ 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.

Terminating SQL Viewer sessions

You can view the SQL statements for a particular user session. If a session’s SQL statement is taking more CPU or resources than necessary, you can terminate the session.

To view the text of a user session, choose SQL => Viewer => Kill Session from the INSTANCE menu. Select the user session whose SQL statement you want to see, click View SQL and click Accept.

The SQL statement for the selected user session appears in a response box. Analyze the statement to determine whether the user session should be terminated.

Click Accept to close the response box and return to the Current Active Users dialog box, or click Cancel to close the dialog box.

To terminate a use session, choose SQL => Viewer => Kill Session from the INSTANCE menu. Select the user session that you want to kill, click Kill Session, and click Accept.

NOTE The SQL Viewer must be stopped before you can archive the data.

Chapter 6 Monitoring tablespaces, users, and SQL statements 223

Page 224: Oracle K

Where to go from here

Enter the authorized user name and password (SYS or DBA) in the entry fields and click Accept. The session is immediately terminated.

Where to go from hereThe following table suggests topics:

Topic Source of information

how to monitor instance health using PATROL for Oracle

Chapter 7, “Monitoring instance health” on page 225

how to monitor Oracle options using PATROL for Oracle

Chapter 8, “Monitoring Oracle options” on page 271

how to monitor the the RAC environment

Chapter 9, “Monitoring the RAC environment” on page 293

how to access the KM menu commands, InfoBoxes, and online Help

Appendix A, “Accessing menu commands, InfoBoxes, and online Help” on page 313

definitions and default values for parameters

PATROL for Oracle online Help

consumer and collector parameter dependencies

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 PATROL for Oracle User Guide

Page 225: Oracle K

C h a p t e r 7

7 Monitoring instance health

This chapter presents the following topics:

Reports and tuning . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 226Alerts parameter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 226Availability reports . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 228Backup and recovery reports . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 234Capacity reports. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 237Database reports . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 240SGA reports . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 246

Batch reporting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 249Batch Scheduler examples . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 250Adding a job to the scheduler . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 251Adding a report to the scheduler . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 253Specifying the time the job or report should run . . . . . . . . . . . . . . . . . . . . . . . . . . 254Using the Scheduler log file . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 254Checking the status of a scheduled job or report . . . . . . . . . . . . . . . . . . . . . . . . . . 255Checking the settings for a job or report . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 255Deleting a job from the scheduler . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 255

Automated recovery actions. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 256Compressing or moving log files . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 256Resizing the next extent . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 256

HTML reporting. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 257Requirements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 258Setting up HTML reporting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 260Configuring HTML reporting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 260Configure FTP information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 262Updating the server.xml file . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 263Viewing and modifying HTML reporting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 268

Where to go from here. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 270

Chapter 7 Monitoring instance health 225

Page 226: Oracle K

Reports and tuning

Reports and tuningUse the following parameters and reports from PATROL for Oracle to determine if the Oracle server, tablespace, or objects need any adjustments or tuning:

■ 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 ORA-006XX 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.

After making changes to the error strings, you must deactivate and reactivate the Alerts parameter so that the changes can take effect.

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.

226 PATROL for Oracle User Guide

Page 227: Oracle K

Alerts parameter

Viewing error messages

You can view error messages of the following types:

■ 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.

Searching and determining the meaning of error codes

You can also search the alert log for a specific error message string. You might, for example, search for a specific error message if you think the error occurred in the instance.

Search the alert log for a search string by using Reports => Alerts =>Enter Search String from the INSTANCE menu.

You can also use the Oracle Error Code Lookup facility from PATROL to find the meaning of an error message.

Choose Oracle Server Admin => Oracle Error Code Lookup from the INSTANCE menu.

■ 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.

Chapter 7 Monitoring instance health 227

Page 228: Oracle K

Availability reports

Availability reports

PATROL provides the following reports to determine space, lock and extent availability on the instance:

■ 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

Getting space and lock information

Use the reports in this section to determine space availability and lock information.

Determining free space in tablespaces

The Free Space report provides free space information for all tablespaces on the instance.

Choose Reports => Availability => Free Space from the INSTANCE menu, or Reports => Free Space from the AVAILABILITY menu.

The report appears in a text window. Table 54 shows the information that the report provides.

Table 54 Free Space report

Item Description

Tablespace Name name of the tablespace

Total Space total space allocated to the tablespace

Space Used space used in the tablespace

Space Left free space in the tablespace

Percent Free percentage of free space available in the tablespace

228 PATROL for Oracle User Guide

Page 229: Oracle K

Availability reports

Determining how much space an object is using

The Object Space Analysis report provides information about the size of the object and the number and size of its extents.

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.

Determining if objects are using too much space

The Space Usage by Object report provides information about the size and space of the object.

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.

Table 55 Object Space Analysis report description

Item Description

Object Name name of the object

Size (bytes) size of the object in bytes

Size (blk) size of the object in blocks

Extents number of extents in the rollback segment

Next Extent size of the next extent to be allocated to the segment

Min Extents minimum number of extents that are allowed in the segment

Max Extents maximum number of extents that are allowed in the segment

% Inc percentage to use to increase the size of the next allocated extent

Chapter 7 Monitoring instance health 229

Page 230: Oracle K

Availability reports

Table 56 shows the information that the report provides.

Table 56 Space Usage By Object report

Item Description

Report for table

Tablespace Name name of the tablespace

% Free minimum percentage of free space in a block

% Used minimum percentage of used space in a block

Init Trans initial transactions

Init Extent size of the initial extent in the table

Next Extent size of the next extent to be allocated to the segment

Min Extents minimum number of extents allowed in the segment

Max Extents maximum number of extents allowed in the segment

% Inc percentage to use to increase the size of the next allocated extent

Blocks size in blocks of the table

Report for index

Tablespace Name name of the tablespace that the index is in

Table Name name of the table that the index exists on

Table Type type of the table

Status status of the index, either DIRECT LOAD or INVALID

Uniqueness uniqueness status of the index, either UNIQUE or NONUNIQUE

Init Extent size of the initial extent in the table

Next Extent size of the next extent to be allocated to the segment

Min Extents minimum number of extents allowed in the segment

Max Extents maximum number of extents allowed in the segment

% Inc percentage to use to increase the size of the next allocated extent

Report for cluster

Tablespace Name name of the tablespace that the cluster exists in

Cluster Type type of the cluster

% Free minimum percentage of free space in a block

% Used minimum percentage of used space in a block

Init Trans initial transactions

Init Extent size of the initial extent in the table

Next Extent size of the next extent to be allocated to the segment

Min Extents minimum number of extents allowed in the segment

Max Extents maximum number of extents allowed in the segment

% Inc percentage to use to increase the size of the next allocated extent

230 PATROL for Oracle User Guide

Page 231: Oracle K

Availability reports

Determining lock conflicts

The Lock Conflicts report provides information about current conflicting locks.

Choose Reports => Availability => Lock Conflicts from the INSTANCE menu, or Reports => Lock Conflicts from the AVAILABILITY menu. If no conflicting locks exist, you are informed via a response box.

All sessions, with their SID and serial number, are listed in the report. Table 57 shows the information that the report provides.

Getting extent information

The following parameters monitor extent problems with tablespaces and tablespace objects:

■ CannotExtend ■ ExtentsLeft ■ ExtentsLeftETF ■ ExtentsLeftPct ■ FreeSpaceDeficit ■ RSExtentsLeft ■ RSExtentsLeftPct

You can also run the following reports:

■ Auto Extend DBFiles Report ■ Free Space Deficit Report ■ Maximum Extents Report ■ Temporary Extents Report

Table 57 Lock conflicts report

Item Description

Wait User Name name of the user that is waiting for a lock

Wait UID ID of the user that is waiting for a lock

Lock Type type of lock the object is waiting for

Lock Object object that is locked

Wait Lock Mode mode of waiting that the object is using

Hold User Name name of the user that is holding the lock

Hold UID ID of the user that is holding the lock

Hold Lock Mode mode of the holding lock

Chapter 7 Monitoring instance health 231

Page 232: Oracle K

Availability reports

Running the AutoExtend DBFiles report

The AutoExtend DBFiles report lists the database files that have the autoextend feature enabled.

Choose Reports => Availability => Auto Extend DBFiles Report from the INSTANCE menu, or Reports => Auto Extend DBFiles Report from the AVAILABILITY menu.

The report appears in a text window. Table 58 shows the information that the report provides.

Running the Free Space Deficit report

The Free Space Deficit report lists all database objects which have insufficient space to allocate their next extent.

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 58 AutoExtend DB Files report description

Item Description

Tablespace Name tablespace name

DB File Name database file name

Next Extent size of the next extent

Max Extent maximum number of extents

Header File header file for the database file

Table 59 Free Space Deficit report

Item Description

Next Extent size of the next extent

Max Available size of the largest extent that is available

Deficit difference between the size of the next extent and the size of the largest extent that is available

Type type of segment that does not have enough extent space

Segment Name segment name that does not have enough extent space

Tablespace tablespace that the segment is in

Owner owner of the tablespace that the segment is in

232 PATROL for Oracle User Guide

Page 233: Oracle K

Availability reports

Finding the maximum extents for all tablespaces

The Maximum Extents report lists the extent information for tablespaces in the instance.

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.

Getting tablespace temporary extent information

The Temporary Extents report lists all temporary segments which have reached 50 percent or more of their maximum extents limit.

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.

Table 60 Maximum Extents report

Item Description

Segment name of the segment that has reached the threshold

Type type of segments

Tablespace tablespace that the segment is in

Current Extents current number of extents that the segment has

Max Extents maximum number of extents that the segment can have

Extents Left number of extents that the segment has left

Pct Max percentage of the maximum number of extents that the segment has reached

Chapter 7 Monitoring instance health 233

Page 234: Oracle K

Backup and recovery reports

The following information is displayed for each segment:

■ 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

Backup and recovery reports

The following reports give information about the backup status and recovery settings of the instance:

■ Archiving State■ Backup Status■ Log History■ Media Recovery■ Redo Log Files

Viewing backup status information

The Backup Status report provides the backup status of all datafiles in the instance.

1 Choose Reports => Backup and Recovery => Backup Status from the INSTANCE menu.

2 Select a datafile or select ALL DATAFILES, and click Accept.

234 PATROL for Oracle User Guide

Page 235: Oracle K

Backup and recovery reports

Table 61 shows the information that the report provides.

Viewing the archiving state of the instance

The Archiving State report shows the archiving status of the database and the database files.

Choose Reports => Backup and Recovery => Archiving State from the INSTANCE menu.

Table 62 shows the information that the report provides.

Table 61 Backup Status report

Item Description

Enabled mode that is enabled for the datafile

Status type of file (system or user) and its status:

■ OFFLINE

■ ONLINE

■ SYSTEM

■ RECOVER

■ SYSOFF (an offline file from the SYSTEM tablespace)

Last Checkpoint SCN SCN at last checkpoint

Start Time timestamp of the datafile creation

File datafile path and file name

Table 62 Archiving State report description

Item Description

Database log mode log mode of the database:

■ ARCHIVELOG■ NOARCHIVELOG

Automatic archival whether the automatic archival option is set to TRUE or FALSE

Archive destination directory the archive should be saved to

Chapter 7 Monitoring instance health 235

Page 236: Oracle K

Backup and recovery reports

Viewing recovery information

Use the following reports to view information necessary for successful recovery of a database.

Viewing log History information

Choose Reports => Backup and Recovery => Log History from the INSTANCE menu.

The name of the archived log file for every log in the database is listed in a text window.

Viewing media recovery information

Choose Reports => Backup and Recovery => Media Recovery from the INSTANCE menu.

Table 63 shows the information that the report provides.

Viewing redo log file information

The Redo Log Files report shows the status and size of the redo logs.

Choose Reports => Backup and Recovery => Redo Log Files from the INSTANCE menu.

Table 64 shows the information that the report provides.

Table 63 Media Recovery report description

Item Description

Thread number of the redo thread used by the instance

Sequence log sequence number

Archive Name name of the archive

Time time the archive log was last written to

Table 64 Redo Log report description

Item Description

Group group the redo log file is in

Redo Log File Name name of the redo log file

Status status of the redo log file

Size (Bytes) size in bytes of the redo log file

Archived whether the redo log file is archived

236 PATROL for Oracle User Guide

Page 237: Oracle K

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:

■ 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.

Determining capacity use on an instance

Use the reports in this section to determine how much of the Oracle resources have been used by the users, transactions, and processes on the instance. You can also determine the statistics on the DB object cache and the shared SQL area.

Accessing statistics for the instance

The Access Statistics report lists the numbers and types of access on the database objects.

Choose Reports => Capacity => Access Statistics from the INSTANCE menu, or Reports => Access Statistics from the CAPACITY menu for the instance. The report appears in a text window.

Table 65 shows the information that the report provides.

Table 65 Access Statistics report (part 1 of 2)

Item Description

Owner owner of the object

Name name of the object

Type type of database object

Chapter 7 Monitoring instance health 237

Page 238: Oracle K

Capacity reports

Viewing resources used on the instance

The Resources Used report lists the current values of the following parameters compared with the maximum value defined in each init.ora file:

■ OpenCursors■ LocksUsed■ ProcsUsed■ SessionsUsed■ TransactionsUsed

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.

Namespace library cache namespace of the object:

■ TABLE/PROCEDURE■ BODY■ TRIGGER■ INDEX■ CLUSTER■ OBJECT

Memory amount of memory the object uses

Loads number of times the object has been loaded

This count also increases when an object has been invalidated

Executions number of executions on the object

Locks number of users currently locking this object

Pins number of users currently pinning this object

Buffers number of buffers on the object

Table 65 Access Statistics report (part 2 of 2)

Item Description

238 PATROL for Oracle User Guide

Page 239: Oracle K

Capacity reports

Tracing files space analysis for the instance

Use this report to determine if trace files are taking up too much space on the instance.

Choose Reports => Capacity => Trace Files Space Analysis from the INSTANCE menu, or Reports => Trace Files Space Analysis from the CAPACITY menu.

The following values are displayed in the report:

■ Background dump space left■ Background dump space used

BACKGROUND_DUMP_DEST specifies the path name for a directory where debugging trace files for the background processes (LGWR, DBWR, and so on) are written during Oracle operations.

■ Core dump space left■ Core dump space used

CORE_DUMP_DEST specifies the directory where core files are dumped.

■ User dump space left ■ User dump space used

USER_DUMP_DEST specifies the pathname for the directory where the server writes debugging trace files on behalf of a user process.

Wait State Analysis report

The Wait State Analysis report shows information about wait events in the database.

Choose Reports => Capacity => Wait State Analysis from the INSTANCE menu, or Reports => Wait State Analysis from the CAPACITY menu for the instance.

Table 66 shows the information that the report provides.

Table 66 Wait State Analysis report (part 1 of 2)

Item Description

User Name name of the user session

Command command in progress, or the last statement parsed

Schema Name schema user name

OS User operating system client user name

OS PID operating system client process ID

Chapter 7 Monitoring instance health 239

Page 240: Oracle K

Database reports

Determining lock problems

Use the Locks Outstanding report to determine if there are any outstanding locks on the instance.

1 Choose Reports => Capacity => Locks Outstanding from the INSTANCE menu, or Reports => Locks Outstanding from the CAPACITY menu.

2 Select one of the following options, and click Accept.

■ 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.

Database reports

Use the following reports to get information about the database files:

■ Database Files ■ Oracle License Limits ■ Parameter File (init.ora) ■ Schema Table Information

Wait Event resource or event for which the session is waiting.

SQL Statement column containing one piece of the SQL text

Table 67 Locks Outstanding report

Item Description

User Name name of the user with a lock that is outstanding

Session ID SID of the user with the outstanding lock

Lock Object object that the outstanding lock is for

Table 66 Wait State Analysis report (part 2 of 2)

Item Description

240 PATROL for Oracle User Guide

Page 241: Oracle K

Database reports

Use the following reports to get information about the functions, packages, procedures, and triggers used in the database:

■ Schema Functions ■ Schema Packages ■ Schema Procedures ■ Schema Triggers

Use the following reports for information about activity in the database:

■ Rollback Segments ■ Statistic Summary

Getting basic database information

Use the following reports to get database file information, the schema information, and init.ora parameter settings for the database.

Database file information

Use this report to obtain information about the data files, redo files, and control files used in the instance.

Choose Reports => Database => Database Files from the INSTANCE menu.

Viewing schema table information

The Schema Table Info report provides constraints, storage parameters, and storage allocation for the tables in a schema.

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 Schema Table Information report (part 1 of 2)

Item Description

Report 1 - lists all table constraints ordered by owner and table name

Constraint Name name of the constraint

Type type of constraint

Owner owner of the table

Table Name name of the table

Chapter 7 Monitoring instance health 241

Page 242: Oracle K

Database reports

Oracle license information

The Oracle License Limits report displays the current values of the following Oracle parameters:

■ license_max_sessions ■ license_max_users■ license_sessions_warning

Choose Reports => Database => Oracle License Limits from the INSTANCE menu.

Status status of the table

Report 2 - lists the storage parameters for all tables ordered by owner and table name

Table Name name of the table

Tablespace Name name of the tablespace that the table is in

Init Extent the size of the initial extent in the tablespace

Next Extent the size of the next extent in the tablespace

Min Ext minimum number of extents allowed in the segment

Max Ext maximum number of extents allowed in the segment

Pct percentage to use to increase the size of the next allocated extent

Report 3 - lists storage allocated for all table segments ordered by owner and table name

Table Name name of the table

Tablespace Name name of the tablespace that the table is in

Bytes number of bytes in the table

Extents number of extents in the table

Report 4 - lists table column information ordered by owner, table_name, and column_id

Table Owner owner of the table

Table Name name of the table

Column name of the column

Column ID ID of the column

Report 5 - lists storage allocated for all segment types, except Table, ordered by owner and segment name

Table Name name of the table

Segment Type name of the segment in the table

Tablespace Name name of the tablespace the table is in

Bytes number of bytes in the tablespace

Extents number of extents in the tablespace

Table 68 Schema Table Information report (part 2 of 2)

Item Description

242 PATROL for Oracle User Guide

Page 243: Oracle K

Database reports

Oracle init.ora information

The Parameter File (init.ora) report displays the current value of selected init.ora parameters.

Choose Reports => Database => Parameter File (init.ora) from the INSTANCE menu. Select the parameters that you want to view or select Select All Parameters, and click Accept.

Table 69 shows the information that the report provides.

Getting function, package, procedure and trigger information

Use the following reports to get information about the functions, packages, procedures, and triggers used in the database.

1 From the INSTANCE menu, choose one of the following reports:

■ Reports => Database => Schema Function Info ■ Reports => Database => Schema Package Info■ Reports => Database => Schema Procedure Info■ Reports => Database => Schema Trigger Info

2 Select a schema, or select ALL SCHEMAS, and click Accept.

The report appears in a text window. The following items are displayed on each report:

■ owner of the object■ name of the object■ status of the object■ date and time that the object last executed

Table 69 Parameter File init.ora report

Item Description

Name name of the parameter

Type type of the parameter:

■ string■ boolean■ integer

Value value or setting of the parameter

Chapter 7 Monitoring instance health 243

Page 244: Oracle K

Database reports

Getting database activity information

Use the following reports to get information about the rollback segment activity and statistic activity on the instance.

Viewing rollback segment activity information

The Rollback Segment report displays information about the rollback segments in the database.

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 Rollback Segments report

Item Description

Report 1

Segment Name name of the segment

Tablespace Name tablespace that the segment is in

Owner the owner of the tablespace

Status the status of the segment

Bytes the size in bytes of the segment

Blocks the size in blocks of the segment

Extents the number of extent to the segment

Init Extents the size of the initial extent in the tablespace

Min Extents minimum number of extents allowed in the segment

Max Extents maximum number of extents allowed in the segment

% Inc percentage to use to increase the size of the next allocated extent

Report 2

Segment Name name of the segment

Writes number of writes to the segment

Gets number of header gets

Waits number of header waits

Wraps number of times rollback segment is wrapped

Extends number of times rollback segment size is extended

Ave Shrinks average number of times the size of a rollback segment decreased

Ave Active average number of active extents

244 PATROL for Oracle User Guide

Page 245: Oracle K

Database reports

Instance statistics information

The Statistic Summary report displays information about system values, system events, block contentions, and rollback segments in the database.

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.

Table 71 shows the information that the report provides.

Table 71 Statistic Summary report (part 1 of 2)

Item Description

System Wide Values

Name name of the statistic class:

■ User■ Redo■ Enqueue■ Cache■ OS■ Parallel Server■ SQL ■ Debug

Value value of the statistic

Statistics of Rollback Segments

Rollback Segment rollback segment number

Status rollback segment status

Extents number of extents in rollback segment

RS Size size in bytes of rollback segment

Writes number of bytes written to rollback segment

Transactions number of active transactions

Gets number of header gets

Waits number of header waits

Shrinks number of times the size of a rollback segment decreases

Wraps number of times that the rollback segment is wrapped

Extends number of times that the rollback segment size is extended

System Events

Event Name name of the wait event

Total Waits total number of waits for this event

Total Timeouts total number of timeouts for this event

Chapter 7 Monitoring instance health 245

Page 246: Oracle K

SGA reports

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.

■ 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.

Getting SGA memory information

Use the following reports to get information about the components that are in the SGA and the activity in the shared pool in the SGA.

SGA memory information

The SGA Memory Analysis report shows how the SGA components are using memory.

Time Waited total amount of time waited for this event, in hundredths of a second

Average Wait average amount of time waited for this event

Block Contentions

Class class of block

Wait Count number of waits by this operation for this class of block

Wait Time sum of all wait times for all the waits by this operation for this class of block

Table 71 Statistic Summary report (part 2 of 2)

Item Description

246 PATROL for Oracle User Guide

Page 247: Oracle K

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.

SGA shared pool information

The Shared Pool report shows how memory is being used in the SGA shared pool.

Choose Reports => SGA => Shared Pool from the INSTANCE menu, or Reports => Shared Pool from the SGA menu.

Table 73 shows the information that the report provides.

Table 72 SGA Memory Analysis report

Item Description

SGA Component Name SGA component name

Size (bytes) Size of the SGA memory in bytes

Table 73 Shared Pool report

Item Description

Name Space name of the library cache namespace

Gets number of times a lock was requested for this namespace

Get Hits number of times a lock was requested and granted for this namespace

Get Hit Ratio percentage of all attempts to lock library cache entries that were immediately successful

Pins number of times a library cache entry was executed in this namespace

Pin Hits number of times a library cache entry was successfully executed

Pin Hit Ratio percentage of all attempts to access a library cache entry that were immediately successful because the entry was present in its entirety

Reloads number of times a library cache entry was reloaded into the cache

Invalidations total number of times library cache entries were marked invalid because a dependent object was modified

Chapter 7 Monitoring instance health 247

Page 248: Oracle K

SGA reports

Getting buffer pool and buffer cache information

The following reports provide information about buffer pool use. All objects that are currently in the buffer cache except those owned by SYS are reported.

Viewing buffer cache information

Choose Reports => SGA => Buffer Cache from the INSTANCE menu, or Reports => Buffer Cache from the SGA menu.

Table 74 shows the information that the report provides.

Table 74 Buffer Cache Contents report

Item Description

Object Name name of the object currently in the buffer cache

Object Type type of the object currently in the buffer cache

Header Blocks number of headers in the buffer cache

Data Blocks number of data blocks in the buffer cache

CR Blocks number of consistent blocks in the buffer cache

Summary Section

Data dictionary headers number of headers from the data dictionary

Data dictionary data number of data dictionary blocks in the buffer cache

Data dictionary consistent read number of consistent reads in the data dictionary

Free buffers number of free buffers

Rollback segment headers number of rollback segment headers in the buffer cache

Rollback segment entries number of rollback segment entries

Unknown segment general number of unknown segments

Unknown segment consistent read number of consistent reads for unknown segments

User objects headers number of user object headers in the buffer cache

User Objects Data number of user objects data in the buffer cache

User objects consistent read number of consistent reads on user objects

Total total number of objects, headers, and segments in the buffer cache

248 PATROL for Oracle User Guide

Page 249: Oracle K

Batch reporting

Viewing buffer, dictionary, and library cache information

This report lists buffer, dictionary, and library cache information for the instance. The values for the following parameters are listed:

■ BuffHitRatio■ BuffBusyRate■ DictHitRatio■ LibGetHitRatio■ LibGetPinRatio

Choose Reports => SGA => Buffer/Lib/Dict Cache Info from the INSTANCE menu, or Reports => Buffer/Lib/Dict Cache Info from the SGA menu.

Viewing redo log cache information

This report lists the ratio of gets to misses for the redo log buffer cache. Use this report to ensure there are no wait conditions in the redo log buffer cache.

Choose Reports => SGA => Redo Logs Buffer Cache from the INSTANCE menu, or Reports => Redo Log Buffer Cache from the SGA menu.

Batch reportingYou 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:

■ SQL Script—a script file that runs a SQL script■ OS Command—an operating system command or an executable file■ PSL Script—a script file that runs a PSL script

All scripts and commands are stored and run on the host computer, not the console computer.

You can schedule to run any of the reports contained in PATROL for Oracle.

NOTE Selecting the PSL Script option does not generate any output. The results of the job are not displayed by the Batch Scheduler.

Chapter 7 Monitoring instance health 249

Page 250: Oracle K

Batch Scheduler examples

You can set the following types of schedules:

■ Once—the job or report runs once at the specified time

■ Daily Once—the job or report runs every day at the specified time

■ Daily Recur—the job or report runs every day at a specified time interval

■ Weekly Once—the job or report runs every week at the specified time and day of the week

■ Weekly Recur—the 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:

Batch Scheduler examples

Output Mode Description

Text Window Output is sent to a text window. All reports are appended to the text window.

Annotation 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.

Log File 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.

EXAMPLE SQL script

You want to periodically pull data from a view. You create a SQL script file that contains the commands, and schedule the SQL script to run every Friday at 3:00 p.m. You select the output type Log File so that you can easily save the results for later use.

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 PATROL for Oracle User Guide

Page 251: Oracle K

Adding a job to the scheduler

Adding a job to the scheduler

To schedule a job to the Batch Scheduler, you must enter the information about the job and the schedule to use for the job.

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:

■ PSL Script ■ SQL Script■ OS Command

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:

■ Always—PATROL always sends the results to the output type you specified.

■ Job Succeeds—PATROL only sends the results when the job succeeds.

■ Job Fails—PATROL only sends the results when the job fails.

■ Job Completes—PATROL sends the results when the job completes, whether it succeeds or fails.

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.

Chapter 7 Monitoring instance health 251

Page 252: Oracle K

Adding a job to the scheduler

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 criteria’s that are relevant to the script or the command. PATROL does not perform any check on the job criteria’s.

7 (Optional) In Actions When Done, select whether to delete the job when it has completed.

8 Enter the command-line instructions to use in Command Text, and if applicable, a description of the job in Description.

If you are running a batch file on Microsoft Windows, you must place double quotation marks (“) around any directories with spaces in them.

9 Click Apply.

Where to go from here

After you have entered the job or report to run, specify the time and day that it should run. See “Specifying the time the job or report should run” on page 254.

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.

NOTE You can modify a job by choosing Scheduler Admin => Schedule Jobs => Modify Job from the INSTANCE menu.

252 PATROL for Oracle User Guide

Page 253: Oracle K

Adding a report to the scheduler

Adding a report to the scheduler

To add a report to the Scheduler, you must select the report, enter information about the report, and create the schedule to run the report.

1 Choose Scheduler Admin => Schedule Jobs => Add Report from the INSTANCE menu.

2 Select the report from the Select a Report list.

If you select a report that requires more specific information, such as a user name or the name of a tablespace or object, the appropriate selection boxes are displayed.

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:

■ Always—PATROL always sends the results of the report to the output type you specified.

■ Job Succeeds—PATROL only sends the results of the report when the job succeeds.

■ Job Fails—PATROL only sends the results of the report when the job fails.

■ Job Completes—PATROL 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.

Chapter 7 Monitoring instance health 253

Page 254: Oracle K

Specifying the time the job or report should run

Specifying the time the job or report should run

After you have entered the job or report to run, you need to specify the time and day that it should run.

Specify the time and day for the job or report to run:

■ 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.

Using the Scheduler log file

If you specify Log File Output for any job or report, the results are sent to a log file on the agent. The log file stores all results so that they can be filtered. For instance, if you wanted to look at the results from a SQL script that you scheduled to run, you can look at only those results.

To view the log file, choose View Log File Admin => List Log File from the INSTANCE menu. Select the job whose results you want to view, or select All jobs, and click Apply.

You can move only certain results from the log file into another text file. Once moved, the resulting file can be viewed with any text editor.

To move the log file to another directory, choose View Log File Admin => Move Log File from the INSTANCE menu and click Apply. Enter the new directory for the log file. The log file must always be on the agent.

Because the results from each iteration of a job are saved in the log file, you may want to periodically move records out of the log file. Otherwise, the log file can become too large to filter quickly.

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.

254 PATROL for Oracle User Guide

Page 255: Oracle K

Checking the status of a scheduled job or report

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.

Checking the status of a scheduled job or report

You can check the overall status of a scheduled job or report by choosing Scheduler Admin => Schedule Status from the INSTANCE menu. The following table describes each status:

Checking the settings for a job or report

To check the settings for a particular job or report, choose Scheduler Admin => Schedule Settings from the INSTANCE menu. Select the job or report from the list and click Apply. The settings for the job or report are displayed.

Deleting a job from the scheduler

To delete a job from the scheduler, choose Scheduler Admin => Terminate Schedule from the INSTANCE menu. Select the job to delete from the scheduler and click Apply.

Status Description

Successful the job ran with no problems

Abort the job was stopped through the scheduler

Finished no more iterations are scheduled

Failed the job failed to run, generally because of privilege problems

Outdated the starting or end date was incorrect

Active the job has not run yet, but it is scheduled to run in the future

Skipped the job was skipped due to instance exceptions such as blackout periods or monitoring suspension

Chapter 7 Monitoring instance health 255

Page 256: Oracle K

Automated recovery actions

Automated recovery actionsYou can set an automated recovery to compress or move archive files. If the ArchFreeSpace or the FreeSpaceDeficit parameter goes into an alarm state, the recovery action that you set is executed.

Compressing or moving log files

You can set the recovery action to either to compress or to move the log files on the server you are monitoring.

To check on the recovery actions that have been set, select Recovery Admin => Display Recovery Settings to list the automated recovery action settings.

1 Choose Recovery Admin => Log File Recovery Admin from the AVAILABILITY menu.

2 Select one of the recovery action radio buttons, and click Accept:

■ Compress Logs automatically compresses the log files into a compressed file when no more space is left in the log file directory.

■ 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.

Resizing the next extent

Use the Resize Next Extent automated recovery option to resize the next extent when a tablespace runs out of extents. This option is executed when the FreeSpaceDeficit parameter goes into alarm an alarm state. You can set this option for tables, indexes, and clusters. When the FreeSpaceDeficit parameter goes into alarm, the specified object’s next extent is resized.

NOTE The Compress Log Files and Move Log Files recovery actions are not available on an OpenVMS host or a Microsoft Windows host.

256 PATROL for Oracle User Guide

Page 257: Oracle K

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 reportingHTML 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.

Chapter 7 Monitoring instance health 257

Page 258: Oracle K

Requirements

Figure 18 HTML reporting overview

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.

Index Page lists all instances monitored by HTML Reporting

Instance page for Instance 2

displays parameters and states

PATROL Agent

Oracle Instance 2

Oracle Instance 1

Host 1

Web Server

PATROL console

Instance page for Instance 1

displays parameters and states

FTP Connection

Click Oracle Instance 1 to display Oracle Instance 1 Instance Page

Click Oracle Instance 2 to display Oracle Instance 2 Instance Page

Oracle Instance 1 Oracle Instance 2

258 PATROL for Oracle User Guide

Page 259: Oracle K

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 Requirements Comments

Operating system ■ Microsoft Windows NT, 2000

■ UNIX (any UNIX platform that is supported by PATROL for Oracle)

HTML Reporting is not supported on OpenVMS.

See Chapter 2, “Installing and migrating PATROL for Oracle” on page 45.

FTP communication

■ FTP Publishing service must be run on the web server, and you must be able to read and write to the default FTP directories.

PATROL Agent host must be able to communicate via FTP to the web server.

Web Server ■ Microsoft IIS

■ Windows 2000

■ Apache Web Server

For Microsoft Windows NT and Windows 2000 computers, the DNS address must be static.

JAVA ■ JAVA2 Platform Standard Edition

■ 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

JAVA2 is available from http://java.sun.com

Tomcat servlet engine

■ 3.3.x, 3.2.x, 3.11

■ 4.0x, 4.1.x

■ 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.

Chapter 7 Monitoring instance health 259

Page 260: Oracle K

Setting up HTML reporting

Setting up HTML reporting

After you have set up the web server, you must configure PATROL to send all information to the web server. Once you have started the FTP Publishing service and the Tomcat servlet engine on the web server, you must perform the following tasks:

Configuring HTML reporting

You must select the instances and the parameters that are displayed on the web server.

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.

Table 75 HTML reporting setup task flow

Task Description Page

1 Configure HTML Reporting Setup from the ORACLE menu. 260

2 Configure FTP Info Setup from the ORACLE menu. 262

3 Update the server.xml file for the Tomcat servlet engine. 263

260 PATROL for Oracle User Guide

Page 261: Oracle K

Configuring HTML reporting

If you want to customize the categories and parameters, go to step 4.

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.

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.

Category Parameters

AVAILABILITY AlertsArchFreeSpaceCannotExtendExtentsLeftFreeSpaceDeficitFreeSpaceInstanceStatusLockConflictRSExtentsLeftRSSpaceLeftSystemTSLeft

CAPACITY BGDumpLeftProcsLeft

LOG LibGetHitsLatchGetRatioRedoArchDelayRedoNotArch

PERFORMANCE BGChkPntRateDiskSorts

SGA BuffHitRatioDictHitRatio

USERS ProblemUsersUsers

NOTE The categories and their parameters to display must be active before you can select them.

Chapter 7 Monitoring instance health 261

Page 262: Oracle K

Configure FTP information

8 Click Exit to close the parameter box for the category.

If you have selected more than one category, the Customized Configuration for <instance> dialog box will appear for each category. Repeat Steps until all categories that you have selected have been displayed.

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.

Where to go from here

Set up the FTP information so PATROL knows where to place the files for HTML reporting. Go to “Configure FTP information” on page 262.

Configure FTP information

After you have selected the parameters and the instances you want to view, you must set up the FTP information. This information tells PATROL where to install the files on the web server so that the files can be used to display the HTML Reports.

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 FTP information items

Field Description

Web Server (Name or IP Address)

name or IP address of the web server

If the web server is running on Windows NT or Windows 2000, the IP address should be a static address.

262 PATROL for Oracle User Guide

Page 263: Oracle K

Updating the server.xml file

2 Click Apply.

Where to go from here

Once you have entered the information you must update the server.xml file in the TOMCAT_HOME/conf directory.

Updating the server.xml file

After you have selected the parameters and instances, and have entered the FTP information, you must update the server.xml file in the TOMCAT_HOME/conf directory.

If you are using PATROL Central-Web Edition, you can use the existing Tomcat or Apache Web Server files.

■ “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

Before you begin

Ensure that you know the locations of the following directories:

Destination for PATROL files (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.

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.

Table 76 FTP information items

Field Description

Chapter 7 Monitoring instance health 263

Page 264: Oracle K

Updating the server.xml file

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:

Microsoft Windows Example:docBase="c:\inetpub\ftproot\htmlreporting\patrol"

UNIX Example:docBase="/apps/useraccount/htmlreporting/patrol"

Variable Description

ftproot directory 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.

PATROL Installation directory

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.

<Context path="/patrolpok" docBase="<ftproot directory>\<destination directory>\patrol" debug="0" reloadable="true"> </context>

264 PATROL for Oracle User Guide

Page 265: Oracle K

Updating the server.xml file

4 Save your changes in a text only format.

The changes are applied without having to stop and start Tomcat.

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 apps-patrolpok.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:

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 .

5 Save the file in a text only format.

The changes are applied without having to stop and start Tomcat.

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.

<Context path="/patrolpok"docBase="<ftproot directory>\<destinationdirectory>\patrol"debug="0"reloadable="true"></context>

Chapter 7 Monitoring instance health 265

Page 266: Oracle K

Updating the server.xml file

4 Enter the following lines exactly as shown (context sensitivity applies) before the </ContextManager> tag:

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.

7 Execute ./pwcctl stop to shut down Tomcat.

It may take a few moments before the ports are no longer in use. You do not need to change directories.

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" reloadable="true"> </context>

<Context path="/patrolpok" docBase="<ftproot directory>\<destination directory>\patrol" debug="0"

266 PATROL for Oracle User Guide

Page 267: Oracle K

Updating the server.xml file

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.

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.

8 Change directory to BMC_ROOT/PATROL Installation Directory/common/apache/apache.1.3.26/<platform directory>/conf

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).

15 Execute ./pwcctl start in the BMC_ROOT/PATROL Installation Directory/bin directory.

This will restart the Tomcat servlet engine and the Apache Web Server, and make the modified server.xml and httpd.conf files take effect.

Where to go from here

Open your web browser and enter the following command into the address URL field:

reloadable="true"> </context>

Chapter 7 Monitoring instance health 267

Page 268: Oracle K

Viewing and modifying HTML reporting

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.

Viewing and modifying HTML reporting

This section discusses viewing the HTML Reports on the web server and modifying the HTML Reporting settings.

Viewing HTML reports

After you have set up HTML reporting, open your web browser and enter the following command into the address URL field:

http://localhostname:8080/patrolpok/dbReport

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.

Modifying HTML reporting

You can change the instances and parameters that are displayed and the refresh rates used by the HTML reporting function. You can also remove instances from HTML Reporting or list the current HTML Reporting settings.

Changing the list of parameters

Change the list of parameters that are displayed by choosing HTML Configuration => HTML Reporting Modify from the ORACLE menu. Select the instances and parameters that you want to look at. Your changes are applied to the HTML reporting index page.

268 PATROL for Oracle User Guide

Page 269: Oracle K

Viewing and modifying HTML reporting

Changing the refresh rates

Change the default HTML Reporting refresh rates by choosing HTML Configuration => HTML Update Timings from the ORACLE menu. You can change the following refresh rates:

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.

Viewing configuration information

To view a list of the categories and parameters that were selected for HTML reporting, choose HTML Configuration => HTML Reporting View from the ORACLE menu.

Select the instance whose information you want to view. The categories and the parameters that were selected for HTML reporting are listed.

Removing an instance from 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.

Table 77 HTML reporting refresh cycles

Refresh Cycle Description

Initial Delay number of minutes you want to delay generating the HTML reports after the agent is started. This allows PATROL to gather enough information to display the parameter values.

HTML Reporting Refresh Cycle

number of minutes to generate and send the HTML files to the web server for the index and the instance pages.

Instance Page Refresh Cycle

select the number of minutes to automatically refresh the instance page on the web server.

NOTE If you remove an instance from the list of those configured for monitoring by PATROL, you must also remove that instance from HTML reporting.

Chapter 7 Monitoring instance health 269

Page 270: Oracle K

Where to go from here

Where to go from hereThe following table suggests topics:

Topic Source of information

how to monitor the following Oracle options using the PATROL for Oracle

Chapter 8, “Monitoring Oracle options” on page 271

how to monitor the the RAC environment

Chapter 9, “Monitoring the RAC environment” on page 293

how to access the KM menu commands, InfoBoxes, and online Help

Appendix A, “Accessing menu commands, InfoBoxes, and online Help” on page 313

definitions and default values for parameters

PATROL for Oracle online Help

consumer and collector parameter dependencies

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

detailed descriptions of the applications, menu commands, parameters, and InfoBoxes

PATROL for Oracle online Help

270 PATROL for Oracle User Guide

Page 271: Oracle K

C h a p t e r 8

8 Monitoring Oracle options

This chapter discusses how to monitor the following Oracle options using the PATROL for Oracle product:

■ 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. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 272Getting information about distributed databases. . . . . . . . . . . . . . . . . . . . . . . . . . 272Getting transaction and snapshot information . . . . . . . . . . . . . . . . . . . . . . . . . . . . 273

MTS reports. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 275Getting dispatcher information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 276Getting dispatcher information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 276

PQO reports . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 279Getting PQO operations statistics information . . . . . . . . . . . . . . . . . . . . . . . . . . . . 279Getting PQO server statistics information. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 280Getting PQO session statistics information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 281Getting PQO system statistics information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 282

Replication activities . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 283Monitoring database links . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 283Monitoring replication . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 284Getting replication information. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 286

Enhanced monitoring of the Oracle archive logs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 289ORACLE_ARCHIVE_SPEC parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 290Activating the ORACLE_ARCHIVE_SPEC parameters . . . . . . . . . . . . . . . . . . . . 290Debugging the ARCHIVE application . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 291

Where to go from here. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 291

Chapter 8 Monitoring Oracle options 271

Page 272: Oracle K

Distributed database monitoring

Distributed database monitoringA distributed database is a database set that is stored on many computers, but appears to applications as a single database. In a distributed database system, an application can access and modify the data simultaneously in several databases in a network. Each database in the distributed database system is controlled by its local Oracle server, but the database cooperates to be consistent with the other databases in the global distributed database.

In a distributed database system, Oracle uses links between the databases for application requests. A database link creates and defines a one-way path for communication from one Oracle database to another database.

Because each Oracle database instance is controlled by both the Oracle server and the consistency of the distributed database system, you can use PATROL to monitor both the specific database instance and the structure and transactions in the distributed database system.

The following reports provide information about the distributed database structure of the instance:

■ Commit Point Strength ■ Database Links ■ Pending Transactions ■ Snapshot

Getting information about distributed databases

PATROL provides information about the structure of a distributed database. You can get information about the commit point strength parameter that selects the commit point site, and the links between the database in the distributed system.

Getting commit point strength information

The Commit Point Strength report provides information about the commit strength parameter.

Choose Reports => Distributed Database => Commit Point Strength from the ORACLE_INSTANCE menu.

272 PATROL for Oracle User Guide

Page 273: Oracle K

Getting transaction and snapshot information

Table 78 shows the information that the report provides.

Getting database links information

The Database Links report provides information about the database links on the instance.

Choose Reports => Distributed Database => Database Links from the ORACLE_INSTANCE menu.

Table 79 shows the information that the report provides.

Getting transaction and snapshot information

You can obtain information about pending transactions and snapshots in a distributed database system.

Getting pending transaction information

The Pending Transaction reports provides information about the transactions that are pending.

Choose Reports => Distributed Database => Pending Transactions from the ORACLE_INSTANCE menu.

Table 78 Commit Point Strength report

Item Description

Name name of the commit_point_strength parameter

Type type of parameter

Value value of the commit_point_strength parameter.

If the value is 0, the database instance can never be a commit point site.

Table 79 Database Links report

Item Description

Database Link description of the database link, for example, sales.division3.acme.com

Owner owner of the database link

Username user name to use as a login to access the database link

Connect String tnsnames.ora name used to get to the host that the database is on

Chapter 8 Monitoring Oracle options 273

Page 274: Oracle K

Getting transaction and snapshot information

Table 80 shows the information that the report provides.

Getting snapshot information

The Snapshot Information report provides information about the snapshot used by the distributed database.

Choose Reports => Distributed Database => Snapshot Information from the ORACLE_INSTANCE menu.

Table 81 shows the information that the report provides.

Table 80 Pending Transactions report

Item Description

Local Txn ID transaction ID number

Global Txn ID transaction ID number that is globally unique

State state that the transaction was in:

■ collecting■ prepared■ committed■ forced commit■ forced rollback

Mixed whether the transaction was partially committed and partially rolled back:

■ YES■ NO

Advice advice for completing the transaction:

■ C for commit■ R for rollback■ NULL for no advice (transaction was not mixed)

Table 81 Snapshot report

Item Description

Snapshot Name view used by users and applications for viewing the snapshot

Snapshot Owner owner of the snapshot

Master Table name of the master table of which this snapshot is a copy

Type type of refresh for all automatic refreshes:

■ complete■ fast■ force

274 PATROL for Oracle User Guide

Page 275: Oracle K

MTS reports

MTS reportsThe 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:

■ 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:

■ Dispatcher■ Dispatcher Busy Rates■ Dispatcher Wait Times■ MTS init.ora parameters■ Shared Servers

The following parameters monitor the processes and dispatchers for the MTS:

■ MTSProcsIdle■ MTSProcsLeft■ MTSProcsUsed■ MaxBusyRate■ MaxWaitTimes■ BusyRate■ QueueLength■ QueueWaitTime

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

Page 276: Oracle K

Getting dispatcher information

Getting dispatcher information

The following reports display information about the dispatcher processes used in the MTS in the instance.

Getting general dispatcher information

The Dispatcher reports provides information about the dispatchers used in the MTS processes.

Choose Reports => Dispatcher from the MTS menu.

Table 82 shows the information that the report provides.

Getting dispatcher busy rate information

The Dispatcher Busy Rates report provides information about the dispatchers and how busy the dispatchers are.

Choose Reports => Dispatcher Busy Rates from the MTS menu.

Table 83 shows the information that the report provides.

Table 82 Dispatcher report

Item Description

Network network protocol supported by this dispatcher

Name name of the dispatcher process

Status dispatcher status:

■ 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 whether the dispatcher process is accepting any more connections

Table 83 Dispatcher busy rates report (part 1 of 2)

Item Description

Protocol network protocol supported by this dispatcher

No of Disps number of dispatchers for the particular protocol

Busy (secs) dispatcher busy time in seconds

276 PATROL for Oracle User Guide

Page 277: Oracle K

Getting MTS configuration information

Getting dispatcher wait times information

The Dispatcher Wait Times report provides information about the waiting time spent by the MTS processes on the dispatcher.

Choose Reports => Dispatcher Wait Times from the MTS menu.

Table 84 shows the information that the report provides.

Getting MTS configuration information

You can run reports to display information about the MTS parameters in the init.ora file, and information about the shared servers.

Idle (secs) dispatcher idle time in seconds

Percent Busy percentage of the time that the dispatcher was busy

Table 84 Dispatcher Wait Times report

Item Description

Protocol network protocol supported by this dispatcher

No of Disps number of dispatchers for the particular protocol

Wait Time (secs/100) wait time for the dispatcher in hundredths of a second

Queued Reqs number of queued requests for the dispatcher

Avg Wait Time (secs/100) average amount of time a request spent waiting for a dispatcher, in hundredths of a second

Table 83 Dispatcher busy rates report (part 2 of 2)

Item Description

Chapter 8 Monitoring Oracle options 277

Page 278: Oracle K

Getting MTS configuration information

Getting MTS init.ora parameter information

The MTS init.ora parameters report displays the current values for the following init.ora parameters:

■ mts_dispatchers■ mts_listener_address■ mts_max_dispatchers■ mts_max_servers■ mts_multiple_listeners■ mts_rate_log_size■ mts_rate_scale■ mts_servers■ mts_service

To run this report, choose Reports => MTS init.ora parameters from the MTS menu.

Getting shared server process information

The Shared Server report provides information about the shared servers used in the MTS processes.

Choose Reports => Shared Servers from the MTS menu.

Table 85 shows the information that the report provides.

Table 85 Shared Servers report

Item Description

Shared Server name of the server

Status server status:

■ 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)

Idle total idle time in hundredths of a second

Busy total busy time in hundredths of a second

% Busy percentage of the time that the shared server was busy

278 PATROL for Oracle User Guide

Page 279: Oracle K

PQO reports

PQO reportsYou can use PATROL to monitor the parallel query option (PQO) activity on the instance. The following reports provide information about statistics for the PQO:

■ Operation Statistics ■ Server Statistics ■ Session Statistics ■ System Statistics

The following parameters also provide information about the PQO:

■ QueriesInitiated■ SlavesCPUUsed■ SlavesLeft■ SlavesPctBusy■ SlavesUsed

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.

Getting PQO operations statistics information

The Operations Statistics report helps you determine any problems in a query’s execution.

Choose Reports => Operation Statistics Report from the PQO menu.

The report appears in a task output window and shows the number of rows that were processed through each parallel query server at each stage of execution:

Chapter 8 Monitoring Oracle options 279

Page 280: Oracle K

Getting PQO server statistics information

Table 86 shows the information that the report provides.

Getting PQO server statistics information

The Server Statistics report provides you with transaction statistics on the server.

Choose Reports => Server Statistics Report from the PQO menu.

The report appears in a task output window. Table 87 shows the information that the report provides.

Table 86 Operation Statistics report

Item Description

SID SID of the Oracle session

DFONum data flow operator (DFO) tree number of each query

TQID table queue ID in the query that represents the connection between two DFO nodes

SvrType role in table queue: producer, consumer, or ranger

NumRows number of rows produced/consumed

Bytes number of bytes produced/consumed

Open Time time (seconds) the table queue remained open

Avg Latency time in milliseconds for a message to leave the queue after it enters the queue

Waits number of waits encountered during leaving the queue

TimeOuts number of timeouts when waiting for a message

Process ID ID of the process

Instance ID ID of the instance

Table 87 Server Statistics report (part 1 of 2)

Item Description

SLAV name of the parallel query server

STAT current status of the parallel query server, either BUSY or IDLE

TOTALSESSI total number of sessions that have used this parallel query server

IDLETIMECU amount of idle time spent while processing statements in the current session

BUSYTIMECU amount of busy time spent while processing statements in the current session

CPUSECSCUR amount of CPU time spent while processing statements in the current session

280 PATROL for Oracle User Guide

Page 281: Oracle K

Getting PQO session statistics information

Getting PQO session statistics information

The Session Statistics report provides information about the session.

Choose Reports => Session Statistics Report from the PQO menu.

Table 88 shows the information that the report provides.

The statistics in this report are described in Table 89.

MSGSSENTCU number of messages sent while processing statements for the current session

MSGSRCVDCU number of messages received while processing statements for the current session

IDLETIMETO total amount of time that this parallel query server has been idle

BUSYTIMETO total amount of time that this parallel query server has been busy

CPUSECSTOT total amount of CPU time that this parallel query server has used to process statements

MSGSSENTTO total number of messages that this parallel query server has sent

MSCSRCVDTO total number of messages that this parallel query server has received

Table 88 Session Statistics report

Item Description

STATISTIC name of the statistic

LASTQUERY value used for the last operation for this statistic

SESSIONTOTAL value of the statistic for the entire session up to the point that this report runs

Table 89 Session Statistic report statistic names (part 1 of 2)

Statistic Description

Queries Parallelized number of queries that were run in parallel

DML Parallelized number of DML operations that were run in parallel

DFO Trees number of executed data flow operator (DFO) trees

Server Threads total number of parallel servers used

Allocation Height requested number of servers per instance

Table 87 Server Statistics report (part 2 of 2)

Item Description

Chapter 8 Monitoring Oracle options 281

Page 282: Oracle K

Getting PQO system statistics information

Getting PQO system statistics information

The System Statistics report provides information on the system statistics for a parallel query system.

Choose Reports =>System Statistics Report from the PQO menu.

Table 90 shows the information that the report provides.

The names statistics in this report are described in Table 91.

Allocation Width requested number of instances

Local Msgs Sent number of local (intra-instance) messages sent

Distr Msgs Sent number of remote (inter-instance) messages sent

Local Msgs Recv'd number of local (intra-instance) messages received

Distr Msgs Recv'd number of remote (inter-instance) messages received

Table 90 System Statistics report

Item Description

STATISTIC name of the statistic

VALUE value of the statistic

Table 91 System Statistics report statistic names (part 1 of 2)

Statistic Description

Servers Busy number of currently busy servers on this instance

Servers Idle number of currently idle servers on this instance

Servers Highwater number of active servers on this instance that have partaken in one or more operation so far

Server Sessions total number of operations executed in all servers on this instance

Servers Started total number of servers started on this instance

Servers Shutdown total number of servers shutdown on this instance

Servers Cleaned Up total number of servers on this instance cleaned up due to process death

Queries Initiated total number of parallel queries initiated on this instance

DML Initiated total number of parallel dml operations that were initiated

DFO Trees total number of dfo trees executed on this instance

Sessions Active total number of active sessions

Table 89 Session Statistic report statistic names (part 2 of 2)

Statistic Description

282 PATROL for Oracle User Guide

Page 283: Oracle K

Replication activities

Replication activitiesYou 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 database links

You can monitor a selected database link and view the time it takes to ping through the PingTime parameter. If you have a problem with a database link in your replication environment, you can display the information for all database links on the instance. For example, you can run the Database Links report to ensure that the connect string is the same for all database links.

Selecting a database link to be monitored

Before you can monitor a database link, you must select it from within PATROL for Oracle.

Choose Select Database Link from the DB_LINKS menu, select the link to monitor from the Available list, and click Update.

Local Msgs Sent total number of local (intra-instance) messages sent on this instance

Distr Msgs Sent total number of remote (inter-instance) messages sent on this instance

Local Msgs Recv'd total number of remote (inter-instance) messages received on this instance

Distr Msgs Recv'd total number of remote (inter-instance) messages received on this instance

Table 91 System Statistics report statistic names (part 2 of 2)

Statistic Description

Chapter 8 Monitoring Oracle options 283

Page 284: Oracle K

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.

Getting database link information

The Link Information report provides information about the database link.

Choose Link Information Report from the DB_LINKS menu.

The report appears in a text window. Table 92 shows the information that the report provides.

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.

Selecting replication groups to be monitored

Before you can monitor a replication group, you must select it from within PATROL for Oracle.

Choose Select Replication Groups from the REPLICATION menu, select the replication group to monitor from the Available list, and click Update.

PATROL begins monitoring the replication group after the next polling cycle. You can also use this function to stop monitoring a replication group.

Table 92 Link Information report

Item Description

Database Link name of the database link

Owner owner of the database link

Username user name that is currently using the database link

Connect String connect string for the database link

284 PATROL for Oracle User Guide

Page 285: Oracle K

Monitoring replication

Suspending and resuming replication

Suspending and resuming replication must be done from the master site for the replication group. To suspend or resume replication from within PATROL, the master site must be monitored with a PATROL Agent and must be online.

To determine the master site, use the following SQL query in SQL*Plus, SQL Task, SQL Command, or Server Manager:

select dblink from dba_repsites where masterdef='Y';

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.

Determining replication status

To determine whether replication is running or suspended, use the following SQL query in SQL*Plus, SQL Task, SQL Command, or Server Manager:

select status from dba_repcat where gname=group in question;

■ If the query returns QUIESCED, replication has been suspended.■ If the query returns NORMAL, replication is running normally.

Chapter 8 Monitoring Oracle options 285

Page 286: Oracle K

Getting replication information

Getting replication information

Table 93 lists the reports that you can run to get information about replication and replication activities:

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.

Deferred Calls report

Run the Deferred Calls report for information about any deferred calls.

Choose Reports => Deferred Calls from the REPLICATION menu.

Table 93 Replication reports summary

Type of information Report to run

Database Links for a replication group DB Links

Conflicts in the replication environment, or automatic methods for resolving conflicts for a replication group

Conflicts Conflicts Resolution

Transactions and calls in the replication environment

Deferred Calls Pending Transaction

Objects that are replicated in a replication group Replicated Objects

Table 94 Conflicts report

Item Description

Copy ID ID of the deferred transaction

Call ID unique ID of the call of the deferred transaction

Dest Link database link used to address the destination

Error Time time and date that the conflict occurred

Err Num Oracle error number

Error Message Message text of the error

286 PATROL for Oracle User Guide

Page 287: Oracle K

Getting replication information

Table 95 shows the information that the report provides.

Pending Transactions report

Run the Pending Transactions report for information about any two-phase commit pending transactions.

Choose Reports => Pending Transactions from the REPLICATION menu.

Table 96 shows the information that the report provides.

Conflict Resolution report

Run the Conflict Resolution report for information about the automatic conflict resolution methods set up for the instance.

Table 95 Deferred Calls report

Item Description

Call No unique ID of call within a transaction

Tran ID unique ID of the associated transaction

Schema schema name of the deferred call

Package package name of the deferred call

Procedure procedure name of the deferred call

Arguments number of arguments to the deferred call

Table 96 Pending Transactions report

Item Description

Local ID id of the transaction using the format: n.n.n where n is a number

Global ID globally unique transaction id

State state that the transaction was in:

■ collecting■ prepared■ committed■ forced commit■ forced rollback

Mxd Fail Tm. whether the transaction was partly committed and partly rolled back (YES or NO), and the time and date that the row was inserted.

Force Tm. time of manual force decision (null if not forced locally)

Retry Tm. time automatic recovery (RECO) last tried to recover the transaction

Chapter 8 Monitoring Oracle options 287

Page 288: Oracle K

Getting replication information

Choose Reports => Conflict Resolution Methods from the REPLICATION_INSTANCE menu.

Table 97 shows the information that the report provides.

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.

Replicated Objects report

Run the Replicated Objects report for information about replication objects.

Choose Reports => Replicated Objects from the REPLICATION_INSTANCE menu.

Table 97 Conflict Resolution Methods report

Item Description

Schema Name name of the schema containing the replicated table

Object Name name of the table for which you have defined a conflict resolution method

Conflict Type type of conflict that the conflict resolution method is used to resolve:

■ Delete■ Uniqueness■ Update

Reference Name object to which the routine applies:

■ 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.

Table 98 DB Links report

Item Description

Database Link name of the database link

Owner owner of the database link

Username user name that is currently using the database link

Connect String connect string for the database link

Database Link name of the database link

288 PATROL for Oracle User Guide

Page 289: Oracle K

Enhanced monitoring of the Oracle archive logs

Table 99 shows the information that the report provides.

Enhanced monitoring of the Oracle archive logs

Oracle archive logs are monitored by the LOG application. For enhanced monitoring of the archive logs, the ARCHIVE application class enables you to:

■ monitor one or more archive log destinations when using the log_archive_dest_N syntax

■ 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.

Table 99 Replicated Objects report

Item Description

Group name of the replicated object group to which the object belongs

Link name of the schema containing the replicated object

Object name of the replicated object

Type type of replicated object:

■ Table■ View■ Package■ Package body■ Procedure■ Function■ Index■ Synonym■ Trigger■ Snapshot

NOTE If you are the log_archive_dest syntax and have only one destination, use the ArchFreeSpace parameter in the AVAILABILITY application.

Chapter 8 Monitoring Oracle options 289

Page 290: Oracle K

ORACLE_ARCHIVE_SPEC parameters

ORACLE_ARCHIVE_SPEC parameters

Table 100 describes the parameters that the ORACLE_ARCHIVE_SPEC application provides.

For more information about parameters, see the PATROL for Oracle online Help.

Activating the ORACLE_ARCHIVE_SPEC parameters

The ORACLE_ARCHIVE application appears only when you load the ORACLE_ARCHIVE.kml file. If you do not want to use ORACLE_ARCHIVE to monitor the Oracle archive logs, do not load the ORACLE_ARCHIVE.kml file. For more information about loading KMs, see Chapter 3, “Loading and configuring PATROL for Oracle” on page 69.

NOTE When you load ORACLE_ARCHIVE.kml, the ArchFreeSpace parameter in the AVAILABILITY application goes offline.

Table 100 ORACLE_ARCHIVE_SPEC application parameters

Parameter Description

ArchFreeSpaceColl a collector parameter that gathers archive free space data and sends it to the ArchFreeSpaceOptional and ArchFreeSpace consumer parameters

ArchFreeSpace a consumer parameter that provides the total number of archive logs that can be created in this mandatory destination

ArchFreeSpaceOptional a consumer parameter that provides the total number of archive logs that can be created in this optional destination

NOTE Mandatory and optional destinations are defined in the init.ora file.

290 PATROL for Oracle User Guide

Page 291: Oracle K

Debugging the ARCHIVE application

Debugging the ARCHIVE application

In the ARCHIVE application, type this command in the system output window:

% PSL set("/ORACLE_INSTANCE/<instance_name>/ArchFreeSpaceColl_DEBUG_STAT",1);

Where to go from hereThe following table suggests topics:

Topic Source of information

how to monitor the the RAC environment

Chapter 9, “Monitoring the RAC environment” on page 293

how to access the KM menu commands, InfoBoxes, and online Help

Appendix A, “Accessing menu commands, InfoBoxes, and online Help” on page 313

definitions and default values for parameters

PATROL for Oracle online Help

consumer and collector parameter dependencies

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

detailed descriptions of the applications, menu commands, parameters, and InfoBoxes

PATROL for Oracle online Help

Chapter 8 Monitoring Oracle options 291

Page 292: Oracle K

Where to go from here

292 PATROL for Oracle User Guide

Page 293: Oracle K

C h a p t e r 9

9 Monitoring the RAC environment

This chapter presents the following topics:

Overview of RAC environment monitoring . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 293Configuring RAC monitoring . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 294

ORACLE_RAC parameter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 298Activating the ORACLE_RAC parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 299Rulesets that manage database-specific alerts in a RAC environment . . . . . . . . 299Debugging the RAC application . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 300

Where to go from here. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 300

Overview of RAC environment monitoringThe ORACLE_RAC application identifies and monitors instances and nodes in the Oracle Real Application Cluster (RAC) setup when at least one RAC instance is configured in PATROL for Oracle.

WARNING Do not load the ORACLE_RAC application if you are using the Oracle Parallel Server.

Chapter 9 Monitoring the RAC environment 293

Page 294: Oracle K

Configuring RAC monitoring

Configuring RAC monitoringPATROL for Oracle now monitors all the RAC database instances in an RAC cluster, even if the configured RAC database instance goes down.

To monitor the status of all the instances running in a Oracle 9i or 10g RAC cluster, PATROL for Oracle uses the Server Control (SRVCTL) utility to identify the RAC instances that are in the cluster. To check the status, PATROL for Oracle uses a TNS Service string to connect to the individual RAC instance.

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.

Action Command

To identify the existence of a RAC database and its RAC instance

SRVCTL config database –d RACDatabaseName

To check the status of the instance PATROLDatabaseUser/ PATROLDatabaseUserPassword@ TNSServiceString

NOTE During RAC database configuration, all the RAC instances must be running to validate the TNS Service string.

294 PATROL for Oracle User Guide

Page 295: Oracle K

Configuring RAC monitoring

The hierarchy of the RAC implementation is as follows:

ORACLE_RAC

■ 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

Requirements for an RAC environment

Following are the requirements in an RAC environment:

■ 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 Monitoring the RAC environment 295

Page 296: Oracle K

Configuring RAC monitoring

■ 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.

Limitations in an RAC environment

Following are the limitations of PATROL for Oracle in an RAC environment:

■ 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.

2 Configure an instance on the node to be monitored.

The ORACLE_RAC icons are displayed in the PATROL console.

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 PATROL for Oracle User Guide

Page 297: Oracle K

Configuring RAC monitoring

The following example describes different scenarios in a monitored RAC.

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.

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:

■ 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.

Chapter 9 Monitoring the RAC environment 297

Page 298: Oracle K

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.

The MemberStatus parameter checks the status of the configured RAC instances running in an Oracle RAC database cluster environment.

■ 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.

Table 101 ORACLE_RAC_DATABASE application parameter

Parameter Description

MemberStatus a standard parameter with a stoplight icon that checks the membership status of all instances in the RAC database collectively

298 PATROL for Oracle User Guide

Page 299: Oracle K

Activating the ORACLE_RAC parameters

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.

For more information about parameters, see the PATROL for Oracle online Help.

Activating the ORACLE_RAC parameters

The ORACLE_RAC application appears only when you load ORACLE_RAC.kml. If you do not want to use ORACLE_RAC to monitor the RAC environment, do not load ORACLE_RAC.kml. For more information about loading KMs, see Chapter 3, “Loading and configuring PATROL for Oracle” on page 69.

Rulesets that manage database-specific alerts in a RAC environment

In a RAC environment, databases are accessed by multiple instances. When a problem occurs in a database accessed by multiple instances, the database-specific parameters go into an alarm state in all of the instances, resulting in multiple alarms for the same problem.

Using the following rulesets, you can suppress and reactivate the database-specific parameters for selected instances in a RAC environment:

■ DeActivateDBParmThresholds.cfg—Apply this ruleset to all instances in a RAC environment, except for the one instance for which you want to see the database-specific parameters go into an alarm state.

■ ActivateDBParmThresholds.cfg—Apply 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.

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

Chapter 9 Monitoring the RAC environment 299

Page 300: Oracle K

Debugging the RAC application

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.

Debugging the RAC application

To debug the RAC application, right-click the RAC application icon and select KM Commands => Debug. Debug information is displayed in the system output window.

Where to go from hereThe following table suggests topics:

Topic Source of information

how to monitor the the dataguard environment

Chapter 10, “Monitoring the dataguard environment” on page 301

how to access the KM menu commands, InfoBoxes, and online Help

Appendix A, “Accessing menu commands, InfoBoxes, and online Help” on page 313

definitions and default values for parameters

PATROL for Oracle online Help

consumer and collector parameter dependencies

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 PATROL for Oracle User Guide

Page 301: Oracle K

C h a p t e r 10

10 Monitoring the dataguard environment

This chapter presents the following topics:

Overview of dataguard environment monitoring . . . . . . . . . . . . . . . . . . . . . . . . . . . . 301Dataguard configuration requirements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 302

Configuring standby instance for monitoring . . . . . . . . . . . . . . . . . . . . . . . . . . . . 304Removing standby instance from monitoring . . . . . . . . . . . . . . . . . . . . . . . . . . . . 305

Debugging the ORACLE_DATAGUARD application. . . . . . . . . . . . . . . . . . . . . . . . . 305Limitations in the dataguard KM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 306Parameters to monitor standby instance . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 306

Activating the ORACLE_DATAGUARD parameters . . . . . . . . . . . . . . . . . . . . . . 311Troubleshooting the dataguard KM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 311Where to go from here. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 312

Overview of dataguard environment monitoring

The Oracle dataguard feature ensures high availability, data protection, and disaster recovery for the enterprise data. Dataguard provides a comprehensive set of services that creates, maintains, manages, and monitors one or more standby databases to enable production Oracle databases to survive disasters and data corruptions.

A standby database can be either a physical standby database or a logical standby database:

■ 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

Page 302: Oracle K

Dataguard configuration requirements

■ 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.

Dataguard configuration requirements To configure a primary instance for monitoring in ORACLE.kml, the instance must be in open stage. After configuration if it changes from open to mount stage, the OracleStatus parameter of the ORACLE km goes into an alarm state , but we can still configure its standby using the ORACLE_DATAGUARD.kml

In the Data Guard broker feature, you can directly write listener entry as log_archive_dest_n.

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.

EXAMPLE *.log_archive_dest_4='service="(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=tcp)(HOST=mogra)(PORT=1521)))(CONNECT_DATA=(SERVICE_NAME=site2_XPT)(INSTANCE_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)'

302 PATROL for Oracle User Guide

Page 303: Oracle K

Dataguard configuration requirements

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

■ 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

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’

Chapter 10 Monitoring the dataguard environment 303

Page 304: Oracle K

Configuring standby instance for monitoring

Configuring standby instance for monitoring

The following section describes the steps required to configure a standby instance for monitoring.

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.

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.

NOTE ■ 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.

304 PATROL for Oracle User Guide

Page 305: Oracle K

Removing standby instance from monitoring

Removing standby instance from monitoring

Use the following steps to remove a standby instance from monitoring:

1 Select the ORACLE_DATAGUARD => KM Command => DataGuard Instance Remove menu command from the host.

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.

Debugging the ORACLE_DATAGUARD application

The following debugs are available in the dataguard monitoring:

■ Dataguard instance discovery - ORACLE_DATAGUARD => KM Commands =>Debug => DataGuard Instance Discovery => ON/OFF

■ 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

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.

Chapter 10 Monitoring the dataguard environment 305

Page 306: Oracle K

Limitations in the dataguard KM

■ Dataguard status collector - ORACLE_DATAGUARD_DATABASE => CollStandbyStatus => ON/OFF

Limitations in the dataguard KMFollowing are the limitations of PATROL for Oracle in the dataguard KM:

■ 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.

Parameters to monitor standby instanceTable 102 describes the parameters that the ORACLE_DATAGUARD application provides.

The CollDataGuard collector in the ORACLE_DATAGUARD database runs every 10 minutes to collect the data for the LogTransferGap and LogApplyGap parameters.

Table 102 ORACLE_DATAGUARD application parameters

Parameter Description

LogTransferGap a consumer parameter that displays a gap during redo transfers from a primary to a standby destination.

LogApplyGap a consumer parameter that displays a gap during the redo applies at the standby destination.

StandbyStatus a consumer parameter with a stoplight icon that checks the status of the configured standby database running on a dataguard environment.

306 PATROL for Oracle User Guide

Page 307: Oracle K

Parameters to monitor standby instance

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.

The redo gap at the standby site can be for the following reasons:

■ 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 instance’s 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.

EXAMPLE log_archive_dest_n = ‘<tns-service_entry> LGWR/ARCH ….

Chapter 10 Monitoring the dataguard environment 307

Page 308: Oracle K

Parameters to monitor standby instance

There are two types of gaps at a standby site:

■ Logs missing in between during transfer ■ Logs missing sequentially during transfer

The following example explains the sequential gaps for logical and physical standy:

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:

In this example, the query uses the v$archive_gap from the standby instance and it displays

Sequence at the primary site Sequence at the standby site

16 16

17 - - Logs missing sequentially

18 - - Logs missing sequentially

19 - - Logs missing sequentially

20 - - Logs missing sequentially

Sequence at the primary site Sequence at the standby site

10 10

11 11

12 - - Logs missing in between

13 - - Logs missing in between

14 - - Logs missing in between

15 15

high_sequence# low_sequence#

14 12

308 PATROL for Oracle User Guide

Page 309: Oracle K

Parameters to monitor standby instance

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.

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:

4 rows are selected.

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.

Sequence# return 4 rows from first query

Sequence# return 4 rows from second query

91 85

103 93

105 105

108 108

Sequence# from first query output Sequence# from second query output Operation

85 (ignore this sequence#)

91 93 93 – 91 – 1 = 1

103 105 105 – 103 – 1 = 1

105 108 108 – 105 – 1 = 2

108 (ignore this sequence#)

Chapter 10 Monitoring the dataguard environment 309

Page 310: Oracle K

Parameters to monitor standby instance

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:

■ 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:

The StandbyStatus parameter will go into an offline state when primary instance is removed from the Oracle KM monitoring.

Table 103 Status of the standby database

Standby database type Mode Error Status/Value

Physical Mount ORA-TNS-TNS

Ok/0

Open read only Warning/1

Open read write Alarm/2

Down Alarm/2

Nomount Alarm/2

Logical Open read write ORA-TNS-TNS

Ok/0

Mount Warning/1

Open read only Alarm/2

Down Alarm/2

Nomount Alarm/2

310 PATROL for Oracle User Guide

Page 311: Oracle K

Activating the ORACLE_DATAGUARD parameters

Activating the ORACLE_DATAGUARD parameters

The ORACLE_DATAGUARD application appears only when you load ORACLE_DATAGUARD.kml. If you do not want to use ORACLE_DATAGUARD to monitor the DATAGUARD environment, do not load ORACLE_DATAGUARD.kml. For more information about loading KMs, see Chapter 3, “Loading and configuring PATROL for Oracle” on page 69.

Troubleshooting the dataguard KMThe following section provides dataguard troubleshooting information:

■ 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 Monitoring the dataguard environment 311

Page 312: Oracle K

Where to go from here

Where to go from hereThe following table suggests topics:

Topic Source of information

how to access the KM menu commands, InfoBoxes, and online Help

Appendix A, “Accessing menu commands, InfoBoxes, and online Help” on page 313

definitions and default values for parameters

PATROL for Oracle online Help

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

312 PATROL for Oracle User Guide

Page 313: Oracle K

A p p e n d i x A

A Accessing menu commands, InfoBoxes, and online Help

In this appendix, the following topics are discussed:

Accessing KM commands and InfoBoxes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 313Accessing online Help . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 314

Accessing KM commands and InfoBoxesTable 104 provides information about how to access KM commands and InfoBoxes in the various PATROL consoles.

Table 104 Accessing KM commands and InfoBoxes (part 1 of 2)

ConsoleTo access menu commands

To accessInfoBoxes

PATROL Console for Microsoft Windows

Right-click the application icon and choose KM Commands.

Right-click the application icon to display its pop-up menu and then choose InfoBox.

PATROL Console for UNIX Right-click the application icon. Click MB2 on the instance icon.

Appendix A Accessing menu commands, InfoBoxes, and online Help 313

Page 314: Oracle K

Accessing online Help

Accessing online HelpTable 105 on page 315 provides information about how to access Help on each console.

PATROL Central Operator - Microsoft Windows Edition

From an application’s page, click KM Commands.

In either Tree View or Work Area, right-click a PATROL object and choose InfoBox from the pop-up menu.

PATROL Central Operator - Web Edition

Right-click the application icon and choose Knowledge Module Commands.

From the Monitored Systems page, click the system that you want, and 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.

Table 104 Accessing KM commands and InfoBoxes (part 2 of 2)

ConsoleTo access menu commands

To accessInfoBoxes

314 PATROL for Oracle User Guide

Page 315: Oracle K

Accessing online Help

Table 105 Accessing online Help

ConsoleTo access product help

To access application class help

To accessparameter help

PATROL Console for Microsoft Windows

From the console menu bar, choose Help => Help Topics => PATROL Knowledge Modules.

Double-click the application class in the KM tab of the console. Then click the Help tab and Show Help in the Application Properties dialog box.

Right-click the parameter icon, and choose Help On from the pop-up menu.

Double-click the parameter icon; then click the ? icon or Help button in the parameter display window.

Double-click the parameter in the KM tab of the console; then click the Help tab and Show Help in the properties dialog box.

PATROL Console for UNIX

From the console menu bar, choose Help On => Knowledge Modules.

Choose Attributes => Application Classes and double-click the application name. Then click Show Help in the Application Definition dialog box.

Right-click the parameter icon, and click Help On.

PATROL Central Operator - Microsoft Windows Edition

From the console menu bar, choose Help => Help Topics. Then double-click the name of your KM.

From the Operator tab of the console, expand or collapse the list to find the application class. Click the What’s this? Help button

and then click the application class name.

Double-click the parameter icon to open its display window. Click the Help button.

PATROL Central Operator - Web Edition

Click the Help link, and then click the link for your KM.

Click the link for the application class, and then click the Page Help link.

Click the link for the parameter, and then click the Page Help link.

Appendix A Accessing menu commands, InfoBoxes, and online Help 315

Page 316: Oracle K

Accessing online Help

316 PATROL for Oracle User Guide

Page 317: Oracle K

A p p e n d i x B

B PATROL database objects

In this appendix, the following topics are discussed:

Grants and privileges for the PATROL account . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 317PATROL for Oracle database objects . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 321

Where are PATROL objects installed? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 321PATROL for Oracle tables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 322

Storage parameters for PATROL tables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 331PATROL for Oracle views . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 332Pconfig variables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 334

Grants and privileges for the PATROL accountThe following tables describes all the grants and privileges that are given to the PATROL account when an instance is configured.

■ 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.

Table 106 PATROL account grants and privileges (SYS) (part 1 of 4)

Type of grant Grant

Analyze GRANT ANALYZE ANY

Create GRANT CREATE PROCEDURE

Create GRANT CREATE PUBLIC SYNONYM

Create GRANT CREATE SEQUENCE

Create GRANT CREATE SESSION

Create GRANT CREATE SYNONYM

Create GRANT CREATE TABLE

Appendix B PATROL database objects 317

Page 318: Oracle K

Grants and privileges for the PATROL account

Create GRANT CREATE VIEW

Drop GRANT DROP PUBLIC SYNONYM

Select GRANT SELECT ON CCOL$

Select GRANT SELECT ON CDEF$

Select GRANT SELECT ON CLU$

Select GRANT SELECT ON COL$

Select GRANT SELECT ON DBA_2PC_PENDING

Select GRANT SELECT ON DBA_CLUSTERS

Select GRANT SELECT ON DBA_COL_PRIVS

Select GRANT SELECT ON DBA_CONSTRAINTS

Select GRANT SELECT ON DBA_DATA_FILES

Select GRANT SELECT ON DBA_DB_LINKS

Select GRANT SELECT ON DBA_FREE_SPACE

Select GRANT SELECT ON DBA_IND_PARTITIONS (8.x and 9.1.xx instances)

Select GRANT SELECT ON DBA_IND_SUBPARTITIONS (8.1.xx and 9.1.xx instances)

Select GRANT SELECT ON DBA_INDEXES

Select GRANT SELECT ON DBA_JOBS

Select GRANT SELECT ON DBA_OBJECTS

Select GRANT SELECT ON DBA_PART_INDEXES (8.x and 9.1.xx instances)

Select GRANT SELECT ON DBA_PROFILES

Select GRANT SELECT ON DBA_ROLE_PRIVS

Select GRANT SELECT ON DBA_ROLES

Select GRANT SELECT ON DBA_ROLLBACK_SEGS

Select GRANT SELECT ON DBA_SEGMENTS

Select GRANT SELECT ON DBA_SNAPSHOTS

Select GRANT SELECT ON DBA_SYS_PRIVS

Select GRANT SELECT ON DBA_TAB_COLUMNS

Select GRANT SELECT ON DBA_TAB_PARTITIONS (8.x and 9.1.xx instances)

Select GRANT SELECT ON DBA_TAB_SUBPARTITIONS (8.1.xx and 9.1.xx instances)

Select GRANT SELECT ON DBA_TABLES

Select GRANT SELECT ON DBA_TABLESPACES

Select GRANT SELECT ON DBA_TEMP_FILES (8.1.xx and 9.1.xx instances)

Select GRANT SELECT ON DBA_TRIGGERS

Select GRANT SELECT ON DBA_TS_QUOTAS

Select GRANT SELECT ON DBA_UNDO_EXTENTS

Select GRANT SELECT ON DBA_USERS

Select GRANT SELECT ON DBA_VIEWS

Select GRANT SELECT ON FET$

Table 106 PATROL account grants and privileges (SYS) (part 2 of 4)

Type of grant Grant

318 PATROL for Oracle User Guide

Page 319: Oracle K

Grants and privileges for the PATROL account

Select GRANT SELECT ON FILE$

Select GRANT SELECT ON FILE_LOCK

Select GRANT SELECT ON FILE_PING

Select GRANT SELECT ON IND$

Select GRANT SELECT ON OBJ$

Select GRANT SELECT ON ROLE_TAB_PRIVS

Select GRANT SELECT ON SEG$

Select GRANT SELECT ON SYS.SYS_DBA_SEGS (8.x and 9.1.xx instances)

Select GRANT SELECT ON TAB$

Select GRANT SELECT ON TS$

Select GRANT SELECT ON UET$

Select GRANT SELECT ON UNDO$

Select GRANT SELECT ON USER$

Select GRANT SELECT ON V$ROLLNAME

Select GRANT SELECT ON V_$ACCESS

Select GRANT SELECT ON V_$ARCHIVE_DEST_STATUS

Select GRANT SELECT ON V_$BACKUP

Select GRANT SELECT ON V_$DATABASE

Select GRANT SELECT ON V_$DATAFILE

Select GRANT SELECT ON V_$DB_OBJECT_CACHE

Select GRANT SELECT ON V_$DBFILE

Select GRANT SELECT ON V_$DISPATCHER

Select GRANT SELECT ON V_$FILESTAT

Select GRANT SELECT ON V_$INSTANCE

Select GRANT SELECT ON V_$LATCH

Select GRANT SELECT ON V_$LATCH_CHILDREN

Select GRANT SELECT ON V_$LATCHNAME

Select GRANT SELECT ON V_$LIBRARYCACHE

Select GRANT SELECT ON V_$LICENSE

Select GRANT SELECT ON V_$LOCK

Select GRANT SELECT ON V_$LOG

Select GRANT SELECT ON V_$LOG_HISTORY

Select GRANT SELECT ON V_$LOGFILE

Select GRANT SELECT ON V_$NLS_PARAMETERS

Select GRANT SELECT ON V_$OPEN_CURSOR

Select GRANT SELECT ON V_$PARAMETER

Select GRANT SELECT ON V_$PQ_SESSTAT

Select GRANT SELECT ON V_$PQ_SLAVE

Table 106 PATROL account grants and privileges (SYS) (part 3 of 4)

Type of grant Grant

Appendix B PATROL database objects 319

Page 320: Oracle K

Grants and privileges for the PATROL account

Select GRANT SELECT ON V_$PQ_SYSSTAT

Select GRANT SELECT ON V_$PROCESS

Select GRANT SELECT ON V_$QUEUE

Select GRANT SELECT ON V_$RECOVERY_LOG

Select GRANT SELECT ON V_$RESOURCE_LIMIT

Select GRANT SELECT ON V_$ROLLNAME

Select GRANT SELECT ON V_$ROLLSTAT

Select GRANT SELECT ON V_$ROWCACHE

Select GRANT SELECT ON V_$SESSION

Select GRANT SELECT ON V_$SESSION_WAIT

Select GRANT SELECT ON V_$SESSTAT

Select GRANT SELECT ON V_$SGASTAT

Select GRANT SELECT ON V_$SHARED_POOL_RESERVED

Select GRANT SELECT ON V_$SHARED_SERVER

Select GRANT SELECT ON V_$SORT_SEGMENT

Select GRANT SELECT ON V_$SQL

Select GRANT SELECT ON V_$SQLAREA

Select GRANT SELECT ON V_$SQLTEXT

Select GRANT SELECT ON V_$STATNAME

Select GRANT SELECT ON V_$SYSSTAT

Select GRANT SELECT ON V_$SYSTEM_EVENT

Select GRANT SELECT ON V_$TABLESPACE (8.1.xx and 9.1.xx instances)

Select GRANT SELECT ON V_$TEMP_EXTENT_POOL (8.1.xx and 9.1.xx instances)

Select GRANT SELECT ON V_$TEMPFILE (8.1.xx and 9.1.xx instances)

Select GRANT SELECT ON V_$TEMPSTAT (8.1.xx and 9.1.xx instances)

Select GRANT SELECT ON V_$TIMER

Select GRANT SELECT ON V_$TRANSACTION

Select GRANT SELECT ON V_$VERSION

Select GRANT SELECT ON V_$WAITSTAT

Table 107 PATROL account grants and privileges ( NON-SYS DBA) (part 1 of 2)

Type of grant Grant

Create GRANT CREATE SESSION

Create GRANT CREATE TABLE

Create GRANT CREATE SEQUENCE

Create GRANT CREATE VIEW

Create GRANT CREATE SYNONYM

Table 106 PATROL account grants and privileges (SYS) (part 4 of 4)

Type of grant Grant

320 PATROL for Oracle User Guide

Page 321: Oracle K

PATROL for Oracle database objects

PATROL for Oracle database objectsThis section describes the database objects that are installed when you configure PATROL for Oracle.

Where are PATROL objects installed?

PATROL database objects are installed in two places: the tables owned by the PATROL account, and the SYS table. The only object that is installed in the SYS table is the view P$BH. Refer to Table 135 on page 332 for a description of this view.

The objects listed in the following table are installed in the tables owned by PATROL:

Create GRANT CREATE PUBLIC SYNONYM

Drop GRANT DROP PUBLIC SYNONYM

Create GRANT CREATE PROCEDURE

Select GRANT SELECT ANY DICTIONARY

Select GRANT SELECT ANY TABLE

Table 108 PATROL database objects (part 1 of 2)

Object Name Object type See page

P$ARCHDEST VIEW 332

P$AUTOEXT TABLE 322

P$AUTOEXTEND TABLE 323

P$AUTOEXTTS TABLE 323

P$BUFFCACHE PACKAGE not applicable

P$BUFFCACHE PACKAGE BODY not applicable

P$BUFFERCACHE TABLE 324

P$CANTEXTFILE TABLE 324

P$CANTEXTMAXFILE TABLE 324

P$CANTEXTMAXTBSP TABLE 324

P$CURSOR PACKAGE not applicable

P$CURSOR PACKAGE BODY not applicable

P$DATA_OS_SPACE TABLE 325

P$DATA_TS_SPACELEFT TABLE 325

P$EXTENTMAP TABLE 325

Table 107 PATROL account grants and privileges ( NON-SYS DBA) (part 2 of 2)

Type of grant Grant

Appendix B PATROL database objects 321

Page 322: Oracle K

PATROL for Oracle tables

PATROL for Oracle tablesThe PATROL tables are described in Table 109–Table 130.

P$JOBACTION TABLE 325

P$JOBACTION_UK INDEX not applicable

P$JOBGENERAL TABLE 326

P$JOBGENERAL_UK INDEX not applicable

P$JOBHISTORY TABLE 326

P$JOBSCHEDULE TABLE 326

P$JOBSCHEDULE_UK INDEX not applicable

P$LOCKCONFLICTTX TABLE 327

P$LOCKCONFLICTUSER TABLE 327

P$OBJ_EXCLUSION TABLE 328

P$POK_CFGthe owner of this table is the first DBA user to configure the instance

TABLE 328

P$QUERY PACKAGE BODY not applicable

P$QUERY PACKAGE not applicable

P$REPORT PACKAGE BODY not applicable

P$REPORT PACKAGE not applicable

P$RPT PACKAGE not applicable

P$RPTLIB PACKAGE not applicable

P$RPTLIB PACKAGE BODY not applicable

P$SQL TABLE 329

P$SQLTEXT TABLE 330

P$SQLTEXT_NDX INDEX not applicable

P$SQLNDX INDEX not applicable

P$TBSP_DATA_FILES VIEW 334

P$TEMP_TS_SPACELEFT TABLE 331

P$TEMP_OS_SPACE TABLE 331

Table 109 P$AUTOEXT table (part 1 of 2)

Name Null? Data type Definition

TABLESPACE_NAME NOT NULL VARCHAR2(30) name of the tablespace

FILE# NOT NULL NUMBER absolute file number

Table 108 PATROL database objects (part 2 of 2)

Object Name Object type See page

322 PATROL for Oracle User Guide

Page 323: Oracle K

PATROL for Oracle tables

AUTOEXTEND VARCHAR2(5) whether the tablespace has autoextended or not

MONITORING VARCHAR2(10) whether the tablespace is INCLUDED or EXCLUDED from monitoring

Table 110 P$AUTOEXTEND table

Name Null? Data type Description

TABLESPACE_NAME VARCHAR2(30) name of the tablespace

MAX_SEG_NEXT_EXTENT NUMBER maximum size (in bytes) of the next extent for the segments in the tablespace

MAX_FREE_BYTES NUMBER size (in bytes) of the largest free extent

MAX_FILE_AVAIL NUMBER maximum available space (in bytes) in an autoextensible file of the tablespace

OS_AVAIL NUMBER maximum number of free operating system bytes

FILE_INC_BYTES NUMBER size (in bytes) that the file can allocate when more space is required

FILE_ID NUMBER ID of the file

FILE_NAME VARCHAR2(513) name of the file

Table 111 P$AUTOEXTFILE table

Name Null? Data type Description

FILE# NOT NULL NUMBER number of the file

BYTES NUMBER file size (in bytes) of the autoextensible data/temp files

FILE_TYPE NOT NULL NUMBER decides the type of the file: datafile (0) or tempfile (1)

Table 112 P$AUTOEXTTS table

Name Null? Data type Description

TABLESPACE_NAME VARCHAR2(30) name of the tablespace

ALLOCATION_TYPE VARCHAR2(9) name of the tablespace allocation type

Table 109 P$AUTOEXT table (part 2 of 2)

Name Null? Data type Definition

Appendix B PATROL database objects 323

Page 324: Oracle K

PATROL for Oracle tables

Table 113 P$BUFFERCACHE table

Name Null? Data type Definition

OBJECT_NAME NOT NULL VARCHAR2(60) name of the object currently in the buffer cache

OBJECT_TYPE NOT NULL VARCHAR2(16) type of the object currently in the buffer cache

HEADER_BLOCKS NOT NULL NUMBER(38) number of headers in the buffer cache

DATA_BLOCKS NOT NULL NUMBER(38) number of data blocks in the buffer cache

CR_BLOCKS NOT NULL NUMBER(38) number of consistent blocks in the buffer cache

Table 114 P$CANTEXTFILE table

Name Null? Data type Description

FILE_ID NUMBER ID of the file

FILE_NAME VARCHAR2(513) name of the file

TABLESPACE_NAME VARCHAR2(30) name of the tablespace

FILE_INC_BYTES NUMBER size (in bytes) that the file can allocate when more space is required

FILE_AVAIL NUMBER available space (in bytes)

Table 115 P$CANTEXTMAXFILE table

Name Null? Data type Description

TABLESPACE_NAME VARCHAR2(30) name of the tablespace

MAX_FILE_AVAIL NUMBER maximum available space (in bytes) in an auto extensible file of the tablespace

Table 116 P$CANTEXTMAXTBSP table

Name Null? Data type Description

TABLESPACE_NAME VARCHAR2(30) name of the tablespace

MAX_SEG_NEXT_EXTENT NUMBER maximum size (in bytes) of the next extent for the segments in the tablespace

MAX_FREE_BYTES NUMBER size (in bytes) of the largest free extent

324 PATROL for Oracle User Guide

Page 325: Oracle K

PATROL for Oracle tables

Table 117 P$DATA_OS_SPACE table

Name Null? Data type Description

FILESYSTEM N/A VARCHAR2(513) name of the file system

OSAVAIL N/A NUMBER space left according to the operating system

Table 118 P$DATA_TS_SPACELEFT table

Name Null? Data type Description

TABLESPACE_NAME N/A VARCHAR2(30) name of the permanent tablespace

FREESPACE N/A NUMBER free space left in table

TOTALSPACE N/A NUMBER total amount of space in table

Table 119 P$EXTENTMAP table

Name Null? Data type Definition

FILE# NOT NULL NUMBER number of the file

LOWB NOT NULL NUMBER block number

HIGHB NOT NULL NUMBER block number plus the length of the extent (in blocks) minus 1

EXT# NOT NULL NUMBER number of the extent

OBJ_NAME NOT NULL VARCHAR2(30) name of the object

OWN_NAME NOT NULL VARCHAR2(30) name of the owner of the object

KIND NOT NULL VARCHAR2(12) kind of object

OBJ# NUMBER number of the object

Table 120 P$JOBACTION table (part 1 of 2)

Name Null? Data type Definition

JOBNAME NOT NULL VARCHAR2(64) unique name of the job

CATEGORY NOT NULL VARCHAR2(12) type of job:

■ PSL■ SQL■ OS

OUTPUTMODE NUMBER how to output the job:

■ Text Window■ Annotation■ Log File

Appendix B PATROL database objects 325

Page 326: Oracle K

PATROL for Oracle tables

WHENTONOTIFY NUMBER criteria to use for notifying the job results:

■ Always ■ Job Succeeds ■ Job Fails■ Job Completes

JOBTERMINATE NUMBER time the job is supposed to terminate

PARAM1 VARCHAR2(1024) parameter to use for the job

PARAM2 VARCHAR2(32) parameter to use for the job

PARAM3 VARCHAR2(32) parameter to use for the job

LOGNAME VARCHAR2(16) name of the log file on the agent computer

TEXT VARCHAR2(2000) text of the job results

Table 121 P$JOBGENERAL table

Name Null? Data type Definition

JOBNAME NOT NULL VARCHAR2(64) unique name of the job

CREATED NUMBER timestamp showing when the job was created

LASTMODIFIED NUMBER timestamp showing when the job was last changed

OWNER VARCHAR2(20) owner of the job

DBNAME VARCHAR2(32) database where the job is set to run

Table 122 P$JOBHISTORY table

Name Null? Data type Definition

JOBNAME NOT NULL VARCHAR2(64) unique name of the job

RUNAT NUMBER timestamp that shows when the job should run

NOTIFMODE NUMBER mode to use to notify of any errors

DURATION NUMBER number of iterations the job is supposed to run

RESULT VARCHAR2(32) whether the job ran successfully

Table 123 P$JOBSCHEDULE table (part 1 of 2)

Name Null? Data type Definition

JOBNAME NOT NULL VARCHAR2(64) unique name of the job

ENABLED NUMBER whether the job is set to run

Table 120 P$JOBACTION table (part 2 of 2)

Name Null? Data type Definition

326 PATROL for Oracle User Guide

Page 327: Oracle K

PATROL for Oracle tables

SCHTYPE NOT NULL NUMBER type of schedule the job is set to:

■ Once ■ Daily Once ■ Daily Recur■ Weekly Once■ Weekly Recur

SCHOCCURS NUMBER number of iterations the job is supposed to run

SCHDAY CHAR(3) day of the week the job is scheduled to run

SCHFREQ NUMBER how frequently the job is supposed to run

STARTING NOT NULL NUMBER time the job is scheduled to start

ENDING NUMBER time the job is scheduled to stop

STARTDATE NUMBER date the job is scheduled to start

ENDDATE NUMBER date the job is scheduled to end

DESCRIPTION VARCHAR2(256) description of the job

Table 124 P$LOCKCONFLICTTX table

Name Null? Data type Definition

WAIT_USERNAME N/A VARCHAR2(30) name of the user that is waiting for a lock

WAIT_UID N/A NUMBER ID of the user that is waiting for a lock

LOCK_TYPE N/A VARCHAR2(5) type of lock the object is waiting for

LOCK_OBJECT N/A VARCHAR2(40) object that is locked

HOLD_USERNAME N/A VARCHAR2(30) name of the user that is holding the lock

HOLD_UID N/A NUMBER ID of the user that is holding the lock

LOCK_FILE# N/A NUMBER the file that the lock is on

LOCK_BLOCK N/A NUMBER the block in the file that has the lock

LOCK_ROW N/A NUMBER the row in the file that has the lock

Table 125 P$LOCKCONFLICTUSER table (part 1 of 2)

Name Null? Data type Definition

WAIT_USERNAME N/A VARCHAR2(30) name of the user that is waiting for a lock

WAIT_UID N/A NUMBER ID of the user that is waiting for a lock

LOCK_TYPE N/A VARCHAR2(5) type of lock the object is waiting for

LOCK_OBJECT N/A VARCHAR2(40) object that is locked

WAIT_LOCK_MODE N/A VARCHAR2(16) mode of waiting the object is using

HOLD_USERNAME N/A VARCHAR2(30) name of the user that is holding the lock

Table 123 P$JOBSCHEDULE table (part 2 of 2)

Name Null? Data type Definition

Appendix B PATROL database objects 327

Page 328: Oracle K

PATROL for Oracle tables

HOLD_UID N/A NUMBER ID of the user that is holding the lock

HOLD_LOCK_MODE N/A VARCHAR2(16) mode of the holding lock

Table 126 P$OBJ_EXCLUSION table

Name Null? Data type Definition

TS# NOT NULL NUMBER tablespace identifier

FILE# N/A NUMBER file identifier

BLOCK# N/A NUMBER starting block location

OWNER N/A VARCHAR2(30) name of the owner of the object

OBJECT_TYPE N/A VARCHAR2(30) type of object that is excluded

OBJECT_NAME N/A VARCHAR2(30) name of the object

Table 127 P$POK_CFG table (part 1 of 2)

Name Null? Data type Definition

OraUser VARCHAR2(30) Oracle Username in uppercase

OraDB VARCHAR2(25) Oracle instance name, including the service name if the instance is a remote instance

PatrolAgentHost VARCHAR2(15) hostname of the Oracle instance

PatrolAgentPort VARCHAR2(8) PATROL Agent port number

Table 125 P$LOCKCONFLICTUSER table (part 2 of 2)

Name Null? Data type Definition

328 PATROL for Oracle User Guide

Page 329: Oracle K

PATROL for Oracle tables

Name VARCHAR2(128) Attribute Name holder

■ PatrolRTServers■ PatrolForOracleVersion■ PatrolAgentUser■ PatrolAgentEUI■ PatrolHome

Value VARCHAR2(256) Value of the corresponding attribute name

■ 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.

Table 128 P$SQL table (part 1 of 2)

Name Null? Data type Definition

ADDRESS RAW(4) address of the handle to the parent for this cursor

HASH_VALUE NUMBER hash value of the parent statement in the library cache

TIME_STAMP DATE time stamp of the SQL command

PARSING_USER_ID NUMBER ID of the first user that parses the SQL

FIRST_LOAD_TIME VARCHAR2(19) date and time that the SQL was first loaded

SHARABLE_MEM NUMBER amount of sharable memory in the shared pool consumed by the object

PERSISTENT_MEM NUMBER amount of persistent memory, in bytes used by this child cursor

RUNTIME_MEM NUMBER size of the ephemeral frame used by this child cursor

Table 127 P$POK_CFG table (part 2 of 2)

Name Null? Data type Definition

Appendix B PATROL database objects 329

Page 330: Oracle K

PATROL for Oracle tables

SORTS NUMBER number of sorts that was done for this child cursor

LOADED_VERSIONS NUMBER 1 if context heap is loaded, 0 otherwise

EXECUTIONS NUMBER number of times that a SQL statement is executed

USERS_EXECUTING NUMBER number of users executing the statement

LOADS NUMBER number of times that a SQL statement is reloaded into cache. The number of reloads increases, for example, when there is inadequate Shared Global area.

INVALIDATIONS NUMBER number of times this child cursor has been invalidated

PARSE_CALLS NUMBER number of times that a SQL statement is parsed

DISK_READS NUMBER number of disk reads for this child cursor

BUFFER_GETS NUMBER number of buffers that are read for a SQL statement

CURSOR_COUNT NUMBER current number of cursors (whether they are in use or not)

Table 129 P$SQLID table

Name Null? Data Type Definition

SQL_ID NUMBER ID of the SQL statement

ADDRESS RAW(4) used with HASH_VALUE to identify uniquely a cached cursor

HASH_VALUE NUMBER hash value always unique

Table 130 P$SQLTEXT table

Name Null? Data Type Definition

ADDRESS RAW(4) used with HASH_VALUE to identify uniquely a cached cursor

HASH_VALUE NUMBER hash value always unique

COMMAND_TYPE NUMBER A code for the type of SQL statement (SELECT, INSERT, etc.) being executed

PIECE NUMBER number used to order the pieces of SQL text

SQL_TEXT VARCHAR2(64) line of SQL text

Table 128 P$SQL table (part 2 of 2)

Name Null? Data type Definition

330 PATROL for Oracle User Guide

Page 331: Oracle K

Storage parameters for PATROL tables

Storage parameters for PATROL tables

The following table lists the storage parameters used by the database objects that are installed by PATROL:

Table 131 P$TEMP_TS_SPACELEFT table

Name Null? Data type Definition

TABLESPACE_NAME N/A VARCHAR2(30) name of the temporary tablespace

FREESPACE N/A NUMBER free space left in table

TOTALSPACE N/A NUMBER total amount of space in table

Table 132 P$TEMP_OS_SPACE table

Name Null? Data type Definition

FILESYSTEM N/A VARCHAR2(513) name of the file system

OSAVAIL N/A NUMBER space left according to the operating system

Table 133 PATROL tables storage parameters

Table/index name Added by function Storage parameter See page

P$AUTOEXT pconfobj.sql initial 40k, next 40k, pctincrease 0

322

P$AUTOEXTEND ORAGetOSSpaceDataL.psl initial 256K, next 256K, pctincrease 0

323

P$AUTOEXTTS ORAGetOSSpaceDataL.psl initial 256K, next 256K, pctincrease 0

323

P$BUFFERCACHE pconfobj.sql initial 20k, next 20k, pctincrease 0

324

P$CANTEXTFILE ORAGetOSSpaceDataL.psl initial 256K, next 256K, pctincrease 0

324

P$CANTEXTMAXFILE ORAGetOSSpaceDataL.psl initial 256K, next 256K, pctincrease 0

324

P$CANTEXTMAXTBSP ORAGetOSSpaceDataL.psl initial 256K, next 256K, pctincrease 0

324

P$EXTENTMAP pconfobj.sql initial 20k, next 20k, pctincrease 0

325

P$JOBACTION pbatchjobs.sql initial 256K, next 256K, pctincrease 0

325

P$JOBACTION_UK (index) pbatchjobs.sql initial 256K, next 256K, pctincrease 0

not applicable

P$JOBGENERAL pbatchjobs.sql initial 256K, next 256K, pctincrease 0

326

Appendix B PATROL database objects 331

Page 332: Oracle K

PATROL for Oracle views

PATROL for Oracle viewsThe PATROL views are described in Table 137.

P$JOBGENERAL_UK (index) pbatchjobs.sql initial 256K, next 256K, pctincrease 0

not applicable

P$JOBHISTORY pbatchjobs.sql initial 256K, next 256K, pctincrease 0

326

P$JOBSCHEDULE pbatchjobs.sql initial 256K, next 256K, pctincrease 0

326

P$JOBSCHEDULE_UK (index) pbatchjobs.sql initial 256K, next 256K, pctincrease 0

not applicable

P$LOCKCONFLICTTX pconfobj.sql initial 20k, next 20k, pctincrease 0

327

P$LOCKCONFLICTUSER pconfobj.sql initial 20k, next 20k, pctincrease 0

327

P$OBJ_EXCLUSION pconfobj.sql initial 50k, next 50k, pctincrease 0

328

P$SQL ORASqlViewerL.psl initial 256K, next 256K, pctincrease 0

329

P$SQL_NDX (index) ORASqlViewerL.psl initial 256K, next 256K, pctincrease 0

not applicable

P$SQLID ORASqlViewerL.psl initial 256K, next 256K, pctincrease 0

330

P$SQLTEXT ORASqlViewerL.psl initial 256K, next 256K, pctincrease 0

330

P$SQLTEXT_NDX (index) ORASqlViewerL.psl initial 256K, next 256K, pctincrease 0

not applicable

Table 134 P$ARCHDEST view

Name Null? Data type Definition

ARCHIVE_DEST VARCHAR2(256) Destination text string for the archive logs

Table 135 P$BH view (part 1 of 2)

Name Null? Data type Definition

FILE# NUMBER Data file identifier number

BLOCK# NUMBER block number for the data file

Table 133 PATROL tables storage parameters

Table/index name Added by function Storage parameter See page

332 PATROL for Oracle User Guide

Page 333: Oracle K

PATROL for Oracle views

STATUS VARCHAR2(4) status of the data file:

■ 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.

LOCK_ELEMENT_ADDR RAW(4) the address of the lock element that contains the PCM lock that is locking this buffer.

CLASS NUMBER 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.

DIRTY VARCHAR2(1) Y if the block has been modified

TEMP VARCHAR2(1) Y if the block is temporary

PING VARCHAR2(1) Y if the block is pinged

STALE VARCHAR2(1) Y if the block is stale

DIRECT VARCHAR2(1) Y if the block is a direct block

NEW VARCHAR2(1) Always set to N. This column is obsolete but is retained for historical compatibility

Table 135 P$BH view (part 2 of 2)

Name Null? Data type Definition

Appendix B PATROL database objects 333

Page 334: Oracle K

Pconfig variables

Pconfig variablesTable 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.

Table 136 P$DBA_TABLESPACES view

Name Null? Data type Definition

TABLESPACE_NAME NOT NULL VARCHAR2(30) name of the tablespace

INITIAL_EXTENT N/A NUMBER size of the initial extent (in blocks)

NEXT_EXTENT N/A NUMBER size of the next extent (in blocks)

MIN_EXTENTS NOT NULL NUMBER maximum number of extents allowed as specified in segment creation or alteration

MAX_EXTENTS NOT NULL NUMBER number of extents allocated during segment creation

PCT_INCREASE NOT NULL NUMBER percentage of extent increase

MIN_EXTLEN N/A NUMBER minimum extent length in blocks

STATUS N/A VARCHAR2(9) status of tablespaces

CONTENTS N/A VARCHAR2(9)

LOGGING N/A VARCHAR2(9) whether logging is on or off

Table 137 P$TBSP_DATA_FILES view

Name Null? Data type Definition

TABLESPACE_NAME N/A VARCHAR2(30) name of the tablespace

BYTES N/A NUMBER total number of bytes in the tablespace

BLOCKS N/A NUMBER total number of blocks in the tablespace

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 PATROL for Oracle User Guide

Page 335: Oracle K

Pconfig variables

When changing variables, follow these guidelines:

■ 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 Description

/AgentSetup/ORACLE_CATEGORY.ORACLE_SID.defaultAccount

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

■ default on UNIX: /tmp■ default on Windows: c:\\■ default on VMS: some$disk:

/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

/AgentSetup/ORACLE_SQLVIEWER.ORACLE_SID.collStartTime

For internal use only; do not modify or delete.

start time of the SQLViewer collector

/AgentSetup/ORACLE_SQLVIEWER.ORACLE_SID.collStopTime

For internal use only; do not modify or delete.

stop time of the SQLViewer collector

/AgentSetup/ORACLE.temp.defaultAccount For internal use only; do not modify or delete.

temporary default account

Appendix B PATROL database objects 335

Page 336: Oracle K

Pconfig variables

/AgentSetup/ORACLE_RAC_DATABASE/RACInstanceName.defaultAccount

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

Table 138 pconfig variables set by PATROL for Oracle (part 2 of 17)

Variable Description

336 PATROL for Oracle User Guide

Page 337: Oracle K

Pconfig variables

/ORACLE_AVAILABILITY.ORACLE_SID.temp.TableExists

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

For internal use only; do not modify or delete.

end of the file for the alert log

/OracleConfig.ORACLE_SID.AlertFileInfo_modtime

For internal use only; do not modify or delete.

last time the alert log was modified

/OracleConfig.ORACLE_SID.AlertFileInfo_size

For internal use only; do not modify or delete.

size of the Alert Log

/OracleConfig.ORACLE_SID.ALTERNEXT.SCHEMA NAME.OBJECT NAME

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.

Table 138 pconfig variables set by PATROL for Oracle (part 3 of 17)

Variable Description

Appendix B PATROL database objects 337

Page 338: Oracle K

Pconfig variables

/OracleConfig.ORACLE_SID.AlwaysOnLine 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:

■ 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.

/OracleConfig.ORACLE_SID.ARCHIVELOG.DIRECTORY

For internal use only; do not modify or delete.

archive log directory

/OracleConfig.ORACLE_SID.AvExUsers list of users who are excluded from monitoring by the following space parameters:

■ 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.

Table 138 pconfig variables set by PATROL for Oracle (part 4 of 17)

Variable Description

338 PATROL for Oracle User Guide

Page 339: Oracle K

Pconfig variables

/OracleConfig.ORACLE_SID.Categories

categories (application classes) that are selected to monitor this instance

Values for this variable are the following:

■ 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

For internal use only; do not modify or delete.

database name

/OracleConfig.ORACLE_SID.dbObjectsDeinstalled

For internal use only; do not modify or delete.

flag that indicates whether the database objects have been deinstalled

Table 138 pconfig variables set by PATROL for Oracle (part 5 of 17)

Variable Description

Appendix B PATROL database objects 339

Page 340: Oracle K

Pconfig variables

/OracleConfig.ORACLE_SID.Exclusion

flag that indicates whether the instance is excluded from monitoring by PATROL

This variable uses the following values:

■ 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:

■ 1 = Failover monitoring is active■ 0 = Failover monitoring is not active

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

Table 138 pconfig variables set by PATROL for Oracle (part 6 of 17)

Variable Description

340 PATROL for Oracle User Guide

Page 341: Oracle K

Pconfig variables

/OracleConfig.ORACLE_SID.FailoverMonitoring.AlternateORASid

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

For internal use only; do not modify or delete.

local listener name for failover monitoring

/OracleConfig.ORACLE_SID.FilterExcl

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:

■ UNIX: /usr/oracle/9/0/1■ Windows: c:\\OraHome1■ OpenVMS: disk$disk1: [oracle8]

Table 138 pconfig variables set by PATROL for Oracle (part 7 of 17)

Variable Description

Appendix B PATROL database objects 341

Page 342: Oracle K

Pconfig variables

/OracleConfig.ORACLE_SID.InUsers

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.

Table 138 pconfig variables set by PATROL for Oracle (part 8 of 17)

Variable Description

342 PATROL for Oracle User Guide

Page 343: Oracle K

Pconfig variables

/OracleConfig.ORACLE_SID.InTablespaces

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

For internal use only; do not modify or delete.

name of database; identical to SID

/OracleConfig.ORACLE_SID.NumPrivs

For internal use only; do not modify or delete.

number of privileges granted to patrol user

/OracleConfig.ORACLE_SID.ProbUserMaxBlocked

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.

Table 138 pconfig variables set by PATROL for Oracle (part 9 of 17)

Variable Description

Appendix B PATROL database objects 343

Page 344: Oracle K

Pconfig variables

/OracleConfig.ORACLE_SID.ProbUserMaxRunaway

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.

Table 138 pconfig variables set by PATROL for Oracle (part 10 of 17)

Variable Description

344 PATROL for Oracle User Guide

Page 345: Oracle K

Pconfig variables

/OracleConfig.ORACLE_SID.ProbUserMinRunaway

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

For internal use only; do not modify or delete.

flag that indicates whether recovery is set

/OracleConfig.ORACLE_SID.RECOVERY.ARCHIVELOG

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

Oracle Net service name specified at instance configuration

/OracleConfig.ORACLE_SID.UserBlocked

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.

Table 138 pconfig variables set by PATROL for Oracle (part 11 of 17)

Variable Description

Appendix B PATROL database objects 345

Page 346: Oracle K

Pconfig variables

/OracleConfig.ORACLE_SID.UserCpu

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.

■ 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.

Table 138 pconfig variables set by PATROL for Oracle (part 12 of 17)

Variable Description

346 PATROL for Oracle User Guide

Page 347: Oracle K

Pconfig variables

/OracleConfig.ORACLE_SID.UserRunaway

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:

■ 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:

■ 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.

Table 138 pconfig variables set by PATROL for Oracle (part 13 of 17)

Variable Description

Appendix B PATROL database objects 347

Page 348: Oracle K

Pconfig variables

/OracleConfig.DebugConf flag that indicates whether debug is active for instance configuration

This variable uses the following values:

■ 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

flag that indicates whether the named listener is a part of the Failover Configuration

/OracleConfig.Instances 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

Table 138 pconfig variables set by PATROL for Oracle (part 14 of 17)

Variable Description

348 PATROL for Oracle User Guide

Page 349: Oracle K

Pconfig variables

/OracleETF.ORACLE_SID.Parameters 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 Stores Oracle Home to check the status of the listener.

/OraNetConfig.listener_name.LsnrConfigHomeFlag 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.defaultAccount

This account information is used by ORANET to check the status of a 10g or later password-protected 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 Oracle Home directory holding the Oracle Net installation under which this listener runs

/OraNetConfig.LISTENER NAME.monitorflag flag that indicates whether monitoring of the listener specified by LISTENER NAME is enabled

/OraNetConfig.clusterConfigChanged 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 list of Oracle Net listeners being monitored by ORANET

/OraNetConfig.logicalHosts list of logical hosts for ORANET

/OraNetConfig.virtualServers list of virtual servers for ORANET

Table 138 pconfig variables set by PATROL for Oracle (part 15 of 17)

Variable Description

Appendix B PATROL database objects 349

Page 350: Oracle K

Pconfig variables

/ORACLE_ETSM.oracle_sid.dataOSTableExists 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 lists instances that are in the mount state

/RACConfig.RACDatabaseName.Monitoring 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.

Table 138 pconfig variables set by PATROL for Oracle (part 16 of 17)

Variable Description

350 PATROL for Oracle User Guide

Page 351: Oracle K

Pconfig variables

/RACConfig.RACInstanceName.rdbmsVersion 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.

Table 138 pconfig variables set by PATROL for Oracle (part 17 of 17)

Variable Description

Appendix B PATROL database objects 351

Page 352: Oracle K

Pconfig variables

352 PATROL for Oracle User Guide

Page 353: Oracle K

A p p e n d i x C

C Firewall and port-forwarding considerations

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. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 353Protocols, port numbers, and blocking. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 354Configuring a firewall for PATROL for Oracle . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 354

Benefits of VPNsA 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 company’s 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 Firewall and port-forwarding considerations 353

Page 354: Oracle K

Protocols, port numbers, and blocking

Protocols, port numbers, and blockingIf your environment requires communication between product tiers through a firewall or port-forwarding device, the following list describes some basic considerations. If you require more detailed assistance, please contact Customer Support.

■ 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.

Configuring a firewall for PATROL for OracleWhile it is common to have both the PATROL Agent and PATROL for Oracle components on the database server host, the PATROL console can reside on a client host for system administrator tasks. In this scenario, the PATROL console could reside outside the firewall (yet protected by another firewall) while the PATROL Agents are behind the firewall. After a database connection has been established between the PATROL console and the PATROL Agent, all port requirements have been met (unless you want to deploy the product to other servers).

354 PATROL for Oracle User Guide

Page 355: Oracle K

Configuring a firewall for PATROL for Oracle

To deploy Knowledge Modules (KMs), ensure that the following ports are open:

■ 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 Protocol Default port Connection

Distribution Manager

(web interface)

HTTP/HTTPS (TCP) 80 / 443 Web browser => Web Server

Distribution Server Command Line Interface

COS (TCP, RT) 2059 CLI => Distribution Server

Distribution Server Command Line Interface

PATROL (pexec) 3181 Distribution Server => target systemWIN MAP (SMB) 135 - 139

WIN Remote Reg 135 - 139

FTP 21

Telnet 23

SFTP 115

SSH 22

Distribution (pull files) HTTP / HTTPS 80 / 443 Distribution Client => Distribution ServerDistribution (pull files) HTTP / HTTPS 80 / 443

Distribution (wake up) TCP 50005

Appendix C Firewall and port-forwarding considerations 355

Page 356: Oracle K

Configuring a firewall for PATROL for Oracle

356 PATROL for Oracle User Guide

Page 357: Oracle K

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

GlossaryO7_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 accountAn 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 instanceA system resource discovered by PATROL. An application instance contains the information and attributes of the application class that it belongs to. See also instance.

blackoutA 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.

categoryA group of parameters that monitor specific areas of an Oracle installation. In this PATROL KM, a category is similar to an application class.

collector parameterA 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 typeThe 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

Page 358: Oracle K

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 console’s ability to commit KM changes.

consumer parameterA 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 hogThe user that has used the highest percentage of CPU cycles over the most recent collection interval.

deactivate a parameterTo 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 classTo 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 serverA database server that is configured so that a server process handles requests for a single user process. See also shared server.

dimmedA 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 KMTo 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 applicationSee disable a KM. (Most KMs are composed of individual application files with a .km extension.)

358 PATROL for Oracle User Guide

Page 359: Oracle K

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 variableA 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.oraSee initialization file.

initialization fileAn 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).

instanceA 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.

joinIn Oracle, a query that selects data from more than one table, and combines the data into a new database or table.

message windowA 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 idleA 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

Page 360: Oracle K

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

MTSSee multithreaded server or shared server architecture.

multithreaded server (MTS)See shared server architecture.

Oracle NetIn 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 fileIn 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 accountAn 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 cacheThe 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 cycleThe schedule on which a parameter starts running and the intervals at which it reruns; the cycle is expressed in seconds.

PQOSee parallel query option

preloaded KMA KM that is loaded by the PATROL Agent at startup and runs as long as the agent runs. See also disable a KM.

recovery actionA 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 fileIn Oracle, a file that contains a copy of all the data blocks that a data transaction has modified.

360 PATROL for Oracle User Guide

Page 361: Oracle K

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 parameterAn 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 ServerAn Oracle Server that is connected to the PATROL console through Oracle Net, instead of a PATROL Agent.

response windowAn 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.

rollbackIn Oracle, undoing changes that were made by a transaction.

rollback segmentIn Oracle, a place in the database where the undo information is kept and can be obtained if a rollback is needed.

schemaIn Oracle, a collection of objects associated with the database.

sessionThe set of events that occur from when a user connects to the Oracle RDBMS to when the user disconnects.

SGASystem 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 serverA 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.

SIDIn Oracle, the identifier for the instance or session.

snooze an alarmTo 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

Page 362: Oracle K

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 parameterA 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 parameterTo 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 windowA 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 windowA 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.

TNSSee transparent network substrate.

transactionA 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 PATROL for Oracle User Guide

Page 363: Oracle K

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

triggerA mechanism that allows procedures to automatically execute when an INSERT, UPDATE, or DELETE statement is executed on a table or view.

Glossary 363

Page 364: Oracle K

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 PATROL for Oracle User Guide

Page 365: Oracle K

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

Aaccessing

Explain Plan 159Server Manager 158SQL*Plus 159

accountDBA 83, 84, 87, 91, 100, 101, 106, 164, 170, 173NON -SYS DBA 320PATROL 101, 105, 107, 164, 170privileged 91, 100SYS 48, 83, 84, 87, 88, 89, 90, 91, 100, 101, 106, 123, 218,

224, 248, 257SYSTEM 65, 83, 90, 91, 101, 208, 282

Activate parameter 93ActiveCalls parameter 195agent, PATROL 35, 36alarm state 30AlertLogSize parameter 37Alerts parameter 37, 147, 170, 226, 227, 261application

administrative 19ARCHIVE 37, 289ASM 26AVAILABILITY 24, 37Availability 24CAPACITY 25COLLECTORS 25container 19DB_LINKS 25, 283DB_LINKS_INSTANCE 284descriptions 22

discovery 19ENVIRONMENT 25functional 19hierarchy 29, 295icons 19, 22INSTANCE 23, 28JOBS 26, 160–163list of 19LISTENER 163LOCKS 26LOG 289MTS 49, 275MTS_DISP 275NETWORK 26ORACLE_AVAILABILITY 146ORACLE_DATAGUARD 25ORACLE_TBS_INSTANCE 146ORANET 163PERFORMANCE 27PQO 49, 279RAC 27REPLICATION 27, 283SGA 27SPACE_EXPERT_ORA 27, 192SPACE_EXPERT_ORA_OBJ 192SPACE_EXPERT_ORA_TS 192SQLVIEWER 220TABLESPACES 183TBSP_INSTANCE 182USERS 28, 193

ArchFreeSpace (ARCHIVE parameter) 37ArchFreeSpace parameter 37, 82, 151, 261ArchFreeSpaceColl (ARCHIVE parameter) 37ArchFreeSpaceETF parameter 37, 82, 151ArchFreeSpaceOptional (ARCHIVE parameter) 37ARCHIVE application 289archiving

archive log files 26ARCHIVELOG option 26recovery actions 256

archiving configuration settings 132ArchLogCreated parameter 147ASM

command 128configuring 126monitoring 125

Index 365

Page 366: Oracle K

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 127removing an instance 127

ASM application 26ASM hierarchy 126AutoExtended parameter 146, 147, 182automated recovery actions 256–257automatic configuration log file 120automatic recovery actions

compressing log files 256moving log files 256

AVAILABILITY application 24, 102, 107, 261reports 228–234

Availability applicationdescription 24icon 24

Bbacking up before migration 60backup reports 234–237batch configuration 86–92

creating file 89file syntax 86keywords 87ora_batch_conf.tpl file 91template file 86

batch configuration log file 120batch scheduling 249–255

adding job 251adding reports 253deleting jobs 255examples 250jobs 249, 255log file 254PSL scripts 252setting time 254

BGChkPntRate parameter 261BGDumpLeft parameter 37, 82, 151, 261BGDumpLeftETF parameter 37, 82, 151BGDumpUsed parameter 37, 82BGDumpUsedPct parameter 37, 82blackout 174–176

configuration 176debug 177deleting periods 176nesting 175setting 176string 143time zones 175unending 175validating 143variable 143

BlkReads parameter 182, 190BlkWrites parameter 182, 190BMC Software, contacting 2Bourne shell 64

366 PATROL for Oracle User Guide

browser requirements 47BuffBusyRate parameter 249BuffHitRatio parameter 249, 261BusyRate parameter 275

CC shell 64CannotExtend parameter 37, 146, 147, 210, 212, 213, 231,

261CAPACITY application 25, 37, 261

reports 237–240categories 102, 108

AVAILABILITY 102, 107, 184, 198, 226, 261CAPACITY 193, 237, 261COLLECTORS 102, 107DB_LINKS 25, 283JOBS 160LOG 261MTS 49PERFORMANCE 261PQO 49, 279REPLICATION 283SGA 261SQLVIEWER 220TABLESPACES 183USERS 194, 197, 261

channelsdebug 123

cluster alias 167cluster environments 165, 167cluster monitoring 38–43, ??–68, ??–129CollCapacity parameter 237CollDbLinks parameter 283collection commands 148collection failure 30collector parameters 30COLLECTORS application 25, 102, 107Collectors application

description 30CollETF parameter 151CollJobs parameter 160CollMTS parameter 275CollPopulateContainers 189CollPQO parameter 279CollReplication parameter 283CollSGA parameter 246CollSqlViewer parameter 219colormap option 65ColSpaceLeft 190commit point site 272commit_point_strength init.ora parameter 273components

KM 20ConfigUpdate parameter 147configuration

Page 367: Oracle K

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 98advanced 97–112batch 86–92blackout 176category monitoring 108deleting instances 111installing PATROL objects 123instance 99–112LISTENER application 165listing settings 109modifying 141modifying configuration for an instance 105monitoring instance 104PATROL Configuration Manager 135remote instance 98, 99removing instances 111requirements 83restricted instances 103uninstalling PATROL objects 123

Configure parameter 93ConfigureETF rule 150, 152ConnectCheck parameter 147ConnectDB parameter 39, 41, 147consumer parameters 30CoreDumpLeft parameter 37, 82, 151CoreDumpLeftETF parameter 37, 82, 151CoreDumpUsed parameter 37, 82CoreDumpUsedPct parameter 37, 82Custom installation 56customer support 3customizations

migrating manually 58customized PSL

migrating 59

Ddata history 32data retrieval

parameters 30summary 30

database links 272, 273, 283–288database reports 240–246database SIDs 172dataguard

debugging information 305icon hierarchy 303instance removal 305limitations 306parameter 306primary instance 304standby instance 304troubleshooting information 311

DB_LINKS application 25, 283DB_LINKS_INSTANCE application 284DBA

account 84, 100, 101, 106account grants 320group privileges 173

DBWR (database writer) 27debug

blackout 177channels 123discovery 123failover monitoring 117graphical user interface 122InstanceStatus parameter 122options 120query execution time 148

default_auto_conf_agent port number.txt 93default_auto_config.txt 189deleting

instances 111tablespaces 183, 197

deleting old version 60DictHitRatio parameter 249, 261directories

$ORACLE_HOME 84, 99, 113$PATROL_HOME/lib/psl 22$PATROL_HOME/oracle 22$PATROL_INSTALL/oracle/conf 90TOMCAT_HOME 259TOMCAT_HOME/conf 264

DisableETF 152DisableETF rule 150discovery

debug 123instance 98

disk space 47DiskSorts parameter 261distributed databases

commit point site 272links 272, 273pending transactions 273reports 272–274snapshots 273transactions 273

EEdit Rule/Variable dialog box 152Enable OS Authentication 97ENVIRONMENT application 25environment variables

LANG 64PATH 64PATROL_BROWSER 64setting for Help browser 64setting for the browser 64

errorsfilter 170lookup 227

Index 367

Page 368: Oracle K

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 170TNS- 170

estimated time to failure (ETF) 150ETF parameters 151ETSM

description 26ETSM application 37ETSM Application Parameter 189ETSM_ tablespace type 188ETSM_REGULAR application 189ETSM_tablespace type Applications Parameters 190ETSM_TBSP_INSTANCE application 26, 189ETSM_TBSP_INSTANCE Application Parameters 190eXceed 65Excluded Tablespaces report 192exclusion

examples 212objects 214settings 216tablespaces 182, 209–256types 211users 215

Explain Plan utility 159ExtentsLeft parameter 151, 210, 212, 213, 214, 215, 231, 261ExtentsLeftETF parameter 151, 210, 214, 215, 231ExtentsLeftPct parameter 210, 212, 213, 214, 215, 231

FFailedJobs parameter 161failover monitoring 38–43, ??–68, ??–129

active/active environments 40active/passive environments 38configuring 112debug 117high availability environments 38PATROL Agent 38PATROL virtual agent 38workload balancing environments 40

file.cfg 133.km 20init.ora 83, 196, 199, 241, 243, 275, 278listener.ora 171, 172OPSINST.km 22ora_batch_conf.tpl 91ORACLEPARALLELSERVER.km 22ORACLEPARALLELSERVER.kml 75, 76psql.dat 223psqltest.dat 223removing from PATROL_CACHE 60server.xml 259, 263tnsnames.ora 35, 98, 99, 100, 273

filesparam.hist 32

FILESYSTEM.km 46, 82, 83

368 PATROL for Oracle User Guide

filterslistener error log 170

find_problems parameter 147, 192first time installation 53FOMonitor parameter 116FreeSpace parameter 151, 210, 212, 213, 214, 216, 261FreeSpaceDeficit parameter 147, 210, 212, 213, 214, 215,

231, 256, 261FreeSpaceETF parameter 151, 210, 212, 213, 214functions not available

OpenVMS 256remote instance 159Windows NT 158, 159, 256

Gglobal channel, resetting 119GUI

debug 122

Hhierarchy dataguard 303hierarchy, PATROL for Oracle 29, 295history files 32HTML Reporting 257–269

configuration 260FTP information configuration 262modifying 268refresh rates 269requirements 269viewing information 268

Iicons

alarm state 30types of 22

IDsInUse parameter 195init.ora file 49, 83, 98, 196, 199, 219, 238, 240, 241, 243, 275,

277, 278init.ora parameters 83, 196, 199, 241, 243, 275, 278

background_dump_dest 239commit_point_strength 273core_dump_dest 239license_max_sessions 242license_max_users 242license_sessions_warning 242mts_dispatchers 278mts_listener_address 278mts_max_dispatchers 278mts_max_servers 275, 278mts_multiple_listeners 278mts_rate_log_size 278mts_rate_scale 278

Page 369: Oracle K

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, 278mts_service 278timed_statistics 49, 83, 196, 199, 219user_dump_dest 239

installable image 52installation

backing up before migration 60system requirements 46verifying requirements 46

installingclearing cache 60for the first time 53online Help 63remotely 51rule sets 133

instanceadding 98blackout 173–176category monitoring 108configuration 99, 105configuration settings 109deleting 111disabling monitoring 104discovery 98enabling monitoring 104excluding tablespaces 209–256failover 112installing PATROL objects 123local 35modify configuration 105monitoring in restricted mode 103remote 35, 98, 100removing 111starting 173–174stopping 173–174uninstalling PATROL objects 123

INSTANCE application 23InstanceCheck parameter 147InstanceStatus parameter 39, 41, 86, 90, 91, 114, 117, 147,

261debug 122

JJAVA_HOME variable 259jobs

batch reporting 249broken 162failed 161flagging 162job queue 160–163overdue 161removing 163running 163

JOBS application 26, 160–163

Kkill session 223KM

customizations, migrating manually 58FILESYSTEM 46, 82, 83hierarchy 29, 295NT_LOGICAL_DISKS 46, 82, 83

knowledge module components 20Korn shell 64

LLANG environment variable 64LatchGetRatio parameter 261LibGetHitRatio parameter 249LibGetHits parameter 261LibGetPinRatio parameter 249license requirements 47list configuration settings 109LISTENER application 163

configuration 165starting a process 170stopping a process 170

listener.ora file 171, 172ListenerLog parameter 147, 170, 171listeners 163ListenerStatus parameter 147local installation 51local instance 35LockConflict parameter 261LOCKS application 26LOG application 26, 261, 289LogApplyGap parameter 306logical host names 167logs

archive 26, 256batch reporting 254enhanced monitoring 289redo 26Scheduler 254

LogTransferGap parameter 306

Mmanual migration of customizations 58master activities, replication 285MaxBusyRate parameter 275MaxWaitTimes parameter 275MemberStatus parameter 298migrating

customized PSL 59KM customizations manually 58removing files from PATROL_CACHE 60

migration

Index 369

Page 370: Oracle K

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 60modify configuration 105modifying instances 136Monitored Tablespaces report 192monitoring

logs 289restricted instances 103

monitoring database links 283–288monitoring instances

category 108disabling 104enabling 104excluding tablespaces 209–256failover 112remote Oracle instances 98, 99starting 105stopping 105

monitoring tablespaces 180–187, 188deleting 183, 197selecting 183, 197

monitoring users 193–209problem users 200, 201reports 208

moving rule sets 133MTS application 26, 49, 275

reports 275–278MTS_DISP application 275MTSProcsIdle parameter 275MTSProcsLeft parameter 275MTSProcsUsed parameter 275

NNet8 18, 35, 46

monitoring 163–170Net8i 18, 35Netscape Navigator 63Netscape Navigator requirements 47NETWORK application 26NT_LOGICAL_DISKS.km 46, 82, 83

OO7_DICTIONARY_ACCESSIBILITY 49online Help, installing 63OpenVMS 35, 88, 91, 98, 256, 259

functions not available 256ora_batch_conf.configuring file 90, 91ora_batch_conf.done file 90, 91ora_batch_conf.err file 90, 91ora_batch_conf.tpl file 91ORA_ROOT directory 88, 91ORA-006XX errors 226, 227Oracle (server)

ARCHIVELOG option 26

370 PATROL for Oracle User Guide

database writer 27errors 227Explain Plan 159home directory 84init.ora file 83, 196, 199, 241, 243, 275, 278optimizer 159server name 84SQL commands 159System Identifier 100, 113, 195, 201, 203, 204, 231, 240,

280tnsnames.ora 35, 98, 99utilities 158–163

Oracle account 48Oracle account, removing 135ORACLE application 28Oracle Net 18, 35, 46, 163Oracle Net Sercvices 35Oracle Net Services 18, 46Oracle objects, removing 135ORACLE_ASM.km 22ORACLE_ASM.kml 22ORACLE_ASM_DGROUP.km 22ORACLE_ASM_DISK.km 22ORACLE_ASM_INSTANCE.km 22ORACLE_AUTO_CONFIG.km 21ORACLE_AUTO_CONFIG.kml 21, 93, 189ORACLE_AVAILABILITY 146ORACLE_DATAGUARD application 25ORACLE_DATAGUARD.km 21ORACLE_DATAGUARD_DATABASE.km 21ORACLE_DATAGUARD_INSTANCE.km 21ORACLE_ETSM application 188ORACLE_ETSM.km 21ORACLE_ETSM.kml 192ORACLE_ETSM.kml file

icon 26ORACLE_ETSM_LARGE.km 21ORACLE_ETSM_READONLY.km 21ORACLE_ETSM_REGULAR.km 21ORACLE_ETSM_ROLLBACK.km 21ORACLE_ETSM_TBSP_INSTANCE.km 21ORACLE_ETSM_TEMP.km 21ORACLE_ETSM_UNDO.km 21ORACLE_ETSM_VERY_LARGE.km 21ORACLE_RAC.km 21ORACLE_RAC_DATABASE.km 21ORACLE_RAC_MEMBER_INSTANCE.km 21ORACLE_TBS_INSTANCE 146OracleETF._ANYINST_.Parameter rule 152OracleStatus parameter 39, 41, 147ORACreateUser.sql 92ORAFailoverMonitor 21ORANET application 23, 172

alarms 170cluster configuration 165, 167monitoring processes 163–173multiple listeners 167

Page 371: Oracle K

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 171–172requirements 164structured directory 168unstructured directory 169

oratab file 98orauser_.com file 88, 91

PP$AUTOEXTEND Table 323P$AUTOEXTTS Table 323P$CANTEXTFILE Table 324P$CANTEXTMAXFILE Table 324P$CANTEXTMAXTBSP Table 324P$DATA_OS_SPACE table 325P$DATA_TS_SPACELEFT table 325P$LOCKCONFLICTTX Table 327P$LOCKCONFLICTUSER Table 327P$OBJ_EXCLUSIONS Table 328P$POK_CFG Table 328P$SQL table 219P$SQL_TEXT table 220P$TBSP_DATA_FILES View 334parallel query option 279param.hist file 32parameter properties, changing 149parameters

Alerts 147, 226, 261ArchFreeSpace 82, 151, 261ArchFreeSpaceETF 82, 151ArchLogCreated 147AutoExtended 146, 147BGChkPntRate 261BGDumpLeft 82, 151, 261BGDumpLeftETF 82, 151BGDumpUsed 82BGDumpUsedPct 82BuffHitRatio 261BusyRate 275CannotExtend 37, 146, 147changing poll times 148changing thresholds 147collector 30CollETF 151ConfigUpdate 147ConnectCheck 147ConnectDB 147consumer 30CoreDumpLeft 82, 151CoreDumpLeftETF 82, 151CoreDumpUsed 82CoreDumpUsedPct 82data retrieval 30deactivating 145DictHitRatio 261DiskSorts 261

ETF 150, 151ExtentsLeft 151ExtentsLeftETF 151find_problems 147, 192fixed thresholds 147FreeSpace 151FreeSpaceDeficit 147FreeSpaceETF 151history data 32history file 32InstanceCheck 147InstanceStatus 86, 91, 117, 147LatchGetRatio 261LibGetHits 261ListenerLog 147ListenerStatus 147LockConflict 261MaxBusyRate 275MaxWaitTimes 275modifying 145, 149MTSProcsIdle 275MTSProcsLeft 275MTSProcsUsed 275OracleStatus 147overview of 30PctUsed 82, 181PingTime 283ProblemUsers 147, 261ProcsLeft 151, 261ProcsLeftETF 151QueriesInitiated 279QueueLength 275QueueWaitTime 275reactivating 146RedoArchDelay 261RedoNotArch 261reviewing data 30RSExtentsLeft 146RSExtentsLeftPct 146RSSpaceLeft 146RSSpaceLeftPct 146SchedulerOutput 147, 250SessionsLeft 151SessionsLeftETF 151ShutdownInProgress 147SlavesCPUUsed 279SlavesLeft 279SlavesPctBusy 279SlavesUsed 279SpaceLeft 82, 181standard 30StorageProblems 147, 192StorageProblemsCnt 147, 192storing data 30SystemTSLeft 146, 151, 261SystemTSLeftETF 151SystemTSLeftPct 146

Index 371

Page 372: Oracle K

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, 151UserDumpLeftETF 82, 151UserDumpUsed 82UserDumpUsedPct 82USERS 194Users 261USERS_INSTANCE 196with status set 146

partitions 210, 211, 215, 216PATH environment variable 64PATROL

account 101, 105, 107installing objects for 123KM tables storage parameters 331uninstalling objects for 123

PATROL Agent 35, 36, 38parameter data, storing 30

PATROL Agent, virtual 38PATROL Configuration Manager

archiving 132modifying instances 136overview 132removing instances 136requirements 132

PATROL console 63parameter data, reviewing 30

PATROL KM for Event Management 132, 150PATROL product directory 56PATROL security 50PATROL virtual agent 38PATROL_BROWSER environment variable 64PATROL_CACHE 60

removing files from 60PATROL_HOME 60PctUsed 37PctUsed parameter 37, 181, 182, 190Pending Transactions Report 274PERFORMANCE application 261PERFORMANCE application application 27PhyReads parameter 182, 190PhyWrites parameter 182, 190PingTime parameter 283POKKMConfigInstanceRemoved rule

removing 135removing instance 141using 134

POKKMConfigUpdated rulemodifying instance 140removing 135using 134

poll times 148polling cycles 148ports 47PQO application 27, 49, 279

reports 279–283privileges

DBA group 173

372 PATROL for Oracle User Guide

privileges for DBA group 173problem users

blocking process 201monitoring 199parameter 195solving 200

ProblemUsers parameter 147, 195, 261ProcsLeft parameter 151, 261ProcsLeftETF parameter 151product directory 57product support 3Profiles Report 204Provide the PATROL 3.x Product Directory window 57PSL, migrating 59psql.dat file 223psqltest.dat file 223

QQueriesInitiated parameter 279query execution time 148QueueLength parameter 275QueueWaitTime parameter 275

RRAC application 27RAC hierarchy 295RAC_DATABASE application 298Real Application Cluster (RAC)

application description 27configuring 294parameters 298requirements 295

recovery actionsautomated 256–257compressing log files 256moving log files 256

recovery reports 234–237redo logs 26RedoArchDelay parameter 261RedoNotArch parameter 261Regular expression

choosing a tablespace 190selecting a user for monitoring 197tablespace monitoring 183

remote installation 51remote instance 35, 98, 99, 100

adding 98configuring 98, 99functions not available 159menu items not available 36parameters not available 36, 37SQL*Net 36

removing instances 111

Page 373: Oracle K

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

replicationautomatic conflict resolution 287conflict resolution 287conflicts 286database links 288deferred calls 287master activities 285objects 288pending transactions 287replicated objects 288replication groups 284resuming 285status 285suspending 285two-phase transactions 287

REPLICATION application 27, 283–289reports

Access Statistics 237Active Sessions Report 202Active SQL Statements Report 203Alerts 226–228All Error Messages 227All Jobs Report 160All ORA-006XX Messages 227Archiving State 235AutoExtend DB Files Report 232AVAILABILITY 228–234backup 234–237Backup Status 235batch 249–255Broken Jobs Report 162Buffer Cache Contents 101, 248Buffer/Lib/Dict Cache Info 249CAPACITY 237–240Commit Point Strength 273Conflict Resolution Methods Report 287Conflicts Report 286database 240–246Database Files 241Database Links 273DB Links Report 288Deferred Calls Report 287Dispatcher 276Dispatcher Busy Rates 276Dispatcher Wait Times 277Display Oracle Users 204distributed databases 272–274Failed Jobs Report 161Free Space 228Free Space Deficit Report 232HTML 257–269Link Information Report 284Listener Services Info 171, 172Listener Services Info report 171, 172Listener Status Info 172Listener Status Info report 172Lock Conflicts 231

Locks Outstanding 240Maximum Extents 233Media Recovery 236MTS 275–277Object Space Analysis 229Operations Statistics 280Oracle init.ora Parameters 243Oracle License Limits 242ORANET 171–172Overdue Jobs Report 162Pending Transactions 274, 287PQO 279–283Privilege Violations 227Profiles Report 204recovery 234–237Redo Log 236Redo Logs Buffer Cache 249Replicated Objects Report 288REPLICATION 286Resources Used 238Roles 205Rollback Segments 244Schema Table Information 241Server Statistics 280Session Details 203Session Locks Held 202Session Statistics 202, 281SGA 246–249SGA Memory Analysis 247Shared Pool 247Shared Servers 278Show Tail 227Snapshot 274Space Usage By Object 230SQLVIEWER 220–222Statistic Summary 245Statistics Summary 245Tablespace Free Space 184Tablespace Segments 186Tablespace Storage and Status 187Temporary Extents 233Trace Files Space Analysis 239User Account Information 205User Column/Role Privilege Report 206User Session Detail 208User Session Report 206USERS 208Wait State Analysis 239

requirementsbrowser 47HTML Reporting 258Oracle MTS parameters 49Oracle PQO parameters 49Oracle software 49overview 46PATROL 82PATROL KM dependencies 82

Index 373

Page 374: Oracle K

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 46resetting global channel 119retrieving data 30Review Selections and Install window 57RSExtentsLeft parameter 146, 210, 212, 213, 214, 215, 231,

261RSExtentsLeftPct parameter 146, 210, 212, 213, 214, 215,

231RSSpaceLeft parameter 146, 210, 212, 213, 214, 215, 261RSSpaceLeftPct parameter 146, 210, 212, 213, 214, 215rule sets

directory 133installed 133moving 133

Ssample batch configuration template file 86sample_config.wri file 86Scheduler 249–255

adding job 251adding reports 253deleting jobs 255examples 250job status 255jobs 249log file 254parameter 250PSL scripts 252setting time 254

SchedulerOutput parameter 147, 250security 50security level 50security levels

requirements 47Select Products and Components to Install window 56Select System Roles window 56Select Type of Installation window 56selecting tablespaces 183, 197Server Manager 158server.xml file 259, 263sessions, killing 223SessionsLeft parameter 151SessionsLeftETF parameter 151setting environment variables for Help browser 64SGA application 27, 261

reports 246–249shells

Bourne 64C 64Korn 64

ShutdownInProgress parameter 147SID 100, 113, 172, 195, 201, 203, 204, 231, 240, 280SlavesCPUUsed parameter 279SlavesLeft parameter 279SlavesPctBusy parameter 279

374 PATROL for Oracle User Guide

SlavesUsed parameter 279Space Expert 192SPACE_EXPERT_ORA application 27, 192SPACE_EXPERT_ORA_OBJ application 192SPACE_EXPERT_ORA_TS application 192SpaceLeft parameter 37, 181, 182, 190Specify Installation Directory window 56SQL commands 159SQL Snapshot 217, 218, 218–224SQL Viewer 219–223

archiving data 223kill sessions 223reports 220–222starting 220stopping 220tables 219–220

SQL*NET 35SQL*Net 18, 46, 83, 98, 163SQL*Plus 158, 159SQLVIEWER application 220standard collectors 30standard parameters 30standby instance

configuring 304removing 305selecting primary instance 304

StandbyStatus parameter 306storage parameters

PATROL KM tables 331StorageProblems parameter 147, 192StorageProblemsCnt parameter 147, 192storing parameter data 30support, customer 3SYS account 84, 100, 101, 106, 218, 224, 248, 257system

requirements 46SYSTEM account 65, 83, 90, 91, 101, 208, 282system global area 246System Identifier 100, 195, 201, 203, 204, 231, 240, 280system requirements 46SYSTEM tablespace 209, 235SystemTSLeft parameter 146, 151, 261SystemTSLeftETF parameter 151SystemTSLeftPct parameter 146

Ttables 219

P$AUTOEXT 322P$AUTOEXTEND 323P$AUTOEXTFILE 323P$AUTOEXTTS 323P$BUFFERCACHE 324P$CANTEXTFILE 324P$CANTEXTMAXFILE 324P$CANTEXTMAXTBSP 324

Page 375: Oracle K

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 325P$JOBACTION 325P$JOBGENERAL 326P$JOBHISTORY 326P$JOBSCHEDULE 326P$LOCKCONFLICTTX 327P$LOCKCONFLICTUSER 327P$OBJ_EXCLUSIONS 328P$POK_CFG 328P$SQL 219, 329P$SQL_TEXT 220P$SQLID 330P$SQLTEXT 330PATROL for Oracle 322–330SQL Viewer 219–220storage parameters 331

Tablespace monitoringregular expression 183

tablespace namelimitation 180

tablespacesdeleting 183, 197excluding 182, 209–256monitoring 180selecting 183, 197SYSTEM 209, 235

TABLESPACES application 28, 180, 183TBSP_INSTANCE application

parameters 182technical support 3temporary tablespaces 24, 49, 84, 88, 91, 100, 101, 107, 205,

210, 213TempTSLeft parameter 210, 212, 213, 214TempTSLeftPct parameter 210, 212, 213, 214The 317thresholds, changing for parameters 147TIMED 49TNS_ADMIN 49tnsname.ora 49tnsnames.ora file 35, 98, 99, 273Tomcat servlet engine

TOMCAT_HOME variable 259TOMCAT_HOME/conf directory 259, 264

Typical installation 56

Uupgrading

removing files from PATROL_CACHE 60upgrading and saving your customizations 59upgrading, choosing a procedure 53user account 64User monitoring

regular expression 197UserDumpLeft parameter 37, 82, 151UserDumpLeftETF parameter 37, 82, 151

UserDumpUsed parameter 37, 82UserDumpUsedPct parameter 37, 82users

monitoring 193–209problem 200, 201problem users 200, 201

USERS application 28, 193, 261parameters 194using 193–209

Users parameter 195, 261USERS_INSTANCE application parameters 196USRCpuSeconds parameter 49

Vvariable

JAVA_HOME 259PATROL_BROWSER 64TOMCAT_HOME 259

Variablesdeploying 142

variablesfor internal use only 137not in pconfig 136

viewsP$TBSP_DATA_FILES 334PATROL for Oracle 332–??

WWindows NT

functions not available 158, 159, 256wpconfig utility 74, 75, 79, 80, 103, 104

Xx-emulator 158, 159xpconfig utility 74, 75, 76, 80, 81xterm 158, 159

Index 375

Page 376: Oracle K

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 PATROL for Oracle User Guide

Page 377: Oracle K

Notes

Page 378: Oracle K

*91171**91171**91171**91171*

*91171*