My Oracle Support Banner

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 FEBRUARY 17, 2019

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 <AGENT_BASE_DIR>\core\12.1.0.3.0\bin\emctl.bat to <AGENT_BASE_DIR>\core\12.1.0.3.0\bin\emctl_upgrade.bat "

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

INFO: OLDHOME=<AGENT_BASE_DIR>\core\12.1.0.3.0
INFO: AGENT_INSTANCE_HOME=<AGENT_BASE_DIR>\agent_inst

INFO: Correcting the plugin registry.xml and inventory by running the fix_plugin_entry.pl
INFO: Executing command:cmd /c <AGENT_BASE_DIR>\core\12.1.0.4.0\perl\bin\perl <AGENT_BASE_DIR>\core\12.1.0.4.0\sysman\install\fix_plugin_entry.pl -instancehome <AGENT_BASE_DIR>\agent_inst
INFO: The agent Base Dir is <AGENT_BASE_DIR>The agent oraclehome is <AGENT_BASE_DIR>\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=<AGENT_BASE_DIR>\core\12.1.0.4.0
2.OLDHOME=<AGENT_BASE_DIR>\core\12.1.0.3.0
3.AGENT_INSTANCE_HOME=<AGENT_BASE_DIR>\agent_inst
4.PLUGIN_RSPFILE=<AGENT_BASE_DIR>\agent_inst/install/plugins_upgrade.txt
5.b_startAgent=true
6.b_sharedAgents=false
7.AGENT_BASE_DIR=<AGENT_BASE_DIR>

INFO: Copying from: <AGENT_BASE_DIR>\agent_inst\bin to <AGENT_BASE_DIR>\backup_agtup\backup_2014-07-09_20-25-01-PM\agent_inst\bin

INFO: Line selected:agentStateDir=<AGENT_BASE_DIR>/agent_inst
INFO: Line selected:emdRootCertLoc=<AGENT_BASE_DIR>/agent_inst/sysman/config/b64LocalCertificate.txt

INFO: Executing command: <AGENT_BASE_DIR>\core\12.1.0.4.0\jdk\bin\java -jar <AGENT_BASE_DIR>\core\12.1.0.4.0\jlib\updateStateDirectory.jar -emStateDir <AGENT_BASE_DIR>\agent_inst -oldAgentHome <AGENT_BASE_DIR>\core\12.1.0.3.0 -newAgentHome <AGENT_BASE_DIR>\core\12.1.0.4.0

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

INFO: Executing command: <AGENT_BASE_DIR>\core\12.1.0.4.0\jdk\bin\java -jar <AGENT_BASE_DIR>\core\12.1.0.4.0\jlib\upgradeCollections.jar -emStateDir <AGENT_BASE_DIR>\agent_inst -newPluginXml <AGENT_BASE_DIR>\core\12.1.0.4.0\sysman\admin\agentLib.xml -oldPluginXml <AGENT_BASE_DIR>\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 <AGENT_BASE_DIR>\core\12.1.0.3.0\bin\emctl.bat to <AGENT_BASE_DIR>\core\12.1.0.3.0\bin\emctl_upgrade.bat

SEVERE:
ERROR: Agent Deployment Failed

SEVERE: The emctl file <AGENT_BASE_DIR>\core\12.1.0.3.0\bin\emctl_upgrade.bat does not exist
SEVERE: The emctl file in instancehome <AGENT_BASE_DIR>\agent_inst\bin\emctl_upgrade.bat does not exist

 

 

Cause

To view full details, sign in with your My Oracle Support account.

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


In this Document
Symptoms
Cause
Solution
References


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.