JDBC Driver for Marketo

Build 26.0.9655

Establishing a Connection

Creating a JDBC Data Source

You can create a JDBC data source to connect from your Java application, based on CData JDBC Driver for Marketo.

Follow these steps:

  1. Add the driver JAR file to the classpath. The JAR file is located in the installation directory's lib subfolder. Ensure that the .lic file is located in the same folder as the JAR file.
  2. Provide the driver class. For example:
    cdata.jdbc.marketo.MarketoDriver
  3. Provide the JDBC URL. For example:
    jdbc:marketo:URL=https://MyMarketoURL.mktorest.com/;OAuthClientId=MyOAuthClientId;OAuthClientSecret=MyOAuthClientSecret;

    Or, if there is a conflict in your application between drivers using the same URL format, use this form to ensure that you are using the CData driver:

    jdbc:cdata:marketo:URL=https://MyMarketoURL.mktorest.com/;OAuthClientId=MyOAuthClientId;OAuthClientSecret=MyOAuthClientSecret;

    Ensure that the URL starts with either jdbc:marketo: or jdbc:cdata:marketo:. The URL can include any of the connection properties in name-value pairs separated with semicolons.

Connecting to Marketo

The following connection options are required when connecting to Marketo.

  • URL: The URL of the REST API Service. You can locate this in Admin -> Integration -> Web Services -> REST API. Example values: https://123-abc-456.mktorest.com/ or https://123-abc-456.mktorest.com/rest.
  • OAuthClientId: The OAuth Client ID associated with your custom service.
  • OAuthClientSecret: The OAuth Client Secret associated with your custom service.
For additional connection options, see Connection String Options.

Obtaining OAuth Credentials

Before obtaining OAuth credentials you need to create a custom service if you do not already have one. To do so follow the instructions provided in Creating a Custom Service.

To obtain OAuth credentials for a custom service:

  1. Go to the Admin tab.
  2. Click on the LaunchPoint option.
  3. Select the service and click on View Details.
  4. Marketo displays a window that shows the authentication credentials. Use "Client Id" as the value for OAuthClientId and "Client Secret" for OAuthClientSecret.

Copyright (c) 2026 CData Software, Inc. - All rights reserved.
Build 26.0.9655