OEM Quickstart on OCI Cloud

Oracle Enterprise Manager is a very powerful monitoring and managing tool. It is free to use with Oracle products. If you are using Enterprise Linux images on the Oracle cloud you definitely should be using OEM. This article shows you how to quickly get started with OEM using the provided marketplace image.

Though there is an Excellent series of articles on OEM quick Deployment here from the marketplace we did face some niggles when trying to follow it step by step. For example the policies we wanted to create had to be compartment specific instead of tenancy specific so we created them in the eminfra compartment.

Change

Allow dynamic-group OEM_Group to manage instance-family in tenancy

Allow dynamic-group OEM_Group to manage volume-family in tenancy

to

Allow dynamic-group OEM_Group to manage instance-family in compartment eminfra

Allow dynamic-group OEM_Group to manage volume-family in compartment eminfra


The syntax is also incorrect in the original article in that there is a missing hypen in both Instance-family and Volume family.




Here we are provisioning our new OEM instance directly from the marketplace


If you look closely you will see the auto deployment script running in the screenshot

Specifically


/bin/bash /var/lib/cloud/scripts/per-instance/omsInstaller.sh

sh configure_db_and_oms.sh

tee /var/log/emgc_install.log

python oms_bootstrap.py



The install zip is pulled from the cloud and unzipped to /u01. This is a much faster means of installing than if we were to run a standard install.


OMS db is installed and runs


BI publisher server starting up

Install Script complete !

And we are in. The default password is welcome1 and this needs to be changed following the procedure in the instructions

Change default passwords. The password for the EM user sysman, EM Agent, Registration Password, Fusion Middleware user weblogic and Node Manager can be accessed in the below file (access as root user)"

$ cat /root/.oem/.sysman.pwd

Change the sysman password by executing the below command

$ /u01/app/em13c/middleware/bin/emctl config oms -change_repos_pwd

Finally there are already standard scripts available to start and stop the installation in the Oracle user home directory.


To start all processes, as the user oracle, run the script /home/oracle/start_all.sh

To stop all processes, as the user oracle, run the script /home/oracle/stop_all.sh