Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ODP.NET Managed Driver Performance Counters missing in perfmon

How do I enable the performance counters for ODP.NET Managed Driver in perfom in order to be able to monitor them? Currently I am unable to see the category "Oracle Data Provider for .NET" in perfmon at all.

I've tried to register the counters from within the configure script int the xcopy installation bundle (ODP.NET_Managed121010.zip), but the relevant part ended with an error:

OraProvCfg /action:register /product:odpm /component:perfcounter /providerpath:"D:\svnroot\tech\Nasadzovanie\Assemblies\Oracle.ManagedDataAccess\tmp\odp.net\managed\x64\..\common\Oracle.ManagedDataAccess.dll" ERROR: Encountered a problem while registering ODP counters

The relevant sections of my app.config are correct I hope:

<configSections>
  <section name="oracle.manageddataaccess.client"
           type="OracleInternal.Common.ODPMSectionHandler,
                 Oracle.ManagedDataAccess, Version=4.121.1.0,
                 Culture=neutral, PublicKeyToken=89b483f429c47342" />
</configSections>
<oracle.manageddataaccess.client>
  <version number="*">
    <settings>
      <setting name="PerformanceCounters" value="4095" />
    </settings> 
  </version>
</oracle.manageddataaccess.client>
like image 291
metalheart Avatar asked Mar 18 '14 08:03

metalheart


People also ask

What is ODP managed driver?

ODP.NET, Managed Driver is 100% managed code . NET Framework provider. Developers deploy a single assembly in a deployment package smaller than 10 MB. ODP.NET, Unmanaged Driver is the traditional Oracle ADO.NET provider that uses the Oracle Database Client.

What are the performance counters when installing Oracle data provider for net?

Installing Oracle Data Provider for .NET creates a set of performance counters on the target system. These performance counters are published by ODP.NET for each ODP.NET client application. These performance counters can be viewed using Windows Performance Monitor (Perfmon).

What are the performance counters in the Windows Performance Monitor?

This article provides a list of performance counters you can find in the Windows Performance Monitor. The Performance console .NET CLR Exceptions category includes counters that provide information about the exceptions thrown by an application.

How do I manage NETnet networking performance counters?

Networking performance counters can be accessed and managed using the PerformanceCounter and related classes in the System.Diagnostics namespace. Networking performance counters can also be viewed with the Windows Performance Monitor console. Networking performance counters need to be enabled in the configuration file to be used.

What are Interop performance counters?

Interop performance counters. The Performance console .NET CLR Interop category includes counters that provide information about an application's interaction with COM components, COM+ services, and external type libraries.


1 Answers

In addition to the app config settings mentioned above, you need to run the following command as 'Administrator'. Before executing make sure to replace the {path} with the correct directory.

OraProvCfg /action:register /product:odpm /component:perfcounter /providerpath:"{path}\oracle.manageddataaccess.dll"

You can find the OraProvCfg.exe in the ODP.NET xcopy download.

like image 192
user2356651 Avatar answered Sep 25 '22 20:09

user2356651