$ cat /proc/meminfo | grep "Swap" SwapCached: 0 kB SwapTotal: 0 kB SwapFree: 0 kBAfter the OS upgrade , relinking of oracle binaries failed due to insufficient swap space.
$ ./relink all 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.logOnly 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.
#----------------------------------- # location of runInstaller executable RUNINSTALLER=$ORACLE_HOME/oui/bin/runInstaller #--------------------------Runinstaller command gets set of arguments.
#----------------------------------- # full argument list for runInstaller # ARGS="-relink -waitForCompletion -maketargetsxml $MAKEORDER $LOGDIR_ARG ORACLE_HOME=$ORACLE_HOME" #--------------------------Adding -ignoreSysPrereqs as the first argument resolved the issue.
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 ||\ 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/oracleand with the following for GI home relinking
test ! -f /grid/oracle/product/11.2.0/bin/oracle ||\ 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/oracleOnce the relinking is completed remove the ignoreSysPrereqs parameter from the relink file.
If the server already has swap created and want to recreate the same scenario as above for testing, use
swapoff -a swapon -ato disable and enable swapping
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