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

データベース

OceanBase CloudOceanBaseデータベース

ツール

OceanBase Cloud PlatformOceanBase移行サービス(OMS)OceanBaseデベロッパーセンターOceanBase Admin Tool

データベース

OceanBase CloudOceanBaseデータベース

ツール

OceanBase Cloud PlatformOceanBase移行サービス(OMS)OceanBaseデベロッパーセンターOceanBase Admin Tool
OceanBase CloudOceanBaseデータベース

OceanBaseデベロッパーセンター

V4.5.1
  • ドキュメント概要
  • 製品概要
    • OceanBase開発者センターとは
    • 機能と特徴
    • 製品アーキテクチャ
    • 使用上の制限
    • ユーザーインターフェース
  • クイックスタート
    • デスクトップ版ODC
      • クイックスタート
      • デスクトップ版ODCのインストール
      • デスクトップ版ODCの使用
    • Web版ODC
      • クイックスタート概要
      • Web版ODCのデプロイ
      • Web版ODCの使用
  • データソース管理
    • データソースの作成
    • データソースとプロジェクトの連携
    • データベースの運用・保守
      • セッション管理
      • グローバル変数の管理
      • ごみ箱の管理
  • SQL開発
    • SQLの編集と実行
    • PLコンパイルとデバッグ
    • コマンドラインウィンドウ
    • 結果の編集とエクスポート
    • 実行分析
    • テストデータの生成
    • システム設定
    • スマートSQL開発
    • 主な機能の概要
    • データベースオブジェクト
      • テーブルオブジェクト
        • 概要
        • テーブルの作成
      • ビューオブジェクト
        • 概要
        • ビューの作成
        • ビューの管理
      • マテリアライズドビューオブジェクト
        • 概要
        • マテリアライズドビューの作成
        • マテリアライズドビューの管理
      • 関数オブジェクト
        • 概要
        • 関数の作成
        • 関数の管理
      • ストアドプロシージャオブジェクト
        • 概要
        • ストアドプロシージャの作成
        • ストアドプロシージャの管理
      • シーケンスオブジェクト
        • 概要
        • シーケンスの作成
        • シーケンスの管理
      • プログラムパッケージオブジェクト
        • 概要
        • プログラムパッケージの作成
        • プログラムパッケージの管理
      • トリガーオブジェクト
        • 概要
        • トリガーの作成
        • トリガーの管理
      • タイプオブジェクト
        • 概要
        • タイプの作成
        • タイプの管理
      • シノニムオブジェクト
        • 概要
        • シノニムの作成
        • シノニムの管理
      • 外部リソースオブジェクト
        • 外部リソース
        • 外部リソースの作成
        • 外部リソースの管理
  • 変更リスク管理
    • プロジェクト協働管理
      • プロジェクト管理
      • データベース管理
      • 論理データベースの管理
      • オブジェクトストレージの追加
      • プロジェクトメンバー管理
      • データマスキング
      • メッセージ通知管理
        • メッセージ通知の概要
        • プッシュ履歴の表示
        • プッシュチャネルの管理
          • プッシュチャネルの作成
          • プッシュチャネルの表示・編集・削除
          • カスタムチャネルの使用例
        • プッシュルールの管理
    • ユーザー権限管理
      • ユーザーとロール
      • 自動権限付与
      • プロジェクト権限の申請
      • データベース権限の申請
      • テーブル/ビュー権限申請
    • 安全規範
      • 環境設定
        • SQLチェック仕様
        • SQLウィンドウ仕様
      • リスク管理
        • リスク管理の概要
        • リスク識別ルールの管理
        • 承認フローの管理
      • データマスキングアルゴリズム
      • 操作監査
  • チケット管理
    • 構造とデータのインポート
    • スキーマとデータのエクスポート
    • データベース変更管理
    • 論理データベースの変更管理
    • マルチデータベース変更管理
    • ロックフリースキーマ変更
    • シャドウテーブルの同期
    • 構造比較
  • ジョブスケジューリング
    • データアーカイブ
    • データのクリーンアップ
    • パーティション計画の管理
      • パーティション計画の管理
      • パーティションポリシーの設定
      • パーティションポリシーの使用例
    • SQLスケジュールタスク
  • システム統合
    • ログイン連携
    • 承認連携
    • SQLレビューの統合
    • 踏み台ホストの統合
    • 大規模モデルの統合
  • デプロイガイド
    • デプロイの概要
    • デプロイ前の準備
    • シングルノードODCのデプロイ
    • 高可用性ODCのデプロイ
    • デプロイの検証
  • アップグレードガイド
    • アップグレードの概要
    • アップグレード前の準備
    • シングルノードODCのアップグレード
    • 高可用性ODCのアップグレード
    • アップグレード検証
    • アップグレード失敗時のロールバック
  • ベストプラクティス
    • SQL開発でよく使われるコツ
    • ODCチームスペースの素晴らしい世界へようこそ
    • OceanBase APのリアルタイムSQL診断機能の解説
    • OceanBase履歴データソリューション
    • ODC SQLチェック仕様による高リスク操作の自動識別
    • ODCとの企業レベルアカウントシステムの迅速な連携
    • ODCによるデータベース・テーブルのシャーディング管理と変更
    • データマスキングの管理と運用の実践
    • エンタープライズレベルの管理・協働:データベースの変更を守るために
  • トラブルシューティング
    • ODCのトラブルシューティングの基本手順
    • 情報収集
      • 実行時環境とバージョン情報の確認
      • Web版ODCのログを確認する
      • ODCデスクトップ版のログを表示する
      • ODC関連のフルリンクログを表示する
      • ODC MetaDBデータの確認
      • OceanBase V4.xのインデックス状態を照会する
      • OceanBase V1.4.x ~ V3.2.x のインデックス状態の確認
      • JVMランタイム情報の収集
      • tcpdumpを使用したパケットキャプチャ
    • よくある質問
      • デスクトップ版ODCのインストールに関する質問
      • Web版ODCのデプロイおよび起動に関する質問
      • 接続情報に関する質問
      • コマンドラインツール関連の質問
      • DDLステートメントの表示に関する質問
  • リリースノート
    • V4.5
      • ODC V4.5.0
    • V4.4
      • ODC V4.4.0
      • ODC V4.4.1
      • ODC V4.4.2
      • ODC V4.4.3
    • V4.3
      • ODC V4.3.4
      • ODC V4.3.3
      • ODC V4.3.2
      • ODC V4.3.1
      • ODC V4.3.0
    • V4.2
      • ODC V4.2.4
      • ODC V4.2.3
      • ODC V4.2.2
      • ODC V4.2.1
      • ODC V4.2.0
    • V4.1
      • ODC V4.1.3
      • ODC V4.1.2
      • ODC V4.1.1
      • ODC V4.1.0
    • V4.0
      • ODC V4.0.2
      • ODC V4.0.0
    • V3.4
      • ODC V3.4.0
    • V3.3
      • ODC V3.3.3
      • ODC V3.3.2
      • ODC V3.3.1
      • ODC V3.3.0
    • V3.2
      • ODC V3.2.3
      • ODC V3.2.2
      • ODC V3.2.1
      • ODC V3.2.0

