Topic :
Below document provides steps to update software in OEM(Oracle Enterprise Manager) OMS(Oracle Managed Services) repository .
Steps:
Goto OMS Location in OMS server ( Host : xxxxxxxxxxx.com).
env (get OMS location from this command)
cd /app/oracle/em12cOMS/oms
cd bin
Login as sys user like sysman.
./emcli login -username=sysman
./emcli login -username=naresh
Sample Output:
[oracle@nh1grp01 bin]$ ./emcli login -username=naresh
Enter password
Login successful
Check if agent software is missing any binaries by running below command.
./emcli verify_updates
[oracle@xxxxxx bin]$ ./emcli verify_updates
Verifying updates, starting validation ...
-----
Type : Agent Software
Description: Agent Software (12.1.0.1.0) for HP-UX PA-RISC (64-bit)
Attributes
Version: 12.1.0.1.0
OS Platform: HP-UX PA-RISC (64-bit)
Archives are missing from the software library and can be downloaded from the following URL:
https://updates.oracle.com/Orion/Services/download/p14169493_112000_Generic.zip?aru=15238828&patch_file=p14169493_112000_Generic.zip
-----
-----
Type : Agent Software
Description: Agent Software (12.1.0.2.0) for HP-UX PA-RISC (64-bit)
Attributes
Version: 12.1.0.2.0
OS Platform: HP-UX PA-RISC (64-bit)
Archives are missing from the software library and can be downloaded from the following URL:
https://updates.oracle.com/Orion/Services/download/p14570372_112000_Generic.zip?aru=15465143&patch_file=p14570372_112000_Generic.zip
-----
-----
Type : Plug-in
Description: Oracle Database plugin provides comprehensive management for Oracle Database and related targets such as Real Application Clusters, Automatic Storage Management (ASM) etc.
Attributes
Version: 12.1.0.3.0
Revision: 0
OS Platform: Generic Platform
Plug-in Name: Oracle Database
Archives are missing from the software library and can be downloaded from the following URL:
https://updates.oracle.com/Orion/Services/download/p16282741_112000_Generic.zip?aru=15965857&patch_file=p16282741_112000_Generic.zip
-----
-----
Type : Plug-in
Description: Oracle Database plugin provides comprehensive management for Oracle Database and related targets such as Real Application Clusters, Automatic Storage Management (ASM) etc.
Attributes
Version: 12.1.0.3.0
Revision: 20130402
OS Platform: Generic Platform
Plug-in Name: Oracle Database
Archives are missing from the software library and can be downloaded from the following URL:
https://updates.oracle.com/Orion/Services/download/p16986037_112000_Generic.zip?aru=16490107&patch_file=p16986037_112000_Generic.zip
-----
For each update with missing archives, emcli import_update can be used with a -force option to re-upload the archives to software library.
Import missing binaries reported by above command by using below commands..
./emcli import_update -file=/app/oracle/em12cOMS/oms/bin/p14169493_112000_Generic.zip -force -omslocal
./emcli import_update -file=/app/oracle/em12cOMS/oms/bin/p14570372_112000_Generic.zip -force -omslocal
./emcli import_update -file=/app/oracle/em12cOMS/oms/bin/p16282741_112000_Generic.zip -force -omslocal
./emcli import_update -file=/app/oracle/em12cOMS/oms/bin/p16986037_112000_Generic.zip -force -omslocal
Sample Output :
[oracle@xxxxxxx bin]$ ./emcli import_update -file=/app/oracle/em12cOMS/oms/bin/p14169493_112000_Generic.zip -force
Error: If omslocal flag is not specified, host and all necessarily credential options must be specified.
[oracle@xxxxxxx bin]$ ./emcli import_update -file=/app/oracle/em12cOMS/oms/bin/p14169493_112000_Generic.zip -force -omslocal
Processing update: Agent Software - Agent Software (12.1.0.1.0) for HP-UX PA-RISC (64-bit)
Operation completed successfully. Update has been uploaded to Enterprise Manager. Please use the Self Update Home to manage this update.
[oracle@xxxxxxx bin]$ ./emcli import_update -file=/app/oracle/em12cOMS/oms/bin/p14570372_112000_Generic.zip -force -omslocal
Processing update: Agent Software - Agent Software (12.1.0.2.0) for HP-UX PA-RISC (64-bit)
Operation completed successfully. Update has been uploaded to Enterprise Manager. Please use the Self Update Home to manage this update.
Check if still any binaries missing.
./emcli verify_updates
Sample Output:
[oracle@nh1grp01 bin]$ ./emcli verify_updates
Verifying updates, starting validation ...
-----
Type : Plug-in
Description: Oracle Database plugin provides comprehensive management for Oracle Database and related targets such as Real Application Clusters, Automatic Storage Management (ASM) etc.
Attributes
Version: 12.1.0.3.0
Revision: 0
OS Platform: Generic Platform
Plug-in Name: Oracle Database
Archives are missing from the software library and can be downloaded from the following URL:
https://updates.oracle.com/Orion/Services/download/p16282741_112000_Generic.zip?aru=15965857&patch_file=p16282741_112000_Generic.zip
-----
-----
Type : Plug-in
Description: Oracle Database plugin provides comprehensive management for Oracle Database and related targets such as Real Application Clusters, Automatic Storage Management (ASM) etc.
Attributes
Version: 12.1.0.3.0
Revision: 20130402
OS Platform: Generic Platform
Plug-in Name: Oracle Database
Archives are missing from the software library and can be downloaded from the following URL:
https://updates.oracle.com/Orion/Services/download/p16986037_112000_Generic.zip?aru=16490107&patch_file=p16986037_112000_Generic.zip
-----
For each update with missing archives, emcli import_update can be used with a -force option to re-upload the archives to software library.
Check installed agent software supported versions.
./emcli get_supported_platforms
Sample Output:
[oracle@xxxxxxx bin]$ ./emcli get_supported_platforms
Getting list of platforms ...
Check the logs at /app/oracle/em12cOMS/gc_inst/em/EMGC_OMS1/sysman/emcli/setup/.emcli/agent.log
About to access self-update code path to retrieve the platforms list..
Getting Platforms list ...
-----------------------------------------------
Version = 12.1.0.2.0
Platform = Linux x86-64
-----------------------------------------------
Version = 12.1.0.2.0
Platform = HP-UX Itanium
-----------------------------------------------
Version = 12.1.0.1.0
Platform = HP-UX PA-RISC (64-bit)
-----------------------------------------------
Version = 12.1.0.2.0
Platform = HP-UX PA-RISC (64-bit)
-----------------------------------------------
Platforms list displayed successfully.