Wednesday, June 10, 2015

Sysman link error when installing Oracle Database 11g (11.2.0.4) on Amazon Web Services EC2 Red Hat

Problem:

We downloaded and installed the following Oracle Database 11g (11.2.0.4) 64-bit on a newly created Amazon Web Services EC2 instances (Red Hat Enterprise Linux Server release 7.1).

These are the installation files:

  • p13390677_112040_Linux-x86-64_1of7.zip
  • p13390677_112040_Linux-x86-64_2of7.zip
  • p13390677_112040_Linux-x86-64_3of7.zip
  • p13390677_112040_Linux-x86-64_4of7.zip
  • p13390677_112040_Linux-x86-64_5of7.zip
  • p13390677_112040_Linux-x86-64_6of7.zip
  • p13390677_112040_Linux-x86-64_7of7.zip

Upon installation, the OUI gave an error relating to sysman during the linking process.

The error in the OraInventory (/u01/app/oraInventory/logs/installActions2015-06-10_09-52-46AM.log) log file was:
INFO: /usr/bin/ld: warning: -z lazyload ignored.
/usr/bin/ld: warning: -z nolazyload ignored.
/usr/bin/ld: /u01/app/oracle/product/11.2.0/dbhome_1/sysman/lib//libnmectl.a(nmectlt.o): undefined reference to symbol 'B_DestroyKeyObject'
/usr/bin/ld: note: 'B_DestroyKeyObject' is defined in DSO /u01/app/oracle/product/11.2.0/dbhome_1/lib/libnnz11.so so try adding it to the linker command line
/u01/app/oracle/product/11.2.0/dbhome_1/lib/libnnz11.so: could not read symbols: Invalid operation

INFO: collect2: error: ld returned 1 exit status

INFO: make[1]: *** [/u01/app/oracle/product/11.2.0/dbhome_1/sysman/lib/emdctl] Error 1

INFO: make[1]: Leaving directory `/u01/app/oracle/product/11.2.0/dbhome_1/sysman/lib'

INFO: make: *** [emdctl] Error 2

INFO: End output from spawned process.
INFO: ----------------------------------
INFO: Exception thrown from action: make
Exception Name: MakefileException
Exception String: Error in invoking target 'agent nmhs' of makefile '/u01/app/oracle/product/11.2.0/dbhome_1/sysman/lib/ins_emagent.mk'. See '/u01/app/oraInventory/logs/installActions2015-06-10_09-52-46AM.log' for details.
Exception Severity: 1

Solution:

1. Edit this file: /u01/app/oracle/product/11.2.0/dbhome_1/sysman/lib/ins_emagent.mk

2. Change the following:
OLD:  $(MK_EMAGENT_NMECTL)
NEW: $(MK_EMAGENT_NMECTL) -lnnz11
3. Retry.

Applicable Versions:
  • Oracle Database 11g (11.2.0.4) 64-bit
  • Amazon EC2
  • Red Hat Enterprise Linux Server release 7.1


References:


 

2 comments:

Trish Clark said...

Very helpful! Thanks so much for posting.

Florus Both said...

thanks, must what i needed!