Silent upgrade from OEM 12.1.0.3 to 12.1.0.4

I’ve just been upgrading my Oracle Enterprise Manager Cloud Control 12c environment from 12.1.0.3 to 12.1.0.4, here are the steps I followed.

I chose here to go with a silent upgrade. Although I do have a GUI available to me, most of the time on customer sites I don’t so I’m developing a process for the non-GUI approach. I’d also say this is intended as an overview of the basic steps, rather than a step-by-step guide to save you reading the documentation! The upgrade guide that Oracle have supplied in the documentation is actually superb (their documentation lately is definitely improving!) and it has a few little points which are worth reading first hand.

So firstly, prerequisites –

1. A backup. I’m running on a VM, so I simply created a full backup of the VM. If you can’t do that, then you’ll want to take a backup of the repository database via RMAN, the middleware homes, Oracle Inventory, and take an OMS config backup.

2. Space. The upgrade is out-of-place, so you need (at least temporarily) space for two middleware homes. I needed 14GB of free space on my /u01 file system, as well as 2GB of free space in /tmp to allow me to upgrade the central agent later.

3. Some critical patches may be required for your repository database home prior to proceeding with the upgrade. Check the documentation for a full list, but there were none required for my 11.2.0.4 repository home at the time.

4. You’ll need the repository database SYS and SYSMAN passwords and the WLS Admin Server password.

