Friday, January 13, 2012

genclntsh: Could not locate shrept.lst during PSU 11.2.0.2.4

What to do when you are applying PSU 11.2.0.2.4 on your Oracle 11g 11.2.0.2.0 database, and you get following error while running the opatch apply:


Make failed to invoke "/usr/bin/make -f ins_net_client.mk
client_sharedlib ORACLE_HOME=/u01/app/oracle/product/11.2.0/db_1
"....'genclntsh: genclntsh: Could not locate 
/u01/app/oracle/product/11.2.0/db_1/network/admin/shrept.lst
make: *** [client_sharedlib] Error 1
'
Make failed to invoke "/usr/bin/make -f ins_rdbms.mk
client_sharedlib ORACLE_HOME=/u01/app/oracle/product/11.2.0/db_1
"....'genclntsh: genclntsh: Could not locate 
/u01/app/oracle/product/11.2.0/db_1/network/admin/shrept.lst
make: *** [client_sharedlib] Error 1
'

The following make actions have failed :

Re-link fails on target "client_sharedlib".
Re-link fails on target "client_sharedlib".
 
Solution:
Just proceed with the patch installation, it is likely to get completed
successfully with warnings.
After that, go to $ORACLE_HOME/network/admin and see if there is a file shrept.lst?
If there exists a file, make sure that it's permission are set to 644.
If shrept.lst doesn't exist, then create a new file like this:
cd $ORACLE_HOME/network/admin
touch shrept.lst
chmod 644 shrept.lst
Then open the file shrept.lst in text editor, and paste the following lines:
 
network : snaumihi_inithostinfo
network : snaumbg_gmt
network : naedpwd_encrypt
network : naumbsb_bld_singlebyte
network : ztapis
network : nlgh 
Save and exit the file.
 
Now you have to run the relink all command, but before that no oracle process
is running out of that ORACLE_HOME:
 
cd $ORACLE_HOME/bin
./relink all
 
Now you should be good to go.
 
Cheers.
 
Reference: MOS Note ID 340978.1 

No comments: