Relocating base directory Enterprise Manager’s central agent

After the upgrade of the 12c central agent to 13c, I noticed the new central agent’s home located under the wrong – old agent – directory: /u01/app/oracle/agent12c/agent_13. Must have done something wrong. How to correct this? Want to move the directory to /u01/app/oracle/agent13c/. A very short blog to describe the two steps.

It’s a bit hidden away in the documentation (in the appendixes) but there’s a special procedure to do this, and it worked like a charm for me.

So, /u01/app/oracle/agent12c/agent_13.  should be /u01/app/oracle/agent13c/agent_13.

Step 1:  Create a list of plugins by using this command:

/u01/app/oracle/agent12c/agent_13.      /u01/app/oracle/agent12c/agent_13. -instancehome /u01/app/oracle/agent12c/agent_inst/

A file /u01/app/oracle/agent12c/plugins.txt is created, used by the next command.


Step 2: Creating a new base directory for agent13c – where I didn’t need to stop the agent by the way, that’s all included in the script:

/u01/app/oracle/agent12c/agent_13. /u01/app/oracle/agent12c/agent_13. -instanceHome /u01/app/oracle/agent12c/agent_inst -newAgentBaseDir /u01/app/oracle/agent13c

Post actions to be done:

  • Run from /u01/app/oracle/agent13c/agent_13. manually
  • Deinstall (rm -R) agent home /u01/app/oracle/agent12c/agent_13. manually

And that’s it! Sometimes life is easy.




Moving the central agent base directory :

By |2018-01-28T17:18:08+00:00February 1st, 2018|Categories: Oracle Enterprise Manager|Tags: , , |1 Comment

About the Author:

One Comment

  1. Franco November 8, 2018 at 7:49 am

    Worked great, thank you.
    The only thing which I had to do on top is to correct the /u01/app/oracle/agent13c/agent_13. link which still pointed to the old location. It’s to say that I moved a 13.3 agent

Leave A Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.