OceanBase
English日本語简体中文
ドキュメントホーム
製品
エコシステム
リリース

データベース

OceanBase CloudOceanBaseデータベース

データベース

OceanBase CloudOceanBaseデータベース
OceanBase CloudOceanBaseデータベース

OceanBaseデータベース

  • エコシステム統合の概要
  • ORMフレームワーク
    • Java
      • SpringBootサンプルプログラム
      • SpringBatchサンプルプログラム
      • Spring JDBCサンプルプログラム
      • SpringDataJPAサンプルプログラム
      • Hibernateサンプルプログラム
      • MyBatisサンプルプログラム
    • Python
      • SQLAlchemyによるOceanBaseデータベース接続サンプルプログラム
      • peeweeによるOceanBaseデータベース接続サンプルプログラム
      • Tortoise ORM による OceanBase データベース接続サンプルプログラム
    • Go
      • GORMサンプルプログラム
    • Rust
      • SeaORM による OceanBase データベース接続サンプルプログラム
    • Ruby
      • ActiveRecordによるOceanBaseデータベース接続サンプルプログラム
      • Sequel で OceanBase データベースに接続するサンプルプログラム
      • Ruby on RailsによるOceanBaseデータベース接続サンプルプログラム
    • Node.js
      • SequelizeでOceanBaseデータベースに接続する
      • TypeORMを使用してOceanBaseデータベースに接続する
      • Prismaを使用してOceanBaseデータベースに接続する
      • Drizzle ORMを使用してOceanBaseデータベースに接続する
    • C#
      • Dapperを使用してOceanBaseデータベースに接続する
      • SqlSugarを使用してOceanBaseデータベースに接続する
      • FreeSQLを使用してOceanBaseデータベースに接続する
    • PHP
      • Yii 2.0 ORMサンプルプログラム
      • Laravel Eloquent ORMサンプルプログラム
  • データベースのバージョン管理
    • Liquibaseを使用したOceanBaseデータベースのバージョンの管理
    • Flywayを使用してOceanBaseデータベースを統合し、バージョン管理を実現する
  • データ統合
    • dbtを使用したOceanBaseデータの分析
    • Flink DirectLoadを使用したOceanBaseのダイレクトインポート
    • SeaTunnelを使用したOceanBaseデータの読み取りと同期
    • Maxwellを使用したOceanBaseデータの読み取り
    • Debeziumを使用してOceanBaseに接続し、データを取得する
    • Spark Catalogを使用してOceanBaseデータベースに接続する
    • Apache NiFiを使用してOceanBaseデータベースと統合する
  • SQL開発
    • WebLogicを使用してOceanBaseデータベースに接続する
    • DBeaverを使用してOceanBaseデータベースに接続する
    • Navicatを使用してOceanBaseデータベースに接続する
    • DataGripでOceanBaseデータベースに接続する
    • TablePlusでOceanBaseデータベースに接続する
    • DMSを使用したOceanBaseデータベースの管理
  • 編成とスケジューリング
    • AirflowとOceanBaseデータベースの連携
    • PowerJobとOceanBaseデータベースの連携
    • DolphinSchedulerにOceanBaseデータソースを設定する
    • LinkisとOceanBaseデータベースの統合
  • 可視化ツール
    • SupersetとOceanBaseを使用したデータ分析
    • Power BIでOceanBaseに接続してデータを取得する
    • Quick BIでOceanBaseに接続してデータを取得する
    • Bytebaseを使用したOceanBaseインスタンスの管理
  • データベース管理
    • NineDataを使用したOceanBaseデータソースの管理
    • Bytebaseを使用したOceanBaseインスタンスの管理
  • AI
    • OpenAI
    • Qwen
    • OceanBaseデータベースとLangChainの統合
    • OceanBaseデータベースのベクトル検索機能とLlamaIndexの連携
    • OceanBaseデータベースのベクトル検索機能とDifyの連携
    • OceanBaseデータベースとn8nの連携
    • OceanBase MCP ServerとTraeの連携
    • OceanBaseデータベースとSpring AI Alibabaの連携
    • OceanBase MCP ServerとClineの連携
    • OceanBase MCP ServerとCursorの連携
    • OceanBase MCP ServerとContinueの連携
    • Google GenAI Toolboxを使用して独自のOceanBase MCP Serverを構築する
    • OceanBaseデータベースとCamelAIの連携
    • OceanBase VectorとFirecrawlの連携
    • OceanBase VectorとHugging Faceの連携
    • OceanBase VectorとOllamaの連携
    • OceanBaseデータベースとGoogle Geminiの連携
    • OceanBase VectorとCloudflare Workers AIの連携
    • OceanBase VectorとJina AIの連携
    • OceanBase MCP ServerとAugment Codeの連携
    • OceanBase MCP ServerとClaude Codeの連携
    • OceanBase MCP ServerとKiroの連携

