The steps in this article describe how to add a connector of Azure Cosmos DB to Strategy. This connector enables Strategy Web based connectivity workflows and enhances the Relational Engine with support for Azure Cosmos DB.
Prerequisites
- An Azure Cosmos DB instance has already been provisioned through the following site:
- https://azure.microsoft.com/en-us/services/cosmos-db/
- The Azure Cosmos DB ODBC driver has been installed on the windows machine containing your Strategy Web server and i-server.
- For more information on installing the Azure Cosmos DB ODBC driver, please refer to the following link:
- https://docs.microsoft.com/en-us/azure/cosmos-db/odbc-driver
This article applies to the following Strategy versions:
- Strategy Secure Enterprise 10.4 (hotfix 5 or later applied)
- Strategy Secure Enterprise 10.9 or later
Contents
How to Install the Microsoft Azure Cosmos DB connector
Pre-requisites
Installation
Install database object
Install driver on each Intelligence Server in the cluster
Install data type mapping on each Intelligence Server in the cluster
Install connector in all MicroStrategy Web machines in the cluster
Validating correct installation
Uninstall
Remove database object
Remove driver
Remove data type mapping from all Intelligence Server machines
Remove connector from MicroStrategy Web
Pre-requisites
- Download and copy the connector file(AzureCosmosDB.zip) onto the machine hosting the Strategy Secure Enterprise installation
- Extract the zip file to its own directory, separate from the existing Strategy installation files (example: /tmp/AzureCosmosDB or C:\AzureCosmosDB). This directory will be referred to as <MSTR_CONN_PATH> for the remainder of this technical note.
- Strategy Secure Enterprise should be installed and configured, including an instance of Strategy Developer, Strategy Web, and the Strategy Intelligence Server
- Strategy Intelligence Server must be installed on Windows machine, as Azure Cosmos DB ODBC driver is only available on Windows.
Installation
The installation of this connector comprises of 4 steps.
- Install database object
- Install driver
- Install data type mapping
- Install connector in Strategy Web
Install database object
- Copy database.pds file onto a machine with Strategy Developer installed.
- Follow the steps in KB43537 to load the database object in the database.pds file into Strategy metadata.
KB43537: How to install DBMS objects provided by Strategy Technical Support
Install driver on each Intelligence Server in the cluster
- Download, install Cosmos DB's ODBC driver files, and create DSN connecting to your Azure Cosmos DB database (Instructions can be found here) on all the Intelligence Server machines in the cluster
Install data type mapping on each Intelligence Server in the cluster
- Copy the file dtmapping.xslt and AddConnector.jar files to all the Intelligence Server machines that need to be upgraded
- Find the location of the dtmapping.pds file of the Intelligence Server installation
- On Windows the default location is C:\Program Files (x86)\Common Files\Strategy, also referred to in the $MSTR_CLASSPATH environment variable
- Run the following command replacing <location> with the folder where dtmapping.pds file is located.
- Note: Running the command requires the privileges to copy and modify the existing dtmapping.pds file
- Note: the command will create a backup of the original file in <location>.
java -jar AddConnector.jar --target “<location>\dtmapping.pds” --file dtmapping.xslt
- Restart Intelligence Server.
- To validate a correct installation to this point:
- Open Developer
- Create a new DBinstance selecting the new connector “Azure Cosmos DB”