PDF をダウンロード

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

Execution analysis

最終更新:2026-10-09 03:23:45

Execution plan
Execution details
Accessing the execution profile
Execution analysis
Execution plan
End-to-end trace diagnostics
DB time

The OceanBase Developer Center (ODC) SQL window provides a user interface for processing data. Within this window, you can evaluate SQL statements, review execution details, and analyze the full execution timeline. This topic uses the employee table as an example to demonstrate how to evaluate SQL queries.

Execution plan

  1. In the SQL window, enter the SQL statement to query the data in the employee table.

     SELECT `emp_no`, `birthday`, `name`, `time`, `test_col`, `status`, `age`, `state` FROM `employee`;
    
  2. As shown in the image above, select the SQL statement and click the Execution Plan icon. This allows you to estimate the execution data before running the SQL statement (EXPLAINPLAN). Note that the estimated execution data may differ slightly from the actual results after execution.

  3. On the Plan Details page, click Text View to switch to a formatted display of the plan.

Execution details

Note

  • For OceanBase versions prior to V4.2.4, when executing SQL statements, you can view basic execution details, time statistics, I/O statistics, SQL execution statements, plan statistics, and outlines through the Execution Details tab on the results page.
  • For OceanBase V4.2.4 and later, but before OceanBase V4.3.0, or OceanBase V4.3.3.1 and later, you can use the Execution Profile to monitor SQL execution in real-time when executing queries/inserts/updates/deletes/retrieving data from the database. The Execution Profile helps you quickly view execution details and identify performance bottlenecks.

