try oceanbase-ce and polardb
好的,我现在需要帮用户总结这篇文章的内容。用户的要求是用中文,控制在100个字以内,不需要特定的开头,直接描述文章内容。 首先,我仔细阅读了用户提供的内容。看起来这是一篇关于在AnolisOS 23容器中安装OceanBase和PolarDB的指南。文章详细记录了使用Docker运行容器,然后通过Yum安装相关软件包的过程,包括下载依赖项、安装步骤以及验证安装是否成功的命令。 接下来,我需要提取关键信息:使用Docker启动容器、安装的软件包名称及其版本、安装过程中的依赖项以及最终验证命令的结果。这些都是用户可能关心的重点。 然后,我要将这些信息浓缩到100字以内。确保涵盖主要步骤和结果,同时保持语言简洁明了。例如,提到使用Docker运行容器、安装了OceanBase和PolarDB及其版本,并验证了安装成功。 最后,检查总结是否符合用户的所有要求:中文、100字以内、直接描述内容,没有多余的开头。确保没有遗漏重要信息,并且表达清晰。 </think> 文章描述了在AnolisOS 23容器中通过Docker运行并使用Yum安装OceanBase-ce和PolarDB的过程,包括下载依赖项、安装步骤及验证安装成功。 2026-4-7 02:36:9 Author: dyrnq.com(查看原文) 阅读量:8 收藏

docker run -it --rm registry.openanolis.cn/openanolis/anolisos:23.4 bash
[root@d5199c879283 /]# yum install oceanbase-ce polardb
AnolisOS-23 - os                                                                                                                                                                                  14 MB/s |  11 MB     00:00    
AnolisOS-23 - updates                                                                                                                                                                            7.3 MB/s | 3.6 MB     00:00    
Last metadata expiration check: 0:00:01 ago on Tue Apr  7 10:35:27 2026.
Dependencies resolved.
=================================================================================================================================================================================================================================
 Package                                             Architecture                                  Version                                                                  Repository                                      Size
=================================================================================================================================================================================================================================
Installing:
 oceanbase-ce                                        x86_64                                        4.3.5.1-107000022025051918.an23                                          os                                             161 M
 polardb                                             x86_64                                        11.9.20.0-5.an23                                                         os                                              43 M
Installing dependencies:
 abseil-cpp                                          x86_64                                        20250512.1-2.an23                                                        os                                             1.0 M
 gmock                                               x86_64                                        1.15.2-1.an23                                                            os                                              70 k
 gtest                                               x86_64                                        1.15.2-1.an23                                                            os                                             215 k
 libaio                                              x86_64                                        0.3.113-1.an23                                                           os                                              23 k
 libgfortran                                         x86_64                                        12.3.0-16.an23                                                           os                                             867 k
 libquadmath                                         x86_64                                        12.3.0-16.an23                                                           os                                             179 k
 protobuf                                            x86_64                                        25.1-4.an23                                                              updates                                        1.1 M
 xerces-c                                            x86_64                                        3.2.5-1.an23                                                             os                                             1.2 M

Transaction Summary
=================================================================================================================================================================================================================================
Install  10 Packages

Total download size: 208 M
Installed size: 1.0 G
Is this ok [y/N]: 

Downloading Packages:
(1/10): gtest-1.15.2-1.an23.x86_64.rpm                                                                                                                                                           2.3 MB/s | 215 kB     00:00    
(2/10): gmock-1.15.2-1.an23.x86_64.rpm                                                                                                                                                           746 kB/s |  70 kB     00:00    
(3/10): libaio-0.3.113-1.an23.x86_64.rpm                                                                                                                                                         304 kB/s |  23 kB     00:00    
(4/10): abseil-cpp-20250512.1-2.an23.x86_64.rpm                                                                                                                                                  4.5 MB/s | 1.0 MB     00:00    
(5/10): libquadmath-12.3.0-16.an23.x86_64.rpm                                                                                                                                                    2.0 MB/s | 179 kB     00:00    
(6/10): libgfortran-12.3.0-16.an23.x86_64.rpm                                                                                                                                                    3.9 MB/s | 867 kB     00:00    
(7/10): xerces-c-3.2.5-1.an23.x86_64.rpm                                                                                                                                                         4.7 MB/s | 1.2 MB     00:00    
(8/10): protobuf-25.1-4.an23.x86_64.rpm                                                                                                                                                          9.4 MB/s | 1.1 MB     00:00    
(9/10): oceanbase-ce-4.3.5.1-107000022025051918.an23.x86_64.rpm                                                                                                                                   20 MB/s | 161 MB     00:08    
(10/10): polardb-11.9.20.0-5.an23.x86_64.rpm                                                                                                                                                     2.6 MB/s |  43 MB     00:16    
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Total                                                                                                                                                                                             13 MB/s | 208 MB     00:16     
AnolisOS-23 - os                                                                                                                                                                                 3.0 MB/s | 3.0 kB     00:00    
Importing GPG key 0x4873F7C5:
 Userid     : "Anolis OS <[email protected]>"
 Fingerprint: F87D B652 2967 855E 986F 840C 6191 4008 4873 F7C5
 From       : /etc/pki/rpm-gpg/RPM-GPG-KEY-ANOLIS
