Skip to main content

Self-Service Integration for External Databases

Overview

Self-service integration for external databases is a feature provided by Guandata that supports connecting to cloud vendor databases, domestic databases, and other databases outside the BI standard database scope. It helps accelerate database POC work for presales scenarios and domestic database integration during implementation, improving flexibility and shortening onboarding time.

Prerequisites

Before configuring external database integration, gather the following information:

  • Certified driver JAR and available Driver Class: obtain the corresponding Guandata-certified JDBC driver JAR and Driver Class name
  • Database dialect standard: determine whether the table-list retrieval logic matches the corresponding dialect database
  • Database connection information: the IP address and port of the database server
  • Database information: the database name
  • Authentication information: the database username and password
  • Connection method: the database must support JDBC connectivity

Steps

Configure the Driver

  1. Go to Admin Center > System Settings > General Settings > Drivers and Connectors.

  2. Click Driver Management > New Driver, enter the driver name, and click Save.

  3. Open the newly created driver, upload the Guandata-certified driver JAR and available Driver Class, and click Apply.

Note

The system automatically checks whether the uploaded driver is a Guandata-certified version. If an uncertified driver is uploaded, the system displays The custom driver JAR is invalid. Please use a signed driver package. In that case, contact Guandata technical support.

Configure the Database Connector

  1. On the Drivers and Connectors Management page, click Database Connector Management > New Database Connector.

  2. Configure the connector parameters.

    |300

Configuration ItemDescription
Display IconSets the custom image icon used for the data connection and shown when creating Data Accounts or database datasets.
Connector NameCan be defined according to user preference. Special characters are not supported.
Default Dialect SupportSupported dialects currently include MySQL, Oracle, and POSTGRES. For validated databases, see Dialect Support.
Table List Retrieval SQLDifferent databases may differ from the dialect database in how table lists are retrieved. This option allows users to define the retrieval SQL and the column index containing the table name. For validated databases, see Table List Retrieval SQL. If the retrieval SQL includes a schema parameter, the schema option is displayed dynamically during Data Account creation for user input.
Retrieve Table CommentsSQL used to query comments for all tables in the database.
Retrieve Field CommentsSQL used to query comments for all fields or columns in a table.
Username/Password Display SwitchUsed for authentication methods in which username and password are already embedded in the URL, such as Azure DataBricks, and traditional parameter input is not supported.
Default DriverSelects the default JDBC driver.
Connection Test SQLDefines the test query used to validate whether the database connection is available.

Create a Data Account

  1. After the driver and connector are configured, go to Data Preparation > Data Accounts and click New Data Account.

  2. On the Select Connector page, click the connector you just created.

  3. Enter the database Username, Password, JDBC URL, and Custom Driver. For custom accounts, because non-JDBC URL parameter formats vary by database, only JDBC URL connection mode is currently supported.

Connect the Database

Go to Data Preparation > Datasets, click New Dataset > Database, and follow the Standard Database Connection Guide to connect the external database.

|300

Validated Supported Databases

Dialect Support

DialectValidated Supported Databases
MySQLOceanBase (MySQL), Azure DataBricks, Yunqi LakeHouse, ByteHouse
OracleKingbase KES, OceanBase (Oracle), Aloudata Air Engine
POSTGRESGaussDB (DWS), AWS Athena, CnosDB

Table List Retrieval SQL

No.DatabaseDriver DownloadTable List Retrieval SQL
1Kingbase KESOfficial kingbaseES download center{"sql": "SHOW TABLES from |database|", "tableNameIdx": 1}
2Azure DataBricksOfficial download{"sql": "SHOW TABLES", "tableNameIdx": 2} which queries the default schema by default
3Azure DataBricks with schema parameter-{"sql": "SHOW TABLES IN |schema|", "tableNameIdx": 2} and a schema field is added during account creation
4Yunqi LakeHouseOfficial downloadIf schema is specified in the JDBC URL, for example schema=public, use {"sql":"SHOW TABLES", "tableNameIdx": 2}
5Yunqi LakeHouse without schema in JDBC URL-{"sql": "SHOW TABLES IN |schema|", "tableNameIdx": 2} and a schema field is added during account creation
6OceanBase (MySQL)Official download{"sql": "SHOW TABLES", "tableNameIdx": 1}
7OceanBase (Oracle)Official download{"sql": "SHOW TABLES from |database|", "tableNameIdx": 1}
8Aloudata Air EngineContact official support{"sql": "SHOW TABLES IN |schema|", "tableNameIdx": 1}
9CnosDBContact official support{"sql": "SHOW TABLES", "tableNameIdx": 2, "withSchemaPrepend": true, "schemaOrDatabaseNameIdx": 1}
10GaussDB-DWSContact official support{"sql": "SHOW TABLES from |database|", "tableNameIdx": 1}
11AWS AthenaOfficial download{"sql": "select \"table_name\" from \"information_schema\".\"tables\" where (lower(cast(\"table_catalog\" as varchar)) = |catalog| and lower(cast(\"table_schema\" as varchar)) = |database|) order by \"TABLE_NAME\"", "tableNameIdx": 1}
12ByteHouse Cloud Data WarehouseOfficial download{"sql": "SHOW TABLES from |database|", "tableNameIdx": 1}. Note: ByteHouse enterprise edition cannot be connected through this cloud data warehouse method and should use ClickHouse connection directly.