Accessing the execution profile

  • Option 1: While the SQL statement is executing in the SQL window, click View Execution Profile in the Logs tab.

    Notice

    If the SQL statement execution time is less than one second, the option to view the execution profile may not be available in the Logs tab.

  • Option 2: After the SQL statement has executed, click the Execution Profile icon in the results.

  • Option 3: After the SQL statement has executed, click the TRACE ID in the Execution Records tab to access the execution profile.

Execution analysis

The Execution Details, or Execution Profile, provides a visual representation and data collection for SQL execution plans. It allows real-time monitoring of operator execution status, time details, I/O, and runtime data, while summarizing and ranking the overall execution time.

Using the execution profile, you can:

  • View the actual execution plan of OceanBase in a graphical format, making it easier to understand the execution sequence and relationships of operators.

  • Quickly identify execution bottlenecks using execution overviews, real-time I/O statistics, and the top 5 time-consuming operations. ODC sorts these based on CPU time.

  • Monitor the execution status, timing, and output rows of operators in real-time. By clicking on an operator node, you can access operator attributes, time details, and I/O and other runtime data on the right side of the screen.

  • Analyze single-node and distributed execution plans. Parallel operators can be sorted by DB time, I/O memory, and output rows to quickly locate data skew.

SQL execution overview

Type
Description
SQL Execution Overview
  • CPU time: Total CPU time for all operators.
  • I/O wait time: Total I/O wait time for all operators.
  • DB time: Total time taken to execute the plan.
  • Queue time: Time spent waiting in the queue.
  • Plan type: Type of execution plan, which could be Local (LOCAL), Remote (REMOTE), or Distributed (DISTRIBUTED).
  • Is hit plan cache: Indicates whether the plan cache was hit.
Operator Execution Overview
  • CPU time: Total CPU time consumed by the current operator. For parallel operators, this is the aggregate time for all threads.
  • I/O wait time: I/O wait time for the current operator, including disk I/O and network wait time. For parallel operators, this is the aggregate time for all threads.
  • Parallel: The degree of parallelism, indicating the number of threads running in parallel for the current operator.
  • Skewness: Skewness indicates the disparity in output time among parallel threads. A higher value suggests that one node or thread may be slowing down the entire operator.
  • Process name: Thread number, which can be used to locate the corresponding node's IP and port.
  • Change time: The time taken by the current thread to output rows, calculated as the time difference between the first and last row output.

I/O statistics

Type
Description
Operator I/O Statistics
  • Output rows: Number of rows output.
  • Start times: Number of times the operator has been rescanned. For example, the right child node of a Nested Loop Join operator may be scanned multiple times.
  • Max memory: Maximum workarea memory used by the operator during runtime.
  • Max disk: Maximum disk space used by the operator during runtime.

Node attributes

Node attributes consist of the output information and runtime data (other statistics) of an operator.

For more details on node output information, refer to the official OceanBase documentation, for example, Table Scan operator's attributes.

Runtime data vary across different operators and represent important monitoring metrics. For more information on these metrics, refer to the V$SQL_MONITOR_STATNAME view.

Execution plan

Unlike the Execution Plan in the SQL window, the Execution Profile displays the actual execution plan, including Actual Rows and Actual Costs. ODC retrieves the current plan using the DBMS_XPLAN package.

You can also click Text View in the top right corner to switch views and access more detailed plan information, facilitating further SQL optimization.

End-to-end trace diagnostics

For OceanBase versions above 4.2.0 (with OBProxy version 4.2.0 or later if connected via OBProxy), ODC supports viewing the information on end-to-end trace diagnostics for SQL. For more details, refer to OceanBase End-to-end Tracing Overview.

ODC offers both Trace View and Table View visualizations for OceanBase's end-to-end trace diagnostic data.

The Trace View shows the overall SQL execution timeline, with support for node expansion and collapse, as well as search highlighting. Hovering over the timeline allows you to view the execution node, start and end times, and detailed data.

Clicking Table View allows you to switch views, enabling filtering and sorting of spans across various dimensions.

ODC also supports exporting end-to-end trace diagnostic data in JSON format, compatible with the OpenTracing protocol. You can import this data into Jaeger for further analysis.

DB time

In the Execution Records tab, hover over the tooltip icon next to DB Time to view end-to-end timing information for SQL execution. This helps verify if the time spent in each stage matches the actual execution.

次のトピック

ドキュメント概要
次へ
このページの内容
Execution plan
Execution details
Accessing the execution profile
Execution analysis
Execution plan
End-to-end trace diagnostics
DB time