VOOZH about

URL: https://www.cdata.com/kb/tech/eloquareporting-jdbc-netbeans.rst

โ‡ฑ Connect to Oracle Eloqua Reporting Data in NetBeans


Connect to Oracle Eloqua Reporting Data in NetBeans

๐Ÿ‘ Jerod Johnson
Jerod Johnson
Director, Technology Evangelism
Connect to Oracle Eloqua Reporting data in NetBeans with the data source configuration wizard.

The CData JDBC Driver for Oracle Eloqua Reporting integrates connectivity to live Oracle Eloqua Reporting data in IDEs that support JDBC. The JDBC standard enables you to use built-in data access wizards and other tools supporting rapid development. This article shows how to connect to Oracle Eloqua Reporting data in NetBeans. You will create a connection and load Oracle Eloqua Reporting data in the Table Editor.

Create a JDBC Data Source for Oracle Eloqua Reporting in NetBeans

To create the JDBC data source, expand the Database node in the Service window, right-click the Drivers node, and select New Driver. In the New Driver wizard that results, enter the following information:

  • Driver File(s): Click Add and, in the file explorer dialog that appears, select the cdata.jdbc.oracleeloquareporting.jar file. The driver JAR is located in the lib subfolder of the installation directory.
  • Driver Class: Click Find to search for the driver class inside the JAR. Then select cdata.jdbc.oracleeloquareporting.OracleEloquaReportingDriver from the menu.
  • Name: Enter the name for the driver.
๐Ÿ‘ The JDBC driver definition. (Salesforce is shown.)

Define Connection Parameters

Follow the steps below to define required connection properties:

  1. In the Service window, right-click the Database node and click New Connection.

  2. In the New Connection Wizard, enter the following connection properties:

    • Driver Name: In the menu, select the CData JDBC Driver for Oracle Eloqua Reporting.
    • User Name: Enter the username. This can also be defined in the JDBC URL.
    • Password: Enter the password. This can also be defined in the JDBC URL.
    • JDBC URL: Specify the JDBC URL.

      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.

      ๐Ÿ‘ Using the built-in connection string designer to generate a JDBC URL (Salesforce is shown.)

      A typical JDBC URL is the following:

      jdbc:oracleeloquareporting:AuthScheme=Basic;User=user;Password=password;Company=MyCompany;
๐Ÿ‘ Required connection properties defined in the JDBC URL. (Salesforce is shown.)

Query Oracle Eloqua Reporting Data

To connect to Oracle Eloqua Reporting data, right-click the connection in the Database node and click Connect. After the connection is established, you can expand it to discover schema information.

To load a table in the Data Views window, right-click the table and then click View Data..

๐Ÿ‘ The results of a query in NetBeans. (Salesforce is shown.)

Ready to get started?

Download a free trial of the Oracle Eloqua Reporting Driver to get started:

 Download Now

Learn more:

๐Ÿ‘ Oracle Eloqua Reporting Icon
Oracle Eloqua Reporting JDBC Driver

Rapidly create and deploy powerful Java applications that integrate with Oracle Eloqua Reporting.