11G OCM Upgrade OMR to 11.1.0.7 (2)


I needed to clean up a few things after I have upgraded the repos database from 10.1.0.4 to 11.1.0.7 as described in 11G OCM Upgrade OMR to 11.1.0.7.

Startup Procedure

I found that I had two (2) PMON processes running for the repos database. This was possible because these PMON processes were running out of different Oracle Homes.

/etc/rc.local Clean Up

I removed all Oracle startup code from /etc/rc.local. This file was the source of the 11.1.0.7 pmon process.

seedstup Clean Up

/etc/init.d/gcstartup calls /opt/oracle/app/OracleHomes/db10g/install/unix/scripts/seedstup to start the listener and the database instance for the OMR. This file was the source of the 10.1.0.5 pmon process.

I changed the /opt/oracle/app/OracleHomes/db10g/install/unix/scripts/seedstup to reference the 11.1.0.7 home, and added the ORACLE_BASE variable to ensure that the listener log goes to the ADR directory:

export ORACLE_BASE=/opt/oracle/app
export ORACLE_HOME=/opt/oracle/app/OracleHomes/db11g

I also made a copy of seedstup in the 11G RDBMS home because this script calls itself again using the current ORACLE_HOME:

mkdir -p /opt/oracle/app/OracleHomes/db11g/install/unix/scripts
cp /opt/oracle/app/OracleHomes/db10g/install/unix/scripts/seedstup /opt/oracle/app/OracleHomes/db11g/install/unix/scripts/seedstup

omsstup Clean Up

To get rid of some errors during startup, I changed /opt/oracle/app/OracleHomes/oms10g/install/unix/scripts/omsstup to modify the following line (twice) as follows (the leading dot to overcome null values):

           if [ .$executingUser = .$installUser ] ; then

agentstup Clean Up

To get rid of some errors during startup, I changed /opt/oracle/app/OracleHomes/agent10g/install/unix/scripts/agentstup to modify the following line (twice) as follows (the leading dot to overcome null values):

           if [ .$executingUser = .$installUser ] ; then

And to correct the location of the su command as follows (changed from sudo to su because sudo requires tty):

SU=/bin/su

Firewall Configuration

I have configured the firewall to open port 4889 for OEM console and 1521 for SQL*Plus

Advertisements

One thought on “11G OCM Upgrade OMR to 11.1.0.7 (2)

  1. 11G OCM Agent Not Starting Automatically « Yet Another OCM

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