Thursday, July 23, 2015

OEM 12C Agent upgrade failed with an error 'The space required for the upgrade at /tmp/xxx is not sufficient. Free the space at /tmp/xxx or provide a different staging location

Problem

The space required for the upgrade at /tmp/tmp_2015_07_23_10_50_01_029 is not sufficient. Free the space at /tmp/tmp_2015_07_23_10_50_01_029 or provide a different staging location
The jar file is /u04/Grid12cr5/oms12cr5/oms/sysman/jlib/auc_prereqs.jar
 

On upgrading an agent from 12.1.0.2.0 to 12.1.0.5.0, I faced the following issue:







On clicking the Initializing upgrade parameters, the following message is displayed:

Executing command mkdir  -p /tmp/tmp_2015_07_23_10_50_01_029

Exit Code :0
The value of skipCleanup is false
Directory /tmp/tmp_2015_07_23_10_50_01_029 created successfully
The status of push jar file /tmp/tmp_2015_07_23_10_50_01_029/auc_prereqs.jar is true
Checking the free space available at /tmp/tmp_2015_07_23_10_50_01_029
Space free : 1 GB
Space required : 2 GB
Actual Space Available at : /tmp/tmp_2015_07_23_10_50_01_029 is 1GB
The check failed

Exit Code :1
The space required for the upgrade at /tmp/tmp_2015_07_23_10_50_01_029 is not sufficient. Free the space at /tmp/tmp_2015_07_23_10_50_01_029 or provide a different staging location


Solution 


Since I chose the default staging location for the 'Stage Location', Grid pushed the files to /tmp directory. Instead, we can choose a directory where we have some space. I have chosen /u04 as I have enough space there:


Now the upgrade just goes smooth: 





 

Thursday, July 16, 2015

Check emkey is copied to the repository

You get the following error when you upgrade Grid control 12.1.01 to 12.1.0.2:































That's because emkey is secured and is not availabe for upgrade. To make it available for upgrade, please do the following:

[oracle@myserver bin]$ pwd
/u01/Grid12c/oms12cr/oms/bin

[oracle@myserver bin]$ ./emctl config emkey -copy_to_repos
Oracle Enterprise Manager Cloud Control 12c Release 12.1.0.1.0
Copyright (c) 1996, 2012 Oracle Corporation.  All rights reserved.
Enter Enterprise Manager Root (SYSMAN) Password :
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".
[oracle@myserver bin]$

Please make sure you do the above under your old OMS_HOME/bin. 

Also you can check the status of emkey as below:

[oracle@myserver bin]$ ./emctl status emkey
Oracle Enterprise Manager Cloud Control 12c Release 12.1.0.1.0
Copyright (c) 1996, 2012 Oracle Corporation.  All rights reserved.
Enter Enterprise Manager Root (SYSMAN) Password :
The EMKey  is configured properly, but is not secure. Secure the EMKey by running "emctl config emkey -remove_from_repos".

Once the upgrade is over, you can secure the key as below:

[oracle@myserver bin]$ ./emctl config emkey -remove_from_repos
Oracle Enterprise Manager Cloud Control 12c Release 12.1.0.1.0
Copyright (c) 1996, 2012 Oracle Corporation.  All rights reserved.
Enter Enterprise Manager Root (SYSMAN) Password :
The EMKey has been removed from the Management Repository.




Monday, July 13, 2015

Installing a RPM package in Unix/Linux

The command to install RPM package (library file) in Unix/Linux is as below:

rpm -ivh

e.g

rpm -ivh glibc-2.5.107.el5_9.1.x86_64

Tuesday, July 7, 2015

Unable to complete network operation against My Oracle Support. Please check network connectivity to Oracle Support Site.


Error

Unable to complete network operation against My Oracle Support. Please check network connectivity to Oracle Support Site.

This error occurs if we we haven't set proxy details to connect to Oracle sites properly.

Solution

We are trying to connect to a https site. But we haven't given the proxy details for https. So the following screenshot shows how this is fixed:


Then My Oracle Support credentials will start working as well.