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. Oracle 26ai monitoring CDB and PDB´s with common user

Oracle 26ai monitoring CDB and PDB´s with common user

Scheduled Pinned Locked Moved Support
3 Posts 2 Posters 16.2k 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.
  • E
    E
    Eisbaeeer
    wrote on last edited by
    #1

    Hi
    My enviroment:

    Database: Oracle 26ai with CDB and PDB´s.
    NetXMS: Version 6.0
    Subagent: Oracle.nsm
    Subagent: dbquery.nsm

    Im using common user with prefix c## to monitor the CDB via Oracle.nsm subagent. The prefix working well for CDB.
    Now I tried to get data from PDB´s with this subagent. As example open_mode, etc.

    • Is it possible to monitoring the PDB´s, too with the Oracle.nsm?

    I tried as second solution via dbquery.nsm (I use it for special select statements in oracle and this works with traditional Oracle DB´s (Instance based). Now i tried to get data like open_mode from PDB´s with dbquery.nsm. It seems that the agent does not support the "c##" user prefix. If I use it, the agent service will not start. If I try it on SQLDevelopment Studio it works. Is there a solution to use common accounts to monitor PDB´s?

    This is how I tried the connection:

    *DBQUERY
    Database = id=CDB0;driver=oracle.ddr;server=//hostABC:1521/CDB0;login=c##netxms_agent;Password=mypassword
    Query = Open_Mode_PDB1:CDB0:15:select open_mode from v$pdbs where NAME = 'PDB1'
    

    --> This query works on Oracle SQL Develper.

    How do you monitor your PDB´s without creating collection data for every PDB?
    We using dataguard-manager with switchover and failover capability.

    Thank you for any hint´s or suggestions.
    Sincerly Lars

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

      Not sure how your config looks for oracle.nsm part, but the dbquery example issue is due to # char - it's treated as comment when configuration file is parsed.

      You can enquote the whole value:
      Database = "id=CDB0;driver=oracle.ddr;server=//hostABC:1521/CDB0;login=c##netxms_agent;Password=mypassword"

      Or it's better to use new configuration format that goes in a section, just make sure login is in quotes:

      [DBQUERY/Databases/db1]
      driver=pgsql
      server=10.0.0.4
      login="netxms"
      password=netxms1
      name=test_db

      (https://netxms.org/documentation/adminguide/application-monitoring.html#configuration-example)

      1 Reply Last reply
      0
      • E
        E
        Eisbaeeer
        wrote on last edited by
        #3

        @filipp-sudanov said in Oracle 26ai monitoring CDB and PDB´s with common user:

        You can enquote the whole value:
        Database = "id=CDB0;driver=oracle.ddr;server=//hostABC:1521/CDB0;login=c##netxms_agent;Password=mypassword"

        Thank you Filipp. This was the missing hint. I tried to enqoute only username. Now it works like a charme. Thank you verry much!

        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