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

How to connect to Oracle


Norman Matos

Associate Scrum Master • Strategy


This article explains how to connect to Oracle using DSN and DSN-less connections in MicroStrategy.

This article explains how to connect to oracle in the following scenarios:
1. Connectivity via DSN
2. DSN-less Connectivity
3. Connectivity via JDBC Driver
 

Connectivity via DSN 


For analytical requests and for Strategy Metadata operations, Strategy Secure Enterprise uses the Strategy ODBC Driver for Oracle Wire Protocol. This driver is shipped with Strategy releases.
This section describes driver configuration, and the settings that are known to enhance performance of Strategy when connecting to Oracle.
Configuration: Consists of three steps - create database instance, create a database connection, and configure and store credentials.
 

  1. Create a new database instance:
     
ka044000000kPBXAA2_0EM440000002LLA.png

 
 

  1. Create a database connection that points to the DSN:
     
ka044000000kPBXAA2_0EM440000002LLF.png

 
 

  1. Configure and store credentials for the login:
     
ka044000000kPBXAA2_0EM440000002LLK.png

 

DSN-less Connectivity


DSN-less connections to Oracle are supported via Strategy Web/Desktop Data Import. The following screenshot shows the configuration screen.

ka044000000kPBXAA2_0EM440000002LLP.png

Connectivity via JDBC Driver


 
Some customers may need to use the Oracle provided JDBC in lieu of Strategy shipped ODBC driver to connect to Oracle database.  The steps to use the JDBC driver to connect to Oracle are as follows:
 

  1. Download the Oracle JDBC thin driver. For Oracle 12.2 release, the driver file is called odbc8.jar
ka044000000kPBXAA2_0EM44000000PymC.png
  1. Deploy the ojdbc8.jar file to i-server machine. For example:

/opt/mstr/MicroStrategy/install/JDBC
 

  1. Configure the project to use JDBC driver
  • Create New Database Connection
ka044000000kPBXAA2_0EM44000000PymH.png
  • Click the Advanced tab
  • Put the driver and connection information in “Additional connection string parameters” field in following format:

JDBC;MSTR_JDBC_JAR_FOLDER=/folder_path_to_where_ojdbc8_deployed;DRIVER=oracle.jdbc.OracleDriver;URL={jdbc:oracle:thin:@ORACLE_SERVER_IP:PORT/ORACLE_DB_FQDN};
alternatively use the Oracle System ID:
JDBC;MSTR_JDBC_JAR_FOLDER=/folder_path_to_where_ojdbc8_deployed;DRIVER=oracle.jdbc.OracleDriver;URL={jdbc:oracle:thin:@ORACLE_SERVER_IP:PORT/ORACLE_SID};
Do no include the JAR file name in the path.
 
 
For example:
 
JDBC;MSTR_JDBC_JAR_FOLDER=/opt/mstr/MicroStrategy/install/JDBC;DRIVER=oracle.jdbc.OracleDriver;URL={jdbc:oracle:thin:@52.45.186.54:1521/labstuto.ec2.internal};
 
Note if the i-server is on Windows system, the MSTR_JDBC_JAR_FOLDER string format should be like “c:\folder_path_to_where_ojdbc8.jar”.
So if you placed the file "ojdbc8.jar" in C:\JDBC, the path should be as on the last screenshot.

ka044000000kPBXAA2_0EM44000000PymW.png


 

  • Associate the proper Database Login with the Database Connection as usual
  • Make sure Database instances reference the JDBC database connection
  1. Use the JDBC driverin data import workflow

Use the connection string as show to create DSN-less Data source. The connection string format is the same as in previous section.
Settings when connecting from Linux and using FQDN:

ka044000000kPBXAA2_0EM44000000Pymb.png

Settings when connecting from Windows using an Oracle SID:

ka044000000kPBXAA2_0EM44000000A4hS.png

 


Comment

0 comments

Details

Knowledge Article

Published:

May 9, 2017

Last Updated:

March 21, 2018