QUESTION POSED ON: 25 July 2005 I would like to know if there are any APIs available in Oracle Enterprise Manager to find out details of a
process. For example, if I know that my SAP program is running slow on my Oracle database, I would like to pass the process ID or program name to an API to get detailed information such as whether it is waiting on a locked
resource or doing a full table scan, etc.
>
EXPERT RESPONSE
You don't need an API to Enterprise Manager to get this information; just query the dynamic performance view V$SESSION (the source of the data displayed by Enterprise Manager). It contains the client
machine name, OS username and program being executed; once you have identified the Oracle session corresponding to the operation of interest, you can find out what it's waiting on ( V$SESSION_WAIT in versions previous to 10g, V$SESSION in 10g), what SQL it's executing (in V$SQLTEXT) and so on.
Search and Browse the Expert Answer Center Search and browse more than 25,000 question and
answer pairs from more than 250 TechTarget industry experts.
TechTarget provides enterprise IT professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective IT purchase decisions and managing their organizations' IT projects - with its network of technology-specific Web sites, events and magazines.