lsnrctl: symbol lookup error: lsnrctl: undefined symbol: nlgh

On starting the listener after applying the PSU patch on 11.2.0.2 database, i was getting the below error –

(matrix) /u01/app/oracle/product/rdbms/11202/network/admin> lsnrctl start LISTENER_RM4040
lsnrctl: symbol lookup error: lsnrctl: undefined symbol: nlgh

As per Metalink,

The most common cause of this error is that the Oracle software binaries are not linked correctly.

To link the software binaries we can use “relink” command.

$ORACLE_HOME/bin/relink all;

To reolve the issue did the below

cd $ORACLE_HOME/network/lib

make -f ins_net_server.mk install
(matrix) /u01/app/oracle/product/rdbms/11202/network/lib> make -f ins_net_server.mk install
/bin/chmod 755 /u01/app/oracle/product/rdbms/11202/bin/
 - Linking tnslsnr
rm -f tnslsnr
gcc -o tnslsnr -m64 -L/u01/app/oracle/product/rdbms/11202/network/lib/ -L/u01/app/oracle/product/rdbms/11202/lib/
..............
..............
mv -f /u01/app/oracle/product/rdbms/11202/bin/tnslsnr /u01/app/oracle/product/rdbms/11202/bin/tnslsnr0
mv tnslsnr /u01/app/oracle/product/rdbms/11202/bin/tnslsnr
/bin/chmod 751 /u01/app/oracle/product/rdbms/11202/bin/tnslsnr
 - Linking lsnrctl
rm -f lsnrctl
gcc -o lsnrctl -m64 -L/u01/app/oracle/product/rdbms/11202/network/lib/....
..............
..............
mv -f /u01/app/oracle/product/rdbms/11202/bin/lsnrctl /u01/app/oracle/product/rdbms/11202/bin/lsnrctl0
mv lsnrctl /u01/app/oracle/product/rdbms/11202/bin/lsnrctl
/bin/chmod 751 /u01/app/oracle/product/rdbms/11202/bin/lsnrctl
(matrix) /u01/app/oracle/product/rdbms/11202/network/admin> lsnrctl start LISTENER_RM4040

LSNRCTL for Linux: Version 11.2.0.2.0 - Production on 12-MAR-2011 11:53:57

Copyright (c) 1991, 2010, Oracle.  All rights reserved.

Starting /u01/app/oracle/product/rdbms/11202/bin/tnslsnr: please wait...
.........

Reference –
http://linux.about.com/library/cmd/blcmdl1_make.htm

Advertisements

