Skip to content
DataMiner DoJo

More results...

Generic selectors
Exact matches only
Search in title
Search in content
Post Type Selectors
Search in posts
Search in pages
Search in posts
Search in pages
Log in
Menu
  • Updates & Insights
  • Questions
  • Learning
    • E-learning Courses
    • Empower Replay: Limited Edition
    • Tutorials
    • Open Classroom Training
    • Certification
      • DataMiner Fundamentals
      • DataMiner Configurator
      • DataMiner Automation
      • Scripts & Connectors Developer: HTTP Basics
      • Scripts & Connectors Developer: SNMP Basics
      • Visual Overview – Level 1
      • Verify a certificate
    • Video Library
    • Books We Like
    • >> Go to DataMiner Docs
  • Expert Center
    • Solutions & Use Cases
      • Solutions
      • Use Case Library
    • Markets & Industries
      • Media production
      • Government & defense
      • Content distribution
      • Service providers
      • Partners
      • OSS/BSS
    • Agile
      • Agile Webspace
      • Everything Agile
        • The Agile Manifesto
        • Best Practices
        • Retro Recipes
      • Methodologies
        • The Scrum Framework
        • Kanban
        • Extreme Programming
      • Roles
        • The Product Owner
        • The Agile Coach
        • The Quality & UX Coach (QX)
    • DataMiner DevOps Professional Program
      • About the DevOps Program
      • DataMiner DevOps Support
  • Downloads
  • More
    • DataMiner Releases & Updates
    • Feature Suggestions
    • Climb the leaderboard!
    • Swag Shop
    • Contact
    • Global Feedback Survey
  • PARTNERS
    • All Partners
    • Technology Partners
    • Strategic Partner Program
    • Deal Registration
  • >> Go to dataminer.services

Can one database connection be used for two asset manager configs?

Solved1.46K views25th August 2023asset manager
1
Laurens Moutton [SLC] [DevOps Enabler]8.74K 25th August 2023 0 Comments

Hi,

The connection for a database can be configured in the System Center (Database, Other tab). In there is a field “Name”, which is stored as <DB> in DB.xml. As far as I understand it, this is in MySQL equal to the database schema.

When writing the Asset Manager Config file, it contains two mandatory fields:
-DatabaseConfig, which points to the database that was configured in the System Center (to be able to connect with the database, because the credentials are there)
-Schema, which is the database schema.

That confuses me what the purpose of the Schema in combination with <DB> is:
-Should Schema be the same value like configured in DB.xml? That makes it a duplicate config and means that for the same database connection if one wants to use two database schemas that two database connections need to be created in the System Center?
-If Schema points to the database schema, and it would be possible to use the same database config for different schemas, then what is the purpose of the <DB> in DB.xml that is also configured?

Laurens Moutton [SLC] [DevOps Enabler] Selected answer as best 25th August 2023

2 Answers

  • Active
  • Voted
  • Newest
  • Oldest
0
Tom Van Bruaene [SLC] [DevOps Member]758 Posted 25th August 2023 0 Comments

As you found out already, it’s not possible.
But to give a bit of insight as to why that’s not the case:

The <DB> tag is not mandatory in db.xml if you use the <ConnectString> tag.
This is mainly used for Oracle/MSSQL connections that want to give extra options to connect to the DB.

Since getting the actual schema name from a connectionstring isn’t particularly easy (since you’d need to parse differently based on DB type), it was easiest to just make sure the asset manager config contained the correct value.

Laurens Moutton [SLC] [DevOps Enabler] Selected answer as best 25th August 2023
0
Laurens Moutton [SLC] [DevOps Enabler]8.74K Posted 25th August 2023 0 Comments

I further tested it and, at this moment (DataMiner version 10.3.10), for a MySQL DB, there is no specification of the schema when executing the actual queries. The connection with MySQL is established by setting database to the value that is defined in the <DB> tag of DB.xml. When the asset manager is getting the database schema, it is for example executing the query “show tables”, without the schema specified. It is using the schema value that is defined in the asset manager config to construct the file name that is present under AssetManager\Schemas directory, but further there is no clear link with the actual query that is executed.

To conclude, at this moment, if one wants to use different database schemas with the asset manager it should point to different dedicated database connections in the System Center and set the value of <Schema> in the asset manager config to the same value like <DB> in DB.xml.

Laurens Moutton [SLC] [DevOps Enabler] Answered question 25th August 2023
Please login to be able to comment or post an answer.

My DevOps rank

DevOps Members get more insights on their profile page.

My user earnings

0 Dojo credits

Spend your credits in our swag shop.

0 Reputation points

Boost your reputation, climb the leaderboard.

Promo banner DataMiner DevOps Professiona Program
DataMiner Integration Studio (DIS)
Empower Katas
Privacy Policy • Terms & Conditions • Contact

© 2025 Skyline Communications. All rights reserved.

DOJO Q&A widget

Can't find what you need?

? Explore the Q&A DataMiner Docs