Академический Документы
Профессиональный Документы
Культура Документы
sales@mokumsolutions.com
Copyright 2015 Mokum Solutions, Inc. All rights reserved.
Distribution of the Oracle Cloud Cookbook or derivative of the work in any form
is prohibited unless prior permission is obtained from the Copyright holder.
About Mokum Solutions, Inc.
Founded in March 2011, Mokum Solutions, Inc. specializes in the implementation,
delivery and support of Oracle technologies in private and public clouds. Mokum
corporate headquarters are located in San Francisco, CA http://mokumsolutions.com
or call 1 415 252 9164
About the Author
The author of the Oracle Cloud Cookbook is none other than the owner of
Mokum Solutions, Inc., Roddy Rodstein. Roddy is one of the most respected
Oracle Cloud Computing experts, having designed and managed many of the
worlds largest and most complex Oracle private clouds. Before establishing
Mokum in March 2011, Roddy spent three years at Oracle on the Oracle VM
and Oracle Linux team designing and supporting Oracle's largest and most
complex customer environments. Before Oracle, Roddy spent six years at Citrix,
designing and supporting Citrix's largest and most complex customer environments,
Including Oracle's. With Mr. Rodsteins rich background and knowledge, there
can be no better resource for revealing the Oracle Cloud recipe.
Audience
The Oracle Cloud Cookbook is a comprehensive, field tested reference design that
guides you through each step to move to your Oracle software portfolio to an elastic
Oracle cloud using the Oracle VM product line, Oracle Linux, Oracle Engineered
Systems managed by Oracle Enterprise Manager 12c, with total control over Oracle
processor licensing.
http://mokumsolutions.com
Table of Contents
Oracle Management Agent Installation Options
Linux Prerequisites for the Oracle Management Agent installation
Setup the Named Credentials for the Oracle Management Agent Installing User
Oracle Management Agent Install using the Add Host Targets Wizard
Oracle Management Agent Post Installation Prerequisites
Setup Host Privileged Delegation
Setup Preferred Credentials
Oracle Management Agent Deinstallaion Options
Deinstall Oracle Management Agent 12.1.0.4.0
Deinstall Oracle Management Agent 12.1.0.3.0
Deinstall Oracle Management Agent 12.1.0.2.0
Change Log
Revision
Change Description
Updated By
Date
Document Creation
Roddy Rodstein
01/14/14
Roddy Rodstein
11/24/14
Explanation
The Add Host Targets Wizard automatically installs the agent from Cloud Control
without any post installation steps.
Note: Oracle recommends using the Add Host Targets Wizard.
Silent Agent
Installation MOS ID
1360083.1
The silent agent installation uses a response le installation which automates the
agent installation with two manual post installation steps. The manual post
installation steps include running the root.sh scripts along with emctl secure
agent.
4 of 41
http://mokumsolutions.com
RPM Installation
MOS ID 1363031.1
The agent RPM installation is a single agent RPM installation with two manual
post installation steps. The manual post installation steps include editing the
properties le: /usr/lib/oracle/agent/agent.properties with the correct values,
then executing the /etc/init.d/cong.pl command.
Description
In the above example, oma is the installing user. Change "oma" with your
Oracle Enterprise
installer user account name.
Manager uses a
In the above example, the agent home ($AGENT_HOME) is /u01/app
trust-based security
/oracle/product/agent_inst. Change the above $AGENT_HOME with your
model to execute
$AGENT_HOME.
trusted, elevated jobs
In the above example, the agent base ($AGENT_BASE) is /u01/app/oracle
using sudo. The Oracle
/product/core/12.1.0.2.0/. Change the above $AGENT_BASE with your
Management Agent
$AGENT_BASE.
uses the nmosudo
executable to run
trusted/elevated jobs. If 2) Next, change the following two /etc/sudoers entries:
the Job credentials do
1) Change:
not have sudo settings,
Defaults !visiblepw
then the Job is executed
to:
without the nmosudo.
Defaults visiblepw
Next:
2) Comment out the following line:
Defaults requiretty
to
#Defaults requiretty
Save the changes.
Option B:
1) Add the Oracle Management Agent installing user to the wheel group and
uncomment the "wheel ALL=(ALL)
NOPASSWD: ALL" line in the
/etc/sudoer le.
To add the Oracle Management Agent installing user to the the wheel
5 of 41
http://mokumsolutions.com
NOPASSWD: ALL
to
wheel ALL=(ALL)
NOPASSWD: ALL
/etc/sudoers entries:
1) Change:
Defaults !visiblepw
to:
Defaults visiblepw
Next:
2) Comment out the following line:
Defaults requiretty
to
#Defaults requiretty
Save the changes.
Tip: With Oracle Linux and Red Hat Enterprise Linux 5 hosts, make the following modications
to allow sudo with NOPASSWD to work with up2date:
rm -fr /usr/bin/up2date
ln -s /usr/sbin/up2date /usr/bin/up2date
Oracle Management Service and /etc/sudoers Prerequisites:
On the OMS host(s) set the oracle.sysman.prov.agentpush.enablePty property
to true in the $<OMS_HOME>/sysman/prov/agentpush/agentpush.properties
le. If your unable to set the oracle.sysman.prov.agentpush.enablePty property
to true in the $<OMS_HOME>/sysman/prov/agentpush/agentpush.properties
le, the following two settings must be made in each linux host's /etc/sudoers
le.
2- $ORACLE_BASE and
$AGENT_HOME
Directories:
The Oracle base
directory
($ORACLE_BASE)
is the top-level
directory for
Oracle software
installations.
The agent home
directory
The
The
The
The
The
agent home directory must be empty and should have 4GB of space.
agent home directory name cannot contain any spaces.
installing user must own the agent home directory.
installing user or the root user must own all the parent directories.
root user must own the root directory.
6 of 41
http://mokumsolutions.com
($ORACLE_HOME)
is the directory
where the Oracle
Management
Agent software is
installed.
The Optimal Flexible
Architecture (OFA) standard
is a set of le naming
recommendations for
managing Oracle
installations. The Optimal
Flexible Architecture
standard oers mount point,
directory, and le-naming
conventions that work with
the Oracle Universal
Installer. The Optimal
Flexible Architecture
includes where to install
each part of each Oracle
product including the
storage of the applications
and the data.
user, and the root directory /u01 must be owned by the root user.
Note: When installing the Oracle Management Agent using Cloud Control's
Add Host Targets Wizard, the Wizard automatically creates the
$AGENT_HOME directory.
As root, create and chown the $ORACLE_BASE directory, i.e. /u01/app/oracle
/product/. For example:
# mkdir /u01/app/oracle/product/
# chown oma:dba /u01/app/oracle/product
To install the oracle-em-agent preinstall RPM from the Oracle public yum repository, as root type the
following commands:
# cd /etc/yum.repos.d
# wget http://public-yum.oracle.com/public-yum-ol6.repo
Next, using you favorite text editor edit the public-yum-ol6.repo file and enable the addons
channel. Change the following line from:
[ol6_addons]
name=Oracle Linux $releasever Add ons ($basearch)
baseurl=http://public-yum.oracle.com/repo/OracleLinux/OL6/addons/$basearch/
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
gpgcheck=1
enabled=0
to:
[ol6_addons]
name=Oracle Linux $releasever Add ons ($basearch)
baseurl=http://public-yum.oracle.com/repo/OracleLinux/OL6/addons/$basearch/
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
gpgcheck=1
enabled=1
Note: If you allready installed the oracle-rdbms-server preinstall RPM, there is no need to install
the oracle-em-agent preinstall RPM
Now we can install the oracle-ebs-server-R12-preinstall RPM as shown in the next example.
7 of 41
http://mokumsolutions.com
Install the oracle-em-agent-12cR4-preinstall RPM package for Oracle Management Agent R4:
# yum install oracle-em-agent-12cR4-preinstall -y
Install the oracle-em-agent-12cR1-preinstall RPM package for Oracle Management Agent R1
through R3:
# yum install oracle-em-agent-12cR1-preinstall -y
The above commands lists each of the queried RPM packages installed on the
system. The 32-bit RPMs are appended with (i386) or (i686), and the 64-bit
RPMs are appended with (x86_64). From any ULN registered Linux host,
install any of the missing RPMs by typing "yum install package-name". To
install the RPM Package Prerequisites from the Oracle public yum repository,
as root type the following commands:
Oracle & Red Hat Linux 6:
# cd /etc/yum.repos.d/
# wget http://public-yum.oracle.com/public-yum-ol6.repo
# yum install package-name
Oracle & Red Hat Linux 5:
# cd /etc/yum.repos.d/
# wget http://public-yum.oracle.com/public-yum-el5.repo
# yum install package-name
Oracle & Red Hat Linux 5.x 64-bit
make-3.81
binutils-2.17.50.0.6
gcc -4.1.1
libaio-0.3.106
glibc-common-2.3.4
libstdc++ -4.1.1
setarch-1.6
sysstat-5.0.5
rng-utils-2.0
libXtst-1.0.1-3.1(x86_64)
xorg-x11-utils (Required only for
GUI installations)
make-3.81
binutils-2.17.50.0.6
gcc-4.1.1
libaio-0.3.106
glibc-common-2.3.4
compat-libstdc++296-2.96
libstdc++ 4.1.1
make-3.81
binutils-2.17.50.0.6
gcc-4.1.1
libaio-0.3.106
glibc-common-2.3.4
compat-libstdc++296-2.96
libstdc++ 4.1.1
8 of 41
http://mokumsolutions.com
libstdc++devel-4.1.0
setarch-1.6
sysstat-5.0.5
compat-db 4.1.25
rng-utils-2.0
libXtst-1.0.1-3.1(i386)
xorg-x11-utils (Required only for
GUI installations)
4- /etc/hosts
requirements
Oracle technology
products, including
Oracle Enterprise
Manager, rely on a
properly formatted
/etc/hosts le which
allows the host to be
pingable, with long and
short host names. The
host name in the
/etc/hosts le must be
associated with the
server's public IP
address.
5- The Secure Shell
(SSH) provides the
connectivity between
the Oracle Management
Service (OMS) and
Oracle Management
Agents for jobs and
deployment
procedures.
libstdc++devel-4.1.0
setarch-1.6
sysstat-5.0.5
compat-db 4.1.25
xorg-x11-utils (Required only for
GUI installations)
The next example shows the proper syntax from a /etc/hosts le. Note that the
localhost entries are on one line, and the IP address with the long and short
names are on the next line.
127.0.0.1 localhost.localdomain localhost
192.168.4.8 servername.com servername
The /etc/hosts le can be edited by the root user by typing vi /etc/hosts.
Tip: The following IPv6 entries in Oracle Linux 5 & 6 /etc/hosts les should be
removed to avoid "Bug 13652664 : AGENT DEPLOY FAILS WITH AGENT PORT
PASSED BY USER IS BUSY" with Oracle Management Agent installations:
::1
localhost localhost.localdomain localhost6 localhost6.localdomain6
If the SSH daemon is not running on the default port (22), the SSH_PORT
property in $<OMS_HOME>/oui/prov/resources/Paths.properties on on
the OMS host must be edited with the port.
6- It is important that
Enterprise Manager
obtains the correct time
zone for each Oracle
Management Agent.
9 of 41
http://mokumsolutions.com
TZ='America/Chicago'
Mountain Standard Time ( MST ) is the Denver time zone, i.e. export
TZ='America/Denver'
Pacic Standard Time ( PST ) is the Los Angeles time zone, i.e. export
TZ='America/Los_Angeles'
7- /tmp directory
requirements
8- oraInventory
directory requirements
If any Oracle technologies are already installed on the host, conrm that the
oraInventory directory is read write (rw) by the dba group.
Once all of the above prerequisites have been met the Oracle Management agent can be installed.
10 of 41
http://mokumsolutions.com
From the Named Credentials page, create a named credential for the Oracle Management Agent
installing user. As shown in Figure 2, click the Create to access the Create Credential screen.
As shown in Figure 3, from the Create Credential page, select the Global Scope option, and enter the following
properties.
General Properties:
Credential name: Enter the user name of the Oracle Management Agent installing user. This is the
name that is displayed in Cloud Control.
Credential description: Enter an optional description.
Authentication Target Type: Select Host from the drop down menu.
Credential type: Select Host Credentials from the drop down menu.
Scope: Select Global.
Credentials Properties:
UserName: Enter the user name of the Oracle Management Agent installing user.
Password: Enter the password for the Oracle Management Agent installing user.
Conrm Password: Enter the password for the Oracle Management Agent installing user.
Run Privilege: Select Sudo and in the Run As text box enter root.
11 of 41
http://mokumsolutions.com
From the Test options page, with Host selected in the Test Target Type click the search icon to access
the Select Targets window.
Figure 4
From the Select Targets window, Search for a Linux host target by entering a host name in the Target
Name or On Host text box and click Search, or select a Linux host from list. Once a Linux host is
selected, click the Select button to proceed.
Figure 5
12 of 41
http://mokumsolutions.com
From the Test options page shown in Figure 6, click the Click Test and Save button to test and save the
named credential.
Figure 6
13 of 41
http://mokumsolutions.com
14 of 41
http://mokumsolutions.com
3. From the Add Target Manually page, select the Add Host Targets option and click Add Host.
Figure 9
4. From the Add Host Targets: Host and Platform page, click + Add and + Manually to add a host.
Tip: The DNS name entered in the Host texteld will be displayed in Cloud Control. The Host name
cannot be edited after the Oracle Management Agent installation. The DNS long or short name can be
entered in the Host texteld. If you have multiple domain names, consider using the long name to be able
to quickly identify hosts in Cloud Control by the domain name.
Figure 10
15 of 41
http://mokumsolutions.com
5. Next, enter the DNS long or short host name and select the platform from the dropdown list, i.e. Linux
x86-64. Repeat the process for each additional Linux host. Once all of the hosts are added to the Add
Target page, click Next to proceed.
Figure 11
16 of 41
http://mokumsolutions.com
6. From the Add Host Targets: Installation Details page enter the Installation Base Directory path
(i.e. the $AGENT_HOME), click in the Instance directory text eld to auto-generate the Instance
Directory path, select the Named Credential from the drop down list, or create a new Named
Credential on the y by clicking the + icon, accept the default port 3872, or clear the port led to
enable automatic port selection. Click Next to proceed.
Figure 12 shows the creation of a Named Credential.
Figure 12
17 of 41
http://mokumsolutions.com
7. Once all mandatory inputs have been entered correctly, click Next to proceed.
Tip: The Mandatory Inputs icon will turn green once all of the details have been successfully entered.
Figure 14
18 of 41
http://mokumsolutions.com
8. From the Add Host Targets: Review screen, review entries and click Deploy Agent to proceed.
Figure 15
9. The Add Host Status window shows the progress of agent deployments. The agent deployment takes
between 5 to 10 minutes.
There are three agent deployment segments: Initialization details, Remote Prerequisite Check details
and Agent Deployment details. Each segment can be tracked by clicking the Link under Agent
Deployment Details. If any of the agent deployment segments fail, the failed segment will be displayed
in the GUI. Resolve the problem and click Retry to rerun that segment.
Figure 16
19 of 41
http://mokumsolutions.com
Click the Remote Prerequisite Check Details link to view the Remote Prerequisite Check Details.
Figure 18 shows the Remote Prerequisite Check Details.
Figure 18
Click the Agent Deployment Details link to view the Agent Deployment Details.
Figure 19 shows the Agent Deployment Details.
Figure 19
20 of 41
http://mokumsolutions.com
11. Next, click Targets => Hosts to navigate to the Hosts page. Conrm that the hosts are listed on the
page.
Figure xx shows the host was added.
Figure 21
21 of 41
http://mokumsolutions.com
22 of 41
http://mokumsolutions.com
From the Manage Privileged Delegation Settings page we can congure the Yum server and each
Linux host target by clicking the Edit icon, but we will use another method.
Tip: Only one target can be congure at a time, however, a template can be created and applied to
multiple hosts.
Figure 23
From the Manage Privilege Delegation screen, click the Template tab and click Create.
Figure 24
23 of 41
http://mokumsolutions.com
From the Create Template screen, select Type: Sudo from the dropdown and enter /usr/bin/sudo -u
%RUNAS% %COMMAND% in the Sudo Command text box. Select Linux for the Default for
Platforms dropdown. Click Create to proceed.
Figure 25
24 of 41
http://mokumsolutions.com
25 of 41
http://mokumsolutions.com
From the Manage Priviledge Delegation screen, select all the hosts you wish to apply the new
template to. Click Apply Template to proceed.
Figure 27
26 of 41
http://mokumsolutions.com
From the Apply Template screen, Select the Template Name from the dropdown. Click OK to proceed.
Figure 28
27 of 41
http://mokumsolutions.com
From the Conrmation screen, validate the template has been applied to selected hosts.
Figure 29
28 of 41
http://mokumsolutions.com
Once you refresh the screen, you will see the Command column updated for the hosts for which the
template was applied.
Figure 30
29 of 41
http://mokumsolutions.com
30 of 41
http://mokumsolutions.com
From the Preferred Credentials page click the Host Target Type, then click Manage Preferred Credentials
to access the Host Preferred Credentials page.
Figure 32
From the Host Preferred Credentials page select one or more Linux host target and click Set.
Figure 33
31 of 41
http://mokumsolutions.com
From the Select Named Credential window, select the Oracle Management Agent installing user
account from the drop down menu, then click Save.
Note: In the example, the Named Credential was created in advance using the Oracle Management Agent installing user
oma. Change "oma" with your installer user account Named Credential.
Figure 34
32 of 41
http://mokumsolutions.com
From the Host Preferred Credentials page confirm that the Linux host targets Normal Host Credentials and
Privileged Host Credentials are set.
Figure 35
33 of 41
http://mokumsolutions.com
Description
Invoke the installer from the Management Agent home and deinstall the
agent using the GUI.
34 of 41
http://mokumsolutions.com
RPM le
Brute Force
Before deinstalling the Oracle Management Agent, complete tasks 1 and 2 below:
1. As the Oracle Management Agent installing user, check the status of the Oracle Management Agent by typing
<AGENT_HOME>/bin/emctl status agent. If the agent is running, the Agent Home and Agent Binaries paths will be listed in the
output. The Agent Home and the Agent Binaries paths must be known to deinstall the agent. If you need help locating the emctl
location, use the which or locate commands.
$ which emctl
/u01/app/oracle/product/agent_inst/bin/emct.
l[oma@sgd-uhura ~]$ /u01/app/oracle/product/agent_inst/bin/emctl status agent
Oracle Enterprise Manager Cloud Control 12c Release 4
Copyright (c) 1996, 2014 Oracle Corporation. All rights reserved.
--------------------------------------------------------------Agent Version
: 12.1.0.4.0
OMS Version
: 12.1.0.4.0
Protocol Version
: 12.1.0.1.0
Agent Home
: /u01/app/oracle/product/agent_inst
: /u01/app/oracle/product/agent_inst/sysman/log
: /u01/app/oracle/product/core/12.1.0.4.0
: 2998Parent Process ID
: 2949
: https://sgd-uhura:3872/emd/main/
: https://oem-sarek.local.mokumsolutions.com:4903/empbs/upload
: 2014-06-23 09:34:53
: oma
: Linux version 2.6.39-400.109.6.el6uek.x86_64 (amd64)
: (none)Last successful upload
: 2014-06-27 11:27:48
: 2014-06-27 11:27:48
:0
:0
: 64.25%
Collection Status
Heartbeat Status
: Collections enabled
: Ok
: 2014-06-27 11:32:54
: 2014-06-27 11:32:54
: 2014-06-27 11:33:54
35 of 41
http://mokumsolutions.com
The Agent Home path is : /u01/app/oracle/product/agent_inst and the Agent Binaries path is /u01/app/oracle/product
/core/12.1.0.4.0.
2. As the Oracle Management Agent installing user, shut down Oracle Management Agent by typing <AGENT_HOME>/bin/emctl
stop agent
$ /u01/app/oracle/product/core/12.1.0.4.0/bin/emctl stop agent
Oracle Enterprise Manager Cloud Control 12c Release 4
Copyright (c) 1996, 2014 Oracle Corporation. All rights reserved.
Stopping agent ..... stopped.
In the above example, oma is the installing user. Change "oma" with your installer user account name.
In the above example, the agent home ($AGENT_HOME) is /u01/app/oracle/product/agent_inst. Change the above
$AGENT_HOME with your $AGENT_HOME.
We can now deinstall the Oracle Management Agent.
Deinstall the Oracle Management Agent in Silent Mode Using AgentDeinstall.pl script. <AGENT_BINARIES>/perl/bin/perl
<AGENT_BINARIES>/sysman/install/AgentDeinstall.pl -agentHome <Agent Binaries>
For example, as the Oracle Management Agent installing user type the following command to deinstall the Oracle Management
Agent:
$ /u01/app/oracle/product/core/12.1.0.4.0/perl/bin/perl /u01/app/oracle/product/core/12.1.0.4.0/sysman/install/AgentDeinstall.pl
-agentHome /u01/app/oracle/product/core/12.1.0.4.0/
Agent Oracle Home: /u01/app/oracle/product/core/12.1.0.4.0
agentHome = /u01/app/oracle/product/core/12.1.0.4.0
NOTE: The agent base directory: /u01/app/oracle/product will be removed after successful deinstallation of agent home.
DetachHome Command executed:/u01/app/oracle/product/core/12.1.0.4.0/oui/bin/runInstaller -detachHome -force -depHomesOnly
-silent ORACLE_HOME=/u01/app/oracle/product/core/12.1.0.4.0 -waitForCompletion -invPtrLoc /u01/app/oracle/product
/core/12.1.0.4.0/oraInst.locStarting Oracle Universal Installer...
Checking swap space: must be greater than 500 MB. Actual 3600 MB
Passed
Passed
Passed
Preparing to launch Oracle Universal Installer from /tmp/OraInstall2014-06-27_11-38-54AM. Please wait ...Oracle Universal
Installer, Version 11.1.0.12.0
ProductionCopyright (C) 1999, 2014, Oracle. All rights reserved.
Starting deinstall
Deinstall in progress (Friday, June 27, 2014 11:39:00 AM PDT)
Conguration assistant "Agent Deinstall Assistant" succeeded
36 of 41
http://mokumsolutions.com
37 of 41
http://mokumsolutions.com
$<AGENT_HOME>/bin/emctl stop agent.
$ ./emctl stop agent
Oracle Enterprise Manager Cloud Control 12c Release 3
Copyright (c) 1996, 2013 Oracle Corporation. All rights reserved.
Stopping agent ..... stopped.
In the above example, oma is the installing user. Change "oma" with your installer user account
name.
In the above example, the agent home ($AGENT_HOME) is /u01/app/oracle/product/agent_inst.
Change the above $AGENT_HOME with your $AGENT_HOME.
3. Next, deinstall the Oracle Management Agent in Silent Mode Using AgentDeinstall.pl Script by
invoking the AgentDeinstall.pl script:
$<AGENT_HOME>/perl/bin/perl <AGENT_HOME>/sysman/install/AgentDeinstall.pl -agentHome <Agent
Binaries>
For example, as the Oracle Management Agent installing user type the following command to deinstall
the Oracle Management Agent:
$ /u01/app/oracle/product/agent/core/12.1.0.3.0/perl/bin/perl /u01/app/oracle/product/agent
/core/12.1.0.3.0/sysman/install/AgentDeinstall.pl -agentHome /u01/app/oracle/product/agent
/core/12.1.0.3.0
Agent Oracle Home: /u01/app/oracle/product/agent/core/12.1.0.3.0
NOTE: The agent base directory: /u01/app/oracle/product/agent will be removed after successful
deinstallation of agent home.
DetachHome Command executed:/u01/app/oracle/product/agent/core/12.1.0.3.0/oui/bin/runInstaller
-detachHome -force -depHomesOnly -silent ORACLE_HOME=/u01/app/oracle/product/agent
/core/12.1.0.3.0 -waitForCompletion -invPtrLoc /u01/app/oracle/product/agent/core/12.1.0.3.0/oraInst.loc
Starting Oracle Universal Installer...
Checking swap space: must be greater than 500 MB. Actual 1027 MB Passed
The inventory pointer is located at /u01/app/oracle/product/agent/core/12.1.0.3.0/oraInst.loc
'DetachHome' was successful.
Starting Oracle Universal Installer...
Checking swap space: must be greater than 500 MB. Actual 1027 MB Passed
The inventory pointer is located at /u01/app/oracle/product/agent/core/12.1.0.3.0/oraInst.loc
The Oracle home '/u01/app/oracle/product/agent/sbin' could not be updated as it does not exist.
Deinstall Command executed:/u01/app/oracle/product/agent/core/12.1.0.3.0/oui/bin/runInstaller -deinstall
-silent "REMOVE_HOMES={/u01/app/oracle/product/agent/core/12.1.0.3.0}" -waitForCompletion
-removeAllFiles -invPtrLoc /u01/app/oracle/product/agent/core/12.1.0.3.0/oraInst.loc
Starting Oracle Universal Installer...
Checking swap space: must be greater than 500 MB. Actual 1027 MB Passed
Preparing to launch Oracle Universal Installer from /tmp/OraInstall2014-01-22_10-07-57AM. Please wait
...Oracle Universal Installer, Version 11.1.0.11.0 Production
Copyright (C) 1999, 2013, Oracle. All rights reserved.
Starting deinstall
Deinstall in progress (Wednesday, January 22, 2014 10:08:01 AM CST)
Conguration assistant "Agent Deinstall Assistant" succeeded
38 of 41
http://mokumsolutions.com
............................................................... 100% Done.
Deinstall successful
End of install phases.(Wednesday, January 22, 2014 10:08:30 AM CST)
End of deinstallations
Please check '/u01/app/oraInventory/logs/silentInstall2014-01-22_10-07-57AM.log' for more details.
Do you want us to delete the old oracle home [yes/no] :yes
NOTE: The targets monitored by this Management Agent will not be deleted in the Enterprise Manager
Repository by this deinstall script. Make sure to delete the targets manually from the Cloud Control
Console for a successful deinstallation.
: 12.1.0.2.0
OMS Version
: 12.1.0.2.0
: /u01/app/oracle/product/agent_inst
Agent Binaries
: /u01/app/oracle/product/core/12.1.0.2.0
: https://snort-vash.sf.mokum.com:3872/emd/main/
Repository URL
Started at
: https://oem-tuvok.sf.mokum.com:4900/empbs/upload
: 2012-12-01 07:22:39
: (none)
: 2012-12-01 08:03:09
: 2012-12-01 08:03:09
:0
:0
: 79.03%
Collection Status
Heartbeat Status
: Collections enabled
: Ok
: 2012-12-01 08:03:06
: 2012-12-01 08:03:06
: 2012-12-01 08:04:06
39 of 41
http://mokumsolutions.com
In the above example, oma is the installing user. Change "oma" with your installer user account
name.
In the above example, the agent home ($AGENT_HOME) is /u01/app/oracle/product/agent_inst.
Change the above $AGENT_HOME with your $AGENT_HOME.
3. Next, deinstall the Oracle Management Agent in Silent Mode Using AgentDeinstall.pl Script by invoking the AgentDeinstall.pl
script:
$<AGENT_HOME>/perl/bin/perl <AGENT_HOME>/sysman/install/AgentDeinstall.pl -agentHome <Agent Binaries>
For example, as the Oracle Management Agent installing user type the following command to deinstall the Oracle Management
Agent:
$ /u01/app/oracle/product/core/12.1.0.2.0/perl/bin/perl /u01/app/oracle/product/core/12.1.0.2.0/sysman/install/AgentDeinstall.pl
-agentHome /u01/app/oracle/product/core/12.1.0.2.0
Passed
Passed
Passed
Preparing to launch Oracle Universal Installer from /tmp/OraInstall2012-12-01_07-45-42AM. Please wait ...Oracle Universal
Installer, Version 11.1.0.9.0 Production
Copyright (C) 1999, 2012, Oracle. All rights reserved.
40 of 41
http://mokumsolutions.com
Starting deinstall
Deinstall in progress (Saturday, December 1, 2012 7:46:16 AM PST)
Conguration assistant "Agent Deinstall Assistant" succeeded
............................................................... 100% Done.
Deinstall successful
End of install phases.(Saturday, December 1, 2012 7:47:01 AM PST)
End of deinstallations
Please check '/u01/app/oraInventory/logs/silentInstall2012-12-01_07-45-42AM.log' for more details.
NOTE: The targets monitored by this Management Agent will not be deleted in the Enterprise Manager Repository by this deinstall
script. Make sure to delete the targets manually from the Cloud Control Console for a successful deinstallation.
41 of 41