Relink Fails On Target “Client_sharedlib” During Install Of Interim Patch Or CPU Patch

Relink Fails On Target “Client_sharedlib” During Install Of Interim Patch Or CPU Patch

Applies to:
Oracle Server – Enterprise Edition – Version: 10.2.0.1 to 10.2.0.4
HP-UX PA-RISC (64-bit)
Symptoms

Applying the CPUAPR2009 patch failed during the linking stage on genclntsh

Make failed to invoke “/usr/ccs/bin/make -f ins_net_client.mk client_sharedlib
ORACLE_HOME=/oracle1/home/oracle/product/10.2.0″….’rm:
/oracle1/home/oracle/product/10.2.0/lib/libclntsh.sl.10.1 not removed. Text file busy
genclntsh: Failed to remove /oracle1/home/oracle/product/10.2.0/lib/libclntsh.sl.10.1

Cause
The message is just a warning ,attempts to remove the file, which was busy
Solution
move the referneced library:
mv $ORACLE_HOME/lib/libclntsh.sl.10.1 $ORACLE_HOME/lib/libclntsh.sl.10.1.bak

then run :

cd $ORACLE_HOME/bin
./genclntsh