打patch出现relink报错——Adrelink is exiting with status 1

来源:互联网 发布:dnf一直网络连接中断 编辑:程序博客网 时间:2024/05/18 02:20


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.
0 0
原创粉丝点击