Pages

Thursday, March 10, 2016

Adrelink is exiting with status 1

Adrelink is exiting with status 1

Issue:

adrelink is exiting with status 1: In 11i/R12  & RHEL 5.4 while patching

Fix:

STEP1:  cd $AD_TOP/bin

STEP2:  Take backup of the existing adrelinknew.sh

cp -rp  adrelinknew.sh  adrelinknew.sh_orig

STEP3: Edit the adrelinknew.sh

vi adrelinknew.sh

Change CPP_LDFLAGS  as below

From:

CPP_LDFLAGS=' -L$(ORACLE_HOME)/lib -L$(ORACLE_HOME)/lib/stubs -lclntsh'

To:

#CPP_LDFLAGS=' -L$(ORACLE_HOME)/lib -L$(ORACLE_HOME)/lib/stubs -lclntsh'
CPP_LDFLAGS=' -L$(ORACLE_HOME)/lib -L$(ORACLE_HOME)/lib/stubs -lclntsh -Wl,--noinhibit-exec'

:wq! --> save & exit


STEP4: Reapply the patch, now the patch will complete successfully.

--noinhibit-exec

    Retain the executable output file whenever it is still usable. Normally, the linker will not produce an output file if it encounters errors during the link process; it exits without writing an output file when it issues any error whatsoever.

    -w --words print the word counts
    -l --max-line-length print the length of the longest line

No comments:

Post a Comment