Oracle recommends re-linking oracle binaries after OS upgrade. There are few earlier posts on this topic. In this case the server in question was a Amazon EC2 server and didn't have any swap configured.
If the server already has swap created and want to recreate the same scenario as above for testing, use
Also if the environment uses role separation then after the relink it may be necessary to set the correct permission on the oracle binary using setasmgidwrap.
Related Posts
Upgrading RHEL 6 OS in a 11gR2 RAC Environment
Upgrading OS in 11gR2 RAC Environment (RHEL 5)
Upgrading ASMLib and OS in 11gR1 RAC Environment
$ cat /proc/meminfo | grep "Swap"After the OS upgrade , relinking of oracle binaries failed due to insufficient swap space.
SwapCached: 0 kB
SwapTotal: 0 kB
SwapFree: 0 kB
$ ./relink allOnly parameters that could be passed on to relink is all and as_installed. However looking inside relink script it could be seen that it is using runInstaller.
writing relink log to: /opt/app/oracle/product/testbox/11.2.0/install/relink.log
$ more ../install/relink.log
Starting Oracle Universal Installer...
Checking swap space: 0 MB available, 500 MB required. Failed <<<<
Some requirement checks failed. You must fulfill these requirements before
continuing with the installation,
Exiting Oracle Universal Installer, log for this session can be found at /opt/app/oracle/oraInventory/logs/installActions2015-09-25_12-11-54PM.log
#-----------------------------------Runinstaller command gets set of arguments.
# location of runInstaller executable
RUNINSTALLER=$ORACLE_HOME/oui/bin/runInstaller
#--------------------------
#-----------------------------------Adding -ignoreSysPrereqs as the first argument resolved the issue.
# full argument list for runInstaller
#
ARGS="-relink -waitForCompletion -maketargetsxml $MAKEORDER $LOGDIR_ARG ORACLE_HOME=$ORACLE_HOME"
#--------------------------
ARGS="-ignoreSysPrereqs -relink -waitForCompletion -maketargetsxml $MAKEORDER $LOGDIR_ARG ORACLE_HOME=$ORACLE_HOME"Relink completes successfully afterwards and relink.log will end with the following for oracle home relinks
test ! -f /opt/app/oracle/product/testbox/11.2.0/bin/oracle ||\and with the following for GI home relinking
mv -f /opt/app/oracle/product/testbox/11.2.0/bin/oracle /opt/app/oracle/product/testbox/11.2.0/bin/oracleO
mv /opt/app/oracle/product/testbox/11.2.0/rdbms/lib/oracle /opt/app/oracle/product/testbox/11.2.0/bin/oracle
chmod 6751 /opt/app/oracle/product/testbox/11.2.0/bin/oracle
test ! -f /grid/oracle/product/11.2.0/bin/oracle ||\Once the relinking is completed remove the ignoreSysPrereqs parameter from the relink file.
mv -f /grid/oracle/product/11.2.0/bin/oracle /grid/oracle/product/11.2.0/bin/oracleO
mv /grid/oracle/product/11.2.0/rdbms/lib/oracle /grid/oracle/product/11.2.0/bin/oracle
chmod 6751 /grid/oracle/product/11.2.0/bin/oracle
If the server already has swap created and want to recreate the same scenario as above for testing, use
swapoff -ato disable and enable swapping
swapon -a
Also if the environment uses role separation then after the relink it may be necessary to set the correct permission on the oracle binary using setasmgidwrap.
Related Posts
Upgrading RHEL 6 OS in a 11gR2 RAC Environment
Upgrading OS in 11gR2 RAC Environment (RHEL 5)
Upgrading ASMLib and OS in 11gR1 RAC Environment