Connect to Oracle Eloqua Reporting Data in RapidMiner
This article shows how you can easily integrate the CData JDBC driver for Oracle Eloqua Reporting into your processes in RapidMiner. This article uses the CData JDBC Driver for Oracle Eloqua Reporting to transfer Oracle Eloqua Reporting data to a process in RapidMiner.
Connect to Oracle Eloqua Reporting in RapidMiner as a JDBC Data Source
You can follow the procedure below to establish a JDBC connection to Oracle Eloqua Reporting:
- Add a new database driver for Oracle Eloqua Reporting: Click Connections -> Manage Database Drivers.
- In the resulting wizard, click the Add button and enter a name for the connection.
- Enter the prefix for the JDBC URL:
jdbc:oracleeloquareporting:
- Enter the path to the cdata.jdbc.oracleeloquareporting.jar file, located in the lib subfolder of the installation directory.
- Enter the driver class:
cdata.jdbc.oracleeloquareporting.OracleEloquaReportingDriver
- Create a new Oracle Eloqua Reporting connection: Click Connections -> Manage Database Connections.
- Enter a name for your connection.
- For Database System, select the Oracle Eloqua Reporting driver you configured previously.
- Enter your connection string in the Host box.
Oracle Eloqua Reporting supports the following authentication methods:
- Basic authentication (User and Password)
- OAuth 2.0 code grant flow
- OAuth 2.0 password grant flow
Basic Authentication (User and Password)
To perform authentication with a user and password, specify these properties:
- AuthScheme: Basic.
- Company: The company name associated with your Oracle Eloqua Reporting account.
- User: Your login account name.
- Password: Your login password.
OAuth Authentication (Code Grant Flow)
To authenticate with the OAuth code grant flow, you must set AuthScheme to OAuth and create a custom OAuth application. For information about how to create a custom OAuth application, see the Help documentation.
Then set the following properties:
- InitiateOAuth: GETANDREFRESH. Used to automatically get and refresh the OAuthAccessToken.
- OAuthClientId: The client Id assigned when you registered your application.
- OAuthClientSecret: The client secret that was assigned when you registered your application.
- CallbackURL: The redirect URI that was defined when you registered your application.
When you connect, the driver opens Oracle Eloqua Reporting's OAuth endpoint in your default browser. Log in and grant permissions to the application. When the access token expires, the driver refreshes it automatically.
OAuth Authentication (Password Grant Flow)
With the OAuth password grant flow, you can use your OAuth application's credentials alongside your user credentials to authenticate without the need to grant permission manually via a browser prompt. You must create an OAuth app (see the Help documentation) to use this authentication method.
Set the following properties:
- AuthScheme: OAuthPassword
- Company: The company's unique identifier.
- User: Your login account name.
- Password: Your login password.
- OAuthClientId: The client Id assigned when you registered your custom OAuth application.
- OAuthClientSecret: The client secret assigned when you registered your custom OAuth application.
Built-in Connection String Designer
For assistance in constructing the JDBC URL, use the connection string designer built into the Oracle Eloqua Reporting JDBC Driver. Either double-click the JAR file or execute the jar file from the command-line.
java -jar cdata.jdbc.oracleeloquareporting.jar
Fill in the connection properties and copy the connection string to the clipboard.
A typical connection string is below:
AuthScheme=Basic;User=user;Password=password;Company=MyCompany;
- Enter your username and password if necessary.
You can now use your Oracle Eloqua Reporting connection with the various RapidMiner operators in your process. To retrieve Oracle Eloqua Reporting data, drag the Retrieve operator from the Operators view.
With the Retrieve operator selected, you can then define which table to retrieve in the Parameters view by clicking the folder icon next to the "repository entry." In the resulting Repository Browser, you can expand your connection node to select the desired example set.
Finally, wire the output to the Retrieve process to a result, and run the process to see the Oracle Eloqua Reporting data.