Professional Documents
Culture Documents
Overview
The installation and deployment of EM on ODA is comprised of three major sections: Repository Database Creation Management Server installation Management Agent Deployment Cluster Discovery and configuration
The Repository Database creation is done via DBCA on the ODA cluster. Database creation is covered in the ODA basic Installation and Administration Guide. In this document, our repository database name will be emdb
Stage EM Software
Navigate to the following URL on OTN and select EM 12c for Linux X86_64 platform. There are two disk archives: http://www.oracle.com/technetwork/oem/grid-control/downloads/index.html
-rw-r--r-- 1 oracle dba 2561176217 Nov 24 02:15 em12_linux64_disk1of2.zip -rw-r--r-- 1 oracle dba 3057842914 Nov 24 02:15 em12_linux64_disk2of2.zip Stage the disk archives on one of the ODA nodes and unzip the above packages. For example, copy the archives to /home/oracle/CC12c for the staging directory.
Run native VNC Server on the first node so that you can launch the installer GUI. As the oracle user, execute: $ vncserver From your VNC Client, access this node using the first display ID. For example:
Remove any non-system environment settings from the session where you will launch the installer. Unset any variables such as: JAVA_PATH, JAVA_HOME, ORACLE_HOME, LD_LIBRARY_PATH, or any other specific environment variables. Create a directory that will contain the EM 12c installation. For example, execute the following as the root user: # mkdir /u02; chmod 777 /u02
The following screen shots are presented. My Oracle Support Details. Please select the appropriate response for My Oracle Support Details.
Software Updates. You can search for the latest EM 12c updates from OTN if your server can access the internet. Otherwise, select Skip and continue installation. You can check for updates after the software is installed and stage any patches on the server manually.
Prerequisite Checks
Install Types.
Configuration Details. Provide an Admin Server password and database connection details. Remember this password. In our example welcome123
Set your environment to the emdb repository database home and ORACLE_SID. Then, run following command as the oracle user on the cluster node: $ORACLE_HOME/bin/emca -deconfig dbcontrol db -repos drop -cluster -SYS_PWD welcome1 -SYSMAN_PWD welcome1 eg:
[oracle@slcac452-x0 ~]$ echo $ORACLE_HOME /u01/app/oracle/product/11.2.0/dbhome_1 [oracle@slcac452-x0 ~]$ $ORACLE_HOME/bin/emca -deconfig dbcontrol db -repos drop -cluster -SYS_PWD welcome1 -SYSMAN_PWD welcome1
STARTED EMCA at Nov 29, 2011 2:40:00 PM EM Configuration Assistant, Version 11.2.0.0.2 Production Copyright (c) 2003, 2005, Oracle. All rights reserved.
Enter the following information: Database unique name: emdb Service name: emdb Listener ORACLE_HOME [ /u01/app/11.2.0/grid ]: ---------------------------------------------------------------------WARNING : While repository is dropped the database will be put in quiesce mode. ---------------------------------------------------------------------Do you wish to continue? [yes(Y)/no(N)]: y Nov 29, 2011 2:40:16 PM oracle.sysman.emcp.EMConfig perform INFO: This operation is being logged at /u01/app/oracle/cfgtoollogs/emca/emdb/emca_2011_11_29_14_39_59.log. Nov 29, 2011 2:40:22 PM oracle.sysman.emcp.util.DBControlUtil stopOMS INFO: Stopping Database Control (this may take a while) ... Nov 29, 2011 2:40:53 PM oracle.sysman.emcp.EMReposConfig invoke INFO: Dropping the EM repository (this may take a while) ... Nov 29, 2011 2:47:31 PM oracle.sysman.emcp.EMReposConfig invoke INFO: Repository successfully dropped Enterprise Manager configuration completed successfully FINISHED EMCA at Nov 29, 2011 2:47:37 PM
Configuration Details. You can click 'OK' now to ignore the warnings, and remember to make the change, or login to the database and make the changes then retry this step again.
Review. Click 'Install' to start the installation. This will run for a few minutes, and then you will be prompted to run root.sh
Execute root.sh
Create the localbin directory under the Middleware home. binaries cd /u02/Middleware; mkdir localbin
Enter the full pathname of the local bin directory: [/usr/local/bin]: /u02/Middleware/localbin Copying dbhome to /u02/Middleware/localbin ... Copying oraenv to /u02/Middleware/localbin ... Copying coraenv to /u02/Middleware/localbin ...
Entries will be added to the /etc/oratab file as needed by Database Configuration Assistant when a database is created Finished running generic part of root.sh script. Now product-specific root actions will be performed. /etc exist Creating /etc/oragchomelist file... /u02/Middleware/oms Finished execution of /u02/Middleware/oms/root.sh ...... Starting to execute /u02/Middleware/agent/core/12.1.0.1.0/root.sh ...... Finished product-specific root actions. /etc exist Finished execution of /u02/Middleware/agent/core/12.1.0.1.0/root.sh ......
On the Add Targets Manually page, select Add Host Targets and click Add Host.
On the Host and Platform page, do the following: a. Accept the default name assigned for this session or enter a unique name of your choice.
b. Click Add to enter the fully qualified name of another ODA node(eg: slcac453-x0) and select the platform of the host on which
(If the OMS was installed on a different machine, provide both ODA hosts in the
c. Click Next. On the ODA cluster node, create the agent home directory and configure sudo related files. [root@slcac453-x0 /]#
mkdir -p /u02/agenthome chmod -R 777 /u02 chown -R oracle:oinstall /u02/agenthome cd /usr/local/bin ln -s /usr/bin/sudo sudo echo "oracle ALL=(ALL) ALL" >> /etc/sudoers requiretty echo "Defaults visiblepw" >> /etc/sudoers Uncomment this line in /etc/sudoers #Defaults
agent installation completes. Note: If you dont want to configure sudo for the oracle user, then remember to run root.sh manually immediately after
3. On the Installation Details page, do the following: a. In the Deployment Type section, select Fresh Agent Install. b. From the table, select the first row that indicates the hosts grouped by their common platform name. c. In the Installation Details section, provide the installation details common to the hosts selected in Step 3 (b). For Installation
Base Directory, enter the absolute path to the base directory where you want the software binaries, security files, and inventory files of Management Agent to be copied. eg: /u02/agenthome
d. For Instance Directory, accept the default instance directory location or enter the absolute path to a directory of your choice
where all Management Agent-related configuration files can be stored. eg: /u02/agenthome/agent_inst
e. Click the plus icon against this list. In the Create New Named Credential window, enter the credentials and store them with an
appropriate profile name so that it can be selected and used for installing the Management Agents. Also set the run privilege if you want to switch over from the Named Credential you are creating, to another user who has the privileges to perform the installation.
f. For Privileged Delegation Setting, we leave this field blank, the root scripts will not be run by the wizard; you will have to run
g. For Port, accept the default port (3872) that is assigned for the Management Agent to communicate, or enter a port of your choice. The custom port you enter must be free. If you are not sure, you can leave this field blank. Enterprise Manager Cloud Control automatically assigns the first available free port within the range of 1830 - 1849.
h. Click Next. On the Review page, review then start the deployment Please review the details you have provided for the installation and if you are satisfied with the details, then click Deploy Agent to install the Management Agent.
Click Deploy Agent and wait for the OMA deployment to finish.
You are now ready for cluster-wide discovery of targets. Continue with the next section.
Management Agent
Select
Continue
Next
Deploy
Show Status
Note: Ensure that the Plug-In is deployed to both nodes successfully. Otherwise, perform the above steps for the second node.
Next, add Oracle Clusterware and HA Service. Navigate to: SetupAdd targetsAdd target manually
Continue
Add
At this point, EM has created the top level target Cluster that will be used to discover associated cluster services. Next, we will add these targets (Oracle Database, Listener and Automatic Storage Management) to the ODA cluster the same way we added the cluster above.
Continue
Continue
Test Connection OK
Next
Next
Save
OK This concludes the installation and configuration of Oracle Enterprise Manager Cloud Control 12c on ODA. For more information on EM, please refer to the EM Documentation on OTN.