-
If connecting from outside the DocumentDB cluster's VPC, ensure you have setup an SSH tunnel.
-
Copy the DocumentDB JDBC driver JAR file to a folder on the MicroStrategy Intelligence Server Machine.
- E.g. On Windows,
C:\Program Files (x86)\Common Files\Drivers\DocumentDB
. - E.g. On Linux, driver files should be copied to
<MSTR_INSTALL_HOME>/JDBC
. (eg;/opt/MicroStrategy/JDBC
).
- E.g. On Windows,
-
Launch the MicroStrategy Developer application and login into MicroStrategy Analytics Modules.
-
Navigate to MicroStrategy Analytics Modules > Administration > Configuration Managers > Database Instances > New > Database Instance or click on the icon as shown in the image below.
-
In the Database Instances prompt
-
In General tab, for Database instance name field, enter a name (e.g. DocumentDB).
-
In General tab, for Database connection type field, select Amazon DocumentDB.
-
In Advanced tab, ensure ODBC Version Use 3.x ODBC calls is selected.
-
In General tab, for Database connection field select New
-
In Database Connections prompt
-
In General tab, for Database connection name field, enter a name (e.g. DocumentDB Test)
-
In Advanced tab, for Driver execuation mode field, ensure Synchronous is selected.
-
In Advanced tab, for Additional connection string parameters field, enter the filepath of driver JAR file, driver class name and your JDBC connection string as the URL
JDBC;MSTR_JDBC_JAR_FOLDER=C:\Program Files (x86)\Common Files\Drivers\DocumentDB;DRIVER=software.amazon.documentdb.jdbc.DocumentDbDriver;URL={jdbc:documentdb://<IP/URL>};
For example
URL={jdbc:documentdb://localhost:27019/<database-name>?tls=true&tlsAllowInvalidHostnames=true}
-
In General tab, create a new Database Login Name by selecting New and enter your database. Login ID and Password.
-
In General tab, select your Database Login Name that you just created as the Default database login name and select OK.
-
If you get the following message (see image below), select OK.
-
-
You will return to the Database Instances prompt, select the Database Connection you just created and click OK.
-
-
Users should now be able to connect successfully via JDBC from both the Warehouse Catalog and Data Import.
-
In the main menu navigate to and select Schema > Create New Project.
-
Choose a Project Name and Directory.
-
Click Select tables from the Warehouse Catalog.
-
In the Warehouse Database Instance prompt, select the Database instance name you chose when creating a connection as the Primary Database Instance for the Project and click Ok.
-
If you are given the following error (see image below), select yes.
-
In Warehouse Catalog Options prompt, under Categories > Catalog > Warehouse Connection ensure for Custom Database Login your Database Login Name that you created is selected.
-
In Warehouse Catalog Options prompt, under Categories > Catalog > Read Settings ensure Use standard ODBC calls to obtain the database catalog is selected.
-
Click Ok and you should be able to read in tables from your database instance from the Warehouse Catalog and use them in your project.
-