---
title: "升级后检查 - OceanBase 数据库 V4.1.0 | OceanBase 文档中心"
description: "升级后检查 完成集群升级后，需要对集群状态进行检查，确保升级成功。 操作步骤 登录 OceanBase 数据库 sys 租户。 示例如下： [admin@xxx /home/admin] $obclient -h10.10.10.1 -P2881 -uroot@sys -p****** Welcome to the …"
image: https://mdn.alipayobjects.com/huamei_22khvb/afts/img/A*OSPzQ6GUQF4AAAAAQHAAAAgAeiGDAQ/original
---
切换语言

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

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

# 升级后检查

更新时间：2023-08-01 11:45:47

[编辑](https://github.com/oceanbase/oceanbase-doc/edit/V4.1.0/zh-CN/600.manage/100.cluster-management/300.common-cluster-operations/1500.upgrade-guide/200.use-the-command-line-to-upgrade-the-database/300.check-after-upgrade.md)  

完成集群升级后，需要对集群状态进行检查，确保升级成功。

## 操作步骤

1. 登录 OceanBase 数据库 sys 租户。

   示例如下：

   ```shell
   [admin@xxx /home/admin]
   $obclient -h10.10.10.1 -P2881 -uroot@sys -p******
   Welcome to the OceanBase.  Commands end with ; or \g.
   Your OceanBase connection id is 3221848076
   Server version: OceanBase 4.1.0.0 (r100000682023020119-c760cbb1023d73a2647f28add283646b1569418f) (Built Feb  1 2023 20:07:36)

   Copyright (c) 2000, 2018, OceanBase and/or its affiliates. All rights reserved.

   Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

   ```

   #### 注意

   登录 OceanBase 数据库 sys 租户后，您可以通过视图 `DBA_OB_CLUSTER_EVENT_HISTORY` 查看集群升级情况，详细信息请参见 [oceanbase.DBA_OB_CLUSTER_EVENT_HISTORY](https://www.oceanbase.com/docs/common-oceanbase-database-cn-10000000001700905)。
 2. 查看当前版本。

   ```shell
   obclient [(none)]> SELECT version();
   +---------------------------+
   | version()                 |
   +---------------------------+
   | 5.7.25-OceanBase-v4.1.0.0 |
   +---------------------------+
   1 row in set

   ```
 3. 查看原配置项信息。

   ```shell
   obclient [(none)]> SELECT SVR_IP,ZONE,NAME,VALUE FROM OCEANBASE.GV$OB_PARAMETERS WHERE NAME IN ("server_permanent_offline_time", "enable_rebalance", "enable_rereplication");
   +------------+-------+-------------------------------+-------+
   | SVR_IP     | ZONE  | NAME                          | VALUE |
   +------------+-------+-------------------------------+-------+
   | 10.10.10.1 | zone2 | enable_rebalance              | True  |
   | 10.10.10.1 | zone2 | enable_rereplication          | True  |
   | 10.10.10.1 | zone2 | server_permanent_offline_time | 3600s |
   | 10.10.10.2 | zone1 | enable_rebalance              | True  |
   | 10.10.10.2 | zone1 | enable_rereplication          | True  |
   | 10.10.10.2 | zone1 | server_permanent_offline_time | 3600s |
   | 10.10.10.3 | zone3 | enable_rebalance              | True  |
   | 10.10.10.3 | zone3 | enable_rereplication          | True  |
   | 10.10.10.3 | zone3 | server_permanent_offline_time | 3600s |
   +------------+-------+-------------------------------+-------+
   9 rows in set

   ```

## 相关文档

[连接方式概述](https://www.oceanbase.com/docs/common-oceanbase-database-cn-10000000001698766)

 上一篇 下一篇 ![有帮助](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) 咨询热线
