Friday, September 25, 2026
  • About Us
  • Contact
DBAInsight
  • Guides
    • 23ai
    • RMAN
    • 26ai
    • Patch Update
    • RMAN
    • MySQL
    • Oracle GoldenGate
  • Cloud Technology
  • Case Studies
  • Troubleshooting
  • Training & Certification
NEWSLETTER
No Result
View All Result
DBAInsight
Home Guides

Fixing the “Error in invoking target ‘agent nmhs’ of makefile ins_emagent.mk” During Oracle 11.2.0.4 Installation on Linux

October 27, 2025
in Guides
3
Fixing the “Error in invoking target ‘agent nmhs’ of makefile ins_emagent.mk” During Oracle 11.2.0.4 Installation on Linux
0
SHARES
442
VIEWS

hen installing Oracle Database 11.2.0.4 on Linux x86-64, particularly SUSE12SP1, SUSE12SP2, or RHEL7, you may encounter a linking error during the installation phase:

Error in invoking target 'agent nmhs' of makefile /u01/app/oracle/product/11.2.0/dbhome_1/sysman/lib/ins_emagent.mk

This issue typically halts the installation at the linking stage, leaving administrators confused about how to proceed.
Let’s break down the cause, symptoms, and the exact steps to fix it permanently.

Table of Contents

Toggle
  • Understanding the Error
    • Related posts
    • Oracle Database Monitoring Tools: 10 Best Tools for DBAs in 2026
    • Oracle Database Release Roadmap 2026: Current Support Status, 19c, 21c and 26ai
  • What Causes the Error?
  • The Simple Solution
    • Step 1: Locate the File
    • Step 2: Edit the Makefile
    • Step 3: Add the Missing Library Reference
    • Step 4: Save and Retry
  • Why Does Adding “-lnnz11” Work?
  • Verifying the Fix
  • When to Expect This Error
  • Final Thoughts
    • Quick Summary
    • Conclusion

Understanding the Error

During the installation of Oracle Database 11.2.0.4, Oracle runs a series of linking commands that compile and connect various internal components. This process uses makefiles — scripts that define how each Oracle binary is built.

Related posts

Oracle Database Monitoring Tools

Oracle Database Monitoring Tools: 10 Best Tools for DBAs in 2026

September 22, 2026
Oracle Database Release Roadmap 2026: Current Support Status, 19c, 21c and 26ai

Oracle Database Release Roadmap 2026: Current Support Status, 19c, 21c and 26ai

September 21, 2026

One of those makefiles is:

$ORACLE_HOME/sysman/lib/ins_emagent.mk

This file is responsible for linking Enterprise Manager (EM) agent components, including emagent, emdctl, and nmhs.

When Oracle attempts to link these binaries, you might see this error:

Error in invoking target 'agent nmhs' of makefile /u01/app/oracle/product/11.2.0/dbhome_1/sysman/lib/ins_emagent.mk

And in the detailed make log:

collect2: error: ld returned 1 exit status
/u01/app/oracle/product/11.2.0/dbhome_1/sysman/lib/ins_emagent.mk:176: recipe for target '/u01/app/oracle/product/11.2.0/dbhome_1/sysman/lib/emdctl' failed
make[1]: *** [/u01/app/oracle/product/11.2.0/dbhome_1/sysman/lib/emdctl] Error 1
make: *** [emdctl] Error 2

This happens at the linking stage, just before the installer finalizes database binaries.


What Causes the Error?

The root cause lies in library linking incompatibilities between Oracle Database 11.2.0.4 and newer Linux distributions such as RHEL7 and SUSE12.

Oracle 11.2.0.4 was originally released for older kernels and library versions, so certain link references inside ins_emagent.mk are outdated or incomplete for newer systems. The missing or mislinked library here is -lnnz11, which is responsible for Oracle network security services (part of Oracle Net libraries).

When the emdctl binary tries to link without the proper dependency, the linker fails, leading to the above error.


The Simple Solution

Thankfully, the fix is straightforward. You just need to edit one line in the ins_emagent.mk file and re-run the installation.

Step 1: Locate the File

Navigate to the Oracle home directory:

cd $ORACLE_HOME/sysman/lib

By default, this will be something like:

cd /u01/app/oracle/product/11.2.0/dbhome_1/sysman/lib

Step 2: Edit the Makefile

Open the file ins_emagent.mk in your preferred text editor. For example:

vi ins_emagent.mk

Search for the line that contains:

$(MK_EMAGENT_NMECTL)

This line defines the linking command for the Enterprise Manager agent control utility.

Step 3: Add the Missing Library Reference

Modify the line as follows:

Original:

$(MK_EMAGENT_NMECTL)

Updated:

$(MK_EMAGENT_NMECTL) -lnnz11

This addition explicitly includes the missing network library (-lnnz11) that the linker requires.

Step 4: Save and Retry

