---
schema_version: "1"
id: 1458c4c9da7e5019428257b753b35d263dde6460e78fe318721270042b785f4b
title: Exasol
collection: tableau
version: current
locale: zh-cn
portal_url: https://docs.salesforce.com/tableau/current/zh-cn/pro/desktop/examples_exasolution.md
canonical_url: https://help.tableau.com/current/pro/desktop/zh-cn/examples_exasolution.htm
source_site: help.tableau.com
content_type: documentation
content_hash: 26e3ad62a14eb989d3fbe4fe102bfc955803071f8dc00f99ea349f60b576842d
description: Connect Tableau to data in the Exasol platform and set up the data source.
---
[跳转到主要内容](#main-content)

# Exasol

本文介绍如何将 Tableau 连接到 Exasol 平台中存储的数据并设置数据源。Tableau 可连接到 Exasol 版本 4.2 及更高版本。

## 开始之前

在开始之前，请收集以下连接信息：

- 要连接到的服务器的名称
- 用户名和密码
- （可选）要在每次 Tableau 连接时运行的初始 SQL 语句

### 需要驱动程序

此连接器需要驱动程序才能与数据库通信。如果计算机上未安装该驱动程序，Tableau 将在连接对话框中显示一条错误消息，其中包含指向[驱动程序下载](https://www.tableau.com/zh-cn/support/drivers)页面的链接，您可在该页面中找到驱动程序链接和安装说明。

## 进行连接并设置数据源

1. 启动 Tableau，并在“连接”下选择“Exasol”。有关数据连接的完整列表，请在“至服务器”下选择“更多”。然后执行以下操作：
    
    1. 输入要连接到的服务器的名称。
    2. 输入用户名和密码。
    3. （可选）选择“初始 SQL”以指定要在每次连接开始时（例如打开工作簿、刷新数据提取、登录到 Tableau Server 或发布到 Tableau Server 时）运行的 SQL 命令。有关详细信息，请参见[运行初始 SQL](https://help.tableau.com/current/pro/desktop/zh-cn/connect_basic_initialsql.htm)。
    4. 选择“登录”。
2. 在数据源页面上，执行下列操作：
    
    1. （可选）在页面顶部选择默认数据源名称，然后输入要在 Tableau 中使用的唯一数据源名称。例如，使用可帮助其他数据源用户推断出要连接的数据源的数据源命名约定。
    2. 在“架构”下拉列表中，选择架构或使用文本框按名称搜索架构。
    3. 在“表”下，选择表或使用文本框按名称搜索表。
    4. 将表拖到画布，然后选择工作表标签以开始分析。
        
        使用自定义 SQL 连接到特定查询，而非整个数据源。有关详细信息，请参见[连接到自定义 SQL 查询](https://help.tableau.com/current/pro/desktop/zh-cn/customsql.htm)。

## 登录到 Mac

如果在 Mac 上使用 Tableau Desktop，则在输入服务器名称进行连接时，请使用完全限定的域名（例如 mydb.test.ourdomain.lan）而不是相对域名（例如 mydb 或 mydb.test）。

或者，可以将域添加到 Mac 计算机的“搜索域”的列表中，以便在您连接时，只需要提供服务器名称。若要更新“搜索域”的列表，请转到“系统首选项”\>“网络”\>“高级”，然后打开“DNS”选项卡。

## 另请参见

- [设置数据源](https://help.tableau.com/current/pro/desktop/zh-cn/datasource_prepare.htm) – 向此数据源中添加更多数据，或者在分析数据之前准备数据。
- [构建图表和分析数据](https://help.tableau.com/current/pro/desktop/zh-cn/design_and_analyze.htm) – 开始数据分析。