Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (Flatly)
  • No Skin
Collapse
Brand Logo

NetXMS Forum

  1. Home
  2. Support
  3. Initialization of subagent "ORACLE" failed

Initialization of subagent "ORACLE" failed

Scheduled Pinned Locked Moved Support
7 Posts 4 Posters 15.9k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • I
    I
    IhOl
    wrote on last edited by
    #1

    Hi, we have installed agent on Linux and trying to add subagent Oracle.

    Core agent version 4.3-243-g93e41d8

    config:

    SubAgent=/opt/netxms/lib/netxms/oracle.nsm
    DBDriver=/opt/netxms/lib/netxms/dbdrv/oracle.ddr

    During startup, agent rising error:
    2024.01.19 14:43:13.683 *D* [db.drv.oracle      ] OCI version 19.21.0.0.0
    2024.01.19 14:43:13.686 *E* [db.drv.oracle      ] Cannot allocate Oracle environment handle
    2024.01.19 14:43:13.686 *E* [db.drv            ] Database driver "oracle.ddr" initialization failed
    2024.01.19 14:43:13.686 *D* [dload              ] DLClose: module=0x1b69f20
    2024.01.19 14:43:13.687 *E* [oracle            ] Cannot load Oracle database driver
    2024.01.19 14:43:13.687 *E* [subagents          ] Initialization of subagent "ORACLE" (/opt/netxms/lib/netxms/oracle.nsm) failed

    Please advice.

    1 Reply Last reply
    0
    • A
      A
      Alex Kirhenshtein
      wrote on last edited by
      #2

      Make sure that either InstantClient or full Oracle client is installed and available in libpath.

      1 Reply Last reply
      0
      • I
        I
        IhOl
        wrote on last edited by
        #3

        It is Oracle DB server where DB is running.
        I've added into agent config file

        ORACLE_HOME=/uat/db/19c
        LD_LIBRARY_PATH=/uat/db/19c/lib

        Also
        ldd oracle.ddr |grep 19

        libclntshcore.so.19.1 => /uat/db/19c/lib/libclntshcore.so.19.1 (0x00007f75e4403000)

        So i guess all libs should be available

        1 Reply Last reply
        0
        • I
          I
          IhOl
          wrote on last edited by
          #4

          Do you have more ideas?

          1 Reply Last reply
          0
          • F
            F
            Filipp Sudanov
            wrote on last edited by
            #5

            You've executed  ldd oracle.ddr |grep 19 under root or some other user? nxagentd is probably running under root, which can have different env variables set.

            For the agent config, you can specify env variables in [env] section, e.g.

            [env]
            ORACLE_HOME=/uat/db/19c
            LD_LIBRARY_PATH=/uat/db/19c/lib

            but I am not sure, if this affects database drivers, or only processes that agent launches after it has started (e.g. external metrics).

            1 Reply Last reply
            0
            • I
              I
              IhOl
              wrote on last edited by
              #6

              I've run ldd under root.
              Also i've added ORACLE_HOME and LD_LIBRARY_PATH into agent config file.
              It was read by agent and written in log.
              But driver initialization failed and there is no other errors or messages even in debug 9.

              That is why i've started this topic.

              1 Reply Last reply
              0
              • V
                V
                Victor Kirhenshtein
                wrote on last edited by
                #7

                Can you show full agent config?

                1 Reply Last reply
                0

                Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                With your input, this post could be even better 💗

                Register Login
                Reply
                • Reply as topic
                Log in to reply
                • Oldest to Newest
                • Newest to Oldest
                • Most Votes


                • Login

                • Don't have an account? Register

                • Login or register to search.
                Powered by NodeBB Contributors
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • Users
                • Groups