4. Create your upgrade response file. The way I did this was copy the [UNZIPPED_SOFTWARE_DIR]/response/upgrade.rsp sample file to ~oracle/ and then make my modifications there (the file is well commented). Then I use cat upgrade.rsp|egrep -v ‘(^$|#)’ to get rid of all the rubbish. In the end mine looked like this.

RESPONSEFILE_VERSION=2.2.1.0.0
SECURITY_UPDATES_VIA_MYORACLESUPPORT=false
DECLINE_SECURITY_UPDATES=true
INSTALL_UPDATES_SELECTION="skip"
ORACLE_MIDDLEWARE_HOME_LOCATION=/u01/app/oracle/em/middleware_r4
OLD_BASE_DIR=/u01/app/oracle/em/middleware
ONE_SYSTEM=true
WLS_ADMIN_SERVER_PASSWORD=password1
SYS_PASSWORD=password1
SYSMAN_PASSWORD=password1
REPOSITORY_BACKUP_DONE=true
b_upgrade=true
EM_INSTALL_TYPE="NOSEED"
FROM_LOCATION="../oms/Disk1/stage/products.xml"
TOPLEVEL_COMPONENT={"oracle.sysman.top.oms","12.1.0.4.0"}

Then some initial pre-upgrade steps –

1. Check the documentation for their comment about creating a copy of the out-of-box rules you have email notifications tied to. You may need to copy them to avoid losing email notifications for them.

2. Check for any snapshots, and delete if needed.

SQL> select master , log_table from all_mview_logs where log_owner='SYSMAN';
SQL> drop snapshot log on [log_table];

3. Copy the EM Key into the repository.

[OMS_HOME]/bin/emctl config emkey -copy_to_repos -sysman_pwd
[OMS_HOME]/bin/emctl status emkey

By the way, this should be automatically removed during the upgrade, which you can check by running the “status” command again at the end.

4. Stop OMS and the central agent.

[OMS_HOME]/bin/emctl stop oms -all
[AGENT_HOME]/bin/emctl stop agent

Now you’re ready for the actual upgrade –

1. Run the installer

[UNZIPPED_SOFTWARE_DIR]/runInstaller -silent -responseFile /home/oracle/upgrade.rsp

The output is quite verbose and should look something like this –

[oracle@oem12c ~]$ /mnt/software/oracle/oem12c/r4/runInstaller -silent -responseFile /home/oracle/upgrade.rsp
Starting Oracle Universal Installer...

Checking Temp space: must be greater than 400 MB.   Actual 2057 MB    Passed
Checking swap space: must be greater than 150 MB.   Actual 5951 MB    Passed
Preparing to launch Oracle Universal Installer from /tmp/OraInstall2014-07-01_11-39-43AM. Please wait ...[oracle@oem12c ~]$ The database, which houses t                                             he Management Repository, requires some mandatory patches as described in the Enterprise Manager Cloud Control Upgrade Guide. Make sure you apply the pa                                             tches before upgrading the Enterprise Manager system. If you do not apply the patches, your Management Repository upgrade might fail.

If you have already applied the patches, click OK and proceed with the upgrade. Otherwise, search and download the patches from My Oracle Support, and a                                             pply them immediately following the instructions outlined in the patch ReadMe.

For information about the patches that are required, see "Getting Started" chapter of the Oracle Enterprise Manager Cloud Control Upgrade Guide availabl                                             e at http://docs.oracle.com/cd/E24628_01/index.htm

 The following prerequisite check failed because the Oracle Database, where the Management Repository will be configured, does not meet the configuratio                                             n requirements. These failures do not impact the installation, but you may encounter performance issues with the product later. You can either click Can                                             cel, fix the issue manually now, based on the recommendation offered for this prerequisite, and click Next, or you can click OK to fix it after the inst                                             allation ends. For more details check the logs: /u01/app/oraInventory/logs/emdbprereqs
Prereq Name             Recommendation
Check the pga_aggregate_target instance parameter value.                The pga_aggregate_target instance parameter should be set to at least 1000000000                                              bytes.
Check the redo log size.                Redo Log file size should be 300000000 bytes or greater.  Generally, there should be 3 or more redo logs availab                                             le of this size.
Check execute privilege on DBMS_RANDOM          Explicitly grant execute on DBMS_RANDOM to DBSNMP

Installing ORACLE_HOME /u01/app/oracle/em/middleware_r4/jdk16
Installation in progress
......
Install successful
Linking in progress

Link successful
Setup in progress

Setup successful
Installing Oracle WebLogic Server

Installing ORACLE_HOME /u01/app/oracle/em/middleware_r4/Oracle_BI1
Installation in progress
.......
Install successful
Linking in progress

Link successful
Setup in progress

Setup successful

Installing ORACLE_HOME /u01/app/oracle/em/middleware_r4/oms
Installation in progress
.....Installation in progress
.Unable to find product oracle.swd.jre[1.5.0.0.0, 9.9.9] in Oracle Inventory
.
Install successful
Linking in progress

Link successful
Setup in progress

Setup successful
Installing plug-in /u01/app/oracle/em/middleware_r4/oms/install/tmp_installer/oracle.sysman.cfw/12.1.0.1.0/12.1.0.1.0_OMS_2000_0.zip
You can find the log of this install session at:
 /u01/app/oraInventory/logs/cloneActions2014-07-01_11-45-17-AM.log

Installing ORACLE_HOME /u01/app/oracle/em/middleware_r4/plugins/oracle.sysman.cfw.oms.plugin_12.1.0.1.0
Installation in progress

Install successful
Linking in progress

Link successful
Setup in progress

Setup successful
Installing plug-in /u01/app/oracle/em/middleware_r4/oms/install/tmp_installer/oracle.sysman.db/12.1.0.6.0/12.1.0.6.0_OMS_2000_0.zip
You can find the log of this install session at:
 /u01/app/oraInventory/logs/cloneActions2014-07-01_11-45-20-AM.log

Installing ORACLE_HOME /u01/app/oracle/em/middleware_r4/plugins/oracle.sysman.db.oms.plugin_12.1.0.6.0
Installation in progress

Install successful
Linking in progress

Link successful
Setup in progress

Setup successful
Installing plug-in /u01/app/oracle/em/middleware_r4/oms/install/tmp_installer/oracle.sysman.xa/12.1.0.6.0/12.1.0.6.0_OMS_2000_0.zip
You can find the log of this install session at:
 /u01/app/oraInventory/logs/cloneActions2014-07-01_11-45-38-AM.log

Installing ORACLE_HOME /u01/app/oracle/em/middleware_r4/plugins/oracle.sysman.xa.oms.plugin_12.1.0.6.0
Installation in progress

Install successful
Linking in progress

Link successful
Setup in progress

Setup successful
Installing plug-in /u01/app/oracle/em/middleware_r4/oms/install/tmp_installer/oracle.sysman.emas/12.1.0.6.0/12.1.0.6.0_OMS_2000_0.zip
You can find the log of this install session at:
 /u01/app/oraInventory/logs/cloneActions2014-07-01_11-45-42-AM.log

Installing ORACLE_HOME /u01/app/oracle/em/middleware_r4/plugins/oracle.sysman.emas.oms.plugin_12.1.0.6.0
Installation in progress

Install successful
Linking in progress

Link successful
Setup in progress

Setup successful
Installing plug-in /u01/app/oracle/em/middleware_r4/oms/install/tmp_installer/oracle.sysman.mos/12.1.0.6.0/12.1.0.6.0_OMS_2000_0.zip
You can find the log of this install session at:
 /u01/app/oraInventory/logs/cloneActions2014-07-01_11-46-02-AM.log

Installing ORACLE_HOME /u01/app/oracle/em/middleware_r4/plugins/oracle.sysman.mos.oms.plugin_12.1.0.6.0
Installation in progress

Install successful
Linking in progress

Link successful
Setup in progress

Setup successful
Extracting WT.zip
You can find the log of this install session at:
 /u01/app/oraInventory/logs/cloneActions2014-07-01_11-46-07-AM.log

Installing ORACLE_HOME /u01/app/oracle/em/middleware_r4/oracle_common
Installation in progress
......
Install successful
Linking in progress

Link successful
Setup in progress
.
Setup successful
You can find the log of this install session at:
 /u01/app/oraInventory/logs/cloneActions2014-07-01_11-48-11-AM.log

Installing ORACLE_HOME /u01/app/oracle/em/middleware_r4/Oracle_WT
Installation in progress
......
Install successful
Linking in progress

Link successful
Setup in progress

Setup successful
Applying the required oneoff patches.
2014-07-01_11-51-34-AM: Configuration assistant "Stopping APM Engines"  is in progress.

2014-07-01_11-51-34-AM: Configuration assistant "Stopping APM Engines" has Succeeded.

2014-07-01_11-51-34-AM: Configuration assistant "Stop Admin Server"  is in progress.

Stopping the Admin Server ...: /u01/app/oracle/em/middleware/oms/bin/emctl stop oms -all

Check if Admin Server Port is free
Admin Server Port : 7102

2014-07-01_11-51-39-AM: Configuration assistant "Stop Admin Server" has Succeeded.

2014-07-01_11-51-39-AM: Configuration assistant "Plugins Prerequisites Check"  is in progress.

2014-07-01_11-51-49-AM: Configuration assistant "Plugins Prerequisites Check" has Succeeded.

2014-07-01_11-51-49-AM: Configuration assistant "Repository Upgrade"  is in progress.

Running the schema manager with the preupgrade option

 Check the Repository Configuration Assistant logs at: /u01/app/oracle/em/middleware_r4/oms/sysman/log/schemamanager

Processing command line ....
Repository Creation Utility - Checking Prerequisites
Checking Global Prerequisites
Repository Creation Utility - Checking Prerequisites
Checking Component Prerequisites
Repository Creation Utility - Creating Tablespaces
Validating and Creating Tablespaces
Repository Creation Utility - Create
Repository Create in progress.
Repository Creation Utility: Create - Completion Summary
Database details:
Connect Descriptor                      : (DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=oem12c)(PORT=1521)))(CONNECT_DATA=(SID=oem12c)))
Connected As                    : SYS
RCU Logfile                     : /u01/app/oracle/em/middleware_r4/oms/sysman/log/schemamanager/m_070114_1151_AM/m_070114_1151_AM.PREUPGRADE/rcu.log
Component schemas created:
Component                       Status  Logfile
EM Repository Pre-Upgrade Configuration         Success /u01/app/oracle/em/middleware_r4/oms/sysman/log/schemamanager/m_070114_1151_AM/m_070114_1151_AM.                                             PREUPGRADE/em_repos_preupgrade.log
EM Repository Init Configuration                Success /u01/app/oracle/em/middleware_r4/oms/sysman/log/schemamanager/m_070114_1151_AM/m_070114_1151_AM.                                             PREUPGRADE/em_repos_init.log
EM Repository Common            Success /u01/app/oracle/em/middleware_r4/oms/sysman/log/schemamanager/m_070114_1151_AM/m_070114_1151_AM.PREUPGRADE/em_re                                             pos_common.log

