EM 12c R4: Agent Upgrade on Windows fails with "SEVERE: The emctl file in the oraclehome cannot be renamed from emctl.bat to emctl_upgrade.bat" (Doc ID 1908892.1)

Last updated on APRIL 15, 2017

Applies to:

Enterprise Manager Base Platform - Version 12.1.0.4.0 and later
Information in this document applies to any platform.

Symptoms

Agent Upgrade from 12.1.0.3 to 12.1.0.4 on Windows fails with the following error:

"SEVERE: The emctl file in the oraclehome cannot be renamed from f:\oracle\agent12c\core\12.1.0.3.0\bin\emctl.bat to f:\oracle\agent12c\core\12.1.0.3.0\bin\emctl_upgrade.bat "

From <AGENT_BASE_DIR>/cfgtoollogs/agentDeploy/agentDeploy<timestamp>.log:

INFO: OLDHOME=f:\oracle\agent12c\core\12.1.0.3.0
INFO: AGENT_INSTANCE_HOME=f:\oracle\agent12c\agent_inst

INFO: Correcting the plugin registry.xml and inventory by running the fix_plugin_entry.pl
INFO: Executing command:cmd /c f:\oracle\agent12c\core\12.1.0.4.0\perl\bin\perl f:\oracle\agent12c\core\12.1.0.4.0\sysman\install\fix_plugin_entry.pl -instancehome f:\oracle\agent12c\agent_inst
INFO: The agent Base Dir is f:/oracle/agent12cThe agent oraclehome is f:\oracle\agent12c\core\12.1.0.3.0

INFO: Applying core patches ...
INFO: Applying oneoffs ...
INFO: Executing runUpgradeConfig ...
INFO: Agent Upgrade configuration start time:2014-07-09_20-27-07-PM
INFO: runUpgradeConfig method started ...
INFO: Parametes passed to agent upgrade configuration are:
1.ORACLE_HOME=f:\oracle\agent12c\core\12.1.0.4.0
2.OLDHOME=f:\oracle\agent12c\core\12.1.0.3.0
3.AGENT_INSTANCE_HOME=f:\oracle\agent12c\agent_inst
4.PLUGIN_RSPFILE=f:\oracle\agent12c\agent_inst/install/plugins_upgrade.txt
5.b_startAgent=true
6.b_sharedAgents=false
7.AGENT_BASE_DIR=f:\oracle\agent12c

INFO: Copying from: f:\oracle\agent12c\agent_inst\bin to f:\oracle\agent12c\backup_agtup\backup_2014-07-09_20-25-01-PM\agent_inst\bin

INFO: Line selected:agentStateDir=f:/oracle/agent12c/agent_inst
INFO: Line selected:emdRootCertLoc=F:/oracle/agent12c/agent_inst/sysman/config/b64LocalCertificate.txt

INFO: Executing command: f:\oracle\agent12c\core\12.1.0.4.0\jdk\bin\java -jar f:\oracle\agent12c\core\12.1.0.4.0\jlib\updateStateDirectory.jar -emStateDir f:\oracle\agent12c\agent_inst -oldAgentHome f:\oracle\agent12c\core\12.1.0.3.0 -newAgentHome f:\oracle\agent12c\core\12.1.0.4.0

INFO: Command: f:\oracle\agent12c\core\12.1.0.4.0\jdk\bin\java -jar f:\oracle\agent12c\core\12.1.0.4.0\jlib\updateStateDirectory.jar -emStateDir f:\oracle\agent12c\agent_inst -oldAgentHome f:\oracle\agent12c\core\12.1.0.3.0 -newAgentHome f:\oracle\agent12c\core\12.1.0.4.0 completed with status=0
INFO: Command: f:\oracle\agent12c\core\12.1.0.4.0\jdk\bin\java -jar f:\oracle\agent12c\core\12.1.0.4.0\jlib\updateStateDirectory.jar -emStateDir f:\oracle\agent12c\agent_inst -oldAgentHome f:\oracle\agent12c\core\12.1.0.3.0 -newAgentHome f:\oracle\agent12c\core\12.1.0.4.0 completed successfully.

INFO: Executing command: f:\oracle\agent12c\core\12.1.0.4.0\jdk\bin\java -jar f:\oracle\agent12c\core\12.1.0.4.0\jlib\upgradeCollections.jar -emStateDir f:\oracle\agent12c\agent_inst -newPluginXml f:\oracle\agent12c\core\12.1.0.4.0\sysman\admin\agentLib.xml -oldPluginXml f:\oracle\agent12c\core\12.1.0.3.0\sysman\admin\agentLib.xml
INFO: Plugin homes:
INFO: Plugin homes:

SEVERE: The emctl file in the oraclehome cannot be renamed from f:\oracle\agent12c\core\12.1.0.3.0\bin\emctl.bat to f:\oracle\agent12c\core\12.1.0.3.0\bin\emctl_upgrade.bat

SEVERE: 
ERROR: Agent Deployment Failed

SEVERE: The emctl file f:\oracle\agent12c\core\12.1.0.3.0\bin\emctl_upgrade.bat does not exist
SEVERE: The emctl file in instancehome f:\oracle\agent12c\agent_inst\bin\emctl_upgrade.bat does not exist

 

 

Changes

 

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms