Showing posts with label agent. Show all posts
Showing posts with label agent. Show all posts

Wednesday, July 15, 2020

Installing a Management Agent in Silent Mode Using agentDeploy.sh

There are multiple ways for deploying agent in silent mode on a 13.4 cloud control. This post list the steps for deploying agent in silent mode using the agentDeploy.sh script.
1. The agent will be deployed under a different user (named emagent in this case) than the user who owns the oracle targets. The user must belong to oracle inventory group in this case oinstall. So create the user as
useradd -g oinstall emagent
2. There are several pre-reqs that are needed before running agent in silent mode. However, it was possible to deploy the agent without any of those being done on a server where Oracle restart was running. It is possible that pre-reqs for Oracle restart covers most of the pre-reqs needed by agent deployment. Since the agent is deployed as a separate user it's best to set the ulimit values for that user in limit.d
emagent soft nproc 13312
emagent hard nproc 13312
emagent soft nofile 4096
emagent hard nofile 16384
3. Make the agent base directory with write permission for the user who will install agent
mkdir -p /opt/agent
chown emagent:oinstall agent
chmod 770 agent
4. Get the agent deployment zip file from the OMS host. As first step login using emcli as sysman user
cd $OMS_HOME
./emcli login -username=sysman
Enter password

Login successful
Run the sync to synchronize the emcli
./emcli sync
Synchronized successfully
List the platforms and versions available. On this case only Linux 64-bit was available.
./emcli get_supported_platforms
-----------------------------------------------
Version = 13.4.0.0.0
 Platform = Linux x86-64
-----------------------------------------------
Platforms list displayed successfully.
Download the agent deployment zip to a temporary location. Use the platform and versions number found in the previous command
 mkdir -p /tmp/agent
./emcli get_agentimage -destination=/tmp/agent -platform="Linux x86-64" -version=13.4.0.0.0
 === Partition Detail ===
Space free : 13 GB
Space required : 1 GB
Check the logs at /opt/fc/app/software/em/gc_inst/em/EMGC_OMS1/sysman/emcli/setup/.emcli/get_agentimage_2020-07-14_13-03-35-PM.log
Downloading /tmp/agent/13.4.0.0.0_AgentCore_226.zip
File saved as /tmp/agent/13.4.0.0.0_AgentCore_226.zip
Downloading /tmp/agent/13.4.0.0.0_Plugins_226.zip
File saved as /tmp/agent/13.4.0.0.0_Plugins_226.zip
Downloading /tmp/agent/unzip
File saved as /tmp/agent/unzip
Executing command: /tmp/agent/unzip /tmp/agent/13.4.0.0.0_Plugins_226.zip -d /tmp/agent
Exit status is:0
Agent Image Download completed successfully.
5. Copy the agent deployment zip to the remote sever where agent deployment is expected.



6. Unzip the agent deployment zip to a temporary location on the remote server.
mkdir -p /tmp/agentimg
unzip 13.4.0.0.0_AgentCore_226.zip -d /tmp/agentimg
6. The zip file extraction will create several files. Key among them are agent.rsp and agentDeploy.sh.

7. The agent.rsp file will have entries that need to be edited so agent can find the OMS host. When the parameters are added on the response file they must be within double quotes. If they are passed as command line arguments no need to include them in double quotes. The parameter values used in the agent.rsp is shown below.
OMS_HOST="vm-em-console"
EM_UPLOAD_PORT="5900"
AGENT_REGISTRATION_PASSWORD="agentregpwd"

#--------------------------------------------------------------------------------
#Following are optional parameters
#--------------------------------------------------------------------------------
#b_startAgent=

AGENT_BASE_DIR="/opt/agent"
AGENT_INSTANCE_HOME="/opt/agent/agent_inst"
AGENT_PORT="2255"
ORACLE_HOSTNAME="master-db"
s_agentHomeName="agent13R4"
8. Run the agentDeploy.sh script with response file parameter.
./agentDeploy.sh RESPONSE_FILE=/tmp/agentimg/agent.rsp
The full output is shown below.
./agentDeploy.sh RESPONSE_FILE=/tmp/agentimg/agent.rsp

The space available is ....  262244 MB

 Validating the OMS_HOST & EM_UPLOAD_PORT
Executing command : /opt/agent/agent_13.4.0.0.0/jdk/jre/bin/java -classpath /opt/agent/agent_13.4.0.0.0/jlib/agentInstaller.jar:/opt/agent/agent_13.4.0.0.0/oui/modules/OraInstaller.jar     oracle.sysman.agent.installer.AgentInstaller /opt/agent/agent_13.4.0.0.0 /tmp/agentimg /opt/agent $args -prereq
AGENT_ins home is:RESPONSE_FILE=/tmp/agentimg/agent.rsporaclehome is:/opt/agent/agent_13.4.0.0.0
log loction is setlog
The oraclehome /opt/agent/agent_13.4.0.0.0

Validating oms host & port with url: https://vm-em-console:5900/empbs/genwallet
Validating oms host & port with url: http://vm-em-console:5900/empbs/genwallet
Return status:0-oms http port is passed
Validating the OMS Host and Port completed.
/tmp/agentimg/agentcore.bin -ignoreSysPrereqs -prereqChecker -entryPoint oracle.sysman.top.agent_Complete -silent -ignoreSysPrereqs -detailedExitCodes -responseFile /opt/agent/agentInstall.rsp  -J-DORACLE_HOSTNAME=master-db -J-DAGENT_PORT=2255 -J-Djava.io.tmpdir=/opt/agent/agent_13.4.0.0.0/cfgtoollogs/prereqlogs -J-DAGENT_BASE_DIR=/opt/agent
Launcher log file is /opt/agent/agent_13.4.0.0.0/cfgtoollogs/prereqlogs/OraInstall2020-07-15_02-13-08PM/launcher2020-07-15_02-13-08PM.log.
Checking swap space: must be greater than 512 MB.   Actual 2047 MB    Passed
Checking if this platform requires a 64-bit JVM.   Actual 64    Passed (64-bit not required)
Checking temp space: must be greater than 300 MB.   Actual 260396 MB    Passed
Preparing to launch the Oracle Universal Installer from /opt/agent/agent_13.4.0.0.0/cfgtoollogs/prereqlogs/OraInstall2020-07-15_02-13-08PM
Oracle Prerequisite Checker Version 13.9.4.0.0 Production
Copyright (C) 1999, 2020, Oracle. All rights reserved.

Starting execution of prerequisite checks
Total No of checks: 10

Performing check for CertifiedVersions_agent
Is the software certified on the current operating system?
Expected result: One of enterprise-6, oracle-8, oracle-7, SuSE-11, SuSE-12, redhat-6, redhat-7
Actual Result: redhat-7.6
Check complete. The overall result of this check is: Passed


Check complete: Passed
========================================================
Performing check for Packages_agent
Are the required packages installed on the current operating system?
Checking for make-3.82-21; found make-1:3.82-23.el7-x86_64.     Passed
Checking for binutils-2.23; found binutils-2.27-34.base.0.1.el7-x86_64. Passed
Checking for gcc-4.8.2-16; found gcc-4.8.5-36.0.1.el7_6.2-x86_64.       Passed
Checking for libaio-0.3.109-12; found libaio-0.3.109-13.el7-x86_64.     Passed
Checking for glibc-common-2.17-55; found glibc-common-2.17-260.0.17.el7_6.6-x86_64.     Passed
Checking for libstdc++-4.8.2-16; found libstdc++-4.8.5-36.0.1.el7_6.2-x86_64.   Passed
Checking for sysstat-10.1.5-4; found sysstat-10.1.5-17.el7-x86_64.      Passed
Check complete. The overall result of this check is: Passed


Check complete: Passed
========================================================
Performing check for CompatibilityCheck
Is the software compatible with the current operating system?
sourceLoc is :/opt/agent/agent_13.4.0.0.0/cfgtoollogs/prereqlogs/OraInstall2020-07-15_02-13-08PM/stage/shiphomeproperties.xml
ARU ID is:226
Platform is :x86_64
Check complete. The overall result of this check is: Passed


Check complete: Passed
========================================================
Performing check for AvailableInventorySpace
Checking for sufficient disk space in the Inventory Location
Expected result: 100.0MB
Actual Result: 260335MB
Check complete. The overall result of this check is: Passed


Check complete: Passed
========================================================
Performing check for InventoryWritableCheck
Checking for write permissions on the inventory.
Check complete. The overall result of this check is: Passed


Check complete: Passed
========================================================
Performing check for TZRegionCheck
Checking TimeZone settings...
Check complete. The overall result of this check is: Passed


Check complete: Passed
========================================================
Performing check for AgentBaseDirCheck
Is the ownership of the agent base directory valid?
Check complete. The overall result of this check is: Passed


Check complete: Passed
========================================================
Performing check for PortCheck
Checking for port availability and hostname validity...
Host name to check master-db
Getting Inet Addresses for host master-db
Trying for host : master-db/172.27.3.13 and port : 2255
Trying for host : /127.0.0.1 and port : 2255
** Agent Port Check completed successfully.**
Agent port to use 2255
===Expected Result final Port 2255 must be available on all IP addresses associated with host master-db.
Expected result: Port 2255 must be available on all IP addresses associated with host master-db.
Actual Result: 2255
Check complete. The overall result of this check is: Passed


Check complete: Passed
========================================================
Performing check for OracleHomeCheck
Checking whether the old oracle home entry is present in the central inventory ...
Check complete. The overall result of this check is: Passed


Check complete: Passed
========================================================
Performing check for CheckHostName
Is the host name valid?
value of oracle_hostname:master-db
value of hostname is:master-db
Expected result: Fully qualified domain name, for example foo.mydomain.com
Actual Result: master-db. Ensure that you provide a fully qualified domain name.
Check complete. The overall result of this check is: Passed


Check complete: Passed
========================================================
PrereqChecks complete


The log(s) can be found here: /opt/agent/agent_13.4.0.0.0/cfgtoollogs/prereqlogs/OraInstall2020-07-15_02-13-08PM.

 Agent Prereqs Completed


 Starting Install Phase .....
/tmp/agentimg/agentcore.bin -ignoreSysPrereqs -silent -responseFile /opt/agent/agentInstall.rsp
Launcher log file is /tmp/OraInstall2020-07-15_02-13-30PM/launcher2020-07-15_02-13-30PM.log.
Checking swap space: must be greater than 512 MB.   Actual 2047 MB    Passed
Checking if this platform requires a 64-bit JVM.   Actual 64    Passed (64-bit not required)
Checking temp space: must be greater than 300 MB.   Actual 21561 MB    Passed
Preparing to launch the Oracle Universal Installer from /tmp/OraInstall2020-07-15_02-13-30PM
Jul 15, 2020 2:13:34 PM oracle.sysman.oii.oiio.oiioz.OiiozResponseFile getValue
INFO: This installation is being performed using response file /opt/agent/agentInstall.rsp.
Installation Summary


Disk Space : Required 1,435 MB, Available 261,933 MB
Feature Sets to Install:
        Oracle JDK 12.2.1.3.1
        Perl 5.28.1.0.0 5.28.1.0.0
        Next Generation Install Core 13.9.4.0.0
        OPatch 13.9.4.2.2
        Oracle HTTP Client 12.2.1.3.0
        Oracle XDK 12.2.1.3.0
        DMS Full 12.2.1.3.0
        Wallet Functionality 12.2.1.3.0
        Remote Diagnostic Assistant 8.09.0.1.0
Session log file is /tmp/OraInstall2020-07-15_02-13-30PM/install2020-07-15_02-13-30PM.log

Loading products list. Please wait.
 1%
 40%

Loading products. Please wait.
 41%
 42%
 43%
 44%
 45%
 46%
 47%
 48%
 49%
 50%
 51%
 52%
 53%
 54%
 55%
 56%
 57%
 58%
 59%
 60%
 61%
 62%
 63%
 64%
 65%
 66%
 67%
 68%
 69%
 70%
 71%
 72%
 73%
 74%
 75%
 76%
 77%
 78%
 79%
 80%
 81%
 82%
 83%
 84%
 85%
 86%
 87%
 88%
 89%
 90%
 91%
 92%
 93%
 94%
 95%
 96%
 97%
 98%
 99%

Updating Libraries



Starting Installations
 1%
 2%
 3%
 4%
 5%
 6%
 7%
 8%
 9%
 10%
 11%
 12%
 13%
 14%
 15%
 16%
 17%
 18%
 19%
 20%
 21%
 22%
 23%
 24%
 25%
 26%
 27%
 28%
 29%
 30%
 31%
 32%
 33%
 34%
 35%
 36%
 37%
 38%
 39%
 40%
 41%
 42%
 43%
 44%
 45%
 46%
 47%
 48%
 49%
 50%
 51%
 52%
 53%
 54%
 55%
 56%
 57%
 58%
 59%
 60%
 61%
 62%
 63%
 64%
 65%
 66%
 67%
 68%
 69%
 70%
 71%
 72%
 73%
 74%
 75%
 76%
 77%
 78%
 79%
 80%
 81%
 82%
 83%
 84%
 85%
 86%
 87%
 88%
 89%
 90%
 91%
 92%
 93%
 94%
 95%
 96%
 97%
 98%

Install pending

Installation in progress

 Component : oracle.glcm.logging 1.6.4.0.0

Copying files for oracle.glcm.logging 1.6.4.0.0

 Component : oracle.glcm.comdev 7.8.4.0.0

Copying files for oracle.glcm.comdev 7.8.4.0.0

 Component : oracle.glcm.dependency 1.8.4.0.0

Copying files for oracle.glcm.dependency 1.8.4.0.0

 Component : oracle.glcm.xmldh 3.4.4.0.0

Copying files for oracle.glcm.xmldh 3.4.4.0.0

 Component : oracle.glcm.wizard 7.8.4.0.0

Copying files for oracle.glcm.wizard 7.8.4.0.0

 Component : oracle.commons.cli.commons.cli 1.3.1.0.0

Copying files for oracle.commons.cli.commons.cli 1.3.1.0.0

 Component : oracle.org.apache.commons.commons.compress 1.9.0.0.0

Copying files for oracle.org.apache.commons.commons.compress 1.9.0.0.0

 Component : oracle.osdt.core 12.2.1.3.0

Copying files for oracle.osdt.core 12.2.1.3.0

 Component : oracle.pki 12.2.1.3.0

Copying files for oracle.pki 12.2.1.3.0

 Component : oracle.rsa.crypto 12.2.1.3.0

Copying files for oracle.rsa.crypto 12.2.1.3.0

 Component : oracle.glcm.encryption 2.7.4.0.0

Copying files for oracle.glcm.encryption 2.7.4.0.0

 Component : oracle.help.ohj 12.2.1.3.0

Copying files for oracle.help.ohj 12.2.1.3.0

 Component : oracle.help.share 12.2.1.3.0

Copying files for oracle.help.share 12.2.1.3.0

 Component : oracle.bali.ice 12.2.1.3.0

Copying files for oracle.bali.ice 12.2.1.3.0

 Component : oracle.bali.jewt 12.2.1.3.0

Copying files for oracle.bali.jewt 12.2.1.3.0

 Component : oracle.bali.share 12.2.1.3.0

Copying files for oracle.bali.share 12.2.1.3.0

 Component : oracle.nginst.common 13.9.4.0.0

Copying files for oracle.nginst.common 13.9.4.0.0

 Component : oracle.nginst.osp.compstager 13.9.4.0.0

Copying files for oracle.nginst.osp.compstager 13.9.4.0.0

 Component : oracle.nginst.core 13.9.4.0.0

Copying files for oracle.nginst.core 13.9.4.0.0

 Component : oracle.glcm.opatch.common.api 13.9.4.0.0

Copying files for oracle.glcm.opatch.common.api 13.9.4.0.0

 Component : oracle.nginst.thirdparty 13.9.4.0.0

Copying files for oracle.nginst.thirdparty 13.9.4.0.0

 Component : oracle.swd.opatch 13.9.4.2.2

Copying files for oracle.swd.opatch 13.9.4.2.2

 Component : oracle.glcm.osys.core 13.9.1.0.0

Copying files for oracle.glcm.osys.core 13.9.1.0.0

 Component : oracle.glcm.oplan.core 13.9.4.2.0

Copying files for oracle.glcm.oplan.core 13.9.4.2.0

 Component : oracle.glcm.opatchauto.core 13.9.4.2.0

Copying files for oracle.glcm.opatchauto.core 13.9.4.2.0

 Component : oracle.xdk.jrf.xmlparserv2 12.2.1.3.0

Copying files for oracle.xdk.jrf.xmlparserv2 12.2.1.3.0

 Component : oracle.xdk.jrf.jaxp 12.2.1.3.0

Copying files for oracle.xdk.jrf.jaxp 12.2.1.3.0

 Component : oracle.xdk.jrf 12.2.1.3.0

Copying files for oracle.xdk.jrf 12.2.1.3.0

 Component : oracle.xdk.jrf.fmw 12.2.1.3.0

Copying files for oracle.xdk.jrf.fmw 12.2.1.3.0

 Component : oracle.jse.dms 12.2.1.3.0

Copying files for oracle.jse.dms 12.2.1.3.0

 Component : oracle.jrf.dms.common 12.2.1.3.0

Copying files for oracle.jrf.dms.common 12.2.1.3.0

 Component : oracle.jrf.dms 12.2.1.3.0

Copying files for oracle.jrf.dms 12.2.1.3.0

 Component : oracle.sysman.top.agent 13.4.0.0.0

Copying files for oracle.sysman.top.agent 13.4.0.0.0

 Component : oracle.sysman.common 13.4.0.0.0

Copying files for oracle.sysman.common 13.4.0.0.0

 Component : oracle.sysman.sbin 13.4.0.0.0

Copying files for oracle.sysman.sbin 13.4.0.0.0

 Component : oracle.sysman.emagent.installer 13.4.0.0.0

Copying files for oracle.sysman.emagent.installer 13.4.0.0.0

 Component : oracle.sysman.darda 8.09.0.1.0

Copying files for oracle.sysman.darda 8.09.0.1.0

 Component : oracle.jre 1.8.0.231.34

Copying files for oracle.jre 1.8.0.231.34

 Component : oracle.jdk 1.8.0.231.34

Copying files for oracle.jdk 1.8.0.231.34

 Component : oracle.ldap.rsf 12.2.1.3.0

Copying files for oracle.ldap.rsf 12.2.1.3.0

 Component : oracle.buildtools.rsf 12.1.0.2.0

Copying files for oracle.buildtools.rsf 12.1.0.2.0

instantiating '/opt/agent/agent_13.4.0.0.0/install/utl/rootmacro.sbs'.

 Component : oracle.wsm.common 12.2.1.3.0

Copying files for oracle.wsm.common 12.2.1.3.0

 Component : oracle.jrf.j2ee 12.2.1.3.0

Copying files for oracle.jrf.j2ee 12.2.1.3.0

 Component : oracle.opss.core 12.2.1.3.0

Copying files for oracle.opss.core 12.2.1.3.0

 Component : oracle.sysman.agent.ic 13.4.0.0.0

Copying files for oracle.sysman.agent.ic 13.4.0.0.0

 Component : oracle.http_client 12.2.1.3.0

Copying files for oracle.http_client 12.2.1.3.0

 Component : oracle.perlint 5.28.1.0.0

Copying files for oracle.perlint 5.28.1.0.0

 Component : oracle.perlint.expat 2.0.1.0.4

Copying files for oracle.perlint.expat 2.0.1.0.4

 Component : oracle.perlint.modules 5.28.1.0.0

Copying files for oracle.perlint.modules 5.28.1.0.0

Install successful

Post feature install pending

Post Feature installing

 Feature Set : glcm_common_logging_lib

 Feature Set : commons-cli_1.3.1.0.0

 Feature Set : glcm_common_lib

Post Feature installing commons-cli_1.3.1.0.0

Post Feature installing glcm_common_logging_lib

Post Feature installing glcm_common_lib

 Feature Set : commons-compress_1.9.0.0.0

 Feature Set : commons-cli

Post Feature installing commons-cli

 Feature Set : orapki.lib

Post Feature installing orapki.lib

Post Feature installing commons-compress_1.9.0.0.0

 Feature Set : commons-compress

Post Feature installing commons-compress

 Feature Set : com.oracle.orapki

Post Feature installing com.oracle.orapki

 Feature Set : glcm_encryption_lib

Post Feature installing glcm_encryption_lib

 Feature Set : adf.runtime.war

Post Feature installing adf.runtime.war

 Feature Set : oracle.glcm.opatch.common.api.classpath

Post Feature installing oracle.glcm.opatch.common.api.classpath

 Feature Set : oracle.glcm.osys.core.classpath

Post Feature installing oracle.glcm.osys.core.classpath

 Feature Set : oracle.glcm.oplan.core.classpath

Post Feature installing oracle.glcm.oplan.core.classpath

 Feature Set : oracle.glcm.opatchauto.core.classpath

Post Feature installing oracle.glcm.opatchauto.core.classpath

 Feature Set : oracle.glcm.opatchauto.core.binary.classpath

Post Feature installing oracle.glcm.opatchauto.core.binary.classpath

 Feature Set : oracle.glcm.opatchauto.core.actions.classpath

Post Feature installing oracle.glcm.opatchauto.core.actions.classpath

 Feature Set : oracle.glcm.opatchauto.core.wallet.classpath

Post Feature installing oracle.glcm.opatchauto.core.wallet.classpath

 Feature Set : com.oracle.db.xdk-no-jaxp

Post Feature installing com.oracle.db.xdk-no-jaxp

 Feature Set : oxquery.xmlbeans_dependencies

Post Feature installing oxquery.xmlbeans_dependencies

 Feature Set : oxquery.ee_dependencies

Post Feature installing oxquery.ee_dependencies

 Feature Set : oxquery.xqjapi_dependencies

Post Feature installing oxquery.xqjapi_dependencies

 Feature Set : oracle.xdk.xmlparserv2_dependencies

Post Feature installing oracle.xdk.xmlparserv2_dependencies

Post feature install complete

String substitutions pending

String substituting

 Component : oracle.glcm.logging 1.6.4.0.0

String substituting oracle.glcm.logging 1.6.4.0.0

 Component : oracle.glcm.comdev 7.8.4.0.0

String substituting oracle.glcm.comdev 7.8.4.0.0

 Component : oracle.glcm.dependency 1.8.4.0.0

String substituting oracle.glcm.dependency 1.8.4.0.0

 Component : oracle.glcm.xmldh 3.4.4.0.0

String substituting oracle.glcm.xmldh 3.4.4.0.0

 Component : oracle.glcm.wizard 7.8.4.0.0

String substituting oracle.glcm.wizard 7.8.4.0.0

 Component : oracle.commons.cli.commons.cli 1.3.1.0.0

String substituting oracle.commons.cli.commons.cli 1.3.1.0.0

 Component : oracle.org.apache.commons.commons.compress 1.9.0.0.0

String substituting oracle.org.apache.commons.commons.compress 1.9.0.0.0

 Component : oracle.osdt.core 12.2.1.3.0

String substituting oracle.osdt.core 12.2.1.3.0

 Component : oracle.pki 12.2.1.3.0

String substituting oracle.pki 12.2.1.3.0

 Component : oracle.rsa.crypto 12.2.1.3.0

String substituting oracle.rsa.crypto 12.2.1.3.0

 Component : oracle.glcm.encryption 2.7.4.0.0

String substituting oracle.glcm.encryption 2.7.4.0.0

 Component : oracle.help.ohj 12.2.1.3.0

String substituting oracle.help.ohj 12.2.1.3.0

 Component : oracle.help.share 12.2.1.3.0

String substituting oracle.help.share 12.2.1.3.0

 Component : oracle.bali.ice 12.2.1.3.0

String substituting oracle.bali.ice 12.2.1.3.0

 Component : oracle.bali.jewt 12.2.1.3.0

String substituting oracle.bali.jewt 12.2.1.3.0

 Component : oracle.bali.share 12.2.1.3.0

String substituting oracle.bali.share 12.2.1.3.0

 Component : oracle.nginst.common 13.9.4.0.0

String substituting oracle.nginst.common 13.9.4.0.0

 Component : oracle.nginst.osp.compstager 13.9.4.0.0

String substituting oracle.nginst.osp.compstager 13.9.4.0.0

 Component : oracle.nginst.core 13.9.4.0.0

String substituting oracle.nginst.core 13.9.4.0.0

 Component : oracle.glcm.opatch.common.api 13.9.4.0.0

String substituting oracle.glcm.opatch.common.api 13.9.4.0.0

 Component : oracle.nginst.thirdparty 13.9.4.0.0

String substituting oracle.nginst.thirdparty 13.9.4.0.0

 Component : oracle.swd.opatch 13.9.4.2.2

String substituting oracle.swd.opatch 13.9.4.2.2

 Component : oracle.glcm.osys.core 13.9.1.0.0

String substituting oracle.glcm.osys.core 13.9.1.0.0

 Component : oracle.glcm.oplan.core 13.9.4.2.0

String substituting oracle.glcm.oplan.core 13.9.4.2.0

 Component : oracle.glcm.opatchauto.core 13.9.4.2.0

String substituting oracle.glcm.opatchauto.core 13.9.4.2.0

 Component : oracle.xdk.jrf.xmlparserv2 12.2.1.3.0

String substituting oracle.xdk.jrf.xmlparserv2 12.2.1.3.0

 Component : oracle.xdk.jrf.jaxp 12.2.1.3.0

String substituting oracle.xdk.jrf.jaxp 12.2.1.3.0

 Component : oracle.xdk.jrf 12.2.1.3.0

String substituting oracle.xdk.jrf 12.2.1.3.0

 Component : oracle.xdk.jrf.fmw 12.2.1.3.0

String substituting oracle.xdk.jrf.fmw 12.2.1.3.0

 Component : oracle.jse.dms 12.2.1.3.0

String substituting oracle.jse.dms 12.2.1.3.0

 Component : oracle.jrf.dms.common 12.2.1.3.0

String substituting oracle.jrf.dms.common 12.2.1.3.0

 Component : oracle.jrf.dms 12.2.1.3.0

String substituting oracle.jrf.dms 12.2.1.3.0

 Component : oracle.sysman.top.agent 13.4.0.0.0

String substituting oracle.sysman.top.agent 13.4.0.0.0

 Component : oracle.sysman.common 13.4.0.0.0

String substituting oracle.sysman.common 13.4.0.0.0

 Component : oracle.sysman.sbin 13.4.0.0.0

String substituting oracle.sysman.sbin 13.4.0.0.0

 Component : oracle.sysman.emagent.installer 13.4.0.0.0

String substituting oracle.sysman.emagent.installer 13.4.0.0.0

 Component : oracle.sysman.darda 8.09.0.1.0

String substituting oracle.sysman.darda 8.09.0.1.0

 Component : oracle.jre 1.8.0.231.34

String substituting oracle.jre 1.8.0.231.34

 Component : oracle.jdk 1.8.0.231.34

String substituting oracle.jdk 1.8.0.231.34

 Component : oracle.ldap.rsf 12.2.1.3.0

String substituting oracle.ldap.rsf 12.2.1.3.0

 Component : oracle.buildtools.rsf 12.1.0.2.0

String substituting oracle.buildtools.rsf 12.1.0.2.0

 Component : oracle.wsm.common 12.2.1.3.0

String substituting oracle.wsm.common 12.2.1.3.0

 Component : oracle.jrf.j2ee 12.2.1.3.0

String substituting oracle.jrf.j2ee 12.2.1.3.0

 Component : oracle.opss.core 12.2.1.3.0

String substituting oracle.opss.core 12.2.1.3.0

 Component : oracle.sysman.agent.ic 13.4.0.0.0

String substituting oracle.sysman.agent.ic 13.4.0.0.0

 Component : oracle.http_client 12.2.1.3.0

String substituting oracle.http_client 12.2.1.3.0

 Component : oracle.perlint 5.28.1.0.0

String substituting oracle.perlint 5.28.1.0.0

 Component : oracle.perlint.expat 2.0.1.0.4

String substituting oracle.perlint.expat 2.0.1.0.4

 Component : oracle.perlint.modules 5.28.1.0.0

String substituting oracle.perlint.modules 5.28.1.0.0

String substitutions complete

Link pending

Linking in progress

 Component : oracle.glcm.logging 1.6.4.0.0

Linking oracle.glcm.logging 1.6.4.0.0

 Component : oracle.glcm.comdev 7.8.4.0.0

Linking oracle.glcm.comdev 7.8.4.0.0

 Component : oracle.glcm.dependency 1.8.4.0.0

Linking oracle.glcm.dependency 1.8.4.0.0

 Component : oracle.glcm.xmldh 3.4.4.0.0

Linking oracle.glcm.xmldh 3.4.4.0.0

 Component : oracle.glcm.wizard 7.8.4.0.0

Linking oracle.glcm.wizard 7.8.4.0.0

 Component : oracle.commons.cli.commons.cli 1.3.1.0.0

Linking oracle.commons.cli.commons.cli 1.3.1.0.0

 Component : oracle.org.apache.commons.commons.compress 1.9.0.0.0

Linking oracle.org.apache.commons.commons.compress 1.9.0.0.0

 Component : oracle.osdt.core 12.2.1.3.0

Linking oracle.osdt.core 12.2.1.3.0

 Component : oracle.pki 12.2.1.3.0

Linking oracle.pki 12.2.1.3.0

 Component : oracle.rsa.crypto 12.2.1.3.0

Linking oracle.rsa.crypto 12.2.1.3.0

 Component : oracle.glcm.encryption 2.7.4.0.0

Linking oracle.glcm.encryption 2.7.4.0.0

 Component : oracle.help.ohj 12.2.1.3.0

Linking oracle.help.ohj 12.2.1.3.0

 Component : oracle.help.share 12.2.1.3.0

Linking oracle.help.share 12.2.1.3.0

 Component : oracle.bali.ice 12.2.1.3.0

Linking oracle.bali.ice 12.2.1.3.0

 Component : oracle.bali.jewt 12.2.1.3.0

Linking oracle.bali.jewt 12.2.1.3.0

 Component : oracle.bali.share 12.2.1.3.0

Linking oracle.bali.share 12.2.1.3.0

 Component : oracle.nginst.common 13.9.4.0.0

Linking oracle.nginst.common 13.9.4.0.0

 Component : oracle.nginst.osp.compstager 13.9.4.0.0

Linking oracle.nginst.osp.compstager 13.9.4.0.0

 Component : oracle.nginst.core 13.9.4.0.0

Linking oracle.nginst.core 13.9.4.0.0

 Component : oracle.glcm.opatch.common.api 13.9.4.0.0

Linking oracle.glcm.opatch.common.api 13.9.4.0.0

 Component : oracle.nginst.thirdparty 13.9.4.0.0

Linking oracle.nginst.thirdparty 13.9.4.0.0

 Component : oracle.swd.opatch 13.9.4.2.2

Linking oracle.swd.opatch 13.9.4.2.2

 Component : oracle.glcm.osys.core 13.9.1.0.0

Linking oracle.glcm.osys.core 13.9.1.0.0

 Component : oracle.glcm.oplan.core 13.9.4.2.0

Linking oracle.glcm.oplan.core 13.9.4.2.0

 Component : oracle.glcm.opatchauto.core 13.9.4.2.0

Linking oracle.glcm.opatchauto.core 13.9.4.2.0

 Component : oracle.xdk.jrf.xmlparserv2 12.2.1.3.0

Linking oracle.xdk.jrf.xmlparserv2 12.2.1.3.0

 Component : oracle.xdk.jrf.jaxp 12.2.1.3.0

Linking oracle.xdk.jrf.jaxp 12.2.1.3.0

 Component : oracle.xdk.jrf 12.2.1.3.0

Linking oracle.xdk.jrf 12.2.1.3.0

 Component : oracle.xdk.jrf.fmw 12.2.1.3.0

Linking oracle.xdk.jrf.fmw 12.2.1.3.0

 Component : oracle.jse.dms 12.2.1.3.0

Linking oracle.jse.dms 12.2.1.3.0

 Component : oracle.jrf.dms.common 12.2.1.3.0

Linking oracle.jrf.dms.common 12.2.1.3.0

 Component : oracle.jrf.dms 12.2.1.3.0

Linking oracle.jrf.dms 12.2.1.3.0

 Component : oracle.sysman.top.agent 13.4.0.0.0

Linking oracle.sysman.top.agent 13.4.0.0.0

 Component : oracle.sysman.common 13.4.0.0.0

Linking oracle.sysman.common 13.4.0.0.0

 Component : oracle.sysman.sbin 13.4.0.0.0

Linking oracle.sysman.sbin 13.4.0.0.0

 Component : oracle.sysman.emagent.installer 13.4.0.0.0

Linking oracle.sysman.emagent.installer 13.4.0.0.0

 Component : oracle.sysman.darda 8.09.0.1.0

Linking oracle.sysman.darda 8.09.0.1.0

 Component : oracle.jre 1.8.0.231.34

Linking oracle.jre 1.8.0.231.34

 Component : oracle.jdk 1.8.0.231.34

Linking oracle.jdk 1.8.0.231.34

 Component : oracle.ldap.rsf 12.2.1.3.0

Linking oracle.ldap.rsf 12.2.1.3.0

 Component : oracle.buildtools.rsf 12.1.0.2.0

Linking oracle.buildtools.rsf 12.1.0.2.0

 Component : oracle.wsm.common 12.2.1.3.0

Linking oracle.wsm.common 12.2.1.3.0

 Component : oracle.jrf.j2ee 12.2.1.3.0

Linking oracle.jrf.j2ee 12.2.1.3.0

 Component : oracle.opss.core 12.2.1.3.0

Linking oracle.opss.core 12.2.1.3.0

 Component : oracle.sysman.agent.ic 13.4.0.0.0

Linking oracle.sysman.agent.ic 13.4.0.0.0

 Component : oracle.http_client 12.2.1.3.0

Linking oracle.http_client 12.2.1.3.0

 Component : oracle.perlint 5.28.1.0.0

Linking oracle.perlint 5.28.1.0.0

 Component : oracle.perlint.expat 2.0.1.0.4

Linking oracle.perlint.expat 2.0.1.0.4

 Component : oracle.perlint.modules 5.28.1.0.0

Linking oracle.perlint.modules 5.28.1.0.0

Linking in progress

Link successful

Setup pending

Setup in progress

 Component : oracle.glcm.logging 1.6.4.0.0

Setting up oracle.glcm.logging 1.6.4.0.0

 Component : oracle.glcm.comdev 7.8.4.0.0

Setting up oracle.glcm.comdev 7.8.4.0.0

 Component : oracle.glcm.dependency 1.8.4.0.0

Setting up oracle.glcm.dependency 1.8.4.0.0

 Component : oracle.glcm.xmldh 3.4.4.0.0

Setting up oracle.glcm.xmldh 3.4.4.0.0

 Component : oracle.glcm.wizard 7.8.4.0.0

Setting up oracle.glcm.wizard 7.8.4.0.0

 Component : oracle.commons.cli.commons.cli 1.3.1.0.0

Setting up oracle.commons.cli.commons.cli 1.3.1.0.0

 Component : oracle.org.apache.commons.commons.compress 1.9.0.0.0

Setting up oracle.org.apache.commons.commons.compress 1.9.0.0.0

 Component : oracle.osdt.core 12.2.1.3.0

Setting up oracle.osdt.core 12.2.1.3.0

 Component : oracle.pki 12.2.1.3.0

Setting up oracle.pki 12.2.1.3.0

 Component : oracle.rsa.crypto 12.2.1.3.0

Setting up oracle.rsa.crypto 12.2.1.3.0

 Component : oracle.glcm.encryption 2.7.4.0.0

Setting up oracle.glcm.encryption 2.7.4.0.0

 Component : oracle.help.ohj 12.2.1.3.0

Setting up oracle.help.ohj 12.2.1.3.0

 Component : oracle.help.share 12.2.1.3.0

Setting up oracle.help.share 12.2.1.3.0

 Component : oracle.bali.ice 12.2.1.3.0

Setting up oracle.bali.ice 12.2.1.3.0

 Component : oracle.bali.jewt 12.2.1.3.0

Setting up oracle.bali.jewt 12.2.1.3.0

 Component : oracle.bali.share 12.2.1.3.0

Setting up oracle.bali.share 12.2.1.3.0

 Component : oracle.nginst.common 13.9.4.0.0

Setting up oracle.nginst.common 13.9.4.0.0

 Component : oracle.nginst.osp.compstager 13.9.4.0.0

Setting up oracle.nginst.osp.compstager 13.9.4.0.0

 Component : oracle.nginst.core 13.9.4.0.0

Setting up oracle.nginst.core 13.9.4.0.0

 Component : oracle.glcm.opatch.common.api 13.9.4.0.0

Setting up oracle.glcm.opatch.common.api 13.9.4.0.0

 Component : oracle.nginst.thirdparty 13.9.4.0.0

Setting up oracle.nginst.thirdparty 13.9.4.0.0

 Component : oracle.swd.opatch 13.9.4.2.2

Setting up oracle.swd.opatch 13.9.4.2.2

 Component : oracle.glcm.osys.core 13.9.1.0.0

Setting up oracle.glcm.osys.core 13.9.1.0.0

 Component : oracle.glcm.oplan.core 13.9.4.2.0

Setting up oracle.glcm.oplan.core 13.9.4.2.0

 Component : oracle.glcm.opatchauto.core 13.9.4.2.0

Setting up oracle.glcm.opatchauto.core 13.9.4.2.0

 Component : oracle.xdk.jrf.xmlparserv2 12.2.1.3.0

Setting up oracle.xdk.jrf.xmlparserv2 12.2.1.3.0

 Component : oracle.xdk.jrf.jaxp 12.2.1.3.0

Setting up oracle.xdk.jrf.jaxp 12.2.1.3.0

 Component : oracle.xdk.jrf 12.2.1.3.0

Setting up oracle.xdk.jrf 12.2.1.3.0

 Component : oracle.xdk.jrf.fmw 12.2.1.3.0

Setting up oracle.xdk.jrf.fmw 12.2.1.3.0

 Component : oracle.jse.dms 12.2.1.3.0

Setting up oracle.jse.dms 12.2.1.3.0

 Component : oracle.jrf.dms.common 12.2.1.3.0

Setting up oracle.jrf.dms.common 12.2.1.3.0

 Component : oracle.jrf.dms 12.2.1.3.0

Setting up oracle.jrf.dms 12.2.1.3.0

 Component : oracle.sysman.top.agent 13.4.0.0.0

Setting up oracle.sysman.top.agent 13.4.0.0.0

instantiating '/opt/agent/agent_13.4.0.0.0/install/unix/scripts/agentstup.template'.

instantiating '/opt/agent/agent_13.4.0.0.0/install/unix/scripts/agentstup.template'.

changing permission for "/opt/agent/agent_13.4.0.0.0"

spawning 'chmod -R a+rX /opt/agent/agent_13.4.0.0.0/perl'

changing permission for "/opt/agent/agent_13.4.0.0.0/EMStage"

updating '/opt/agent/agent_13.4.0.0.0/root.sh.template'.

instantiating '/opt/agent/agent_13.4.0.0.0/root.sh.template'.

instantiating '/opt/agent/agent_13.4.0.0.0/replacebins.sh.template'.

instantiating '/opt/agent/agent_13.4.0.0.0/stage/bin/forwarderProxy.template'.

changing permissions for '/opt/agent/agent_13.4.0.0.0/stage/bin/forwarderProxy.template'

instantiating '/opt/agent/agent_13.4.0.0.0/bin/emtgtctl'.

instantiating '/opt/agent/agent_13.4.0.0.0/stage/sysman/config/emd.properties.template'.

updating '/opt/agent/agent_13.4.0.0.0/install/eminstall.info'.

spawning '/opt/agent/agent_13.4.0.0.0/perl/bin/perl /opt/agent/agent_13.4.0.0.0/sysman/admin/scripts/patchUploadTriggers.pl /opt/agent/agent_13.4.0.0.0'

 Component : oracle.sysman.common 13.4.0.0.0

Setting up oracle.sysman.common 13.4.0.0.0

instantiating '/opt/agent/agent_13.4.0.0.0//bin/emctl.pl.template'.

deleting '/opt/agent/agent_13.4.0.0.0//bin/emctl.pl.template'

instantiating '/opt/agent/agent_13.4.0.0.0//bin/emctl.template'.

changing permissions for '/opt/agent/agent_13.4.0.0.0/bin/emctl'

instantiating '/opt/agent/agent_13.4.0.0.0//bin/commonenv.template'.

instantiating '/opt/agent/agent_13.4.0.0.0//install/unix/scripts/gcroot.sh.template'.

changing permissions for '/opt/agent/agent_13.4.0.0.0//install/unix/scripts/gcroot.sh'

instantiating '/opt/agent/agent_13.4.0.0.0/oui/bin/runConfig.sh'.

 Component : oracle.sysman.sbin 13.4.0.0.0

Setting up oracle.sysman.sbin 13.4.0.0.0

 Component : oracle.sysman.emagent.installer 13.4.0.0.0

Setting up oracle.sysman.emagent.installer 13.4.0.0.0

 Component : oracle.sysman.darda 8.09.0.1.0

Setting up oracle.sysman.darda 8.09.0.1.0

 Component : oracle.jre 1.8.0.231.34

Setting up oracle.jre 1.8.0.231.34

 Component : oracle.jdk 1.8.0.231.34

Setting up oracle.jdk 1.8.0.231.34

 Component : oracle.ldap.rsf 12.2.1.3.0

Setting up oracle.ldap.rsf 12.2.1.3.0

 Component : oracle.buildtools.rsf 12.1.0.2.0

Setting up oracle.buildtools.rsf 12.1.0.2.0

 Component : oracle.wsm.common 12.2.1.3.0

Setting up oracle.wsm.common 12.2.1.3.0

 Component : oracle.jrf.j2ee 12.2.1.3.0

Setting up oracle.jrf.j2ee 12.2.1.3.0

 Component : oracle.opss.core 12.2.1.3.0

Setting up oracle.opss.core 12.2.1.3.0

 Component : oracle.sysman.agent.ic 13.4.0.0.0

Setting up oracle.sysman.agent.ic 13.4.0.0.0

 Component : oracle.http_client 12.2.1.3.0

Setting up oracle.http_client 12.2.1.3.0

 Component : oracle.perlint 5.28.1.0.0

Setting up oracle.perlint 5.28.1.0.0

instantiating '/opt/agent/agent_13.4.0.0.0/perl/bin_tmp/corelist'.

instantiating '/opt/agent/agent_13.4.0.0.0/perl/bin_tmp/cpan'.

instantiating '/opt/agent/agent_13.4.0.0.0/perl/bin_tmp/dbilogstrip'.

instantiating '/opt/agent/agent_13.4.0.0.0/perl/bin_tmp/dbiprof'.

instantiating '/opt/agent/agent_13.4.0.0.0/perl/bin_tmp/dbiproxy'.

instantiating '/opt/agent/agent_13.4.0.0.0/perl/bin_tmp/enc2xs'.

instantiating '/opt/agent/agent_13.4.0.0.0/perl/bin_tmp/h2ph'.

instantiating '/opt/agent/agent_13.4.0.0.0/perl/bin_tmp/h2xs'.

instantiating '/opt/agent/agent_13.4.0.0.0/perl/bin_tmp/instmodsh'.

instantiating '/opt/agent/agent_13.4.0.0.0/perl/bin_tmp/libnetcfg'.

instantiating '/opt/agent/agent_13.4.0.0.0/perl/bin_tmp/perlbug'.

instantiating '/opt/agent/agent_13.4.0.0.0/perl/bin_tmp/perldoc'.

instantiating '/opt/agent/agent_13.4.0.0.0/perl/bin_tmp/perlivp'.

instantiating '/opt/agent/agent_13.4.0.0.0/perl/bin_tmp/piconv'.

instantiating '/opt/agent/agent_13.4.0.0.0/perl/bin_tmp/pl2pm'.

instantiating '/opt/agent/agent_13.4.0.0.0/perl/bin_tmp/pod2html'.

instantiating '/opt/agent/agent_13.4.0.0.0/perl/bin_tmp/pod2man'.

instantiating '/opt/agent/agent_13.4.0.0.0/perl/bin_tmp/pod2text'.

instantiating '/opt/agent/agent_13.4.0.0.0/perl/bin_tmp/pod2usage'.

instantiating '/opt/agent/agent_13.4.0.0.0/perl/bin_tmp/podchecker'.

instantiating '/opt/agent/agent_13.4.0.0.0/perl/bin_tmp/podselect'.

instantiating '/opt/agent/agent_13.4.0.0.0/perl/bin_tmp/prove'.

instantiating '/opt/agent/agent_13.4.0.0.0/perl/bin_tmp/ptar'.

instantiating '/opt/agent/agent_13.4.0.0.0/perl/bin_tmp/ptardiff'.

instantiating '/opt/agent/agent_13.4.0.0.0/perl/bin_tmp/shasum'.

instantiating '/opt/agent/agent_13.4.0.0.0/perl/bin_tmp/splain'.

instantiating '/opt/agent/agent_13.4.0.0.0/perl/bin_tmp/xsubpp'.

instantiating '/opt/agent/agent_13.4.0.0.0/perl/lib_tmp/Config.pm'.

instantiating '/opt/agent/agent_13.4.0.0.0/perl/lib_tmp/Config_heavy.pl'.

instantiating '/opt/agent/agent_13.4.0.0.0/perl/lib_tmp/config.h'.

instantiating '/opt/agent/agent_13.4.0.0.0/perl/lib_tmp/perllocal.pod'.

spawning 'rm -rf  /opt/agent/agent_13.4.0.0.0/perl/bin_tmp'

spawning 'rm -rf /opt/agent/agent_13.4.0.0.0/perl/lib_tmp'

 Component : oracle.perlint.expat 2.0.1.0.4

Setting up oracle.perlint.expat 2.0.1.0.4

 Component : oracle.perlint.modules 5.28.1.0.0

Setting up oracle.perlint.modules 5.28.1.0.0

instantiating '/opt/agent/agent_13.4.0.0.0/perl/modules_lib_tmp/mk.pm'.

spawning 'rm -rf /opt/agent/agent_13.4.0.0.0/perl/modules_lib_tmp'

Setup successful

Save inventory pending

Saving inventory
 99%

Saving inventory complete
 100%

Configuration complete

The install operation completed successfully.

Logs successfully copied to /opt/app/oraInventory/logs.
 Agent Software install completed

Creating symlink /opt/agent/agent_13.4.0.0.0/oracle_common/jdk/bin /opt/agent/agent_13.4.0.0.0/jdk/bin
Executing command to check/apply patches if exist in agenthome.....
/opt/agent/agent_13.4.0.0.0/perl/bin/perl /opt/agent/agent_13.4.0.0.0/install/oneoffs/apply_NewOneoffs.pl /opt/agent/agent_13.4.0.0.0 true
The ORACLE HOME is /opt/agent/agent_13.4.0.0.0The install isLocal is trueThe command is opatch napply -invPtrLoc /opt/agent/agent_13.4.0.0.0/oraInst.loc -silent   -local

 Unjarring the oneoff 29812738.zip ...
 /opt/agent/agent_13.4.0.0.0/oracle_common/jdk/bin/jar xvf /opt/agent/agent_13.4.0.0.0/install/oneoffs/agent/29812738.zip
  created: 29812738/
 inflated: 29812738/README.txt
  created: 29812738/files/
  created: 29812738/files/oracle.sysman.agent.ic/
  created: 29812738/files/oracle.sysman.agent.ic/13.4.0.0.0/
  created: 29812738/files/oracle.sysman.agent.ic/13.4.0.0.0/oracle.sysman.agent.ic.symbol/
  created: 29812738/files/oracle.sysman.agent.ic/13.4.0.0.0/oracle.sysman.agent.ic.symbol/jdbc/
  created: 29812738/files/oracle.sysman.agent.ic/13.4.0.0.0/oracle.sysman.agent.ic.symbol/jdbc/lib/
  created: 29812738/files/oracle.sysman.agent.ic/13.4.0.0.0/oracle.sysman.agent.ic.symbol/jdbc/lib/ojdbc7.jar/
  created: 29812738/files/oracle.sysman.agent.ic/13.4.0.0.0/oracle.sysman.agent.ic.symbol/jdbc/lib/ojdbc7.jar/oracle/
  created: 29812738/files/oracle.sysman.agent.ic/13.4.0.0.0/oracle.sysman.agent.ic.symbol/jdbc/lib/ojdbc7.jar/oracle/net/
  created: 29812738/files/oracle.sysman.agent.ic/13.4.0.0.0/oracle.sysman.agent.ic.symbol/jdbc/lib/ojdbc7.jar/oracle/net/ns/
 inflated: 29812738/files/oracle.sysman.agent.ic/13.4.0.0.0/oracle.sysman.agent.ic.symbol/jdbc/lib/ojdbc7.jar/oracle/net/ns/NSProtocolStream.class
 inflated: 29812738/files/oracle.sysman.agent.ic/13.4.0.0.0/oracle.sysman.agent.ic.symbol/jdbc/lib/ojdbc7.jar/oracle/net/ns/NSProtocolNIO.class
 inflated: 29812738/files/oracle.sysman.agent.ic/13.4.0.0.0/oracle.sysman.agent.ic.symbol/jdbc/lib/ojdbc7.jar/oracle/net/ns/NSProtocol.class
 inflated: 29812738/files/oracle.sysman.agent.ic/13.4.0.0.0/oracle.sysman.agent.ic.symbol/jdbc/lib/ojdbc7.jar/oracle/net/ns/SQLnetDef.class
  created: 29812738/files/oracle.sysman.agent.ic/13.4.0.0.0/oracle.sysman.agent.ic.symbol/jdbc/lib/ojdbc7.jar/oracle/net/nt/
 inflated: 29812738/files/oracle.sysman.agent.ic/13.4.0.0.0/oracle.sysman.agent.ic.symbol/jdbc/lib/ojdbc7.jar/oracle/net/nt/NTAdapter$NetworkAdapterType.class
 inflated: 29812738/files/oracle.sysman.agent.ic/13.4.0.0.0/oracle.sysman.agent.ic.symbol/jdbc/lib/ojdbc7.jar/oracle/net/nt/TcpsNTAdapter.class
 inflated: 29812738/files/oracle.sysman.agent.ic/13.4.0.0.0/oracle.sysman.agent.ic.symbol/jdbc/lib/ojdbc7.jar/oracle/net/nt/SSLSocketChannel.class
 inflated: 29812738/files/oracle.sysman.agent.ic/13.4.0.0.0/oracle.sysman.agent.ic.symbol/jdbc/lib/ojdbc7.jar/oracle/net/nt/TcpsConfigure.class
 inflated: 29812738/files/oracle.sysman.agent.ic/13.4.0.0.0/oracle.sysman.agent.ic.symbol/jdbc/lib/ojdbc7.jar/oracle/net/nt/ConnOption.class
 inflated: 29812738/files/oracle.sysman.agent.ic/13.4.0.0.0/oracle.sysman.agent.ic.symbol/jdbc/lib/ojdbc7.jar/oracle/net/nt/SdpNTAdapter.class
 inflated: 29812738/files/oracle.sysman.agent.ic/13.4.0.0.0/oracle.sysman.agent.ic.symbol/jdbc/lib/ojdbc7.jar/oracle/net/nt/CustomSSLSocketFactory.class
 inflated: 29812738/files/oracle.sysman.agent.ic/13.4.0.0.0/oracle.sysman.agent.ic.symbol/jdbc/lib/ojdbc7.jar/oracle/net/nt/ConnStrategy.class
 inflated: 29812738/files/oracle.sysman.agent.ic/13.4.0.0.0/oracle.sysman.agent.ic.symbol/jdbc/lib/ojdbc7.jar/oracle/net/nt/TcpNTAdapter.class
 inflated: 29812738/files/oracle.sysman.agent.ic/13.4.0.0.0/oracle.sysman.agent.ic.symbol/jdbc/lib/ojdbc7.jar/oracle/net/nt/MQLNTAdapter.class
 inflated: 29812738/files/oracle.sysman.agent.ic/13.4.0.0.0/oracle.sysman.agent.ic.symbol/jdbc/lib/ojdbc7.jar/oracle/net/nt/NTAdapter.class
 inflated: 29812738/files/oracle.sysman.agent.ic/13.4.0.0.0/oracle.sysman.agent.ic.symbol/jdbc/lib/ojdbc7.jar/oracle/net/nt/MQLNTAdapter$1.class
  created: 29812738/files/oracle.sysman.agent.ic/13.4.0.0.0/oracle.sysman.agent.ic.symbol/jdbc/lib/ojdbc7.jar/oracle/net/resolver/
 inflated: 29812738/files/oracle.sysman.agent.ic/13.4.0.0.0/oracle.sysman.agent.ic.symbol/jdbc/lib/ojdbc7.jar/oracle/net/resolver/AddrResolution.class
  created: 29812738/files/oracle.sysman.agent.ic/13.4.0.0.0/oracle.sysman.agent.ic.symbol/jdbc/lib/ojdbc7.jar/oracle/jdbc/
 inflated: 29812738/files/oracle.sysman.agent.ic/13.4.0.0.0/oracle.sysman.agent.ic.symbol/jdbc/lib/ojdbc7.jar/oracle/jdbc/OracleConnection$DatabaseShutdownMode.class
 inflated: 29812738/files/oracle.sysman.agent.ic/13.4.0.0.0/oracle.sysman.agent.ic.symbol/jdbc/lib/ojdbc7.jar/oracle/jdbc/OracleConnection.class
  created: 29812738/files/oracle.sysman.agent.ic/13.4.0.0.0/oracle.sysman.agent.ic.symbol/jdbc/lib/ojdbc7.jar/oracle/jdbc/driver/
 inflated: 29812738/files/oracle.sysman.agent.ic/13.4.0.0.0/oracle.sysman.agent.ic.symbol/jdbc/lib/ojdbc7.jar/oracle/jdbc/driver/T4CConnection$1.class
 inflated: 29812738/files/oracle.sysman.agent.ic/13.4.0.0.0/oracle.sysman.agent.ic.symbol/jdbc/lib/ojdbc7.jar/oracle/jdbc/driver/NTFListener.class
 inflated: 29812738/files/oracle.sysman.agent.ic/13.4.0.0.0/oracle.sysman.agent.ic.symbol/jdbc/lib/ojdbc7.jar/oracle/jdbc/driver/PhysicalConnection.class
 inflated: 29812738/files/oracle.sysman.agent.ic/13.4.0.0.0/oracle.sysman.agent.ic.symbol/jdbc/lib/ojdbc7.jar/oracle/jdbc/driver/NTFAQRegistration.class
 inflated: 29812738/files/oracle.sysman.agent.ic/13.4.0.0.0/oracle.sysman.agent.ic.symbol/jdbc/lib/ojdbc7.jar/oracle/jdbc/driver/OracleConnection.class
 inflated: 29812738/files/oracle.sysman.agent.ic/13.4.0.0.0/oracle.sysman.agent.ic.symbol/jdbc/lib/ojdbc7.jar/oracle/jdbc/driver/PhysicalConnection$1.class
 inflated: 29812738/files/oracle.sysman.agent.ic/13.4.0.0.0/oracle.sysman.agent.ic.symbol/jdbc/lib/ojdbc7.jar/oracle/jdbc/driver/T4CConnection$ReplayMode.class
 inflated: 29812738/files/oracle.sysman.agent.ic/13.4.0.0.0/oracle.sysman.agent.ic.symbol/jdbc/lib/ojdbc7.jar/oracle/jdbc/driver/PhysicalConnection$DrcpState.class
 inflated: 29812738/files/oracle.sysman.agent.ic/13.4.0.0.0/oracle.sysman.agent.ic.symbol/jdbc/lib/ojdbc7.jar/oracle/jdbc/driver/T4CConnection$3.class
 inflated: 29812738/files/oracle.sysman.agent.ic/13.4.0.0.0/oracle.sysman.agent.ic.symbol/jdbc/lib/ojdbc7.jar/oracle/jdbc/driver/PhysicalConnection$2.class
 inflated: 29812738/files/oracle.sysman.agent.ic/13.4.0.0.0/oracle.sysman.agent.ic.symbol/jdbc/lib/ojdbc7.jar/oracle/jdbc/driver/PhysicalConnection$3.class
 inflated: 29812738/files/oracle.sysman.agent.ic/13.4.0.0.0/oracle.sysman.agent.ic.symbol/jdbc/lib/ojdbc7.jar/oracle/jdbc/driver/NTFConnection.class
 inflated: 29812738/files/oracle.sysman.agent.ic/13.4.0.0.0/oracle.sysman.agent.ic.symbol/jdbc/lib/ojdbc7.jar/oracle/jdbc/driver/T4CConnection$2.class
 inflated: 29812738/files/oracle.sysman.agent.ic/13.4.0.0.0/oracle.sysman.agent.ic.symbol/jdbc/lib/ojdbc7.jar/oracle/jdbc/driver/T4CConnection.class
 inflated: 29812738/files/oracle.sysman.agent.ic/13.4.0.0.0/oracle.sysman.agent.ic.symbol/jdbc/lib/ojdbc7.jar/oracle/jdbc/driver/PhysicalConnection$BufferCacheStore.class
 inflated: 29812738/files/oracle.sysman.agent.ic/13.4.0.0.0/oracle.sysman.agent.ic.symbol/jdbc/lib/ojdbc7.jar/oracle/jdbc/driver/PhysicalConnection$4.class
 inflated: 29812738/files/oracle.sysman.agent.ic/13.4.0.0.0/oracle.sysman.agent.ic.symbol/jdbc/lib/ojdbc7.jar/oracle/jdbc/driver/NTFManager.class
 inflated: 29812738/files/oracle.sysman.agent.ic/13.4.0.0.0/oracle.sysman.agent.ic.symbol/jdbc/lib/ojdbc7.jar/oracle/jdbc/OracleConnection$CommitOption.class
 inflated: 29812738/files/oracle.sysman.agent.ic/13.4.0.0.0/oracle.sysman.agent.ic.symbol/jdbc/lib/ojdbc7.jar/oracle/jdbc/OracleConnection$DatabaseStartupMode.class
  created: 29812738/etc/
  created: 29812738/etc/config/
 inflated: 29812738/etc/config/actions.xml
 inflated: 29812738/etc/config/inventory.xml
patches exist in /opt/agent/agent_13.4.0.0.0

 Applying opatch for the oneoffs 29812738 ...
 /opt/agent/agent_13.4.0.0.0/OPatch/opatch napply -invPtrLoc /opt/agent/agent_13.4.0.0.0/oraInst.loc -silent   -local  -oh /opt/agent/agent_13.4.0.0.0 -phBaseFile /opt/agent/agent_13.4.0.0.0/patch.txt
Oracle Interim Patch Installer version 13.9.4.2.2
Copyright (c) 2020, Oracle Corporation.  All rights reserved.


Oracle Home       : /opt/agent/agent_13.4.0.0.0
Central Inventory : /opt/app/oraInventory
   from           : /opt/agent/agent_13.4.0.0.0/oraInst.loc
OPatch version    : 13.9.4.2.2
OUI version       : 13.9.4.0.0
Log file location : /opt/agent/agent_13.4.0.0.0/cfgtoollogs/opatch/opatch2020-07-15_14-14-08PM_1.log


OPatch detects the Middleware Home as "/opt/agent"

Verifying environment and performing prerequisite checks...
OPatch continues with these patches:   29812738

Do you want to proceed? [y|n]
Y (auto-answered by -silent)
User Responded with: Y
All checks passed.
Backing up files...
Applying interim patch '29812738' to OH '/opt/agent/agent_13.4.0.0.0'

Patching component oracle.sysman.agent.ic, 13.4.0.0.0...
Patch 29812738 successfully applied.
Log file location: /opt/agent/agent_13.4.0.0.0/cfgtoollogs/opatch/opatch2020-07-15_14-14-08PM_1.log

OPatch succeeded.

 Finished one-offs apply...

 Deleting the files...

 Finished deleting the above files...
Copying Install logs to /opt/agent/agent_13.4.0.0.0/cfgtoollogs/agentDeploy .....
Entered Post Install...

Relaxing execute  permission for other users  on /opt/agent/agent_13.4.0.0.0/install for bug#20005612
/bin/chmod: cannot access â/opt/agent/agent_13.4.0.0.0/pluginsâ: No such file or directory
/bin/chmod: cannot access â/opt/agent/agent_13.4.0.0.0/install/unix/scripts/lockgcstartupâ: No such file or directory
/bin/chmod: cannot access â/opt/agent/agent_13.4.0.0.0/install/unix/scripts/gcstartupâ: No such file or directory
/bin/chmod: cannot access â/opt/agent/agent_13.4.0.0.0/install/unix/scripts/unlockgcstartupâ: No such file or directory
Finished post install
Plugin txt:
Inside if ,  is empty
oracle.sysman.oh|13.4.0.0.0| |agentPlugin
oracle.sysman.oh|13.4.0.0.0| |discoveryPlugin
/opt/agent/agent_13.4.0.0.0/oracle_common/jdk/jre/bin/java  -classpath /opt/agent/agent_13.4.0.0.0/jlib/agentInstaller.jar:/opt/agent/agent_13.4.0.0.0/oui/modules/OraInstaller.jar:/opt/agent/agent_13.4.0.0.0/oui/modules/installer-launch.jar oracle.sysman.agent.installer.AgentPluginInstaller /opt/agent/agent_13.4.0.0.0 /tmp/agentimg/plugins
/opt/agent/agent_13.4.0.0.0/oracle_common/jdk/jre/bin/java -classpath /opt/agent/agent_13.4.0.0.0/oui/modules/OraInstaller.jar:/opt/agent/agent_13.4.0.0.0/oui/modules/emCfg.jar:/opt/agent/agent_13.4.0.0.0/jlib/agentInstaller.jar     oracle.sysman.agent.installer.AgentFreshInstaller /opt/agent/agent_13.4.0.0.0 /opt/agent/agent_inst /opt/agent RESPONSE_FILE=/opt/agent/agentInstall.rsp  $args
The AgentFreshInstaller is starting now
Oraclehome : ../opt/agent/agent_13.4.0.0.0
InstanceHome : /opt/agent/agent_inst
Agent Base Directory : /opt/agent
The oraclehome /opt/agent/agent_13.4.0.0.0
Jul 15, 2020 2:14:25 PM oracle.sysman.agent.installer.AgentInstaller parseResponseFile
INFO: /opt/agent/agent_13.4.0.0.0
Jul 15, 2020 2:14:25 PM oracle.sysman.agent.installer.AgentInstaller parseResponseFile
INFO: /opt/agent/agent_inst
Jul 15, 2020 2:14:25 PM oracle.sysman.agent.installer.AgentInstaller parseResponseFile
INFO: /opt/agent
Jul 15, 2020 2:14:25 PM oracle.sysman.agent.installer.AgentInstaller parseResponseFile
INFO: RESPONSE_FILE=/opt/agent/agentInstall.rsp
Jul 15, 2020 2:14:25 PM oracle.sysman.agent.installer.AgentInstaller parseResponseFile
INFO: RESPONSE_FILE=/tmp/agentimg/agent.rsp
Jul 15, 2020 2:14:25 PM oracle.sysman.agent.installer.AgentInstaller parseResponseFile
INFO: OMS_HOST="vm-em-console"
Jul 15, 2020 2:14:25 PM oracle.sysman.agent.installer.AgentInstaller parseResponseFile
INFO: EM_UPLOAD_PORT="5900"
Jul 15, 2020 2:14:25 PM oracle.sysman.agent.installer.AgentInstaller parseResponseFile
INFO: AGENT_BASE_DIR=/opt/agent
Jul 15, 2020 2:14:25 PM oracle.sysman.agent.installer.AgentInstaller parseResponseFile
INFO: AGENT_INSTANCE_HOME=/opt/agent/agent_inst
Jul 15, 2020 2:14:25 PM oracle.sysman.agent.installer.AgentInstaller parseResponseFile
INFO: AGENT_PORT="2255"
Jul 15, 2020 2:14:25 PM oracle.sysman.agent.installer.AgentInstaller parseResponseFile
INFO: ORACLE_HOSTNAME="master-db"
Jul 15, 2020 2:14:25 PM oracle.sysman.agent.installer.AgentInstaller parseResponseFile
INFO: s_agentHomeName="agent13R4"
Jul 15, 2020 2:14:25 PM oracle.sysman.agent.installer.AgentInstaller parseResponseFile
INFO: EM_INSTALL_TYPE="AGENT"
Jul 15, 2020 2:14:25 PM oracle.sysman.agent.installer.AgentInstaller parseResponseFile
INFO: ORACLE_HOME=/opt/agent/agent_13.4.0.0.0
Jul 15, 2020 2:14:25 PM oracle.sysman.agent.installer.AgentInstaller parseResponseFile
INFO: OMS_HOST="vm-em-console"
Jul 15, 2020 2:14:25 PM oracle.sysman.agent.installer.AgentInstaller parseResponseFile
INFO: EM_UPLOAD_PORT="5900"
Jul 15, 2020 2:14:25 PM oracle.sysman.agent.installer.AgentInstaller parseResponseFile
INFO: AGENT_BASE_DIR=/opt/agent
Jul 15, 2020 2:14:25 PM oracle.sysman.agent.installer.AgentInstaller parseResponseFile
INFO: AGENT_INSTANCE_HOME=/opt/agent/agent_inst
Jul 15, 2020 2:14:25 PM oracle.sysman.agent.installer.AgentInstaller parseResponseFile
INFO: AGENT_PORT="2255"
Jul 15, 2020 2:14:25 PM oracle.sysman.agent.installer.AgentInstaller parseResponseFile
INFO: ORACLE_HOSTNAME="master-db"
Jul 15, 2020 2:14:25 PM oracle.sysman.agent.installer.AgentInstaller parseResponseFile
INFO: s_agentHomeName="agent13R4"
Jul 15, 2020 2:14:25 PM oracle.sysman.agent.installer.AgentInstaller parseResponseFile
INFO: EM_INSTALL_TYPE="AGENT"
Jul 15, 2020 2:14:25 PM oracle.sysman.agent.installer.AgentInstaller parseResponseFile
INFO: ORACLE_HOME=/opt/agent/agent_13.4.0.0.0
Jul 15, 2020 2:14:25 PM oracle.sysman.agent.installer.AgentInstaller parseResponseFile
INFO: RESPONSE_FILE=/tmp/agentimg/agent.rsp
Jul 15, 2020 2:14:25 PM oracle.sysman.agent.installer.AgentInstaller parseResponseFile
INFO: EMCTLCFG_MODE=NONE
Jul 15, 2020 2:14:25 PM oracle.sysman.agent.installer.AgentInstaller parseResponseFile
INFO: OMS_HOST="vm-em-console"
Jul 15, 2020 2:14:25 PM oracle.sysman.agent.installer.AgentInstaller parseResponseFile
INFO: EM_UPLOAD_PORT="5900"
Jul 15, 2020 2:14:25 PM oracle.sysman.agent.installer.AgentInstaller parseResponseFile
INFO: AGENT_BASE_DIR=/opt/agent
Jul 15, 2020 2:14:25 PM oracle.sysman.agent.installer.AgentInstaller parseResponseFile
INFO: AGENT_INSTANCE_HOME=/opt/agent/agent_inst
Jul 15, 2020 2:14:25 PM oracle.sysman.agent.installer.AgentInstaller parseResponseFile
INFO: AGENT_PORT="2255"
Jul 15, 2020 2:14:25 PM oracle.sysman.agent.installer.AgentInstaller parseResponseFile
INFO: ORACLE_HOSTNAME="master-db"
Jul 15, 2020 2:14:25 PM oracle.sysman.agent.installer.AgentInstaller parseResponseFile
INFO: s_agentHomeName="agent13R4"
Jul 15, 2020 2:14:25 PM oracle.sysman.agent.installer.AgentInstaller parseResponseFile
INFO: EM_INSTALL_TYPE="AGENT"
Jul 15, 2020 2:14:25 PM oracle.sysman.agent.installer.AgentInstaller parseResponseFile
INFO: ORACLE_HOME=/opt/agent/agent_13.4.0.0.0
log loction is setlog
Writing the following contents into /opt/agent/agent_13.4.0.0.0/install/oragchomelist
/opt/agent/agent_13.4.0.0.0:/opt/agent/agent_inst
Both /etc/oragchomelist and /var/opt/oracle/oragchomelist does not exist.
The value of chainInstall : false forceConfigure : false skipValidation : false
Validating oms host & port with url: https://vm-em-console:5900/empbs/genwallet
Validating oms host & port with url: http://vm-em-console:5900/empbs/genwallet
The status is 0
Validated the oms host and port :- vm-em-console----5900
Getting Inet Addresses for host master-db
** Agent Port Check completed successfully.**
Validated the agent port :- ----2255
shared agent value is :false
chain install is :false
Agent Configuration completed successfully
The following configuration scripts need to be executed as the "root" user. Root script to run : /opt/agent/agent_13.4.0.0.0/root.sh
/opt/agent/agent_13.4.0.0.0/cfgtoollogs/agentDeploy/agentDeploy_2020-07-15_14-14-25-PM.log
Waiting for agent targets to get promoted...
Successfully Promoted agent and its related targets to Management Agent