PDF をダウンロード

このページには現在中国語/日本語版がなく、英語版を表示しています。
ドキュメントフィードバック
  1. ドキュメントセンター
  2. OceanBaseデータベース
  3. master

Connect to OceanBase Database in Excel and retrieve data

最終更新:2026-09-04 07:40:45

Overview
Version compatibility
Prerequisites
Step 1: Obtain the database connection string
Step 2: Configure the ODBC DSN
Step 3: Connect to OceanBase Database
FAQ
References

Overview

Excel is a widely used spreadsheet and data visualization tool. You can directly connect to OceanBase Database through the OceanBase ODBC driver to efficiently query and analyze data.

This topic describes how to connect to OceanBase Database in WPS Office Excel and Microsoft Excel by using an ODBC data source.

Version compatibility

  • OceanBase Database version: ≥ V4.2.5 BP2.

Prerequisites

Before you connect to OceanBase Database in Excel, make sure that:

  • You have installed Excel (WPS Office Excel or Microsoft Excel).
  • You have installed the OceanBase ODBC driver (version ≥ 2.0.9.5hotfix). The driver is not publicly available. Contact OceanBase Technical Support for more information.
  • You have deployed OceanBase Database and created an Oracle or MySQL mode user tenant.## Procedure

Step 1: Obtain the database connection string

Obtain the connection string from the OceanBase Database deployment engineer. For example:

obclient -h$host -P$port -u$user_name -p$password -D$database_name

Parameter description:

  • $host: the connection IP address. For an ODP connection, use the ODP IP address. For a direct connection, use the OBServer IP address.
  • $port: the connection port. For an ODP connection, the default value is 2883. For a direct connection, the default value is 2881.
  • $database_name: the database name.

    Notice

    The user who connects to the tenant must have the CREATE, INSERT, DROP, and SELECT privileges on the database.

  • $user_name: the connection account. For an ODP connection, the format is User@Tenant#Cluster or Cluster:Tenant:User. For a direct connection, the format is User@Tenant.
  • $password: the account password.Here is an example:
obclient -h$host -P2881 -u$user_name -p$password -D$database_name

Step 2: Configure the ODBC DSN

This topic uses an OceanBase Database user tenant in Oracle mode as an example to configure the ODBC DSN. The procedure for an OceanBase Database user tenant in MySQL mode is similar.

  1. Open the system ODBC Data Source Administrator.
  2. In the System DSN or User DSN tab, click Add.
  3. Select the OceanBase ODBC 2.0 Driver driver.
  4. Configure the connection parameters:
    • Data Source Name: enter the DSN name (for example, OBORACLE).
    • Description: optional description.
    • Server name: the OceanBase Database server address (corresponding to $host).
    • Port: the port number (corresponding to $port).
    • Database: the database name (corresponding to $database_name).
    • User name: the username (corresponding to $user_name).
    • Password: the password (corresponding to $password).

Step 3: Connect to OceanBase Database

WPS Office Excel

  1. Open WPS Office Excel.
  2. Navigate to Data → Get Data → Import Data → ODBC DSN.
  3. In the data source selection dialog box, select the configured ODBC DSN (for example, OBORACLE).
  4. Select the tables and fields to import.
  5. In the data filtering and sorting step, you can directly enter an SQL statement to query.
  6. Preview and complete the data import.

Microsoft Excel

  1. Open Microsoft Excel.

  2. Navigate to Data → Get Data → From Other Sources → From ODBC.

  3. Select the configured ODBC DSN (for example, OBORACLE).

  4. In the advanced options, you can directly enter an SQL statement, for example:

    SELECT * FROM T1;
    
  5. Click OK and load the data.

FAQ

How to fix garbled characters when connecting to OceanBase Database? Cause: Outdated ODBC driver version Solution: Upgrade to OceanBase ODBC 2.0.9.5 hotfix or later.

References

  • OceanBase ODBC documentation

次のトピック

エコシステム統合の概要
次へ
このページの内容
Overview
Version compatibility
Prerequisites
Step 1: Obtain the database connection string
Step 2: Configure the ODBC DSN
Step 3: Connect to OceanBase Database
FAQ
References