Repository Creation Utility - Create : Operation Completed
Running the repository in the upgrade mode

Processing command line ....
Repository Creation Utility - Checking Prerequisites
Checking Global Prerequisites
Repository Creation Utility - Checking Prerequisites
Checking Component Prerequisites
Repository Creation Utility - Creating Tablespaces
Validating and Creating Tablespaces
Repository Creation Utility - Create
Repository Create in progress.

 Check the Repository Configuration Assistant logs at: /u01/app/oracle/em/middleware_r4/oms/sysman/log/schemamanager

HTTP Test Inserted Successfully
DHTML Test Inserted Successfully
HTTPPING Test Inserted Successfully
Ping Test Inserted Successfully
DNS Test Inserted Successfully
FTP Test Inserted Successfully
Port Test Inserted Successfully
TNS Test Inserted Successfully
SQLT Test Inserted Successfully
JDBC Test Inserted Successfully
Forms Test Inserted Successfully
OS Test Inserted Successfully
Oats Test Inserted Successfully
Successfully Added HTTP Query Descriptors

Successfully Added DHTML Query Descriptors

Successfully Added PING Query Descriptors

Successfully Added DNS Query Descriptors

Successfully Added FTP Query Descriptors

Successfully Added Port Query Descriptors

Successfully Added TNS Query Descriptors

Successfully Added SQLT Query Descriptors

Successfully Added JDBC Query Descriptors

Successfully Added Forms Query Descriptors

Successfully Added OS Query Descriptors

Successfully Added OPENSCRIPT Query Descriptors

  ********   ORACLE_HOME is /u01/app/oracle/em/middleware_r4/oms
test properties path: /u01/app/oracle/em/middleware_r4/oms/sysman/admin/emdrep/prop/imap.properties
CreateTestType:createCompleteTest: BEGIN
CreateTestType:createTestMetadataObject: BEGIN
CreateTestType:createTestMetadataObject: END
CreateTestType:createPropertyGroups: BEGIN
CreateTestType:createPropertyGroups: END
CreateTestType:createStrayProperties: BEGIN
CreateTestType:createStrayProperties: END
CreateTestType:createDefaultPromotions: BEGIN
CreateTestType:createDefaultPromotions: END
CreateTestType:createDefaultThresholds: BEGIN
CreateTestType:createDefaultThresholds: END
CreateTestType:createMetrics4TestType: BEGIN
CreateTestType:createMetrics4TestType: END
PropertyName :imap_host
PropertyName :imap_port
PropertyName :imap_user_name
PropertyName :imap_password
PropertyName :numretries
PropertyName :retryinterval
CreateTestType:createQueryDescriptor: BEGIN
CreateTestType:createQueryDescriptor: END
Enabled test for: IMAP , generic_service , 1.0
Enabled test for: IMAP , aggregate_service , 1.0
CreateTestType:createCompleteTest: END
  ********   ORACLE_HOME is /u01/app/oracle/em/middleware_r4/oms
test properties path: /u01/app/oracle/em/middleware_r4/oms/sysman/admin/emdrep/prop/imap.properties.v2
CreateTestType:createCompleteTest: BEGIN
CreateTestType:createTestMetadataObject: BEGIN
CreateTestType:createTestMetadataObject: END
CreateTestType:createPropertyGroups: BEGIN
CreateTestType:createPropertyGroups: END
CreateTestType:createStrayProperties: BEGIN
CreateTestType:createStrayProperties: END
CreateTestType:createDefaultPromotions: BEGIN
CreateTestType:createDefaultPromotions: END
CreateTestType:createDefaultThresholds: BEGIN
CreateTestType:createDefaultThresholds: END
CreateTestType:createMetrics4TestType: BEGIN
CreateTestType:createMetrics4TestType: END
PropertyName :imap_host
PropertyName :imap_port
PropertyName :imap_user_name
PropertyName :imap_password
PropertyName :imap_header_count
PropertyName :connection
PropertyName :secure_auth
PropertyName :timeout
PropertyName :numretries
PropertyName :retryinterval
CreateTestType:createQueryDescriptor: BEGIN
CreateTestType:createQueryDescriptor: END
Enabled test for: IMAP , generic_service , 1.0
Enabled test for: IMAP , aggregate_service , 1.0
CreateTestType:createCompleteTest: END
  ********   ORACLE_HOME is /u01/app/oracle/em/middleware_r4/oms
