For example, if you want to analyse MongoDB data in Excel, install the MongoDB ODBC driver on the machine where Excel is installed.
To do this, execute the file distribution that you downloaded in the previous step, and follow the onscreen instructions.
The install program starts the Easysoft License Manager, because you cannot use your Easysoft product until a license is obtained.
The following types of license are available:
Complete the Name, E-Mail Address, and Company fields.
The E-Mail Address must be the same as the address used to register and download from the Easysoft web site or you will be unable to obtain trial licenses.
You're asked for a license type.
The License Manager asks what software you are licensing. Select your product from the drop-down list and then choose Next.
The License Manager requests your authorization code.
Enter the authorization code and then choose Next.
The License Manager then sends a request to the Easysoft license server to activate your license key automatically. This is the quickest method and results in your details being entered immediately into our support database.
Each of these methods involves providing Easysoft with information including your machine number (a number unique to your machine) and then waiting to receive your license key.
Instead of emailing your details to Easysoft, you can enter them directly at the Easysoft web site and your license key will be emailed to you automatically.
To use this method, choose View Request, and then visit:
In the licensing page, enter your machine number (and authorization code for a purchased license), choose Submit and your license key will be emailed to you.
When you receive the license key, you can activate it either by double-clicking the email attachment or by choosing Enter License on the License Manager main screen and pasting the license key into the dialog box.
The installation is complete.
Before you can use the MongoDB ODBC driver to connect your application to MongoDB, you need to configure an ODBC data source. An ODBC data source stores the connection details for the target database (in this case, MongoDB) and the ODBC driver that is required to connect to it (in this case, the MongoDB ODBC driver).
You configure ODBC data sources in ODBC Data Source Administrator, which is included with Windows.
There are two versions of ODBC Data Source Administrator. The version of ODBC Data Source Administrator that you need to run depends on whether the application you want to connect to MongoDB is 32-bit or 64-bit. Refer to the following table to find out the application's architecture.
Application | Architecture |
---|---|
Access | There is both a 32-bit and a 64-bit version of Access. To find out which version of Access you have, start Access, and then start Windows Task Manager. In Task Manager, choose the Processes tab. Search for MSACCESS.EXE in the list. If the process name is MSACCESS.EXE *32, Microsoft Access is 32-bit. If the process name is MSACCESS.EXE, Microsoft Access is 64-bit. |
Excel | There is both a 32-bit and a 64-bit version of Excel. To find out which version of Excel you have, start Excel, and then start Windows Task Manager. In Task Manager, choose the Processes tab. Search for Excel.exe in the list. If this process name is followed by *32, your version of Excel is 32-bit. Otherwise, your version of Excel is 64-bit. |
Oracle | The Oracle component that interacts with the MySQL ODBC driver is called DG4ODBC. There is both a 32-bit and a 64-bit version of DG4ODBC. To find out which version of DG4ODBC you have, start the Windows Task Manager and choose the Processes tab. In a Command Prompt window, type dg4odbc --help . In the Windows Task Manager, search for the DG4ODBC process. If the Image Name is dg4odbc.exe *32 DG4ODBC is 32-bit. If the Image Name is dg4odbc.exe DG4ODBC is 64-bit. Press CTRL+C in the Command Prompt window, when you have used the Windows Task Manager to find out DG4ODBC's architecture. |
SQL Server |
There is both a 32-bit and a 64-bit version of SQL Server. To find out which version of SQL Server you have, connect to your SQL Server instance, and then run this SQL statement:
|
GoodData | CloudConnect Designer is a 64-bit application. |
MicroStrategy | MicroStrategy is a 32-bit application. |
Oracle Business Intelligence Enterprise Edition (OBIEE) | The OBIEE component that interacts with the ODBC driver is called the Oracle BI Administration Tool. The Oracle BI Administration Tool is 64-bit. |
PHPRunner | PHPRunner is a 32-bit application. |
QlikView | QlikView is a 32-bit application if the Force 32 Bit check box is selected. Otherwise, QlikView is a 64-bit application. |
SAP BusinessObjects | Central Management Server is a 64-bit application. Business View Manager, Information Design Tool and Web Intelligence Rich Client are 32-bit applications. |
SAP Crystal Reports | Crystal Reports is a 32-bit application. |
Tableau | Tableau is a 32-bit application. |
TIBCO Spotfire | TIBCO Spotfire is a 64-bit application. |
If you have a 64-bit application, you need to run the 64-bit version of ODBC Data Source Administrator. To do this, open Administrative Tools in Control Panel, and then open Data Sources (ODBC). (On Windows Server 2003 and earlier, the Control Panel applet that launches ODBC Data Source Administrator is labelled Data Sources. On Windows 8 and later, the Control Panel applet is labelled ODBC Data Sources (64-bit).)
If you have a 32-bit application, you need to run 32-bit version of ODBC Data Source Administrator. To do this, in the Windows Run dialog box, enter:
%windir%\syswow64\odbcad32.exe
Use ODBC Data Source Administrator to create a MongoDB ODBC driver data source:
Setting | Value |
---|---|
DSN | MongoDB |
Description | Easysoft MongoDB ODBC driver |
Server | The name or IP address of the host where your MongoDB instance is running. |
User Name | If you need to supply a user name to access your MongoDB database, enter it here. |
Password | The password for your MongoDB user name. |
Ignore Auth | Some applications (for example MicroStrategy, Oracle Heterogeneous Services (DG4ODBC), Oracle BI Administration Tool) always pass a user name and password on the ODBC connection string, regardless of whether they are required by the target database. If your application behaves in this way and your MongoDB database does not require a user name and a password, enable this setting. |
Follow these steps to return data from MongoDB to Microsoft Excel by using the Data Connection Wizard:
Follow these steps to return data from MongoDB to Microsoft Excel by using Microsoft Query:
The New Database Query command uses Microsoft Query to import data. Microsoft Query is an optional feature, which by default is not installed. If you do not have Microsoft Query installed, choosing New Database Query will prompt you to install it. To do this, in Control Panel, choose Programs and Features (or Add or Remove Programs). Choose Microsoft Office (if you installed Excel as part of Office) or Microsoft Excel, and then choose Change. Follow the instructions on screen. Select Choose advanced customization of applications during the Setup wizard if this option is present for your version of Office or Excel. Microsoft Query is located under Office Tools.
When you have installed Microsoft Query, repeat step 1.
WHERE
clause), and then click Next.ORDER BY
clause), and then click Next.GDMongoDB
.CCMongoDB
. Choose GDMongoDB as your GoodData working project.MongoDBGraph
.Setting | Value |
---|---|
Name | MongoDBConnection |
URL |
jdbc:odbc:dsn_source;
where |
JDBC specific | Generic ODBC |
MongoDB.cfg
and then choose Finish.Property | Value |
---|---|
DB Connection | MongoDBConnection |
SQL Query | select * from airline |
MongoDBLDM
when prompted, and then choose Finish.mongodbldm.ldm
pane, and then choose Create Dataset.Title | Type | Datatype |
---|---|---|
UNIQUE_CARRIER | Attribute | Text (128) |
AIRLINE_ID | Fact | Integer |
airline (id:Metadata0)
as the Input port.The MongoDB data set is accessible by choosing Manage and then choosing the Data pane.
These instructions show you how to use the MongoDB ODBC driver to connect MicroStrategy Analytics Desktop to MongoDB and provide real time access to your MongoDB data, enabling you to analyse MongoDB data from your MicroStrategy dashboard.
Although these details are already stored in the data source, presumably MicroStrategy appends the user name and password specified here to the connection string it passes to SQLDriverConnect
. You therefore need to supply the user name and password again, otherwise the connection will fail.
If your MongoDB server does not require you to specify a user name and a password, enter some "dummy" values in the MicroStrategy dialog box. Then edit your MongoDB ODBC data source in ODBC Data Source Administrator and select the Ignore Auth check box.
MicroStrategy retrieves the available MongoDB tables, and displays them in the Available tables pane.
Retrieve the MongoDB data that you want by using drag and drop.
The data can now be used in a MicroStrategy dashboard.
The following instructions show you how to connect Oracle on Windows to MongoDB. For further information about DG4ODBC, refer to our DG4ODBC for Windows tutorial.
%ORACLE_HOME%\hs\admin
directory. Create a copy of the file initdg4odbc.ora
. Name the new file initmongodb.ora
.
Note In these instructions, replace %ORACLE_HOME%
with the location of your Oracle HOME directory. For example, C:\oraclexe\app\oracle\product11円.2.0\server
.
HS_FDS_CONNECT_INFO = my_mongodb_odbc_dsn
Replace my_mongodb_odbc_dsn
with the name of a MongoDB ODBC driver data source that connects to the target MongoDB server. For example:
HS_FDS_CONNECT_INFO = "32-bit MongoDB System"
If your MongoDB server does not require you to supply a user name and a password, include IgnoreAuth=Yes
in the HS_FDS_CONNECT_INFO
parameter value. For example:
HS_FDS_CONNECT_INFO = "32-bit MongoDB System;IgnoreAuth=Yes"
#HS_FDS_TRACE_LEVEL = <trace_level>
%ORACLE_HOME%\network\admin\listener.ora
that creates a SID_NAME
for DG4ODBC. For example:
SID_LIST_LISTENER = (SID_LIST = (SID_DESC= (SID_NAME=mongodb) (ORACLE_HOME=%ORACLE_HOME%) (PROGRAM=dg4odbc) ) )
%ORACLE_HOME%\network\admin\tnsnames.ora
that specifies the SID_NAME
created in the previous step. For example:
MONGODB = (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = oracle_host)(PORT = 1521)) (CONNECT_DATA = (SID = mongodb) ) (HS = OK) )
Replace oracle_host
with the host name of your Oracle machine.
cd %ORACLE_HOME%\bin lsnrctl stop lsnrctl start
CREATE PUBLIC DATABASE LINK mongodblink
CONNECT TO "my_mongodb_user"
IDENTIFIED by "my_mongodb_password"
USING 'mongodb';
Or, if your MongoDB server does not require you to supply a user name and a password:
CREATE PUBLIC DATABASE LINK mongodblink USING 'mongodb';
SELECT * FROM "airline"@mongodblink
WHERE "_id" = '53e0e5d672342e8bb94c5e84';
If you do this, Oracle will preserve the specified capitalisation for object names.
%ORACLE_HOME%\hs\trace
directory. To enable DG4ODBC tracing, add the line HS_FDS_TRACE_LEVEL = DEBUG
to initmongodb.ora
and then start or restart the Oracle listener. If the trace
directory does not exist, create it.TEMP
directory. For example, C:\Windows\Temp\SQL.log
.These instructions show you how to import MongoDB data into an Oracle BI metadata repository. You can then reorganise the imported data into a business model for presentation to users who request business intelligence information by using the Oracle BI user interfaces.
admintool.exe
).The Create New Repository dialog box is displayed.
MongoDB
.airline
and press Return. Choose the Import selected button.The Connection Pool dialog box is displayed.
–Or–
If your MongoDB server does not require you to specify a user name and a password, enter some "dummy" values in the Connection Pool dialog box. Then edit your MongoDB ODBC data source in ODBC Data Source Administrator and select the Ignore Auth check box.
Viewing data, if successful, tells you that your connection is configured correctly.
PHPRunner enables you to rapidly create a PHP-based web front end for your MongoDB data.
MongoDB
.
The Database type screen is displayed.
The ODBC DSN screen is displayed.
The Datasource tables screen is displayed.
The Datasource tables screen is displayed.
_id
to '_id' AS ID
. The new query will look like this:
SELECT
'_id' AS ID,
UNIQUE_CARRIER,
AIRLINE_ID,
CARRIER,
TAIL_NUM,
FL_NUM
FROM
dbo.airline
Choose Next.
The Choose pages screen is displayed.
The following instructions show you how to analyse MongoDB data from your QlikView documents.
The Edit Script dialog box is displayed.
Note The Data tab contains a Force 32 Bit check box. This is provided for ODBC drivers where only a 32-bit version is available. You can leave this check box clear when using the MongoDB ODBC driver. (If Force 32 Bit is selected, you will still be able to use the MongoDB ODBC driver, as the driver distribution includes both a 32-bit and a 64-bit ODBC driver. However, system data sources configured in the 64-bit ODBC Data Source Administrator will not be visible.)
The Connect to Data Source dialog box is displayed.
If your ODBC Data Source is not listed, choose Show User DSNs.
The Create Select Statement dialog box is displayed.
If this is a new document, you will be prompted to save the document at this stage.
The Sheet Properties dialog box is displayed.
These instructions show you how to publish MongoDB data in a BusinessObjects repository and access that data from a BusinessOnbjects client tool. You need to install the Mongo ODBC driver on both the BusinessObjects Server and client tools machines. You need to configure a Mongo ODBC driver system data source with the same name on both these machines.
64-bit Windows The BusinessObjects Central Management Server is a 64-bit application, and so you need to configure the data source in the 64-bit ODBC Data Source Administrator. The BusinessObjects client tools are 32-bit applications, and so you need to configure the data source in the 32-bit ODBC Data Source Administrator.
The New Project dialog box is displayed.
MongoDB
in the space provided and then choose Finish.The New Relational Connection dialog box is displayed.
The New Relational Connection dialog box is displayed.
The New Data Foundation dialog box is displayed.
MongoDB
in the Resource Name box, and then choose Next.The New Business Layer dialog box is displayed.
MongoDB
in the Resource Name box, and then choose Next.dbo.airline._id
to 'dbo.airline._id'
. On the File menu, choose Save.The Publish Universe wizard starts.
Your Universe is now available to the various BusinessObjects reporting tools. The remaining steps in this section will use Web Intelligence Rich Client to illustrate this.
The Universe dialog box is displayed.
MongoDB.unx
and then choose Select.
Query Panel starts.
The MongoDB data is displayed in the Web Intelligence document.
These steps show you how to analyse and interpret your MongoDB data in Crystal Reports:
These steps show you how to use a linked server to work with MongoDB data, just as if you were working with data stored in a SQL Server table:
You need to log on with an account that is a member of the SQL Server sysadmin
fixed server role to create a linked server.
MongoDB
.SQL Server verifies the linked server by testing the connection.
PATH
environment variable. The MongoDB ODBC driver Setup program adds entries for the driver to the system PATH
. Restarting the instance makes these changes available to SQL Server, allowing it to load the MongoDB ODBC driver.A four part table name has the format:
server_name.[database_name].[schema_name].table_name.
The schema that the driver returns is dbo
. Include these identifiers in your SQL statements. For example:
SELECT * FROM MONGODB.faa.dbo.airline
The capitalisation of the table name must be the same as it is in MongoDB. For example, the following query is invalid:
SELECT * FROM MONGODB.faa.dbo.AIRLINE
To check the capitalisation of the MongoDB tables, run:
EXEC sp_tables_ex @table_server = 'MONGODB'
OPENQUERY
function. For example:
SELECT * FROM OPENQUERY(MONGODB, 'SELECT * FROM airline')
SQL Server sends pass-through queries as uninterpreted query strings to the MongoDB ODBC driver. This means that SQL Server does not apply any kind of logic to the query or try to estimate what that query will do.
If you apply a schema to your MongoDB data, you may need to do the following before SQL Server uses the schema:
You apply a schema by creating one in the Schema Editor and then configuring your data source to tell the MongoDB ODBC driver where the schema is stored.
An example usage case for using the Schema Editor with SQL Server is:
NVARCHAR(n)
, but n
is greater than the maximum length that SQL Server supports for this data type.4000
. You save the schema.These instructions show you how to use a linked server to work with MongoDB data, just as if you were working with data stored in a SQL Server table. The instructions assume that you have Microsoft Visual Studio and SQL Server Data Tools for Visual Studio installed.
You will be importing data from a MongoDB table into a SQL Server table, which you first need to create:
CREATE TABLE
airline (
_id varchar(255) NOT NULL,
UNIQUE_CARRIER varchar(255),
AIRLINE_ID int,
CARRIER varchar(255),
TAIL_NUM varchar(255),
FL_NUM int
)
Now create an SSIS job to populate the data:
ODBC Source is under the Other Sources list.
dbo.airline
.MongoDB Airline
.MongoDB Airline
, and then press Return.
SQL Server Destination is under the Other Destinations list.
MongoDB Airline
and then drag the blue arrow over to the SQL Server Destination.SQL Server Airline
.Update Last Load Date
.These instructions show you how to to connect Tableau Desktop to MongoDB and provide real time access to MongoDB, enabling you to analyse MongoDB data from your Tableau dashboard.
For example, to work with a single object, choose Single Table and then select the magnifying glass beneath. In the Select Table dialog box, choose Load. Choose the object that you want to work with, and then choose Select.
Your MongoDB data is now ready for use in Tableau.
The following instructions show you how to analyse MongoDB data from your Spotfire dashboard.
The Add Data Tables dialog box is displayed.
The Open Database dialog box is displayed.
The Configure Data Source Connection dialog box is displayed.
The Specify Tables and Columns dialog box is displayed.
Easysoft MongoDB
, and then choose OK twice.
Spotfire retrieves the MongoDB airline data and displays it using the default visualisation.