EducationSoftwareStrategy.com
StrategyCommunity

Knowledge Base

Product

Community

Knowledge Base

TopicsBrowse ArticlesDeveloper Zone

Product

Download SoftwareProduct DocumentationSecurity Hub

Education

Tutorial VideosSolution GalleryEducation courses

Community

GuidelinesGrandmastersEvents
x_social-icon_white.svglinkedin_social-icon_white.svg
Strategy logoCommunity

© Strategy Inc. All Rights Reserved.

LegalTerms of UsePrivacy Policy
  1. Home
  2. Topics

KB486871: How to delete an unwanted database instance?


Xiaodan Ma

Senior Cloud Support Engineer III • MicroStrategy


This Knowledge Base article provides the detailed steps to delete an unwanted database instance in different scenaios

Introduction

Before deleting an unwanted database instance, you need to make sure the database instance is not used or referenced by any other objects.  That means the following conditions must be met:

  • The database instance is unchecked in Project Configuration > Database Instances > All tabs in every project.​  
  • The database instance is not used for the history list/EM Repository/Statistics/Platform Analytics in every server definition.

Steps

Option A.
If the database instance is checked in the Project Configuration > Database Instances and cannot be unchecked it means that the database instance is used by some objects in the project.

  1. Use KB39539 to find if any managed objects are referencing the database instance.
  2. If none, run the query to return the dependent objects of the database instance: 
    SELECT * FROM DSSMDOBJDEPN where DEPN_OBJID='The database instance GUID';
  3. Run this query to return the details of the dependent objects from the above query:
    SELECT * FROM DSSMDOBJINFO where OBJECT_ID='The dependent object ID from the above query';
  4. If the dependent objects also have their dependent objects, continue to run the query in Step 2 using the GUID from the result, layer by layer, until it returns the top-level dependent objects that you can delete on GUI. 
  5. Finally the database instance can be deleted once all the dependent objects are deleted.

Option B.
The database instance is used for the history list/EM Repository/Statistics/Platform Analytics in one of the server definitions.  This can be found in the description of database instance objects in Developer as below:
 

ka0PW0000002cE5YAI_0EMPW0000082oov.jpeg

​​​​​​​

  1. If the database instance is used in the current server definition, find the corresponding setting(history list/EM Repository/Statistics/Platform Analytics) based on the database instance description and specify a different database instance. 
  2. If the database instance does not appear in the corresponding setting related to the database instance description, it is not used in the current server definition.  Use Configuration Wizard to configure Intelligence Server and choose a different server definition, once it's finished go to the corresponding setting and see if you can see the database instance.  If not repeat Step2 with another different server definition until you can see the database instance.  *This step may not be possible for production environments.  Please reach out to Technical Support and provide the production metadata backup file so they can do that for you. 

Comment

0 comments

Details

Knowledge Article

Published:

July 18, 2024

Last Updated:

July 18, 2024