test properties path: /u01/app/oracle/em/middleware_r4/oms/sysman/admin/emdrep/prop/imap.properties.v3
CreateTestType:createCompleteTest: BEGIN
CreateTestType:createTestMetadataObject: BEGIN
CreateTestType:createTestMetadataObject: END
CreateTestType:createPropertyGroups: BEGIN
CreateTestType:createPropertyGroups: END
CreateTestType:createStrayProperties: BEGIN
CreateTestType:createStrayProperties: END
CreateTestType:createDefaultPromotions: BEGIN
CreateTestType:createDefaultPromotions: END
CreateTestType:createDefaultThresholds: BEGIN
CreateTestType:createDefaultThresholds: END
CreateTestType:createMetrics4TestType: BEGIN
CreateTestType:createMetrics4TestType: END
PropertyName :imap_host
PropertyName :imap_port
PropertyName :imap_user_name
PropertyName :imap_password
PropertyName :imap_header_count
PropertyName :connection
PropertyName :secure_auth
PropertyName :timeout
PropertyName :numretries
PropertyName :retryinterval
CreateTestType:createQueryDescriptor: BEGIN
CreateTestType:createQueryDescriptor: END
Enabled test for: IMAP , generic_service , 1.0
Enabled test for: IMAP , aggregate_service , 1.0
CreateTestType:createCompleteTest: END
  ********   ORACLE_HOME is /u01/app/oracle/em/middleware_r4/oms
test properties path: /u01/app/oracle/em/middleware_r4/oms/sysman/admin/emdrep/prop/smtp.properties
CreateTestType:createCompleteTest: BEGIN
CreateTestType:createTestMetadataObject: BEGIN
CreateTestType:createTestMetadataObject: END
CreateTestType:createPropertyGroups: BEGIN
CreateTestType:createPropertyGroups: END
CreateTestType:createStrayProperties: BEGIN
CreateTestType:createStrayProperties: END
CreateTestType:createDefaultPromotions: BEGIN
CreateTestType:createDefaultPromotions: END
CreateTestType:createDefaultThresholds: BEGIN
CreateTestType:createDefaultThresholds: END
CreateTestType:createMetrics4TestType: BEGIN
CreateTestType:createMetrics4TestType: END
PropertyName :smtp_address
PropertyName :smtp_sender_id
PropertyName :smtp_recipient_id
PropertyName :numretries
PropertyName :retryinterval
CreateTestType:createQueryDescriptor: BEGIN
CreateTestType:createQueryDescriptor: END
Enabled test for: SMTP , generic_service , 1.0
Enabled test for: SMTP , aggregate_service , 1.0
CreateTestType:createCompleteTest: END
  ********   ORACLE_HOME is /u01/app/oracle/em/middleware_r4/oms
test properties path: /u01/app/oracle/em/middleware_r4/oms/sysman/admin/emdrep/prop/smtp.properties.v2
CreateTestType:createCompleteTest: BEGIN
CreateTestType:createTestMetadataObject: BEGIN
CreateTestType:createTestMetadataObject: END
CreateTestType:createPropertyGroups: BEGIN
CreateTestType:createPropertyGroups: END
CreateTestType:createStrayProperties: BEGIN
CreateTestType:createStrayProperties: END
CreateTestType:createDefaultPromotions: BEGIN
CreateTestType:createDefaultPromotions: END
CreateTestType:createDefaultThresholds: BEGIN
CreateTestType:createDefaultThresholds: END
CreateTestType:createMetrics4TestType: BEGIN
CreateTestType:createMetrics4TestType: END
PropertyName :smtp_address
PropertyName :smtp_port
PropertyName :smtp_sender_id
PropertyName :smtp_recipient_id
PropertyName :connection
PropertyName :secure_auth
PropertyName :timeout
PropertyName :numretries
PropertyName :retryinterval
CreateTestType:createQueryDescriptor: BEGIN
CreateTestType:createQueryDescriptor: END
Enabled test for: SMTP , generic_service , 1.0
Enabled test for: SMTP , aggregate_service , 1.0
CreateTestType:createCompleteTest: END
  ********   ORACLE_HOME is /u01/app/oracle/em/middleware_r4/oms
test properties path: /u01/app/oracle/em/middleware_r4/oms/sysman/admin/emdrep/prop/smtp.properties.v3
CreateTestType:createCompleteTest: BEGIN
CreateTestType:createTestMetadataObject: BEGIN
CreateTestType:createTestMetadataObject: END
CreateTestType:createPropertyGroups: BEGIN
CreateTestType:createPropertyGroups: END
CreateTestType:createStrayProperties: BEGIN
CreateTestType:createStrayProperties: END
CreateTestType:createDefaultPromotions: BEGIN
CreateTestType:createDefaultPromotions: END
CreateTestType:createDefaultThresholds: BEGIN
CreateTestType:createDefaultThresholds: END
CreateTestType:createMetrics4TestType: BEGIN
CreateTestType:createMetrics4TestType: END
CreateTestType:createQueryDescriptor: BEGIN
CreateTestType:createQueryDescriptor: END
Enabled test for: SMTP , generic_service , 1.0
Enabled test for: SMTP , aggregate_service , 1.0
CreateTestType:createCompleteTest: END
  ********   ORACLE_HOME is /u01/app/oracle/em/middleware_r4/oms