Is this ok [y/N]: y
Key imported successfully
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :                                                                                                                                                                                                         1/1 
  Installing       : gtest-1.15.2-1.an23.x86_64                                                                                                                                                                             1/10 
  Installing       : gmock-1.15.2-1.an23.x86_64                                                                                                                                                                             2/10 
  Installing       : libquadmath-12.3.0-16.an23.x86_64                                                                                                                                                                      3/10 
  Installing       : libgfortran-12.3.0-16.an23.x86_64                                                                                                                                                                      4/10 
  Installing       : abseil-cpp-20250512.1-2.an23.x86_64                                                                                                                                                                    5/10 
  Installing       : protobuf-25.1-4.an23.x86_64                                                                                                                                                                            6/10 
  Installing       : xerces-c-3.2.5-1.an23.x86_64                                                                                                                                                                           7/10 
  Installing       : libaio-0.3.113-1.an23.x86_64                                                                                                                                                                           8/10 
  Running scriptlet: oceanbase-ce-4.3.5.1-107000022025051918.an23.x86_64                                                                                                                                                    9/10 
execute pre install script

  Installing       : oceanbase-ce-4.3.5.1-107000022025051918.an23.x86_64                                                                                                                                                    9/10 
  Running scriptlet: oceanbase-ce-4.3.5.1-107000022025051918.an23.x86_64                                                                                                                                                    9/10 
execute post install script
System has not been booted with systemd as init system (PID 1). Can't operate.
Failed to connect to bus: Host is down
To configure OceanBase : edit /etc/oceanbase.cnf
To start OceanBase     : systemctl start oceanbase
To enable OceanBase auto reboot  : systemctl enable oceanbase
To get more infomation : https://www.oceanbase.com/docs/common-oceanbase-database-cn-1000000000640297

  Installing       : polardb-11.9.20.0-5.an23.x86_64                                                                                                                                                                       10/10 
  Running scriptlet: polardb-11.9.20.0-5.an23.x86_64                                                                                                                                                                       10/10 
  Verifying        : abseil-cpp-20250512.1-2.an23.x86_64                                                                                                                                                                    1/10 
  Verifying        : gmock-1.15.2-1.an23.x86_64                                                                                                                                                                             2/10 
  Verifying        : gtest-1.15.2-1.an23.x86_64                                                                                                                                                                             3/10 
  Verifying        : libaio-0.3.113-1.an23.x86_64                                                                                                                                                                           4/10 
  Verifying        : libgfortran-12.3.0-16.an23.x86_64                                                                                                                                                                      5/10 
  Verifying        : libquadmath-12.3.0-16.an23.x86_64                                                                                                                                                                      6/10 
  Verifying        : oceanbase-ce-4.3.5.1-107000022025051918.an23.x86_64                                                                                                                                                    7/10 
  Verifying        : polardb-11.9.20.0-5.an23.x86_64                                                                                                                                                                        8/10 
  Verifying        : xerces-c-3.2.5-1.an23.x86_64                                                                                                                                                                           9/10 
  Verifying        : protobuf-25.1-4.an23.x86_64                                                                                                                                                                           10/10 

Installed:
  abseil-cpp-20250512.1-2.an23.x86_64                   gmock-1.15.2-1.an23.x86_64        gtest-1.15.2-1.an23.x86_64    libaio-0.3.113-1.an23.x86_64   libgfortran-12.3.0-16.an23.x86_64   libquadmath-12.3.0-16.an23.x86_64  
  oceanbase-ce-4.3.5.1-107000022025051918.an23.x86_64   polardb-11.9.20.0-5.an23.x86_64   protobuf-25.1-4.an23.x86_64   xerces-c-3.2.5-1.an23.x86_64  

Complete!

[root@d5199c879283 /]# ls /usr/bin/ |grep ^o
objcopy
objdump
observer
obshell
od
oid2name
oomctl
openvt
[root@d5199c879283 /]# observer --version
observer --version
observer (OceanBase_CE 4.3.5.1)

REVISION: 1-b6d5706eb3d2c5f501c7fa646ddbf32f3dc87069
BUILD_BRANCH: HEAD
BUILD_TIME: Jul 30 2025 00:00:00
BUILD_FLAGS: RelWithDebInfo
BUILD_INFO: 

Copyright (c) 2011-present OceanBase Inc.


文章来源: https://dyrnq.com/try-oceanbase-ce-and-polardb/
如有侵权请联系:admin#unsafe.sh