9. Run the root.sh script as root user
/opt/agent/agent_13.4.0.0.0/root.sh

Finished product-specific root actions.
/etc exist

Creating /etc/oragchomelist file...
10. Verify the agent status
./emctl status agent
Oracle Enterprise Manager Cloud Control 13c Release 4
Copyright (c) 1996, 2020 Oracle Corporation.  All rights reserved.
---------------------------------------------------------------
Agent Version          : 13.4.0.0.0
OMS Version            : 13.4.0.0.0
Protocol Version       : 12.1.0.1.0
Agent Home             : /opt/agent/agent_inst
Agent Log Directory    : /opt/agent/agent_inst/sysman/log
Agent Binaries         : /opt/agent/agent_13.4.0.0.0
Core JAR Location      : /opt/agent/agent_13.4.0.0.0/jlib
Agent Process ID       : 66458
Parent Process ID      : 66404
Agent URL              : https://master-db:2255/emd/main/
Local Agent URL in NAT : https://master-db:2255/emd/main/
Repository URL         : https://vm-em-console:5900/empbs/upload
Started at             : 2020-07-15 14:14:51
Started by user        : emagent
Operating System       : Linux version 4.14.35-1844.1.3.el7uek.x86_64 (amd64)
Number of Targets      : 5
Last Reload            : (none)
Last successful upload                       : 2020-07-15 14:26:06
Last attempted upload                        : 2020-07-15 14:26:06
Total Megabytes of XML files uploaded so far : 0.27
Number of XML files pending upload           : 0
Size of XML files pending upload(MB)         : 0
Available disk space on upload filesystem    : 79.61%
Collection Status                            : Collections enabled
Heartbeat Status                             : Ok
Last attempted heartbeat to OMS              : 2020-07-15 14:25:55
Last successful heartbeat to OMS             : 2020-07-15 14:25:55
Next scheduled heartbeat to OMS              : 2020-07-15 14:26:56

---------------------------------------------------------------
Agent is Running and Ready
If all is fine the agent would be visible on the cloud control.

Related Posts
Installing Enterprise Manager Cloud Control 13c (13.4)
Adding Targets on EM Cloud Control 13c
Installing Enterprise Manager Cloud Control 13c (13.3)
Installing Grid Control 11gR1 and Deploying Agents
Upgrading Grid Control 11g to 12c - 1


Update on 2020-09-29
When the agent is deployed other than oracle user "Can't resolve a non-optional query descriptor property [log_file_absolute] (alert_log_file)" incident could be observed on the EM. This issue is detailed in 1572164.1. Because the alert log direcotry gets created with ownership oracle:asmadmin (when GI is invovled) the agent OS user is unable to read the alert log (xml) files. To fix change the alert log folder and any other folders in the path to oinstall ownership. Also set a sticky bit on alert log folder so that future alert log xml files are created with oracle:oinstall ownership. Below commands could be used to fix the issue assuming ORACLE_SID is set. This needs some changes when used with RAC.
cd $ORACLE_BASE/diag/rdbms
chown oracle:oinstall $ORACLE_SID
cd $ORACLE_BASE/diag/rdbms/$ORACLE_SID
chown oracle:oinstall $ORACLE_SID
cd $ORACLE_BASE/diag/rdbms/$ORACLE_SID/$ORACLE_SID
chown oracle:oinstall alert
chmod 2750 alert
cd $ORACLE_BASE/diag/rdbms/$ORACLE_SID/$ORACLE_SID/alert
chown oracle:oinstall *.xml

Sunday, December 1, 2019

Adding Targets on EM Cloud Control 13c

The post shows the steps for manually adding targets on EM Cloud control 13. It uses the EMCC created in the previous post.
As part of adding targets the EM agent is deployed on remote host. In this deployment the agent is installed under OS user "asanga". The host where agent is deployed has Oracle restart 19c running under Oracle user. In such cases the user under which agent is installed must have read,write permission on the Oracle inventory. If not following error will occur at the time of agent deployment.