test properties path: /u01/app/oracle/em/middleware_r4/oms/sysman/admin/emdrep/prop/smtp.properties.v4
CreateTestType:createCompleteTest: BEGIN
CreateTestType:createTestMetadataObject: BEGIN
CreateTestType:createTestMetadataObject: END
CreateTestType:createPropertyGroups: BEGIN
CreateTestType:createPropertyGroups: END
CreateTestType:createStrayProperties: BEGIN
CreateTestType:createStrayProperties: END
CreateTestType:createDefaultPromotions: BEGIN
CreateTestType:createDefaultPromotions: END
CreateTestType:createDefaultThresholds: BEGIN
CreateTestType:createDefaultThresholds: END
CreateTestType:createMetrics4TestType: BEGIN
CreateTestType:createMetrics4TestType: END
CreateTestType:createQueryDescriptor: BEGIN
CreateTestType:createQueryDescriptor: END
Enabled test for: SMTP , generic_service , 1.0
Enabled test for: SMTP , aggregate_service , 1.0
CreateTestType:createCompleteTest: END
  ********   ORACLE_HOME is /u01/app/oracle/em/middleware_r4/oms
test properties path: /u01/app/oracle/em/middleware_r4/oms/sysman/admin/emdrep/prop/ldap.properties
CreateTestType:createCompleteTest: BEGIN
CreateTestType:createTestMetadataObject: BEGIN
CreateTestType:createTestMetadataObject: END
CreateTestType:createPropertyGroups: BEGIN
CreateTestType:createPropertyGroups: END
CreateTestType:createStrayProperties: BEGIN
CreateTestType:createStrayProperties: END
CreateTestType:createDefaultPromotions: BEGIN
CreateTestType:createDefaultPromotions: END
CreateTestType:createDefaultThresholds: BEGIN
CreateTestType:createDefaultThresholds: END
CreateTestType:createMetrics4TestType: BEGIN
CreateTestType:createMetrics4TestType: END
PropertyName :ldap_address
PropertyName :ldap_port
PropertyName :ldap_user_name
PropertyName :ldap_password
PropertyName :numretries
PropertyName :retryinterval
PropertyName :ldap_filter
PropertyName :ldap_base
PropertyName :ldap_attrname
PropertyName :ldap_attrvalue
PropertyName :ldap_timeout
CreateTestType:createQueryDescriptor: BEGIN
CreateTestType:createQueryDescriptor: END
Enabled test for: LDAP , generic_service , 1.0
Enabled test for: LDAP , aggregate_service , 1.0
CreateTestType:createCompleteTest: END
  ********   ORACLE_HOME is /u01/app/oracle/em/middleware_r4/oms
test properties path: /u01/app/oracle/em/middleware_r4/oms/sysman/admin/emdrep/prop/ldap.properties.v2
CreateTestType:createCompleteTest: BEGIN
CreateTestType:createTestMetadataObject: BEGIN
CreateTestType:createTestMetadataObject: END
CreateTestType:createPropertyGroups: BEGIN
CreateTestType:createPropertyGroups: END
CreateTestType:createStrayProperties: BEGIN
CreateTestType:createStrayProperties: END
CreateTestType:createDefaultPromotions: BEGIN
CreateTestType:createDefaultPromotions: END
CreateTestType:createDefaultThresholds: BEGIN
CreateTestType:createDefaultThresholds: END
CreateTestType:createMetrics4TestType: BEGIN
CreateTestType:createMetrics4TestType: END
PropertyName :ldap_address
PropertyName :ldap_port
PropertyName :ldap_user_name
PropertyName :ldap_password
PropertyName :numretries
PropertyName :retryinterval
PropertyName :ldap_filter
PropertyName :ldap_base
PropertyName :ldap_attrname
PropertyName :ldap_attrvalue
PropertyName :ldap_timeout
PropertyName :connection
PropertyName :secure_auth
CreateTestType:createQueryDescriptor: BEGIN
CreateTestType:createQueryDescriptor: END
Enabled test for: LDAP , generic_service , 1.0
Enabled test for: LDAP , aggregate_service , 1.0
CreateTestType:createCompleteTest: END
  ********   ORACLE_HOME is /u01/app/oracle/em/middleware_r4/oms
test properties path: /u01/app/oracle/em/middleware_r4/oms/sysman/admin/emdrep/prop/pop.properties
CreateTestType:createCompleteTest: BEGIN
CreateTestType:createTestMetadataObject: BEGIN
CreateTestType:createTestMetadataObject: END
CreateTestType:createPropertyGroups: BEGIN
CreateTestType:createPropertyGroups: END
CreateTestType:createStrayProperties: BEGIN
CreateTestType:createStrayProperties: END
CreateTestType:createDefaultPromotions: BEGIN
CreateTestType:createDefaultPromotions: END
CreateTestType:createDefaultThresholds: BEGIN
CreateTestType:createDefaultThresholds: END
CreateTestType:createMetrics4TestType: BEGIN
CreateTestType:createMetrics4TestType: END
PropertyName :pop_host
PropertyName :pop_user_name
PropertyName :pop_password
PropertyName :numretries
PropertyName :retryinterval
CreateTestType:createQueryDescriptor: BEGIN
CreateTestType:createQueryDescriptor: END
Enabled test for: POP , generic_service , 1.0
Enabled test for: POP , aggregate_service , 1.0
CreateTestType:createCompleteTest: END
  ********   ORACLE_HOME is /u01/app/oracle/em/middleware_r4/oms