After saving the file, go back to the Oracle installer GUI and click Retry.
The installer will re-run the linking process, and this time, it should complete successfully.


Why Does Adding “-lnnz11” Work?

The -lnnz11 flag instructs the linker to include the Oracle Network Library (nnz), which provides SSL and encryption support. In older Linux environments, the linker automatically included this dependency, but in newer ones, it does not.

By explicitly appending -lnnz11, you ensure the linker can resolve all symbols and successfully create the Enterprise Manager binaries (emagent, emdctl, etc.).


Verifying the Fix

After clicking “Retry” and the installation completes successfully, you can verify that the binaries were built properly.

Check the existence of the emdctl binary:

ls -l $ORACLE_HOME/sysman/lib/emdctl

and the agent binary:

ls -l $ORACLE_HOME/bin/emagent

You should now see the correct files with no linking errors.


When to Expect This Error

You’re most likely to see this issue when:

  • Installing Oracle Database 11.2.0.4 on newer Linux kernels (RHEL 7+, SUSE 12+).
  • Performing a manual relink of Oracle binaries.
  • Running Oracle setup on customized or minimal Linux builds missing legacy libraries.

This issue is not seen in Oracle 12c or later because those versions were built with updated makefiles for newer GCC and glibc versions.


Final Thoughts

The “Error in invoking target ‘agent nmhs’ of makefile ins_emagent.mk” is one of the most common Oracle 11g installation issues on modern Linux systems. Fortunately, it’s also one of the easiest to fix. By adding “-lnnz11” to the makefile and retrying the installation, you can complete your setup without reinstalling or rolling back.

This small tweak ensures compatibility between Oracle’s 11g linking scripts and the newer Linux toolchains used in distributions like RHEL7 and SUSE12SP2.


Quick Summary

StepActionCommand / File
1Navigate to directorycd $ORACLE_HOME/sysman/lib
2Edit the makefilevi ins_emagent.mk
3Add library flagReplace $(MK_EMAGENT_NMECTL) with $(MK_EMAGENT_NMECTL) -lnnz11
4Save and retry installationClick Retry in Oracle installer
5Verify successCheck $ORACLE_HOME/install/make.log and emdctl binary

Conclusion

While Oracle 11.2.0.4 remains a reliable release, it wasn’t designed with RHEL7 and SUSE12 in mind. As Linux evolves, small incompatibilities like this become more frequent.
The good news is that Oracle’s installation framework is flexible enough to let administrators make quick adjustments — and this one-line fix in ins_emagent.mk is a perfect example.

By following this guide, you can avoid installation failures, save hours of troubleshooting, and get your Oracle environment up and running smoothly.

Tags: Database AdminEnterprise Managerins_emagent.mklinking errorLinux troubleshootingOracle 11gOracle Database 11.2.0.4Oracle installationRHEL7SUSE12
Previous Post

Oracle Grid Infrastructure 19c Restart Home Installation — Complete Step-by-Step Guide

Next Post

Upgrade Oracle Database 11.2.0.3 to 11.2.0.4 Using DBUA – Step-by-Step with Screenshots

Next Post
Upgrade Oracle database 11.2.0.3 to 11.2.0.4

Upgrade Oracle Database 11.2.0.3 to 11.2.0.4 Using DBUA – Step-by-Step with Screenshots

Comments 3

  1. Pingback: Upgrade Oracle Database 11.2.0.3 to 11.2.0.4 Using DBUA – Step-by-Step with Screenshots - DBAInsight
  2. Pingback: ORA-01652: Unable to Extend Temp Segment in Temporary Tablespace – Fix and Prevention
  3. Pingback: ORA-00018: Maximum Number of Sessions Exceeded – Causes, Diagnosis & Complete Fix Guide

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

POPULAR NEWS

  • Oracle Patch 38632161: Step-by-Step Guide to Upgrade Oracle 19c to Release Update 19.30

    Oracle Patch 38632161: Step-by-Step Guide to Upgrade Oracle 19c to Release Update 19.30

    0 shares
    Share 0 Tweet 0
  • How To Download And Install The Latest OPatch

    0 shares
    Share 0 Tweet 0
  • How to Install Oracle 19c Database on Red Hat Enterprise Linux 9

    0 shares
    Share 0 Tweet 0
  • Oracle Database 19.32 Release Update (RU) Patching Guide – Patch 39472050

    0 shares
    Share 0 Tweet 0
  • Installing Oracle Database 26AI on Red Hat Enterprise Linux 9

    0 shares
    Share 0 Tweet 0
  • About Us
  • Contact

© 2026 DBAInsight - Smarter Databases. Sharper Insights. DBAInsight.

No Result
View All Result
  • Home
  • Cloud & Modern DBs
  • Guides
  • Cloud Technology
  • Case Studies
  • Troubleshooting
  • Training & Certification

© 2026 DBAInsight - Smarter Databases. Sharper Insights. DBAInsight.

Add as a preferred source on Google
Add as preferred source on Google