I am using Oracle Managed Data Access NuGet package (Oracle.ManagedDataAccess) and would like to enable Oracle performance counters. They are not displayed Performance Monitor and I found an article suggesting how to manually register them: http://blog.bekijkhet.com/2010/01/odpnet-performance-counters-do-not-show.html
I've followed the article, downloaded OraProvCfg from Oracle Web site (it was a part of the ODP.NET package), now I am trying to run the following command:
OraProvCfg /action:register /product:odp /component:perfcounter /providerpath:C:\ODP.NET\Oracle.ManagedDataAccess\lib\net40\Oracle.ManagedDataAccess.dll
However, it displays the error:
ERROR: Unable to find the type :.OraclePerfCounterConfiguration or .OraclePerfCollection.
What am I doing wrong?
The product needs to be odpm
OraProvCfg /action:register /product:odpm /component:perfcounter /providerpath:C:\ODP.NET\Oracle.ManagedDataAccess\lib\net40\Oracle.ManagedDataAccess.dll
And you need to run the command as an admin.