- 3,708,902 Users
- 2,241,153 Discussions
- 7,840,697 Comments
Forum Stats
Discussions
Categories
- 99 Community Feedback - NEW! (No Product Questions)
- 43 General Community Platform Concerns/Kudos/Feedback
- 37 Community Platform Bug Reports
- 55 How Do I? (Community Platform "How to" Questions)
- 11 Where is the...? (Community Platform Locations)
- 9 I'd Like to See... (Community Platform Ideas & Suggestions)
- 11.2K Community Feedback (No Product Questions) Archive
- 64 Personal Document & Blog Archive
- 2 Community Programs
- 2 Get-Togethers
- 56 Certification Community
- 4.7K Certification Community Discussions
- 31 Oracle Certified Master Profiles
- 25 Oracle Database 12c Administrator Certified Master Profiles
- 28 Visual Builder Cloud Service
How to Move or Migrate 13c Agent Base Directory to Different Location

Perform the following steps to move or migrate 13c agent base directory to a different location:
1. Rename existing <AGENT_BASE>/sysman/install/AgentMigrate.pl to AgentMigrate.pl.org
2. Download AgentMigrate_updated.txt from this document to agent machine and copy the AgentMigrate_updated.pl to <AGENT_BASE>/sysman/install directory
3. Rename the file AgentMigrate_updated.txt to AgentMigrate.pl
4. Run the following commands to migrate the agent base directory:
a. <AGENT_HOME>/perl/bin/perl <AGENT_HOME>/sysman/install/create_plugin_list.pl -instancehome <AGENT_INSTANCE_HOME>
Here, <AGENT_HOME> represents the current central agent Oracle home, and <AGENT_INSTANCE_HOME> represents the current central agent instance home.
b. <AGENT_HOME>/perl/bin/perl <AGENT_HOME>/sysman/install/AgentMigrate.pl -instanceHome <AGENT_INSTANCE_HOME> -newAgentBaseDir <AGENT_BASE_DIRECTORY>
Here, <AGENT_INSTANCE_HOME> represents the current agent instance home, and <AGENT_BASE_DIRECTORY> represents the new agent base directory where agent needs to be migrated
Example:
$ /u03/anandu/agent/agent_13.1.0.0.0/perl/bin/perl /u03/anandu/agent/agent_13.1.0.0.0/sysman/install/create_plugin_list.pl -instancehome /u03/anandu/agent/agent_inst
$ /u03/anandu/agent/agent_13.1.0.0.0/perl/bin/perl /u03/anandu/agent/agent_13.1.0.0.0/sysman/install/AgentMigrate.pl -instanceHome /u03/anandu/agent/agent_inst -newAgentBaseDir /u03/anandu/agent_migrate
5. Once above command completes successfully, verify the agents and target status in 13c Cloud Control