test properties path: /u01/app/oracle/em/middleware_r4/oms/sysman/admin/emdrep/prop/nntp.properties
CreateTestType:createCompleteTest: BEGIN
CreateTestType:createTestMetadataObject: BEGIN
CreateTestType:createTestMetadataObject: END
CreateTestType:createPropertyGroups: BEGIN
CreateTestType:createPropertyGroups: END
CreateTestType:createStrayProperties: BEGIN
CreateTestType:createStrayProperties: END
CreateTestType:createDefaultPromotions: BEGIN
CreateTestType:createDefaultPromotions: END
CreateTestType:createDefaultThresholds: BEGIN
CreateTestType:createDefaultThresholds: END
CreateTestType:createMetrics4TestType: BEGIN
CreateTestType:createMetrics4TestType: END
PropertyName :nntp_address
PropertyName :nntp_newsgroup
PropertyName :numretries
PropertyName :retryinterval
CreateTestType:createQueryDescriptor: BEGIN
CreateTestType:createQueryDescriptor: END
Enabled test for: NNTP , generic_service , 1.0
Enabled test for: NNTP , aggregate_service , 1.0
CreateTestType:createCompleteTest: END
  ********   ORACLE_HOME is /u01/app/oracle/em/middleware_r4/oms
test properties path: /u01/app/oracle/em/middleware_r4/oms/sysman/admin/emdrep/prop/soap.properties.v2
CreateTestType:createCompleteTest: BEGIN
CreateTestType:createTestMetadataObject: BEGIN
CreateTestType:createTestMetadataObject: END
CreateTestType:createPropertyGroups: BEGIN
CreateTestType:createPropertyGroups: END
CreateTestType:createStrayProperties: BEGIN
CreateTestType:createStrayProperties: END
CreateTestType:createDefaultPromotions: BEGIN
CreateTestType:createDefaultPromotions: END
CreateTestType:createDefaultThresholds: BEGIN
CreateTestType:createDefaultThresholds: END
CreateTestType:createMetrics4TestType: BEGIN
CreateTestType:createMetrics4TestType: END
PropertyName :soap_endpoint
PropertyName :soap_payload
PropertyName :soap_action_uri
PropertyName :soap_auth_realm
PropertyName :soap_auth_username
PropertyName :soap_auth_password
PropertyName :numretries
PropertyName :retryinterval
PropertyName :soap_wsdl_url
PropertyName :soap_operation
PropertyName :soap_parameters
PropertyName :soap_wadl_resn
PropertyName :soap_wadl_methn
PropertyName :soap_wadl_reqtype
PropertyName :soap_wadl_restype
CreateTestType:createQueryDescriptor: BEGIN
CreateTestType:createQueryDescriptor: END
Enabled test for: SOAP , generic_service , 1.0
Enabled test for: SOAP , aggregate_service , 1.0
CreateTestType:createCompleteTest: END
  ********   ORACLE_HOME is /u01/app/oracle/em/middleware_r4/oms
test properties path: /u01/app/oracle/em/middleware_r4/oms/sysman/admin/emdrep/prop/siebel.properties
CreateTestType:createCompleteTest: BEGIN
CreateTestType:createTestMetadataObject: BEGIN
CreateTestType:createTestMetadataObject: END
CreateTestType:createPropertyGroups: BEGIN
CreateTestType:createPropertyGroups: END
CreateTestType:createStrayProperties: BEGIN
CreateTestType:createStrayProperties: END
CreateTestType:createDefaultPromotions: BEGIN
CreateTestType:createDefaultPromotions: END
CreateTestType:createDefaultThresholds: BEGIN
CreateTestType:createDefaultThresholds: END
CreateTestType:createMetrics4TestType: BEGIN
CreateTestType:createMetrics4TestType: END
PropertyName :retryinterval
PropertyName :txnDetails
PropertyName :timeoutduration
PropertyName :granularity
PropertyName :username
PropertyName :password
PropertyName :isSecureCommand
CreateTestType:createQueryDescriptor: BEGIN
CreateTestType:createQueryDescriptor: END
CreateTestType:createCompleteTest: END
  ********   ORACLE_HOME is /u01/app/oracle/em/middleware_r4/oms
test properties path: /u01/app/oracle/em/middleware_r4/oms/sysman/admin/emdrep/prop/xmpp.properties
CreateTestType:createCompleteTest: BEGIN
CreateTestType:createTestMetadataObject: BEGIN
CreateTestType:createTestMetadataObject: END
CreateTestType:createPropertyGroups: BEGIN
CreateTestType:createPropertyGroups: END
CreateTestType:createStrayProperties: BEGIN
CreateTestType:createStrayProperties: END
CreateTestType:createDefaultPromotions: BEGIN
CreateTestType:createDefaultPromotions: END
CreateTestType:createDefaultThresholds: BEGIN
CreateTestType:createDefaultThresholds: END
CreateTestType:createMetrics4TestType: BEGIN
CreateTestType:createMetrics4TestType: END
PropertyName :host
PropertyName :port
PropertyName :user_name
PropertyName :password
PropertyName :contact_name
PropertyName :connection
PropertyName :secure_auth
PropertyName :timeout
PropertyName :numretries
PropertyName :retryinterval
CreateTestType:createQueryDescriptor: BEGIN
CreateTestType:createQueryDescriptor: END
Enabled test for: XMPP , generic_service , 1.0
Enabled test for: XMPP , aggregate_service , 1.0
CreateTestType:createCompleteTest: END
  ********   ORACLE_HOME is /u01/app/oracle/em/middleware_r4/oms
