11.1.0.7 relink all error
Ran into the following error during an 11.1.0.7 "relink all" earlier:
/bin/ld -b64 -o /u01/app/product/11.1.0.7/db/sysman/lib/nmccollector -L/u01/app/product/11.1.0.7/db/lib/ `cat /u01/app/product/11.1.0.7/db/lib/sysliblist` -blibpath:/u01/app/product/11.1.0.7/db/lib/:/usr/lib -berok -bbigtoc -bnoerrmsg /u01/app/product/11.1.0.7/db/sysman/lib/snmccolm.o /u01/app/product/11.1.0.7/db/sysman/lib/libnmccol.a /u01/app/product/11.1.0.7/db/sysman/lib/libnmcbuf.a /u01/app/product/11.1.0.7/db/lib/libclntsh.so /u01/app/product/11.1.0.7/db/rdbms/lib/libdsga11.a -bI:/lib/ksms.imp /u01/app/product/11.1.0.7/db/lib/libserver11.a /u01/app/product/11.1.0.7/db/lib/libgeneric11.a /u01/app/product/11.1.0.7/db/lib/libttsh11.so -lld -lm `cat /u01/app/product/11.1.0.7/db/lib/sysliblist` -lm -L/u01/app/product/11.1.0.7/db/rdbms/lib ld: 0706-003 Cannot find or read import file: /lib/ksms.imp ld:accessx(): No such file or directory make: The error code from the last command is 255. Stop. make: The error code from the last command is 2. Stop.
In the $ORACLE_HOME/sysman/lib/env_emagent.mk file there is a line:
KSMS=$(TARGETORACLE_HOME)/lib/ksms.imp
Unfortunately TARGETORACLE_HOME never gets set, so it doesn't expand appropriately. To fix the issue either update the line to:
KSMS=$(ORACLE_HOME)/lib/ksms.imp
or set the environment variable TARGETORACLE_HOME to match $ORACLE_HOME:
export TARGETORACLE_HOME=$ORACLE_HOME