To fix the above issue add the user under which agent is installed to oracle inventory group (oinstall). If there's no Oracle products installed then there'll be no oracle inventory and no need to add any other group to the user.
Secondly certain root scripts get executed as part of the agent deployment. Therefore a privilege user credentials has to be specified during agent deployment. One way to get the root script to execute under the user agent being installed is to give the user sudo rights. For this setup following could be added to /etc/sudoers
asanga  ALL=(ALL)       ALL
It gives unrestricted privileges but only required for the duration of the agent deployment. Afterwards could be removed from the /etc/sudoers.
If more restricted sudo command list is needed then use the following. It has minimum required commands for deploying agents on 13.3.
asanga  ALL=(ALL)       /bin/ls, /bin/sh, /usr/bin/id, /bin/chmod, /bin/chown, /bin/cp, /bin/mkdir, /bin/rm, /bin/tar, /home/asanga/agent/agent_inst/bin/emctl, /home/asanga/agent/*/agentdeployroot.sh, /home/asanga/agent/*/unzip, /home/asanga/agent/*/unzipTmp/unzip, /home/asanga/agent/*/agentcore.bin, /home/asanga/agent/*/root.sh

1. To add target manually, select Setup -> Add Target -> Add Targets Manually

2. Select Install agent on Host

3. Select Manually from the Add drop down button.

4. Specify the host name (or IP, but host names are preferred). The host name must be resolvable on the host where EM console is setup and EM console host name must be resolvable on the agent host. If DNS is not used for host name resolving then add the hostnames to /etc/hosts.

5. For the deployment type select fresh agent installation. This is selected by default.

6. This page will show the agent version, platform and the host it will be deployed to.
7. Specify the base folder for agent installation. If the user installing the agent has permission on this location the directory will be created during the installation process. The agent instnaces folder (agent_inst) will be created as a sub directory inside this. Next specify the named user credentials by clicking the + button.

8. This will open the create new named credential dialog box. Specify the login credential for the host for the user installing the agent. In this case the login credntails for user asanga is specified. Since user asanga also has sudo privilege (as shown beginning of the post) run privilege is selected to sudo and asked to run as asanga. Give the named credential a name that will allow it to be identified easily. In this case user and hostname combination is chosen.

9. Once named user credential is created return to previous page and select it for both named user and root credential.

10. Review and press the deploy button.

11. Agent deployment happens in 3 phases. Initialization, pre-check and deployment.

If any sub action/item fails then agent deployment could be return (using the rerun button) after the corrective actions. Below shows each item in the 3 phases mentioned above
Initialization.

Remote pre-req check.

Deployment.

12. Once the agent deployment is done go to targets -> hosts to view the host. (screen shot shows IP as it was taken from a subsequent deployment. If host name is specified it will show hostname here).

13. After few minutes the agent will auto discover the oracle products deployed on the host. These could be viewed from Setup -> Add Target -> Auto Discovery Results. The below screen shot shows agent has discovered the ASM and DB instances, listener, HAS (oracle restart stack), grid infrastructure and oracle homes.

14. Select each target and promote it to a monitored (by the agent) target. In this case the ASM instances is promoted first.

15. This will ask for the asmsnmp password. This must be a password file based user running on the ASM instance (not on DB instance). Also if the listener runs on a non-default port then click configure button to change the port and other information.

16. Review and promote the target.

17. Similarly all other targets could be promoted. But few things must be mentioned about DB instance promoting. If the connection to DB is restricted for new clients versions via
SQLNET.ALLOWED_LOGON_VERSION_SERVER=12a
then agent connecting would fail as

This is a known issue documented on EM 13c: Can OEM Monitor 12.2 Databases That Use Parameter SQLNET.ALLOWED_LOGON_VERSION_SERVER=12a? (Doc ID 2461464.1). No solution at the time of this post. Only workaround is to lower the ALLOWED_LOGON_VERSION_SERVER value or remove it altogether.
Also the monitoring user used for DB is dbsnmp. However, the login kept failing for this user even though dbsnmp was included in password file of the database as per EM 12c, EM 13c: Adding a Dataguard Database in Enterprise Managaer 13c Cloud Control Fails with ORA-01017: invalid username/password (Doc ID 2534527.1). Using the sys user instead of dbsnmp worked.
Other point is related to license. Once the database is added as monitored target check/uncheck the relevant management packs with Management packs -> management pack access.

18. Finally once all the targets are added the entire Oracle restart (or any other setup) topology could be viewed. This shows how each target is connected to other.

Moreover when the cursor is moved to a particular target all targets that not dependent will be hidden showing only the dependent targets. Following show Oracle home has dependent DB. Both of them are dependent on the host.




Monitor Apache Tomcat
Following steps shows how to add a non-Oracle target. In this case an Apache Tomcat instance. First needed for this is to install the Apache Tomcat plugin for the Cloud console version. This could be done via Setup -> Extensibility -> Plugins.
However, if it is known beforehand then this could be done at the installation time.
1. As the first step deploy the agent to the host where tomcat is running as shown above.
2. Tomcat is monitored via java management extensions (JMX). This must be enabled on the tomcat instance. To do so add the following JVM entries to catalina.sh (or bat)
JAVA_OPTS="-Dcom.sun.management.jmxremote.port=3873
-Dcom.sun.management.jmxremote.password.file=/opt/tomcat/apache-tomcat-6.0.18/bin/jmxremote.password 
-Dcom.sun.management.jmxremote.authenticate=true 
-Dcom.sun.management.jmxremote.ssl=false 
-Dcom.sun.management.jmxremote.access.file=/opt/tomcat/apache-tomcat-6.0.18/bin/jmxremote.access"
jmxremote.access and jmxremote.password files are available in JDK's jre/lib/management folder. Copy them to location where user running the tomcat can access and add entries for login into JMX. Access is created for emconsole user to perform read,write and otehr jmx operations.
cat jmxremote.access
emconsole   readwrite \
              create javax.management.monitor.*,javax.management.timer.* \
              unregister
Password is specified in the jxmremote.password file in "username password" format.
cat jmxremote.password
emconsole tomcat
Above details will be entered when tomcat instances is added to the cloud control.
3. Select add targets manually via setup -> add target. Then select Add target declaratively.

4. Specify the host and the target type Apache tomcat and press add.

5. This will open the Add target page. Fill the form with the JMX details setup earlier. The SSL entries are needed if tomcat is setup with SSL.

6. Click OK and wait for the confirmation.

7. Goto Targets -> Middleware and view the newly added tomcat target.

8. Topology could be viewed as before.


Related Posts
Installing Enterprise Manager Cloud Control 13c (13.3)
Installing Grid Control 11gR1 and Deploying Agents
Upgrading Grid Control 11g to 12c - 1

Saturday, February 11, 2012

Upgrading Grid Control 11g to 12c - 2

Earlier post showed the installing of pre-upgrade patch and switching agents to 12c. This post shows the rest of the upgrade steps which is upgrading of OMS and deinstalling the old OMS and agents.

Download the new Grid control software, copy the downloaded files to the host where grid control is currently installed and unzip the two files.

Shutdown the OMS with
emctl stop oms
It is important to stop it without the "-all" option. If the OMS is stopped with "-all" option then following warning will appear during the upgrade.
Another thing that can come up is the following error.
To fix this start the OMS and run
emctl config emkey -copy_to_repos -sysman_pwd gridb321
Oracle Enterprise Manager 11g Release 1 Grid Control
Copyright (c) 1996, 2010 Oracle Corporation.  All rights reserved.
The EMKey has been copied to the Management Repository. This operation will cause the EMKey to become unsecure.
After the required operation has been completed, secure the EMKey by running "emctl config emkey -remove_from_repos".
After this stop the oms again (without the -all option) and rerun the installer.

There other warnings and errors where some would allow to continue whereas others would require some steps to correct these warnings.



To fix these warnings
SQL> grant execute on dbms_random to dbsnmp;
Grant succeeded.

SQL> grant execute on dbms_random to sysman;
Grant succeeded.

SQL> select account_status,username from dba_users where username='ORACLE_OCM';

ACCOUNT_STATUS     USERNAME
------------------ -----------
EXPIRED & LOCKED   ORACLE_OCM

SQL> alter user oracle_ocm account unlock;
User altered.

SQL> alter user oracle_ocm identified by ******;
User altered.

SQL> select * from v$log;

    GROUP#    THREAD#  SEQUENCE#      BYTES    MEMBERS ARC STATUS           FIRST_CHANGE# FIRST_TIM
---------- ---------- ---------- ---------- ---------- --- ---------------- ------------- ---------
         1          1        376   52428800          2 YES INACTIVE               6438727 10-FEB-12
         2          1        377   52428800          2 YES INACTIVE               6452498 10-FEB-12
         3          1        378   52428800          2 NO  CURRENT                6483486 10-FEB-12

SQL> alter database drop logfile group 1; -- do for other groups as well
Database altered.

SQL> alter database add logfile group 1 size 300M;
Database altered.

SQL>  select * from v$log;

    GROUP#    THREAD#  SEQUENCE#      BYTES    MEMBERS ARC STATUS           FIRST_CHANGE# FIRST_TIM
---------- ---------- ---------- ---------- ---------- --- ---------------- ------------- ---------
         1          1        379  314572800          2 NO  CURRENT                6521242 10-FEB-12
         2          1          0  314572800          2 YES UNUSED                       0
         3          1          0  314572800          2 YES UNUSED                       0
Some steps (eg step 5) in the install process take longer to complete and at times there will be movement on the progress bar. It is not stuck and it will help to keep and eye on the logs as well. Logs for installation is available in Middleware12/oms/sysman/logs (Middleware12 is directory for new installation). As part of the install WebLogic server 10.3.5 will be installed.











# /opt/app/oracle/Middleware12/oms/allroot.sh

Starting to execute allroot.sh .........

Starting to execute /opt/app/oracle/Middleware12/oms/root.sh ......
Running Oracle 11g root.sh script...

The following environment variables are set as:
    ORACLE_OWNER= oracle
    ORACLE_HOME=  /opt/app/oracle/Middleware12/oms

Enter the full pathname of the local bin directory: [/usr/local/bin]:
The file "dbhome" already exists in /usr/local/bin.  Overwrite it? (y/n)
[n]:
The file "oraenv" already exists in /usr/local/bin.  Overwrite it? (y/n)
[n]:
The file "coraenv" already exists in /usr/local/bin.  Overwrite it? (y/n)
[n]:

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
/opt/app/oracle/Middleware12/oms
Finished execution of  /opt/app/oracle/Middleware12/oms/root.sh ......
At the end of the upgrade the 12c agents switched earlier can now communicate with the OMS. Checking the status of the agents shows
emctl  status agent
Oracle Enterprise Manager 12c Cloud Control 12.1.0.1.0
Copyright (c) 1996, 2011 Oracle Corporation.  All rights reserved.
---------------------------------------------------------------
Agent Version     : 12.1.0.1.0
OMS Version       : 12.1.0.1.0
Protocol Version  : 12.1.0.1.0
Agent Home        : /opt/app/oracle/grid_agent/agent12g/agent_inst
Agent Binaries    : /opt/app/oracle/grid_agent/agent12g/core/12.1.0.1.0
Agent Process ID  : 4072
Parent Process ID : 3935
Agent URL         : https://rac1. .net:3872/emd/main
Repository URL    : https://hpc4. .net:4900/empbs/upload
Started at        : 2012-02-09 16:26:48
Started by user   : oracle
Last Reload       : (none)
Last successful upload                       : 2012-02-10 12:59:01
Last attempted upload                        : 2012-02-10 12:59:01
Total Megabytes of XML files uploaded so far : 2.44
Number of XML files pending upload           : 0
Size of XML files pending upload(MB)         : 0
Available disk space on upload filesystem    : 13.31%
Collection Status                            : Collections enabled
Last attempted heartbeat to OMS              : 2012-02-10 13:02:12
Last successful heartbeat to OMS             : 2012-02-10 13:02:12

---------------------------------------------------------------
Agent is Running and Ready
Status from old agent shows it's running but not communicating with OMS anymore
emctl status agent
Oracle Enterprise Manager 11g Release 1 Grid Control 11.1.0.1.0
Copyright (c) 1996, 2010 Oracle Corporation.  All rights reserved.
---------------------------------------------------------------
Content-Length: 0
Server: Jetty(7.0.1.v20091125)

---------------------------------------------------------------
Agent is Running but Not Ready
This completes the upgrade part of grid control from 11g
to 12c

12c grid control Home page.

It could be seen that agents from exisiting hosts have already started communicating with new OMS.

12c's new ASH Analytics page

Last step is to deinstall the old agents and OMS.
To deinstall the agents from local and remote hosts including RAC follow the agent deinstall post or How to Remove the 11.1.0.1.0 Grid Control Management Agent with the Silent Method [ID 1068036.1].

For OMS use How to Deinstall 11g Grid Control Components in Graphical Mode

More inforation is available from Enterprise Manager Grid Control Advanced Installation and Configuration Guide

To enable/disable the auto start of any agent
chkconfig gcstartup on/off
chkconfig --list | grep gcstartup
gcstartup       0:off   1:off   2:on    3:on    4:on    5:on    6:off

Useful metalink notes
How to Remove the 11.1.0.1.0 Grid Control Management Agent with the Silent Method [ID 1068036.1]
12c: Cluster Database Target Remains in Pending Delete Status Indefinetely after Re-adding [ID 1403833.1]
12C Cloud Control: How to De-install 12C Agent [ID 1368088.1]
How To De-Install EM 12c Cloud Control [ID 1363418.1]
How to Delete One Node from a RAC Cluster in EM 12c? [ID 1391107.1]
How to Deploy the Latest Database Plugin to the OMS and the Agent in 12C Cloud Control [ID 1388143.1]
EM 12c: How to Install EM 12c Agent using Silent Install Method with Response File [ID 1360083.1]
EM 12c: How to Install Enterprise Manager 12.1.0.1 Using Silent Method [ID 1361643.1]
How to install Enterprise Manager Cloud Control 12c Agent on Linux [ID 1360183.1]