By jorge_neidisch on Dec 12, 2012
1 - Download the OEM 12c R2. It can be downloaded here:
Note: it is a set of three huge zips.
2 - Unzip the archives
3 - Create a directory (as the oem-owner user) where the upgraded Middleware should be installed. For instance:
$ mkdir /u01/app/oracle/Middleware12cR2
4 - Back up OMS (Middleware home and inventory), Management Repository and Software Library.
5 - Ensure that the Management tables don't have snapshots:
If there are snapshots drop them:
SQL> select master , log_table from all_mview_logs where log_owner='<EM_REPOS_USER>
SQL> Drop snapshot log on <master>
6 - Copy emkey from existing OMS:
$ <OMS_HOME>/bin/emctl config emkey -copy_to_repos [-sysman_pwd <sysman_pwd>]
To verify whether the emkey is copied, run the following command:
$ <OMS_HOME>/bin/emctl status emkey
If the emkey is copied, then you will see the following message:
The EMKey is configured properly, but is not secure.
Secure the EMKey by running "emctl config emkey -remove_from_repos".
7 - Stop the OMS and the Agent
$ <OMS_HOME>/bin/emctl stop oms
$ <AGENT_HOME>/bin/emctl stop agent
8 - from the unzipped directory, run
8a - Follow the wizard: Email / MOS; Software Updates: disable or leave empty.
8b - Follow the wizard: Installation type: Upgrade -> One System Upgrade.
8c - Installation Details: Middleware home location: enter the directory created in step 3.
8d - Enter the DB Connections Details. Credentials for SYS and SYSMAN.
8e - Dialog comes: Stop the Job Gathering: click 'Yes'.
8f- Warning comes: click 'OK'.
8g - Select the plugins to deploy along with the upgrade process
8h- Extend Weblogic: enter the password (recommended, the same password for the SYSMAN user).
A new directory will be created, recommended:
8i - Let the upgrade proceed by clicking 'Install'.
8j - Run the following script (as root) and finish the 'installation':
9 - Turn on the Agent:
$ <AGENT_HOME>/bin/emctl start agent
Note that the $AGENT_HOME might be located in the old Middleware directory:
$ /u01/app/oracle/Middleware/agent/agent_inst/bin/emctl start agent
10 - go to the EM UI. Select the WebLogic Target and choose the option "Refresh WebLogic Domain" from the menu.
11 - Update the Agents: Setup -> Manage Cloud Control -> Upgrade Agents -> Add (+)
Note that the agents may take long to show up.
... and that's it! Or that should be it !
A more complete guide is here: