Table of Contents

Search

  1. Preface
  2. Introduction to PowerExchange for Google BigQuery
  3. PowerExchange for Google BigQuery Configuration
  4. Google BigQuery Sources and Targets
  5. Google BigQuery Mappings
  6. Google BigQuery Sessions
  7. Google BigQuery as CDC Target
  8. Google BigQuery Pushdown Optimization
  9. Appendix A: Google BigQuery Data Type Reference

PowerExchange for Google BigQuery User Guide for PowerCenter

PowerExchange for Google BigQuery User Guide for PowerCenter

Configuring the Google BigQuery ODBC Driver on Linux

Configuring the Google BigQuery ODBC Driver on Linux

To establish an ODBC connection to connect to Google BigQuery on Linux, you must download the Google BigQuery ODBC (64-bit) driver on the Linux machine that runs the PowerCenter Integration Service and configure the ODBC connection.
  1. Install the driver on the machine where the PowerCenter Integration Service runs.
  2. Create the
    odbc.ini
    file and add the following properties:
    [ODBC Data Sources] Sample DSN=Simba ODBC Driver for Google BigQuery 64-bit Description=<DSN Description> [Sample DSN] Driver=<Driver installation directory>/simba/googlebigqueryodbc/lib/64/libgooglebigqueryodbc_sb64.so Catalog=<project_id> DefaultDataset=<Dataset name> SQLDialect=<1> OAuthMechanism=0 Email=<Client Email ID of the Google service account> KeyFilePath=<.p12 or JSON key file path>
    For example,
    [ODBC Data Sources] GBQ_ODBC=Simba ODBC Driver for Google BigQuery 64-bit [GBQ_ODBC] Driver=/export/googlebigqueryodbc/lib/64/libgooglebigqueryodbc_sb64.so Catalog=api-project-1243343 DefaultDataset=QATEST SQLDialect=1 OAuthMechanism=0 Email=simbaaccount@api-project-1243343.iam.gserviceaccount.com KeyFilePath=/export/Simba_GBQ_ODBC/API Project-c993e990af5.json
    The following table describes the properties in the
    odbc.ini
    file:
    Property
    Description
    ODBC Data Sources
    Name of the data source.
    Description
    Description of the data source.
    Driver
    Full path of the Simba ODBC Driver for Google BigQuery library file.
    Catalog
    Name of the Google BigQuery project associated with your billing account that the Simba ODBC Driver for Google BigQuery queries against.
    SQLDialect
    The SQL dialect used to run queries against the Google BigQuery tables using the DSN.
    To perform pushdown optimization, specify the value of
    SQLDialect
    property as 1.
    Simba ODBC Driver for Google BigQuery does not support Legacy SQL.
    DefaultDataset
    Specify a dataset name in Google BigQuery that the Simba ODBC driver queries by default.
    OAuthMechanism
    The OAuth 2.0 authentication mechanism used to authenticate the driver.
    To authenticate the driver through a Google service account, specify the value of
    OAuthMechanism
    property as
    0
    .
    Specify the
    Email
    To authenticate the driver through a Google user account, specify the value of
    OAuthMechanism
    property as
    1
    .
    Obtain a
    Refresh Token
    based on your Google user account and set the following property in the DSN:
    Auth_RefreshToken=<Refresh token value>
    If you already have your refresh token, then you can set the following property in the DSN:
    RefreshToken=<Refresh token value>
    Email
    Applicable when you set the value of
    OAuthMechanism
    property as
    0
    .
    Specify the value of the
    Email
    property to the Google service account email ID.
    KeyFilePath
    Applicable when you set the value of
    OAuthMechanism
    property as
    0
    .
    Enter the path to the .p12 or JSON key file that is used to authenticate the Google service account.
    RefreshToken
    Applicable when you set the value of
    OAuthMechanism
    property as
    1
    .
    Specify the refresh token associated with the Google user account.
  3. Set the ODBCINI environment variable to point to the directory that contains the
    odbc.ini
    file. For example:
    setenv ODBCINI <$ODBC_HOME>/odbc.ini
  4. Restart the PowerCenter Integration Service.

0 COMMENTS

We’d like to hear from you!