Figure 1: Main OAM Login Screen



Similar documents
SQL Activity Runaway sessions Session information. SQL Activity Concurrent Request runaways. Database sessions Concurrent Requests

PowerSchool Student Information System

The Top 10 Things DBAs Should Know About Toad for IBM DB2

Dell InTrust Preparing for Auditing Microsoft SQL Server

Enterprise Applications in the Cloud: Non-virtualized Deployment

Tuning poor performing SQL s Using Oracle 10g Enterprise Manager s Automatic SQL Tuning Advisor

Monitoring Agent for PostgreSQL Fix Pack 10. Reference IBM

Oracle Database 11 g Performance Tuning. Recipes. Sam R. Alapati Darl Kuhn Bill Padfield. Apress*

Oracle Database Performance Management Best Practices Workshop. AIOUG Product Management Team Database Manageability

As databases grow, performance drops, backup and recovery times increase, and storage and infrastructure costs rise.

EVENT LOG MANAGEMENT...

3 Setting up Databases on a Microsoft SQL 7.0 Server

Ingenious Testcraft Technical Documentation Installation Guide

Oracle Utilities Meter Data Management Business Intelligence

TIBCO Spotfire Server Migration. Migration Manual

Configuring and Integrating Oracle

Oracle Enterprise Single Sign-on Logon Manager How-To: Configuring ESSO-LM Event Logging with Microsoft SQL Server 2005 Release

Foglight Managing SQL Server Database Systems Getting Started Guide. for SQL Server

Configuring and Monitoring SNMP Generic Servers. eg Enterprise v5.6

ibolt V3.2 Release Notes

Keep It Simple - Common, Overlooked Performance Tuning Tips. Paul Jackson Hotsos

Symantec Enterprise Vault Technical Note. Administering the Monitoring database. Windows

There are numerous ways to access monitors:

Copying data from SQL Server database to an Oracle Schema. White Paper

Configuring and Integrating JMX

How To Use The Correlog With The Cpl Powerpoint Powerpoint Cpl.Org Powerpoint.Org (Powerpoint) Powerpoint (Powerplst) And Powerpoint 2 (Powerstation) (Powerpoints) (Operations

StreamServe Persuasion SP5 Oracle Database

753 Broad Street Phone: Suite 200 Fax: Augusta, GA Copyrights

Performance Monitor. Intellicus Web-based Reporting Suite Version 4.5. Enterprise Professional Smart Developer Smart Viewer

User Manual. Version connmove GmbH Version: Seite 1 von 33

Using Digital Signatures in SAP QM to Meet Regulatory Requirements

How to Configure a Remote Desktop Licensing Server for vspace 6

OEM s SQL Monitoring Feature. Ken Gottry 5-May-2014

Pcounter CGI Utilities Installation and Configuration For Pcounter for Windows version 2.55 and above

PUBLIC Installation: SAP Mobile Platform Server for Linux

EMC Unisphere for VMAX Database Storage Analyzer

TUTORIAL WHITE PAPER. Application Performance Management. Investigating Oracle Wait Events With VERITAS Instance Watch

VeriCentre 3.0 Upgrade Pre-Installation and Post Installation Guidelines

Department of Veterans Affairs VistA Integration Adapter Release Enhancement Manual

Using Database Performance Warehouse to Monitor Microsoft SQL Server Report Content

Security Analytics Engine 1.0. Help Desk User Guide

Oracle Database 11g: New Features for Administrators 15-1

Using Macro Scheduler For Load Testing

TIBCO Spotfire Metrics Modeler User s Guide. Software Release 6.0 November 2013

Developing Value from Oracle s Audit Vault For Auditors and IT Security Professionals

Introducing SQL Server Express

SSMS Built in Reports for Server and Database Monitoring

Dell One Identity Manager 7.0. Help Desk Module Administration Guide

Quick Start SAP Sybase IQ 16.0

Windows Intune Walkthrough: Windows Phone 8 Management

KPNS Database Setup Guide - SQL Server

How to Copy A SQL Database SQL Server Express (Making a History Company)

DocAve for Office 365 Sustainable Adoption

WinCollect User Guide

Preparing a SQL Server for EmpowerID installation

WatchDox Administrator's Guide. Application Version 3.7.5

AvePoint SearchAll for Microsoft Dynamics CRM

Forms Printer User Guide

Agentry and SMP Metadata Performance Testing Guidelines for executing performance testing with Agentry and SAP Mobile Platform Metadata based

Phone Manager Application Support OCTOBER 2014 DOCUMENT RELEASE 4.1 SAGE CRM

Microsoft SQL Server for Oracle DBAs Course 40045; 4 Days, Instructor-led

Auditing manual. Archive Manager. Publication Date: November, 2015

BDR for ShadowProtect Solution Guide and Best Practices

Configuring and Monitoring SharePoint Servers

Installing the IPSecuritas IPSec Client

Product Manual. MDM On Premise Installation Version 8.1. Last Updated: 06/07/15

SSO BDC is Easy! By Brett Lonsdale, MCTS, MCSD.NET, MCT Lightning Tools 1/12/2008

Installation Instructions Release Version 15.0 January 30 th, 2011

Migrating Cirrus. Revised 7/19/2007

MyOra 3.5. User Guide. SQL Tool for Oracle. Kris Murthy

Documentum Business Process Analyzer and Business Activity Monitor Installation Guide for JBoss

AvePoint SearchAll for Microsoft Dynamics CRM

Foglight Managing SQL Server Database Systems Getting Started Guide. for SQL Server

How To Improve Performance On An Asa 9.4 Web Application Server (For Advanced Users)

Propalms TSE Quickstart Guide

Version 4.61 or Later. Copyright 2013 Interactive Financial Solutions, Inc. All Rights Reserved. ProviderPro Network Administration Guide.

File Auditor for NAS, Net App Edition

IBM Tivoli Composite Application Manager for Microsoft Applications: Microsoft Internet Information Services Agent Version Fix Pack 2.

A Closer Look at Manual Invoicing and Manual Cash Receipts

Business Portal for Microsoft Dynamics GP. Project Time and Expense Administrator s Guide Release 10.0

Guerrilla Warfare? Guerrilla Tactics - Performance Testing MS SQL Server Applications

SQL Server. SQL Server 100 Most Asked Questions: Best Practices guide to managing, mining, building and developing SQL Server databases

CA Workload Automation Agent for Databases

SQL Server Training Course Content

Quest ChangeAuditor 5.1. For Windows File Servers. Events Reference

How to Configure Access Control for Exchange using PowerShell Cmdlets A Step-by-Step guide

Viewing Paycheck Information Online - LSUSH Off Campus

Running a Budget Position Report for a Department

Configuring Microsoft Internet Information Service (IIS6 & IIS7)

Integrating ConnectWise Service Desk Ticketing with the Cisco OnPlus Portal

Proactive database performance management

EMC Data Domain Management Center

Specops Command. Installation Guide

TDA - Thread Dump Analyzer

User Guide. Version 3.2. Copyright Snow Software AB. All rights reserved.

Dell Statistica Statistica Enterprise Installation Instructions

HYPERION SYSTEM 9 N-TIER INSTALLATION GUIDE MASTER DATA MANAGEMENT RELEASE 9.2

Transcription:

Oracle Application Database Management, Part II: Navigating Oracle Applications Manager By Natalka Roshak Editor s Note: Continuing the Oracle Application Database Management series, Natalka Roshak expands her discussion of OAM focusing on other aspects of OAM s database monitoring capability. What follows is a useful overview and how-to for navigating through OAM, managing session management, and de-mystifying waits. OAM offers a broad spectrum of monitoring and analysis tools that provide the Apps DBA with a wealth of information about the database, the Web servers, application services, and concurrent requests. Figure 1: Main OAM Login Screen Introduction Oracle Applications Manager, or OAM, lets you monitor and administer components of your Oracle Applications instance. OAM offers a broad spectrum of monitoring and analysis tools that provide the Apps DBA with a wealth of information about the database, the Web servers, application services, and concurrent requests. In the first article in this series, Oracle Application Database Management, Part I: Take Database Monitoring in Oracle Applications Manager to the Next Level, we focused on one aspect of OAM s database monitoring capability, SQL Activity, and showed how to extend OAM s SQL Activity monitoring with custom SQL queries. This article will drill down on other aspects of OAM s database monitoring capability. As in the first article, every SQL query presented here can be added to OAM by using the SQL Extensions page. Getting Started with Oracle Applications Manager If you haven t used Oracle Applications Manager before, there are two ways to get there. One way is to go to the Rapid Install portal page. Click on Apps Logon Links on the lefthand side. Choose Oracle Applications Manager and log in. The other way is to log in from the Sysadmin screen. From the main screen, click on Site Map in the top navigation bar to take you to the Site Map (Figure 1). From the Site Map, select the Monitoring tab to view OAM s monitoring capabilities (Figure 2). OAM s database monitoring capabilities include: Database availability - Navigation: Database > Availability

Figure 2: OAM Monitoring Screen Figure 3: Places to Access Database Session Monitoring SQL activity - Navigation: Performance > SQL Activity Database and forms sessions - Navigation: Performance > Forms Sessions - Current Activity > Database Sessions - Current Activity > Forms Sessions Concurrent report requests - Navigation: Performance > Concurrent Processing Reports Runaway requests - Navigation: Performance > Concurrent Request Runaways Invalid database objects - Navigation: Current Activity > Invalid Objects Database logs - Navigation: Current Activity > Logs Your custom SQL reports - Navigation: Custom Reporting Utilities > SQL Extensions The first article focused on the SQL Activity report, explaining and extending the information available in OAM. In this article, we will look at OAM s session and request monitoring capability. Showing Database Session Information There are a couple of places that you can monitor database and forms sessions: Click on Database Sessions under Current Activity > Database Sessions (Figure 3) to bring up the Database Sessions screen as shown in Figure 4. If you have set the profile option Sign-On: Audit Level, then you can see similar information for the current forms sessions. Each open form has its own database session, which you can monitor using the navigation path Performance > Forms Sessions

Figure 4: Session Monitoring Screen or Current Activity > Forms Sessions. Click on the AUDSID to bring up the Database Session Information screen, which has detailed information on that session as shown in Figure 5. Figure 5: Session Details Screen A great deal of information about the session you ve clicked on is presented in this screen. What follows is a detailed explanation of the information that is presented, and how to dig down on the individual fields to get to even more in-depth information about your sessions. Understanding OAM s Session Information Under Instance Attributes, OAM gives both a session ID (SID) and serial number. These two numbers together uniquely identify this session in the database. We use them to identify the session in Oracle s dynamic performance views, such as v$session and v$session_wait. If you need to kill a client session, you can use the SID and serial number to do it. For example, to kill a client session with SID of 12 and Serial# of 3456, log in to the database as SYS, and issue an ALTER SYSTEM KILL SESSION command: SYS@MYDB> alter system kill session 12,3456 ; or SYS@MYDB> alter system kill session 12,3456 immediate; The ALTER SYSTEM KILL SES- SION command: marks the session as killed, rolls back the session s transactions, releases the session s locks, and recovers the session s resources. In some circumstances, Oracle is not able to roll back the transaction and release locks right away. For example, if the session is executing a remote transaction, then Oracle will mark the session as KILLED and wait for the remote transaction to complete. In this case,

try killing the session with ALTER SYSTEM KILL SESSION... IMME- DIATE. Note: If your database is a RAC, you must make sure you re on the same instance as the session before issuing the KILL SESSION command. You can see which instance the session is on by looking at the INST_ID column of gv$session: SYS@MYDB > select inst_id from gv$session where sid=12 and 2 > serial#=3456; The next field under the Instance Attributes section is the OS PID. The OS PID refers to the session s Process IDentifier on the operating system. If you are running in dedicated server mode, then each client session corresponds to a unique process on the database server s operating system. Knowing the session s PID is useful for two reasons. First, if you re unable to end a session using the following: [oracle@oraserver ~]$ ps uwx USER PID %CPU %MEM VSZ START TIME COMMAND oracle 4924 0.0 0.6 2456076 21:58 0:00 oracleprod (LOCAL=NO) oracle 4989 0.0 0.3 2454512 22:01 0:00 oracleprod (LOCAL=NO) oracle 5021 0.7 1.8 2461236 22:02 0:08 oracleprod (LOCAL=NO) Figure 6: Session Waits Information in OAM immediately with ALTER SYSTEM KILL SESSION... IMMEDIATE, you can end it by killing the session s process at the OS level. For instance, to kill a session with OS PID 4924: [oracle@oraserver ~]$ kill -9 4924 If your Oracle server is running on Windows, the OS PID actually refers to the operating system thread ID. Oracle runs as a single process on Windows; all sessions run as threads under this process. You will need to use the Oracle-provided utility ORAKILL.EXE, found in %ORA- CLE_HOME%\BIN, to kill a specific thread. C:\> ORAKILL.EXE PROD 4924 ORAKILL.EXE takes the Oracle SID and the thread ID as arguments. The second reason that the OS PID comes in handy is that you can use this PID in operating-system monitoring tools. For example, on Windows, you can use the Microsoft utility qslice.exe (available for download on the Microsoft site at www.microsoft.com/downloads/details. aspx?familyid=6247bb76-13c5-4e0e- B800-53DC1B84A94C&displaylang=en). qslice displays the % cpu usage per process, and per thread. To monitor how much CPU thread 4924 is using, open qslice.exe and find the oracle.exe process. Click on the oracle.exe process to see a graphical breakdown of % CPU usage for that process by thread. The thread ID s shown here are in hexadecimal, so you must convert 4924 to hexadecimal (133c), then monitor the CPU usage for thread 133c. The second reason that the OS PID comes in handy is that you can use this PID in operating-system monitoring tools. Drilling Down on Waits OAM s session Database Session Information page (Figure 6) includes a section on session wait events. Note: If you do not see non-zero values in this section, your instance most likely has the initialization parameter TIMED_STATISTICS set to FALSE. Oracle recommends setting this parameter to TRUE, as it s invaluable for instance tuning and, under normal circumstances, has very little overhead. However, it is also important to note that this session wait information is aggregate information the average, total, and max values are the average/total/max since logon.

5 If you re wondering what a given session is currently waiting on, this information can be next to useless. Fortunately, it s easy to get this information from the database. Use the SID found under Instance Attributes in this query: select * from v$session_wait where sid=<sid> ; If a given session seems to be hanging, a quick look at the results of this query will let you know what the session is waiting on. Check the value of the Event column to see what the session is waiting on; the ID1 and ID2 columns hold more details you can often use to drill down on that wait event, and the WAIT_TIME and SECONDS_IN_WAIT indicate how long the session has been waiting on this event. There is a vast body of Oracle literature available on addressing specific wait events. I ll only address one of the more common wait events here: lock waits. Wait Event: Locks If you see a lock wait, usually called an enq or enqueue wait, in v$session_wait, you can find out who holds the blocking lock, and whether your stuck session is blocking another. Again, use the SID found under Instance Attributes in this query to produce the output shown in Figure 7. And, if the lock type is TM, you can use the blocking SID (1030 in the example) to find out which object that SID is locking. LOCK_INFO -------------------------------------- SCOTT@mercury ( SID=1030 ) is blocking SCOTT@venus ( SID=982 ) select sessa.username @ sessa.machine ( SID= sessa.sid ) is blocking sessb.username @ sessb.machine ( SID= sessb.sid ) AS lock_info from v$lock lcka, v$session sessa, v$lock lckb, v$session sessb where sessa.sid=lcka.sid and sessb.sid=lckb.sid and ( sessb.sid=<sid> or sessa.sid=<sid> ) and lcka.block=1 and lckb.request > 0 and lcka.id1 = lckb.id1 and lckb.id2 = lckb.id2 ; Figure 7: Sample Output USERNAME OSUSER SID TY I D1 ID2 LM REQ BLOCK OBJ_NAME OWNER ------------------------------------------------------------------------------------------------------------------ SCOTT oracle 982 TM 187235 0 3 0 2 THE_TAB SCOTT SCOTT oracle 1030 TM 187235 0 3 0 2 THE_TAB SCOTT Figure 8: Sample Output select se.username, se.osuser, l.sid, l.type, l.id1, l.id2, lmode, request, block, do.object_ NAME, do.owner from gv$lock l, dba_objects do, gv$session se where l.sid=se.sid and l.id1=do. object_id(+) and l.sid in (<SID>, <BLOCKING SID>) order by block desc, l.sid ; Now that you have identified the blocking session and object, you can also look the blocking session s SID up in the Oracle Application Monitor. You will need to get the session s AUDSID from v$session. For example: Return to the Session Monitor (Site Map > Current Activity > Database Sessions) and click on the AUD- SID found above to show the Session Monitor screen for the blocking session. Conclusion We ve seen how to drill down on sessions in Oracle Applications Manager, and how to extend OAM s information using select audsid from v$session where sid=1030; Natalka Roshak Natalka is a Senior Oracle Database Administrator and an Oracle Certified Professional in Database Administration. She provides expert database consulting solutions across North America from her base in Southern Ontario. More of her scripts and tips can be found in her online DBA toolkit at www./toolkit.rdbms-insight. com. Natalka may be contacted at Natalka.Roshak@ERPtips.com. Acknowledgements The Oracle Applications Manager screenshots in this article are thanks to Jeff Slavitz, Oracle Applications Consultant, of www.oracleappspro.com.

Journal 6 The information on our website and in our publications is the copyrighted work of Klee Associates, Inc. and is owned by Klee Associates, Inc. NO WARRANTY: This documentation is delivered as is, and Klee Associates, Inc. makes no warranty as to its accuracy or use. Any use of this documentation is at the risk of the user. Although we make every good faith effort to ensure accuracy, this document may include technical or other inaccuracies or typographical errors. Klee Associates, Inc. reserves the right to make changes without prior notice. NO AFFILIATION: Klee Associates, Inc. and this publication are not affiliated with or endorsed by Oracle Corporation. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Klee Associates, Inc. is a member of the Oracle Partner Network This article was originally published by Klee Associates, Inc., publishers of JDEtips and SAPtips. For training, consulting, and articles on JD Edwards or SAP, please visit our websites: www.jdetips.com and www.saptips.com.