EMDIAG Repvfy is a tool which is designed to collect data from a Cloud Control Management Repository to assist in the diagnosis and optimization of EM12c. It’s mentioned on “Oracle Enterprise Manager 12c Configuration Best Practices (Doc ID 1553342.1)”, and you can find the required information on Doc ID 1426973.1, to download, install and run EMDIAG Repvfy. Yesterday, I installed it for our EM12c system, and I got some errors while running it. So here is a quick blog post about EMDIAG Repvfy.
At first, to be able to install (and run) it, you should set Oracle environment variables for Enterprise Manager Cloud Control repository database. You should also set EMDIAG_HOME variable which will point to the folder you unzipped the tool. So you run the following commands to install EMDIAG Repvfy:
unzip repvfy12_2014.0403.zip -d /home/oracle/repvfy . oraenv export EMDIAG_HOME=/home/oracle/repvfy ./repvfy install
I tried to run it with “execute optimize” parameter, but it gave some errors when running:
cd $EMDIAG_HOME/bin ./repvfy execute optimize
As you might have noticed, the version I downloaded, is updated recently (2014.04.03). I’m sure they will fix its errors soon. By the way, these errors are simple syntax errors, so we can fix the error by ourselves. The Repvfy tool uses some sql scripts which are stored under $EMDIAG_HOME/12cR1. I see that #optimize.sql has some syntax errors. So I opened #optimize.sql file with my favorite editor (vi), then fixed the following codes:
DECLARE agt NUNBER; DECLARE agt NUMBER; core.omsAgentComm.ping.heartbeatPingRecorderThreads to ||TO_CHAR(cnt)); core.omsAgentComm.ping.heartbeatPingRecorderThreads to '||TO_CHAR(cnt));
I highly recommend you to install and use EMDIAG Repvfy. Maybe you will not need to diagnose EM12c, but even “optimize” command of EMDIAG Repvfy is very useful. It’ll optimize internal task system (and worker threads), repository settings, the PING grace period (to allow the OMS to wait longer before checking the heartbeat of the agents).