2 thoughts on “lsnrctl: symbol lookup error: lsnrctl: undefined symbol: nlgh

  1. Hi,

    I’d like to ask what is the proper way to shutdown / startup node and services including nodeapps for 11gR2 RAC. My db is similar to what you shown in “CRS and New Features in 11gR2”
    I hope you could help me out. Your reply is much appreciated

    1. To stop –
      ==========
      export ORACLE_SID=|sid|
      emctl stop dbconsole
      srvctl stop instance -d |db_unique_name| -i |instance_name| -o immediate — Stops instances and stops any services running on specified instances
      srvctl stop asm -n |node_name| -i |instance_name| — Stops an Oracle ASM instance
      srvctl stop nodeapps -n |node_name| – Stops node-level applications on a node in the cluste
      crsctl stat res -t
      login as root or sedo root –
      crsctl stop crs – CRS is not sopped everytime.

      The crsctl stop crs command from 11gR2 shows all the resource getting down.I like it 🙂

      CRS-2791: Starting shutdown of Oracle High Availability Services-managed resources on ‘|node|’
      CRS-2673: Attempting to stop ‘ora.crsd’ on ‘|node|’
      CRS-2790: Starting shutdown of Cluster Ready Services-managed resources on ‘|node|’
      CRS-2673: Attempting to stop ‘ora.oc4j’ on ‘|node|’
      CRS-2673: Attempting to stop ‘ora.LISTENER_SCAN3.lsnr’ on ‘|node|’
      CRS-2677: Stop of ‘ora.LISTENER_SCAN3.lsnr’ on ‘|node|’ succeeded
      CRS-2673: Attempting to stop ‘ora.scan3.vip’ on ‘|node|’
      CRS-2677: Stop of ‘ora.scan3.vip’ on ‘|node|’ succeeded
      CRS-2672: Attempting to start ‘ora.scan3.vip’ on ‘|node2|’
      CRS-2676: Start of ‘ora.scan3.vip’ on ‘|node2|’ succeeded
      CRS-2672: Attempting to start ‘ora.LISTENER_SCAN3.lsnr’ on ‘|node2|’
      CRS-2676: Start of ‘ora.LISTENER_SCAN3.lsnr’ on ‘|node2|’ succeeded
      CRS-2677: Stop of ‘ora.oc4j’ on ‘|node|’ succeeded
      CRS-2672: Attempting to start ‘ora.oc4j’ on ‘|node2|’
      CRS-2676: Start of ‘ora.oc4j’ on ‘|node2|’ succeeded
      CRS-2673: Attempting to stop ‘ora.net1.network’ on ‘|node|’
      CRS-2677: Stop of ‘ora.net1.network’ on ‘|node|’ succeeded
      CRS-2792: Shutdown of Cluster Ready Services-managed resources on ‘|node|’ has completed
      CRS-2677: Stop of ‘ora.crsd’ on ‘|node|’ succeeded
      CRS-2673: Attempting to stop ‘ora.cluster_interconnect.haip’ on ‘|node|’
      CRS-2673: Attempting to stop ‘ora.ctssd’ on ‘|node|’
      CRS-2673: Attempting to stop ‘ora.evmd’ on ‘|node|’
      CRS-2673: Attempting to stop ‘ora.mdnsd’ on ‘|node|’
      CRS-2677: Stop of ‘ora.cluster_interconnect.haip’ on ‘|node|’ succeeded
      CRS-2677: Stop of ‘ora.evmd’ on ‘|node|’ succeeded
      CRS-2677: Stop of ‘ora.mdnsd’ on ‘|node|’ succeeded
      CRS-2677: Stop of ‘ora.ctssd’ on ‘|node|’ succeeded
      CRS-2673: Attempting to stop ‘ora.cssd’ on ‘|node|’
      CRS-2677: Stop of ‘ora.cssd’ on ‘|node|’ succeeded
      CRS-2673: Attempting to stop ‘ora.diskmon’ on ‘|node|’
      CRS-2673: Attempting to stop ‘ora.crf’ on ‘|node|’
      CRS-2677: Stop of ‘ora.diskmon’ on ‘|node|’ succeeded
      CRS-2677: Stop of ‘ora.crf’ on ‘|node|’ succeeded
      CRS-2673: Attempting to stop ‘ora.gipcd’ on ‘|node|’
      CRS-2677: Stop of ‘ora.gipcd’ on ‘|node|’ succeeded
      CRS-2673: Attempting to stop ‘ora.gpnpd’ on ‘|node|’
      CRS-2677: Stop of ‘ora.gpnpd’ on ‘|node|’ succeeded
      CRS-2793: Shutdown of Oracle High Availability Services-managed resources on ‘|node|’ has completed
      CRS-4133: Oracle High Availability Services has been stopped.

      To start
      =========

      1. crsctl start crs

      This shloud bring up crs, nodeapps,asm and oracle instance.So you need not do anything.

      If not, then manually start them

      1. login as oracle
      2. srvctl start nodeapps -n |node| — Starts node-level applications on a node or all nodes in the cluster
      3. srvctl start asm -n |node| -i |instance_name| — Starts an Oracle ASM instance.
      4. srvctl start instance -d |db_unique_name| -i |instance_name| -o open — Starts instances in the cluster database
      5. crsctl stat res -t
      6. emctl start dbconsole

      If CRS is not stopped, only db,asm,nodeapps are stopped then follow only the manually start part.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s