test properties path: /u01/app/oracle/em/middleware_r4/oms/sysman/admin/emdrep/prop/webdav.properties
CreateTestType:createCompleteTest: BEGIN
CreateTestType:createTestMetadataObject: BEGIN
CreateTestType:createTestMetadataObject: END
CreateTestType:createPropertyGroups: BEGIN
CreateTestType:createPropertyGroups: END
CreateTestType:createStrayProperties: BEGIN
CreateTestType:createStrayProperties: END
CreateTestType:createDefaultPromotions: BEGIN
CreateTestType:createDefaultPromotions: END
CreateTestType:createDefaultThresholds: BEGIN
CreateTestType:createDefaultThresholds: END
CreateTestType:createMetrics4TestType: BEGIN
CreateTestType:createMetrics4TestType: END
PropertyName :url
PropertyName :user_name
PropertyName :password
PropertyName :trash_url
PropertyName :secure_auth
PropertyName :timeout
PropertyName :numretries
PropertyName :retryinterval
CreateTestType:createQueryDescriptor: BEGIN
CreateTestType:createQueryDescriptor: END
Enabled test for: WebDAV , generic_service , 1.0
Enabled test for: WebDAV , aggregate_service , 1.0
CreateTestType:createCompleteTest: END
  ********   ORACLE_HOME is /u01/app/oracle/em/middleware_r4/oms
test properties path: /u01/app/oracle/em/middleware_r4/oms/sysman/admin/emdrep/prop/caldav.properties
CreateTestType:createCompleteTest: BEGIN
CreateTestType:createTestMetadataObject: BEGIN
CreateTestType:createTestMetadataObject: END
CreateTestType:createPropertyGroups: BEGIN
CreateTestType:createPropertyGroups: END
CreateTestType:createStrayProperties: BEGIN
CreateTestType:createStrayProperties: END
CreateTestType:createDefaultPromotions: BEGIN
CreateTestType:createDefaultPromotions: END
CreateTestType:createDefaultThresholds: BEGIN
CreateTestType:createDefaultThresholds: END
CreateTestType:createMetrics4TestType: BEGIN
CreateTestType:createMetrics4TestType: END
PropertyName :url
PropertyName :user_name
PropertyName :password
PropertyName :view_date
PropertyName :secure_auth
PropertyName :timeout
PropertyName :numretries
PropertyName :retryinterval
CreateTestType:createQueryDescriptor: BEGIN
CreateTestType:createQueryDescriptor: END
Enabled test for: CalDAV , generic_service , 1.0
Enabled test for: CalDAV , aggregate_service , 1.0
CreateTestType:createCompleteTest: END
Repository Creation Utility: Create - Completion Summary
Database details:
Connect Descriptor                      : (DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=oem12c)(PORT=1521)))(CONNECT_DATA=(SID=oem12c)))
Connected As                    : SYS
RCU Logfile                     : /u01/app/oracle/em/middleware_r4/oms/sysman/log/schemamanager/m_070114_1151_AM/m_070114_1151_AM.PREUPGRADE/rcu.log
Component schemas created:
Component                       Status  Logfile
EM Repository Upgrade Configuration             Success /u01/app/oracle/em/middleware_r4/oms/sysman/log/schemamanager/m_070114_1151_AM/m_070114_1151_AM.                                             PREUPGRADE/em_repos_modify.log
EM Repository Init Configuration                Success /u01/app/oracle/em/middleware_r4/oms/sysman/log/schemamanager/m_070114_1151_AM/m_070114_1151_AM.                                             PREUPGRADE/em_repos_init.log
EM Repository Common            Success /u01/app/oracle/em/middleware_r4/oms/sysman/log/schemamanager/m_070114_1151_AM/m_070114_1151_AM.PREUPGRADE/em_re                                             pos_common.log

Repository Creation Utility - Create : Operation Completed
2014-07-01_12-16-39-PM: Configuration assistant "Repository Upgrade" has Succeeded.

2014-07-01_12-16-39-PM: Configuration assistant "MDS Schema Configuration"  is in progress.

2014-07-01_12-16-43-PM: Configuration assistant "MDS Schema Configuration" has Succeeded.

2014-07-01_12-16-43-PM: Configuration assistant "OMS Configuration"  is in progress.


 Executing the OMSCA command...

 Check the OMS Configuration Assistant logs at: /u01/app/oracle/em/middleware_r4/oms/cfgtoollogs/omsca


Detaching the old OMS home from central inventory

Detached the old Home from Central Inventory


 OMS Configuration completed successfully..


2014-07-01_12-24-27-PM: Configuration assistant "OMS Configuration" has Succeeded.

2014-07-01_12-24-27-PM: Configuration assistant "Plugins Deployment and Configuration"  is in progress.

2014-07-01_12-27-59-PM: Configuration assistant "Plugins Deployment and Configuration" has Succeeded.

2014-07-01_12-27-59-PM: Configuration assistant "Start Oracle Management Service"  is in progress.

Starting OMS ...
Executing command: /u01/app/oracle/em/middleware_r4/oms/bin/emctl start oms

Starting of OMS is successful.
Starting export oms config...
Executing command: /u01/app/oracle/em/middleware_r4/oms/bin/emctl exportconfig oms -dir  /u01/app/oracle/em/gc_inst1/em/EMGC_OMS1/sysman/backup

