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. Agent query to Oracle

Agent query to Oracle

Scheduled Pinned Locked Moved Support
5 Posts 2 Posters 23.0k 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.
  • M
    M
    mrocha
    wrote on last edited by
    #1

    Hello,

    I am trying to configure the agent to perform a query with DBQuery on an Oracle database.

    I must connect to Oracle with TNS name, and it works fine with sqlplus, but the agent allways gives the error:

    ORA-12154: TNS:could not resolve the connect identifier specified

    I'm running NetXMS on ubuntu server with mysql database, but I need to run queries on an Oracle database.

    I allready do it in another setup I have in windows, but through ODBC.

    Best regards.

    Can you please show me some way to do it?

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

      Hi,

      try to use connect string in form //server_address/SID instead of TNS name.

      Best regards,
      Victor

      1 Reply Last reply
      0
      • M
        M
        mrocha
        wrote on last edited by
        #3

        Hi,

        Thank you, it worked!

        My only concern now is to be connected to only one server of a cluster. Any chance in the future to be able to connect by TNS name?

        Again, thank you very much.

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

          It should be able to use TNS names. Most likely it's client configuration or environment issue. Can you check what Oracle client is used by oracle.ddr?

          Best regards,
          Victor

          1 Reply Last reply
          0
          • M
            M
            mrocha
            wrote on last edited by
            #5

            I'm using the Oracle Instant Client 12.1 x64. It's the only one installed.

            The sqlplus connects fine with TNS.

            Best regards,
            Manuel

            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