---
title: "information_schema.PROCESSLIST - OceanBase 数据库 V4.2.5 | OceanBase 文档中心"
description: information_schema.PROCESSLIST 说明 该视图从 V1.4 版本开始引入。 功能描述 提供运行中的线程信息。 字段说明 字段名称 类型 是否可以为 NULL 描述 ID bigint(20) unsigned NO 连接标识符 对于 V4.2.x 版本： V4.2.5 BP3 Hotfix…
---
切换语言

- 中文站 - 简体中文
- International - English
- 日本站 - 日本語

文档反馈![](https://mdn.alipayobjects.com/huamei_22khvb/afts/img/A*P8CuR4UJ_FkAAAAAAAAAAAAADiGDAQ/original) OceanBase 数据库分布式版 - V 4.2.5 LTS

# information_schema.PROCESSLIST

更新时间：2026-07-15 20:42:47

[编辑](https://github.com/oceanbase/oceanbase-doc/edit/V4.2.5/zh-CN/700.reference/700.system-views/400.system-view-of-mysql-mode/200.dictionary-view-of-mysql-mode/1600.information_schema-processlist-of-mysql-mode.md)

#### 说明

该视图从 V1.4 版本开始引入。

## 功能描述

提供运行中的线程信息。

## 字段说明

| **字段名称** | **类型** | **是否可以为 NULL** | **描述** |
| --- | --- | --- | --- |
| ID | bigint(20) unsigned | NO | 连接标识符   对于 V4.2.x 版本：   - V4.2.5 BP3 Hotfix5 之前版本：     在所有连接方式（直连模式/ODP 模式）下，该字段均表示 Server Session ID。 - V4.2.5 BP3 Hotfix5 及之后版本：      - 在直连模式下：         该字段表示 Server Session ID。     - 在 ODP 模式下：        - 当 ODP 中的配置项 `client_session_id_version = 2` 时，该字段表示 Client Session ID。       - 当 `client_session_id_version = 1` 时，该字段表示 Server Session ID。 |
| USER | varchar(32) | NO | 用户名 |
| HOST | varchar(128) | NO | 客户端主机名称 |
| DB | varchar(128) | YES | 数据库名称 |
| COMMAND | varchar(4096) | NO | 线程执行的命令类型 |
| TIME | bigint(20) | NO | 线程在当前状态的持续时间，单位为秒 |
| STATE | varchar(128) | YES | 表示线程正在做的任务标识 |
| INFO | varchar(262143) | YES | 当前线程正在执行的语句 |

## 查询示例

用户租户查询所有运行中的线程信息。

```shell
obclient [oceanbase]> SELECT * FROM information_schema.PROCESSLIST;

```

查询结果如下：

```shell
+------------+------+----------------------+-----------+---------+------+--------+----------------------------------------------+
| ID         | USER | HOST                 | DB        | COMMAND | TIME | STATE  | INFO                                         |
+------------+------+----------------------+-----------+---------+------+--------+----------------------------------------------+
| 3221741020 | root | 100.xx.xxx.xxx:13803 | NULL      | Sleep   |  864 | SLEEP  | NULL                                         |
| 3221633480 | SYS  | 100.xx.xxx.xxx:59160 | SYS       | Sleep   | 1150 | SLEEP  | NULL                                         |
| 3221660128 | root | 100.xx.xxx.xxx:44492 | oceanbase | Sleep   |   55 | SLEEP  | NULL                                         |
| 3221688871 | root | 100.xx.xxx.xxx:49218 | infotest  | Query   |    0 | ACTIVE | SELECT * FROM information_schema.PROCESSLIST |
+------------+------+----------------------+-----------+---------+------+--------+----------------------------------------------+
4 rows in set

```

## 相关视图或文档

- [GV$OB_PROCESSLIST](https://www.oceanbase.com/docs/common-oceanbase-database-cn-1000000001501580)
 - [查看租户会话](https://www.oceanbase.com/docs/common-oceanbase-database-cn-1000000001499651)

 上一篇 下一篇 ![有帮助](https://gw.alipayobjects.com/mdn/ob_asset/afts/img/A*y6ocSqN8cqsAAAAAAAAAAAAAARQnAQ)![无帮助](https://gw.alipayobjects.com/mdn/ob_asset/afts/img/A*BG9IQJyLHF8AAAAAAAAAAAAAARQnAQ)![反馈](https://gw.alipayobjects.com/mdn/ob_asset/afts/img/A*eTWdQKCRKHwAAAAAAAAAAAAAARQnAQ)[AI](https://www.oceanbase.com/obi) 咨询热线