Export config of OMS is successful.

2014-07-01_12-30-16-PM: Configuration assistant "Start Oracle Management Service" has Succeeded.

2014-07-01_12-30-16-PM: Configuration assistant "Oracle Configuration Manager Repeater Configuration"  is in progress.

2014-07-01_12-30-16-PM: Configuration assistant "Oracle Configuration Manager Repeater Configuration" has Succeeded.

*** The Installation was Successful. ***


This information is also available at:

        /u01/app/oracle/em/middleware_r4/oms/install/setupinfo.txt

See below for information pertaining to your Enterprise Manager installation:


Use the following URL to access:

        1. Enterprise Manager Cloud Control URL: https://oem12c:7801/em
        2. Admin Server URL: https://oem12c:7102/console

The following details need to be provided during the additional OMS install:

        1. Admin Server Hostname: oem12c
        2. Admin Server Port: 7102

You can find the details on ports used by this deployment at : /u01/app/oracle/em/middleware_r4/oms/install/portlist.ini


 NOTE:
 An encryption key has been generated to encrypt sensitive data in the Management Repository. If this key is lost, all encrypted data in the Repository                                              becomes unusable.

 A backup of the OMS configuration is available in /u01/app/oracle/em/gc_inst1/em/EMGC_OMS1/sysman/backup on host oem12c. See Cloud Control Administrato                                             rs Guide for details on how to back up and recover an OMS.

 NOTE: This backup is valid only for the initial OMS configuration. For example, it will not reflect plug-ins installed later, topology changes like the                                              addition of a load balancer, or changes to other properties made using emctl or emcli. Backups should be created on a regular basis to ensure they capt                                             ure the current OMS configuration. Use the following command to backup the OMS configuration:
/u01/app/oracle/em/middleware_r4/oms/bin/emctl exportconfig oms -dir 


Warning: The following configuration scripts need to be executed as the "root" user
  /u01/app/oracle/em/middleware_r4/oms/allroot.sh
To execute the configuration scripts:
 1. Open a new  terminal window
 2. Login in as "root"
 3. Run the scripts

Enterprise Manager Cloud Control Installation has finished.

It takes quite a while for this to run, especially on the repository database steps so be patient (it’ll take more than a cup of tea – go have lunch or something!).

2. If all is well, run the root script as prompted by the installer –

[NEW_OMS_HOME]/allroot.sh

3. Start the central agent –

[AGENT_HOME]/bin/emctl start agent

That is the bulk of the upgrade now complete.

Now we need to immediately upgrade the central agent. This is easiest to achieve within the OEM GUI itself (plus you can observe for the first time the very cool new “black” look and the nice rounded buttons!).

Navigate to the agent upgrade screen –

And then upgrade the central agent on the OEM server –

Once that is done, then you are done!

I actually wanted to remove the old software straight away (you might want to wait for some time). I achieved that as follows – again this is all documented in the upgrade guide.

1. Uninstall the plugins. With all of these steps, I was referring to my inventory.xml in my central inventory for the correct paths. It is important to use the OUI from the old OMS home, and not the new one.

[OLD_OMS_HOME]/oui/bin/runInstaller -deinstall -silent "REMOVE_HOMES={/u01/app/oracle/em/middleware/plugins/oracle.sysman.db.oms.plugin_12.1.0.5.0,/u01/app/oracle/em/middleware/plugins/oracle.sysman.xa.oms.plugin_12.1.0.5.0,/u01/app/oracle/em/middleware/plugins/oracle.sysman.emas.oms.plugin_12.1.0.5.0,/u01/app/oracle/em/middleware/plugins/oracle.sysman.mos.oms.plugin_12.1.0.5.0}" ORACLE_HOME=[OLD_OMS_HOME] -removeAllFiles -invPtrLoc /etc/oraInst.loc

2. Uninstall the JDK

[OLD_OMS_HOME]/oui/bin/runInstaller -deinstall -silent "REMOVE_HOMES={/u01/app/oracle/em/middleware/jdk16}" ORACLE_HOME=[OLD_OMS_HOME] -removeAllFiles -invPtrLoc /etc/oraInst.loc

3. Uninstall the webtier. Note that because we installed the JDK in the previous step, we’re now having to specify the path to the new JDK.

[OLD_OMS_HOME]/oui/bin/runInstaller -deinstall -silent "REMOVE_HOMES={/u01/app/oracle/em/middleware/Oracle_WT}" ORACLE_HOME=[OLD_OMS_HOME] -removeAllFiles -invPtrLoc /etc/oraInst.loc -jreLoc [NEW_MIDDLEWARE_HOME]/jdk16/jdk

4. Uninstall OMS and Oracle Common

[OLD_OMS_HOME]/oui/bin/runInstaller -deinstall -silent "REMOVE_HOMES={/u01/app/oracle/em/middleware/oms,/u01/app/oracle/em/middleware/oracle_common}" ORACLE_HOME=[OLD_OMS_HOME] -removeAllFiles -invPtrLoc /etc/oraInst.loc -jreLoc [NEW_MIDDLEWARE_HOME]/jdk16/jdk

That should be everything gone.

I checked my inventory.xml for any references to the old home, and then I deleted the old middleware directory and gc_inst directory. You might want to rename them for a while, or back them up.

A final check with “lsof” and a reboot reassured me that the files weren’t needed for anything.

All done and time to play with OEM 12.1.0.4.

Advertisements
Post a comment or leave a trackback: Trackback URL.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: