Saturday, August 10, 2013

Database relink: Could Not Locate $ORACLE_HOME/network/admin/shrept.lst

We moved database to new host, so did a relink all on database,

/prod/112/bin/genclntsh
genclntsh: genclntsh: Could not locate  /prod/112/network/admin/shrept.lst
make: *** [client_sharedlib] Error 1
Error in invoking target 'client_sharedlib' of makefile '/prod/112/rdbms/lib/ins_rdbms.mk'. See '/prod/112/install/relinkActions2013-08-10_08-25-07-AM.log' for details.



INFO: /prod/112/bin/genclntsh

INFO: genclntsh: genclntsh: Could not locate  /prod/112/network/admin/shrept.lst

INFO: make: *** [client_sharedlib] Error 1

INFO: End output from spawned process.
INFO: ----------------------------------
SEVERE: oracle.sysman.oii.oiil.OiilActionException: Error in invoking target 'client_sharedlib' of makefile '/prod/112/rdbms/lib/ins_rdbms.mk'. See '/prod/112/install/relinkActions2013-08-10_08-25-07-AM.log' for details.
        at oracle.sysman.oii.oiis.OiisMakeDeps.invokeMakefile(OiisMakeDeps.java:544)
        at oracle.sysman.oii.oiis.OiisMakeDeps.doRelink(OiisMakeDeps.java:621)
        at oracle.sysman.oii.oiis.OiisMakeDeps.doOperation(OiisMakeDeps.java:802)
        at oracle.sysman.oii.oiis.OiisMakeDeps.main(OiisMakeDeps.java:812)

INFO:


Solution:
======

For 9.2 or 10.2, if the file is missing, create $ORACLE_HOME/network/admin/shrept.lst with a text editor and put the following lines into it.

network : snaumihi_inithostinfo
network : snaumbg_gmt
network : naedpwd_encrypt
network : naumbsb_bld_singlebyte
network : ztapis

For 11.1.0.6.0, 11.1.0.7.0, 11.2.0.1.0 and 11.2.0.2.0  if the file is missing, create $ORACLE_HOME/network/admin/shrept.lst with a text editor and put the following lines into it.

network : snaumihi_inithostinfo
network : snaumbg_gmt
network : naedpwd_encrypt
network : naumbsb_bld_singlebyte
network : ztapis
network : nlgh

For 11.2.0.3.0, if the file is missing, create $ORACLE_HOME/network/admin/shrept.lst with a text editor and put the following lines into it.

network : snaumihi_inithostinfo
network : snaumbg_gmt
network : naedpwd_encrypt
network : naumbsb_bld_singlebyte
network : ztapis
network : nlgh
network : ztvp52

 Using the 'ls -al' command, check that the file has 644 permissions:
-rw-r--r-- $ORACLE_HOME/network/admin/shrept.lst
If necessary, change the permissions using the command:
chmod 644 $ORACLE_HOME/network/admin/shrept.lst
Now manually relink using the command 'relink all'

1 comment:

  1. Thanks you very much helped me a lot.

    After upgrade Oracle RAC 10.2.0.1 to 10.2.0.4 I was getting below error

    [oracle@linux1 ~]$ srvctl status nodeapps -n linux1
    PRKC-1056 : Failed to get the hostname for node linux1
    PRKH-1010 : Unable to communicate with CRS services.
    [PRKH-1000 : Unable to load the SRVM HAS shared library
    [PRKN-1008 : Unable to load the shared library "srvmhas10"
    or a dependent library, from
    LD_LIBRARY_PATH="/u01/home/oracle/product/10.2.0/asm/jdk/jre/lib/i386/client:/u01/home/oracle/product/10.2.0/asm/jdk/jre/lib/i386:/u01/home/oracle/product/10.2.0/asm/jdk/jre/../lib/i386:/u01/home/oracle/product/10.2.0/asm/lib:/u01/home/oracle/product/10.2.0/asm/srvm/lib:/u01/home/oracle/product/10.2.0/asm/lib"
    [java.lang.UnsatisfiedLinkError: /u01/home/oracle/product/10.2.0/asm/lib/libsrvmhas10.so: /u01/home/oracle/product/10.2.0/asm/lib/libocrutl10.so: undefined symbol: slgfn]]]
    [oracle@linux1 ~]$

    Resolved by following steps provided by you.

    Best Regards
    Jamsher Khan

    ReplyDelete