当前位置: 首页 > news >正文

Oceanbase单机版上手示例

本月初Oceanbase单机版发布,作为一个以分布式起家的数据库,原来一个集群动辄小十台机器,多着十几台几十台甚至更多,Oceanbase单机版的发布确实大大降低了硬件部署的门槛。

1.下载安装介质

https://www.oceanbase.com/softwarecenter-standalone

这里选择小规模部署,Linux8版本,大小700多M

oceanbase-standalone-all-in-one-4.2.5.3-103000152025033110.el8.x86_64.tar.gz  

2.安装环境

本次测试使用的环境为Redhat8.5 4C 16GB 虚机,官方的配置要求如下:

项目描述
系统
  • Anolis OS 8.X 版本(内核 Linux 3.10.0 版本及以上)
  • Alibaba Cloud Linux 2/3 版本(内核 Linux 3.10.0 版本及以上)
  • Red Hat Enterprise Linux Server 7.X 版本、8.X 版本(内核 Linux 3.10.0 版本及以上)
  • CentOS Linux 7.X 版本、8.X 版本(内核 Linux 3.10.0 版本及以上)
  • Debian 9.X 版本及以上版本(内核 Linux 3.10.0 版本及以上)
  • Ubuntu 20.X 版本及以上版本(内核 Linux 3.10.0 版本及以上)
  • SUSE / OpenSUSE 15.X 版本及以上版本(内核 Linux 3.10.0 版本及以上)
  • openEuler 22.03 和 24.03 版本(内核 Linux 5.10.0 版本及以上)
  • KylinOS V10 版本
  • 统信 UOS 1020a/1021a/1021e/1001c 版本
  • 中科方德 NFSChina 4.0 版本及以上
  • 浪潮 Inspur kos 5.8 版本
CPU最低要求 2 核,推荐 4 核及以上。
内存最低要求 6 GB,推荐设置在 16 GB 至 1024 GB 范围内。
磁盘类型使用 SSD 存储。
磁盘存储空间最低要求 20 GB。
文件系统EXT4 或 XFS,当数据超过 16 TB 时,使用 XFS。
all-in-one 安装包单机版 all-in-one 安装包。

3.组件介绍

  • obd

    OceanBase Deployer,OceanBase 安装部署工具,简称为 obd。详细信息请参考官网文档 OceanBase 安装部署工具。

  • OBAgent

    OBAgent 是 OceanBase 数据库监控采集框架,支持推、拉两种数据采集模式,可以满足不同的应用场景。

  • Grafana

    Grafana 是一款开源的数据可视化工具,它可以将数据源中的各种指标数据进行可视化展示,以便更直观地了解系统运行状态和性能指标。详细信息可参见 Grafana 官网。

  • Prometheus

    Prometheus 是一个开源的服务监控系统和时序数据库,其提供了通用的数据模型以及快捷数据采集、存储和查询接口。详细信息可参见 Prometheus 官网。

4.快速部署单机版

4.1解压安装包

[root@SZSPLORACLE01T ~]# tar -xzf oceanbase-standalone-all-in-one-4.2.5.3-103000152025033110.el8.x86_64.tar.gz
[root@SZSPLORACLE01T ~]# ll
total 741860
-rw-------. 1 root root      1544 May  7  2024 anaconda-ks.cfg
-rw-r--r--. 1 root root      1992 May  8  2024 initial-setup-ks.cfg
drwxr-xr-x. 6 root root        88 Apr  2 16:28 oceanbase-standalone-all-in-one
-rw-r--r--. 1 root root 759655350 Apr 17 09:20 oceanbase-standalone-all-in-one-4.2.5.3-103000152025033110.el8.x86_64.tar.gz
[root@SZSPLORACLE01T ~]# cd oceanbase-standalone-all-in-one/bin
[root@SZSPLORACLE01T bin]#
[root@SZSPLORACLE01T bin]# ll
total 52
-rwxr-xr-x. 1 root root   281 Apr  2 16:27 env.sh
-rwxr-xr-x. 1 root root  5336 Apr  2 16:27 install_obd.sh
-rwxr-xr-x. 1 root root 35170 Apr  2 16:27 install_ob.sh
-rwxr-xr-x. 1 root root  2058 Apr  2 16:27 uninstall_obd.sh

4.2系统参数配资

系统资源限制

cat >>/etc/security/limits.conf <<EOF
* soft nofile 655350
* hard nofile 655350
* soft stack unlimited
* hard stack unlimited
* soft nproc 655360
* hard nproc 655360
* soft core unlimited
* hard core unlimited
EOF
cat <> /etc/sysctl.conf
kernel.sem = 4096 4194304 32768 1024
fs.aio-max-nr = 1048576
fs.file-max = 6573688
vm.max_map_count=655360
EOF[root@SZSPLORACLE01T ~]# sysctl -p
kernel.sem = 4096 4194304 32768 1024
fs.aio-max-nr = 1048576
fs.file-max = 6573688
vm.max_map_count = 655360

创建oceanbase数据和日志目录,理论上ob建议data和log不要放在同一个物理磁盘

如果放在同一个物理磁盘会有个告警提示

mkdir -p /data/ob/data
mkdir -p /data/ob/clog

4.3安装OBD

[root@SZSPLORACLE01T bin]# ./install_obd.sh
install obd as root
No previous obd installed, try install..., wait a moment
name: grafana
version: 7.5.17
release:1
arch: x86_64
md5: 1bf1f338d3a3445d8599dc6902e7aeed4de4e0d6
size: 177766248
add /root/oceanbase-standalone-all-in-one/rpms/grafana-7.5.17-1.el8.x86_64.rpm to local mirror
name: obagent
version: 4.2.2
release:100000042024011120.el8
arch: x86_64
md5: bf152b880953c2043ddaf80d6180cf22bb8c8ac2
size: 72919140
add /root/oceanbase-standalone-all-in-one/rpms/obagent-4.2.2-100000042024011120.el8.x86_64.rpm to local mirror
name: ob-deploy
version: 3.2.0
release:2.el8
arch: x86_64
md5: 529076c3e548f690ea6cb4e50cd77b2dfc4bfc6d
size: 178634999
add /root/oceanbase-standalone-all-in-one/rpms/ob-deploy-3.2.0-2.el8.x86_64.rpm to local mirror
name: oceanbase-diagnostic-tool
version: 3.2.0
release:52025031411.el8
arch: x86_64
md5: e7aeaa17222aa079c8d9e0c74a73e1d7f9c5501b
size: 71147006
add /root/oceanbase-standalone-all-in-one/rpms/oceanbase-diagnostic-tool-3.2.0-52025031411.el8.x86_64.rpm to local mirror
name: oceanbase-standalone
version: 4.2.5.3
release:103000152025033110.el8
arch: x86_64
md5: 305669b55281773f5c53ff4e44ff9f7bed9f7bc0
size: 1813828757
add /root/oceanbase-standalone-all-in-one/rpms/oceanbase-standalone-4.2.5.3-103000152025033110.el8.x86_64.rpm to local mirror
name: oceanbase-standalone-libs
version: 4.2.5.3
release:103000152025033110.el8
arch: x86_64
md5: 84315910ce45d91ed361867215964369044185c0
size: 7848
add /root/oceanbase-standalone-all-in-one/rpms/oceanbase-standalone-libs-4.2.5.3-103000152025033110.el8.x86_64.rpm to local mirror
name: prometheus
version: 2.37.1
release:10000102022110211.el8
arch: x86_64
md5: e4f8a3e784512fca75bf1b3464247d1f31542cb9
size: 211224073
add /root/oceanbase-standalone-all-in-one/rpms/prometheus-2.37.1-10000102022110211.el8.x86_64.rpm to local mirror
Trace ID: c1065028-1b58-11f0-8e69-0050568fd99f
If you want to view detailed obd logs, please run: obd display-trace c1065028-1b58-11f0-8e69-0050568fd99f
Disable remote ok
Trace ID: c2d4905e-1b58-11f0-b490-0050568fd99f
If you want to view detailed obd logs, please run: obd display-trace c2d4905e-1b58-11f0-b490-0050568fd99fadd auto set env logic to profile: /root/.bash_profileExecute this command to apply the environment config:`source ~/.oceanbase-all-in-one/bin/env.sh `
[root@SZSPLORACLE01T bin]# source ~/.oceanbase-all-in-one/bin/env.sh

4.4用 obd demo 命令部署单机版

  • 仅部署 OceanBase 数据库

    obd demo -c oceanbase-standalone
  • 部署带有 OBAgent、Prometheus 和 Grafana 组件的 OceanBase 数据库

    obd demo -c oceanbase-standalone,obagent,grafana,prometheus
  • 我这里选择的是部署全部的
[root@SZSPLORACLE01T bin]# obd demo -c oceanbase-standalone,obagent,grafana,prometheus
Package grafana-7.5.17-1 is available.
Package oceanbase-standalone-4.2.5.3-103000152025033110.el8 is available.
Package prometheus-2.37.1-10000102022110211.el8 is available.
Package obagent-4.2.2-100000042024011120.el8 is available.
install grafana-7.5.17 for local ok
install oceanbase-standalone-4.2.5.3 for local ok
install prometheus-2.37.1 for local ok
install obagent-4.2.2 for local ok
Cluster param config check ok
Open ssh connection ok
Generate grafana configuration ok
Generate prometheus configuration ok
Generate obagent configuration ok
+----------------------------------------------------------------------------------------------------+
|                                              Packages                                              |
+----------------------+---------+------------------------+------------------------------------------+
| Repository           | Version | Release                | Md5                                      |
+----------------------+---------+------------------------+------------------------------------------+
| grafana              | 7.5.17  | 1                      | 1bf1f338d3a3445d8599dc6902e7aeed4de4e0d6 |
| oceanbase-standalone | 4.2.5.3 | 103000152025033110.el8 | 305669b55281773f5c53ff4e44ff9f7bed9f7bc0 |
| prometheus           | 2.37.1  | 10000102022110211.el8  | e4f8a3e784512fca75bf1b3464247d1f31542cb9 |
| obagent              | 4.2.2   | 100000042024011120.el8 | bf152b880953c2043ddaf80d6180cf22bb8c8ac2 |
+----------------------+---------+------------------------+------------------------------------------+
Repository integrity check ok
Load param plugin ok
Open ssh connection ok
Initializes obagent work home ok
Initializes observer work home ok
Initializes prometheus work home ok
Initializes grafana work home ok
Parameter check ok
Remote grafana-7.5.17-1-1bf1f338d3a3445d8599dc6902e7aeed4de4e0d6 repository install ok
Remote grafana-7.5.17-1-1bf1f338d3a3445d8599dc6902e7aeed4de4e0d6 repository lib check ok
Remote oceanbase-standalone-4.2.5.3-103000152025033110.el8-305669b55281773f5c53ff4e44ff9f7bed9f7bc0 repository install ok
Remote oceanbase-standalone-4.2.5.3-103000152025033110.el8-305669b55281773f5c53ff4e44ff9f7bed9f7bc0 repository lib check ok
Remote prometheus-2.37.1-10000102022110211.el8-e4f8a3e784512fca75bf1b3464247d1f31542cb9 repository install ok
Remote prometheus-2.37.1-10000102022110211.el8-e4f8a3e784512fca75bf1b3464247d1f31542cb9 repository lib check ok
Remote obagent-4.2.2-100000042024011120.el8-bf152b880953c2043ddaf80d6180cf22bb8c8ac2 repository install ok
Remote obagent-4.2.2-100000042024011120.el8-bf152b880953c2043ddaf80d6180cf22bb8c8ac2 repository lib check ok
demo deployed
Get local repositories ok
Load cluster param plugin ok
Open ssh connection ok
[ERROR] OBD-1007: (127.0.0.1) The value of the ulimit parameter "open files" must not be less than 20000 (Current value: 1024), Please execute `echo -e "* soft nofile 20000\n* hard nofile 20000" >> /etc/security/limits.d/nofile.conf` as root in 127.0.0.1. if it dosen't work, please check whether UsePAM is yes in /etc/ssh/sshd_config.
[WARN] OBD-1007: (127.0.0.1) The recommended number of core file size is unlimited (Current value: 0)
[WARN] OBD-1007: (127.0.0.1) The recommended number of stack size is unlimited (Current value: 8192)
[WARN] OBD-1017: (127.0.0.1) The value of the "vm.max_map_count" must be within [327600, 1310720] (Current value: 65530, Recommended value: 655360)
[WARN] OBD-2000: (127.0.0.1) not enough memory. (Free: 2G, Need: 6G)
[WARN] OBD-1012: (127.0.0.1) clog and data use the same disk (/)
You can use the `obd cluster init4env demo` command to automatically configure system parameters
See https://www.oceanbase.com/product/ob-deployer/error-codes .
Trace ID: 750e2b0e-1b59-11f0-a24f-0050568fd99f
If you want to view detailed obd logs, please run: obd display-trace 750e2b0e-1b59-11f0-a24f-0050568fd99f##报错是因为没有修改系统open file限制,报错清晰提示了 解决办法 还是比较人性化的
[root@SZSPLORACLE01T bin]# echo -e "* soft nofile 20000\n* hard nofile 20000" >> /etc/security/limits.d/nofile.conf
#这个参数需要退出重新登陆生效 ulimit -n 确认
[root@SZSPLORACLE01T bin]# obd cluster init4env demo  ##初始化参数
Get local repositories ok
Open ssh connection ok
get system config ok
+---------------------------------------------+
|         System Parameter Change List        |
+-----------+------------------+--------------+
| ip        | need_change_var  | target_value |
+-----------+------------------+--------------+
| 127.0.0.1 | nofile           | 655350       |
| 127.0.0.1 | vm.max_map_count | 655360       |
+-----------+------------------+--------------+
Are you sure to change the parameters listed above ? [y/n]: y
127.0.0.1: ( nofile,vm.max_map_count ) have been successfully modified!
Trace ID: 34775ee8-1b5a-11f0-867b-0050568fd99f
If you want to view detailed obd logs, please run: obd display-trace 34775ee8-1b5a-11f0-867b-0050568fd99f
[root@SZSPLORACLE01T bin]#

数据库的默认密码  还有其他的一些配置信息和初始密码 需要在/root/.obd/cluster/demo/config.yaml 配置文件中找到

[root@SZSPLORACLE01T bin]# cat /root/.obd/cluster/demo/config.yaml
grafana:servers:- 127.0.0.1global:home_path: /root/grafanalogin_password: rutKOUCCQddepends:- prometheus
oceanbase-standalone:servers:- 127.0.0.1global:home_path: /root/oceanbase-standaloneappname: democluster_id: 1744873372enable_syslog_wf: falsemax_syslog_file_count: 16production_mode: falsememory_limit: 6G__min_full_resource_pool_memory: 1073741824system_memory: 1Gcpu_count: 8datafile_size: 2Gdatafile_maxsize: 8Gdatafile_next: 2Glog_disk_size: 14Groot_password: DuOqczoc33uwqjwouZbMocp_agent_monitor_password: h5hja8xpdU
prometheus:servers:- 127.0.0.1global:home_path: /root/prometheusdepends:- obagent
obagent:servers:- 127.0.0.1global:home_path: /root/obagentob_monitor_status: activedepends:- oceanbase-standalones

4.5使用install_ob.sh交互部署

好处就是密码和安装路径等配置可以手动配置,如下是输出

这里有点不错的是 需要用户注意的部门参数 会被高亮提示

[root@SZSPLORACLE01T bin]# ./install_ob.sh
Enter the IP (Default: 10.253.32.120) (only support local IP):Valid local IP: 10.253.32.120
Enter the current user password :
Trace ID: 4214918c-1b6a-11f0-a741-0050568fd99f
If you want to view detailed obd logs, please run: obd display-trace 4214918c-1b6a-11f0-a741-0050568fd99f
get system config ok
No need to change system parameters
Trace ID: 43441fdc-1b6a-11f0-9023-0050568fd99f
If you want to view detailed obd logs, please run: obd display-trace 43441fdc-1b6a-11f0-9023-0050568fd99fEnter the cluster name (Default: standalone; allowed characters: letters, numbers, and underscores): norton
Enter the OB SQL port (Default: 2881):
Enter the OB RPC port (Default: 2882):
Enter the obshell port (Default: 2886):
Enter the OB root password (Default: abQ6VRGDPA6jh8cZl41O):
Confirm the OB root password:
Enter the OB cpu count (Default: 4):The cpu_count cannot be less than 8. It will be set to 8 automatically.
Enter the OB memory limit (Configurable Range[6, 10], Default: 10, Unit: G): 6
Enter the OB installation directory (Default: /root/norton):
Enter the OB data directory (Default: /data/1/norton): /data/ob/norton
Enter the OB log directory (Default: /data/log1/norton): /oblogThe data_dir and redo_dir are using the same disk.
Enter the OB datafile maxsize (Configurable Range[12, 39], Default: 39, Unit: G):
Enter the OB log disk size (Configurable Range[12, 16], Default: 16, Unit: G):Do you want to create tenant for your business workload? (y/n)(Default: y):  n
OceanBase Database will not be create tenant.Do you want to enable encryption for password security? (y/n) (Default: n):Do you need to install the monitoring components (OBAgent, Prometheus, Grafana)? (y/n) (Default: y):  y
Enter the OBAgent monitoring service port (Default: 8088):
Enter the OBAgent management service port (Default: 8089):
Enter the Prometheus port (Default: 9090):
Enter the Grafana port (Default: 3000):#Saved configurations:cluster name: nortonmysql port: 2881rpc port: 2882obshell port: 2886cpu count: 8memory limit: 6Ghome path: /root/nortondata dir: /data/ob/nortonlog dir: /oblogdatafile maxsize: 39Glog disk size: 16GOBAgent monitoring service port: 8088OBAgent management service port: 8089Prometheus port: 9090Grafana port: 3000Are you sure these configurations are correct? (y/n) (Default: y):
Configuration confirmed.start cluster...
Cluster param config check ok
Open ssh connection ok
Generate obagent configuration ok
Generate prometheus configuration ok
Generate grafana configuration ok
+----------------------------------------------------------------------------------------------------+
|                                              Packages                                              |
+----------------------+---------+------------------------+------------------------------------------+
| Repository           | Version | Release                | Md5                                      |
+----------------------+---------+------------------------+------------------------------------------+
| oceanbase-standalone | 4.2.5.3 | 103000152025033110.el8 | 305669b55281773f5c53ff4e44ff9f7bed9f7bc0 |
| obagent              | 4.2.2   | 100000042024011120.el8 | bf152b880953c2043ddaf80d6180cf22bb8c8ac2 |
| prometheus           | 2.37.1  | 10000102022110211.el8  | e4f8a3e784512fca75bf1b3464247d1f31542cb9 |
| grafana              | 7.5.17  | 1                      | 1bf1f338d3a3445d8599dc6902e7aeed4de4e0d6 |
+----------------------+---------+------------------------+------------------------------------------+
Repository integrity check ok
Load param plugin ok
Open ssh connection ok
Initializes obagent work home ok
Initializes observer work home ok
Initializes prometheus work home ok
Initializes grafana work home ok
Parameter check ok
Remote oceanbase-standalone-4.2.5.3-103000152025033110.el8-305669b55281773f5c53ff4e44ff9f7bed9f7bc0 repository install ok
Remote oceanbase-standalone-4.2.5.3-103000152025033110.el8-305669b55281773f5c53ff4e44ff9f7bed9f7bc0 repository lib check ok
Remote obagent-4.2.2-100000042024011120.el8-bf152b880953c2043ddaf80d6180cf22bb8c8ac2 repository install ok
Remote obagent-4.2.2-100000042024011120.el8-bf152b880953c2043ddaf80d6180cf22bb8c8ac2 repository lib check ok
Remote prometheus-2.37.1-10000102022110211.el8-e4f8a3e784512fca75bf1b3464247d1f31542cb9 repository install ok
Remote prometheus-2.37.1-10000102022110211.el8-e4f8a3e784512fca75bf1b3464247d1f31542cb9 repository lib check ok
Remote grafana-7.5.17-1-1bf1f338d3a3445d8599dc6902e7aeed4de4e0d6 repository install ok
Remote grafana-7.5.17-1-1bf1f338d3a3445d8599dc6902e7aeed4de4e0d6 repository lib check ok
norton deployed
Get local repositories ok
Load cluster param plugin ok
Open ssh connection ok
[WARN] OBD-1012: (10.253.32.120) clog and data use the same disk (/)
Check before start obagent ok
Check before start prometheus ok
Check before start grafana ok
cluster scenario: None
Start observer ok
observer program health check x
[WARN] OBD-2002: Failed to start 10.253.32.120 observer
See https://www.oceanbase.com/product/ob-deployer/error-codes .
Trace ID: 7e8dffc2-1b6a-11f0-b076-0050568fd99f
If you want to view detailed obd logs, please run: obd display-trace 7e8dffc2-1b6a-11f0-b076-0050568fd99f

4.6排错

这里一直提示部署报错 ,提示系统observer启动失败,集群状态失败

可以用上面的命令查看install log 确认报错的问题,可以看到直接启动失败 health check失败

obd display-trace 7e8dffc2-1b6a-11f0-b076-0050568fd99f[2025-04-18 09:55:05.178] [WARNING] OBD-2002: Failed to start 10.253.32.120 observer
[2025-04-18 09:55:05.179] [DEBUG] - plugin oceanbase-standalone-py_script_health_check-3.1.0 result: False

检查系统启动日志/root/norton/oceanbase/log/observer.log  关键信息如下

[root@SZSPLORACLE02T bin]# cat /root/norton/oceanbase/log/observer.log|more
[2025-04-18 09:55:01.974369] EDIAG [SERVER] init (...) [errcode=-4007] unsupported CPU platform, AVX instructions are required.
...
[2025-04-18 09:55:01.974707] EDIAG [SERVER] init (...) [ret="OB_NOT_SUPPORTED"]

当前主机不支持 AVX 指令集,OceanBase 无法运行

OceanBase 从 4.x 版本开始要求 CPU 必须支持 AVX(Advanced Vector Extensions) 指令集,这是启动失败的直接原因。

因为我这台测试机跑在的物理机是是一套很老的HP刀片(超过10年)cpu太老不支持AVX,理论上稍微新一点的机器都会支持的,不存在这个问题

检查我的虚拟机的 CPU 是否支持 AVX 指令:

执行以下命令检查:

[root@SZSPLORACLE02T bin]# cat /proc/cpuinfo | grep avx

  • 有输出:表示支持

  • 无输出:当前机器 CPU 不支持 AVX,无法运行 OceanBase 4.x

好吧我这台虚拟机无法安装,折腾了大半天 结果我的虚机不支持吐血。

4.7 换机器重新安装

我重新换了台测试机,首先确认CPU 是否支持AVX,确认支持后,按前面的安装步骤非常顺利的完成

安装完成后 obclient -h10.247.41.25 -P2881 -uSYS@test 登陆到数据库

因为我这里选择的oracle 兼容,看到可以查询dual虚表。


[root@TEST01 bin]# obclient -h10.247.41.25 -P2881 -uSYS@test
Welcome to the OceanBase.  Commands end with ; or \g.
Your OceanBase connection id is 3221526087
Server version: OceanBase 4.2.5.3 (r103000152025033110-f5b88cd987f23383677f2eb53cf76ed38a48979b) (Built Mar 31 2025 11:08:20)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.obclient(SYS@test)[SYS]> 
obclient(SYS@test)[SYS]> select * from dual;
+-------+
| DUMMY |
+-------+
| X     |
+-------+
1 row in set (0.001 sec)obclient(SYS@test)[SYS]> obclient(SYS@test)[SYS]> select * from v$version;
+---------------------------------------------------------------------------------------------------------------+--------+
| BANNER                                                                                                        | CON_ID |
+---------------------------------------------------------------------------------------------------------------+--------+
| OceanBase 4.2.5.3 (r103000152025033110-f5b88cd987f23383677f2eb53cf76ed38a48979b) (Built Mar 31 2025 11:08:20) |      0 |
+---------------------------------------------------------------------------------------------------------------+--------+

5.OceanBase 集群常用命令

删除当前集群 

 obd cluster destroy norton

检查observer的状态

ps -ef | grep observer

若没有 observer 进程,说明 OceanBase 没有运行。

可使用 OBD 启动:

obd cluster start demo

或者先检查状态:

 obd cluster start demo
Get local repositories ok
Load cluster param plugin ok
Cluster status check ok
Deploy "demo" is running
Trace ID: ba82bdec-1c14-11f0-9e09-0050568abb63
If you want to view detailed obd logs, please run: obd display-trace ba82bdec-1c14-11f0-9e09-0050568abb63
[root@YCSMLTEST01 bin]# obd cluster display demo
Get local repositories and plugins ok
Open ssh connection ok
Connect to observer 10.247.41.25:2881 ok
Wait for observer init ok
+------------------------------------------------+
|              oceanbase-standalone              |
+--------------+---------+------+-------+--------+
| ip           | version | port | zone  | status |
+--------------+---------+------+-------+--------+
| 10.247.41.25 | 4.2.5.3 | 2881 | zone1 | ACTIVE |
+--------------+---------+------+-------+--------+
obclient -h10.247.41.25 -P2881 -uroot@sys -p'norton' -Doceanbase -Acluster unique id: c017ba54-fd3e-5512-bfec-707afd0d8eeb-196474f3b47-03050204Connect to Obagent ok
+-----------------------------------------------------------------+
|                             obagent                             |
+--------------+--------------------+--------------------+--------+
| ip           | mgragent_http_port | monagent_http_port | status |
+--------------+--------------------+--------------------+--------+
| 10.247.41.25 | 8089               | 8088               | active |
+--------------+--------------------+--------------------+--------+
Connect to Prometheus ok
+--------------------------------------------------------+
|                       prometheus                       |
+--------------------------+-------+------------+--------+
| url                      | user  | password   | status |
+--------------------------+-------+------------+--------+
| http://10.247.41.25:9090 | admin | 0YdjBC1EFw | active |
+--------------------------+-------+------------+--------+
Connect to grafana ok
+-------------------------------------------------------------------+
|                              grafana                              |
+--------------------------------------+-------+-----------+--------+
| url                                  | user  | password  | status |
+--------------------------------------+-------+-----------+--------+
| http://10.247.41.25:3000/d/oceanbase | admin | oceanbase | active |
+--------------------------------------+-------+-----------+--------+
Trace ID: c6a33eda-1c14-11f0-b8d7-0050568abb63
If you want to view detailed obd logs, please run: obd display-trace c6a33eda-1c14-11f0-b8d7-0050568abb63

相关文章:

Oceanbase单机版上手示例

本月初Oceanbase单机版发布&#xff0c;作为一个以分布式起家的数据库&#xff0c;原来一个集群动辄小十台机器&#xff0c;多着十几台几十台甚至更多&#xff0c;Oceanbase单机版的发布确实大大降低了硬件部署的门槛。 1.下载安装介质 https://www.oceanbase.com/softwarece…...

深度学习基础--CNN经典网络之InceptionV3详解与复现(pytorch)

&#x1f368; 本文为&#x1f517;365天深度学习训练营 中的学习记录博客&#x1f356; 原作者&#xff1a;K同学啊 前言 InceptionV3是InceptionV1的升级版&#xff0c;虽然加大了计算量&#xff0c;但是当时效果是比VGG效果要好的。本次任务是探究InceptionV3结构并进行复…...

VOIP通信中的错误码

cancle报文 Reason: SIP;cause200;text"Call completed elsewhere" Reason: Q.850;cause26表示取消的原因是呼叫在其他地方已经完成表示Q.850标准中的原因码26&#xff0c;通常对应于“呼叫被取消”&#xff08;Call Cancelled&#xff09;487 Request Terminated Re…...

C++ STL编程-vector概念、对象创建

vector 概念&#xff1a;是常见的一种容器&#xff0c;被称为“柔性数组”。 在vector中&#xff0c;front()是数组中的第一个元素&#xff0c;back()是数组的最后一个元素。begin()是是指向第一个元素&#xff0c;end()是指向back()的后一个元素 vector的对象创建&#xff0…...

easyexcel使用模板填充excel坑点总结

1.单层map设置值是{属性}&#xff0c;那使用两层map进行设置值&#xff0c;是不是可以使用{属性.属性}&#xff0c;以为取出map里字段只用{属性}就可以设置值&#xff0c;那再加个.就可以从里边map取出对应属性&#xff0c;没有两层map写法 填充得到的文件打开报错 was empty (…...

C#学习第16天:聊聊反射

什么是反射&#xff1f; 定义&#xff1a;反射是一种机制&#xff0c;允许程序在运行时获取关于自身的信息&#xff0c;并且可以动态调用方法、访问属性或创建实例。用途&#xff1a;常用于框架设计、工具开发、序列化、代码分析和测试等场景 反射的核心概念 1. 获取类型信息…...

【Unity】使用Cinemachine+CharacterController实现第三人称视角下的角色视角、移动和跳跃控制

1.初始配置 安装Cinemachine插件给角色添加CharacterConroller创建Cinemachine-->Free Look Camera在Free Look Camera中调整参数&#xff0c;Y Axis勾选Inver&#xff0c;X Axis取消勾选InverFree Look Camera要看向角色 跟随角色&#xff08;自行设置&#xff0c;我就不…...

如何通俗的理解transformer架构编码器和解码器干的活

我们可以用生活中的比喻来理解Transformer的编码器和解码器&#xff0c;以及解码器中两种注意力的作用&#xff1a; 一、编码器&#xff08;Encoder&#xff09;&#xff1a;理解信息的「分析师团队」 想象你要翻译一句话&#xff0c;比如把中文“今天天气很好”翻译成英文。编…...

React 受控表单绑定基础

React 中最常见的几个需求是&#xff1a; 渲染一组列表绑定点击事件表单数据与组件状态之间的绑定 受控表单绑定是理解表单交互的关键之一。 &#x1f4cd;什么是受控组件&#xff1f; 在 React 中&#xff0c;所谓“受控组件”&#xff0c;指的是表单元素&#xff08;如 &l…...

UMG:ListView

1.创建WEB_ListView,添加Border和ListView。 2.创建Object,命名为Item(数据载体&#xff0c;可以是其他类型)。新增变量name。 3.创建User Widget&#xff0c;命名为Entry(循环使用的UI载体).添加Border和Text。 4.设置Entry继承UserObjectListEntry接口。 5.Entry中对象生成时…...

实验五 内存管理实验

实验五 内存管理实验 一、实验目的 1、了解操作系统动态分区存储管理过程和方法。 2、掌握动态分区存储管理的主要数据结构--空闲表区。 3、加深理解动态分区存储管理中内存的分配和回收。 4、掌握空闲区表中空闲区3种不同放置策略的基本思想和实现过程。 5、通过模拟程…...

初识 Firebase 与 FPM

Firebase 是什么 ? Firebase 是 Google 旗下面向 iOS、Android、Web 与多端框架&#xff08;Flutter、Unity 等&#xff09;的应用开发平台&#xff0c;提供从「构建 → 发布与运维 → 增长」全生命周期的一站式后端即服务&#xff08;BaaS&#xff09;。它把实时数据库、托管…...

探索C++中的数据结构:栈(Stack)的奥秘

引言 栈是计算机科学中最基础且重要的数据结构之一&#xff0c;它像一摞盘子一样遵循"后进先出"&#xff08;LIFO&#xff09;的原则。无论是函数调用、表达式求值&#xff0c;还是浏览器前进后退功能&#xff0c;栈都扮演着关键角色。本文将深入解析栈的C实现及其应…...

vue3 nprogress 使用

nprogress 介绍与作用 1.nprogress 是一个轻量级的进度条组件&#xff0c;主要用于在页面加载或路由切换时显示一个进度条&#xff0c;提升用户体验。它的原理是通过在页面顶部创建一个 div&#xff0c;并使用 fixed 定位来实现进度条的效果 2.在 Vite Vue 3 项目中&#xf…...

MCP(Model Context Protocol 模型上下文协议)科普

MCP&#xff08;Model Context Protocol&#xff0c;模型上下文协议&#xff09;是由人工智能公司 Anthropic 于 2024年11月 推出的开放标准协议&#xff0c;旨在为大型语言模型&#xff08;LLM&#xff09;与外部数据源、工具及服务提供标准化连接&#xff0c;从而提升AI在实际…...

韩媒专访CertiK创始人顾荣辉:黑客攻击激增300%,安全优先的破局之路

4月17日&#xff0c;韩国知名科技媒体《韩国IT时报》(Korea IT Times)发布了对CertiK联合创始人兼CEO顾荣辉教授的专访。双方围绕CertiK一季度《HACK3D》安全报告&#xff0c;就黑客攻击手法的迭代和安全防御技术的创新路径等&#xff0c;展开深度对话。 顾荣辉认为&#xff0…...

华为openEuler操作系统全解析:起源、特性与生态对比

华为openEuler操作系统全解析&#xff1a;起源、特性与生态对比 一、起源与发展历程 openEuler&#xff08;欧拉操作系统&#xff09;是华为于2019年开源的Linux发行版&#xff0c;其前身为华为内部研发的服务器操作系统EulerOS。EulerOS自2010年起逐步发展&#xff0c;支持华…...

从零实现Git安装、使用

一、git安装 Git官方下载 1.下载exe程序 2.双击安装&#xff0c;一直点击next&#xff0c;默认安装 安装完成后&#xff0c;在任意文件夹右键&#xff0c;出现下图所示&#xff0c;即为安装成功。 3.【Git Bash Here】调出命令窗口&#xff0c;设置用户名和 email 地址。 gi…...

leetcode刷题日记——单词规律

[ 题目描述 ]&#xff1a; [ 思路 ]&#xff1a; 题目要求判断字符串 s 中的单词是否按照 pattern 这种模式排列具体思路和 205. 同构字符串基本一致&#xff0c;可以通过 hash 存储来实现思路二&#xff0c;通过字符串反推 pattern&#xff0c;如果一致&#xff0c;则遵循相…...

Ubuntu 修改语言报错Failed to download repository information

1.进入文件(ps:vim可能出现无法修改sources.list文件的问题&#xff09; sudo gedit /etc/apt/sources.list2.修改(我是直接增添以下内容在其原始源前面&#xff0c;没有删原始内容)文件并保存&#xff0c;这里会替换原文件 deb http://mirrors.aliyun.com/ubuntu/ focal mai…...

烹饪与餐饮管理实训室数字课程开发方案

烹饪与餐饮管理专业需要具有餐饮产品设计、研发的能力&#xff1b; 具有饮食美学、科学配餐与高端宴席设计的能力&#xff1b; 具有餐饮企业、中央厨房运营管理的能力&#xff1b; 具有餐饮信息化系统应用、数字化运营的能力&#xff0c;这些能力的培养&#xff0c;需要烹饪与餐…...

关于模拟噪声分析的11个误区

目录 1. 降低电路中的电阻值总是能改善噪声性能 2. 所有噪声源的噪声频谱密度可以相加&#xff0c;带宽可以在最后计算时加以考虑 3. 手工计算时必须包括每一个噪声源 4. 应挑选噪声为ADC 1/10的ADC驱动器 5. 直流耦合电路中必须始终考虑1/f噪声 6. 因为1/f噪声随着频率降…...

基于 S2SH 架构的企业车辆管理系统:设计、实现与应用

在企业运营中&#xff0c;车辆管理是一项重要工作。随着企业规模的扩大&#xff0c;车辆数量增多&#xff0c;传统管理方式效率低下&#xff0c;难以满足企业需求。本文介绍的基于 S2SH 的企业车辆管理系统&#xff0c;借助现代化计算机技术&#xff0c;实现车辆、驾驶员和出车…...

51单片机实验七:EEPROM AT24C02 与单片机的通信实例

目录 一、实验环境与实验器材 二、实验内容及实验步骤 三、proteus复位电路 1.改电阻的阻值&#xff08;方法一&#xff09; 2.改电阻的属性&#xff08;方法2&#xff09; 一、实验环境与实验器材 环境&#xff1a;Keli&#xff0c;STC-ISP烧写软件,Proteus. …...

【TeamFlow】 1 TeamFlow 去中心化生产协同系统架构

总体架构设计 采用四层混合架构&#xff0c;结合分层设计与去中心化网络&#xff1a; #mermaid-svg-qBgw9wMd8Gi0gOci {font-family:"trebuchet ms",verdana,arial,sans-serif;font-size:16px;fill:#333;}#mermaid-svg-qBgw9wMd8Gi0gOci .error-icon{fill:#552222;}…...

第 8 期:条件生成 DDPM:让模型“听话”地画图!

本期关键词&#xff1a;Conditional DDPM、Class Embedding、Label Control、CIFAR-10 条件生成 什么是条件生成&#xff08;Conditional Generation&#xff09;&#xff1f; 在标准的 DDPM 中&#xff0c;我们只是“随机生成”图像。 如果我想让模型生成「小狗」怎么办&…...

树莓派超全系列教程文档--(32)config.txt常用音频配置

config.txt常用音频配置 板载模拟音频&#xff08;3.5mm耳机插孔&#xff09;audio_pwm_modedisable_audio_ditherenable_audio_ditherpwm_sample_bits HDMI音频 文章来源&#xff1a; http://raspberry.dns8844.cn/documentation 原文网址 板载模拟音频&#xff08;3.5mm耳机…...

Perf学习

重要的能解决的问题是这些&#xff1a; perf_events is an event-oriented observability tool, which can help you solve advanced performance and troubleshooting functions. Questions that can be answered include: Why is the kernel on-CPU so much? What code-pa…...

量子神经网络编译器开发指南:从理论突破到产业落地全景解析

本文深度剖析IBM Qiskit 5.0量子经典混合编译器的技术架构&#xff0c;详解如何基于含噪量子处理器实现MNIST手写数字分类任务&#xff08;准确率达89%&#xff09;。结合本源量子云、百度量子等国内平台免费配额政策&#xff0c;系统性阐述量子神经网络开发的技术路线与资源获…...

守护者进程小练习

守护者进程含义 定义&#xff1a;守护进程&#xff08;Daemon&#xff09;是运行在后台的特殊进程&#xff0c;独立于控制终端&#xff0c;周期性执行任务或等待事件触发。它通常以 root 权限运行&#xff0c;名称常以 d 结尾&#xff08;如 sshd, crond&#xff09;。 特性&a…...

研究生面试常见问题

研究生面试是考研复试的重要环节&#xff0c;面试表现直接关系到录取结果。以下从面试流程、常见问题分类及回答技巧等方面为您整理了相关内容&#xff0c;帮助您更好地准备面试。 一、研究生面试的基本流程 自我介绍&#xff1a;通常需要准备1分钟左右的中文或英文自我介绍&a…...

极狐GitLab 登录限制如何设置?

极狐GitLab 是 GitLab 在中国的发行版&#xff0c;关于中文参考文档和资料有&#xff1a; 极狐GitLab 中文文档极狐GitLab 中文论坛极狐GitLab 官网 登录限制 (BASIC SELF) 您可以使用登录限制自定义 Web 界面以及基于 HTTP(S) 的 Git 的身份验证限制。 设置 要访问登录限…...

AI驱动商业变革:零售行业的智能化跃迁

引言&#xff1a;AI技术迈入黄金时代 2024年成为生成式AI&#xff08;Gen AI&#xff09;全面落地的关键年。据麦肯锡《技术趋势展望》报告&#xff0c;生成式AI相关投资同比增长​7倍​​&#xff0c;其经济价值预计达​​2.6-4.4万亿美元​​[1]。在零售领域&#xff0c;该技…...

初始图像学(6)

Camera类 我们之前学了很多的图形学知识和相关的程序&#xff0c;现在我们停下脚步&#xff0c;来好好整理一下我们学习的内容&#xff0c;我们将之前的视口代码和渲染代码合并到一个新的单类camera.h&#xff0c;这个类主要负责两项任务&#xff1a; 构建并发射光线到世界中 …...

【React】通过 fetch 发起请求,设置 proxy 处理跨域

fetch 基本使用跨域处理 fetch 基本使用 在node使用原生ajax发请求&#xff1a;XMLHttpRequest()1.获取xhr对象 2.注册回调函数 3.设置参数&#xff0c;请求头 4.发起连接原生ajax没有带异步处理 promise&#xff1b;原生ajax封装一下&#xff0c;以便重复调用jQuery&#…...

好数对的数目

题目描述 给你一个整数数组 nums。 如果一组数字 (i, j) 满足 nums[i] nums[j] 且 i < j&#xff0c;就可以认为这是一组 好数对。 返回 好数对 的数目。 示例 示例 1&#xff1a; 输入&#xff1a;nums [1,2,3,1,1,3] 输出&#xff1a;4 解释&#xff1a; 有 4 组好…...

Animated Raindrop Ripples In HLSL

这节课是利用材质做雨滴i效果 首先是创建一个圆环&#xff0c;实际上他就是为了创建一个圆&#xff0c;但是是空心的&#xff0c;可以看之前我的做法&#xff0c;这里以他的为准 创建圆环 就是当uv的点在max_radius和min_radius之间的时候绘制。 他这里写了ringThickness&a…...

Linux学习——守护进程编程

一、守护进程含义及实现过程 1、含义 守护进程&#xff08;Daemon Process&#xff09; 是操作系统中一种在后台长期运行的特殊进程&#xff0c;通常不与用户直接交互。它独立于控制终端&#xff0c;用于执行周期性任务或系统服务&#xff08;如日志管理、网络服务等&#xff…...

【C++】 —— 笔试刷题day_19

一、小易的升级之路 题目解析 小易现在要打游戏&#xff0c;现在游戏角色的初始能力值为a&#xff0c;我们会遇到n个怪&#xff0c;这些怪物的防御值为b1、b2、b3...&#xff0c;如果我们的能力值要高于或者等于怪物的防御值&#xff0c;那我们的能力值就会加bi&#xff1b;如…...

gitee提交大文件夹

# 安装 Git LFS&#xff08;如果未安装&#xff09; git lfs install# 跟踪整个大文件夹&#xff08;或特定大文件类型&#xff09; git lfs track "big_folder/**" # 替换为你的文件夹名# 提交并推送 git add .gitattributes big_folder/ git commit -m "add …...

纯CSS实现自动滚动到底部

<!DOCTYPE html> <html lang"zh-CN"><head><meta charset"UTF-8" /><meta name"viewport" content"widthdevice-width, initial-scale1.0" /><title>自动滚动到底部</title><style>*…...

WInform当今技术特性分析

Windows Forms (WinForms) 技术特性分析 引言 Windows Forms (WinForms) 作为微软最早推出的基于.NET的图形用户界面开发框架&#xff0c;已经存在了20多年。在如今充满了各种现代UI框架的软件开发生态系统中&#xff0c;WinForms仍然保持着其独特的地位。本文将深入分析WinF…...

6.5 GitHub监控系统实战:双通道采集+动态调度打造高效运维体系

GitHub Sentinel Agent 定期更新功能设计与实现 关键词:GitHub API 集成、定时任务调度、Python 爬虫开发、SMTP 邮件通知、系统稳定性保障 1. GitHub 项目数据获取功能 1.1 双通道数据采集架构设计 #mermaid-svg-ZHJIMXcMAyDHVhmV {font-family:"trebuchet ms",v…...

自动驾驶安全模型研究

自动驾驶安全模型研究 自动驾驶安全模型研究 自动驾驶安全模型研究1.自动驾驶安全模型概述2. 自动驾驶安全模型应用3. 自动驾驶安全模型介绍3.1 Last Point to Steer3.2 Safety Zone3.3 RSS (Responsibility-Sensitive Safety)3.4 SFF (Safety Force Field)3.5 FSM (Fuzzy Safe…...

4090租用,各云GPU平台价格对比清单及建议

根据各平台的价格和型号配置&#xff0c;以下是通过DeepSeek-R1进行分析后&#xff0c;给出的建议。 一、按显存需求推荐 1.24G显存需求&#xff08;适合常规AI训练/推理、中小模型&#xff09; 性价比首选&#xff1a;智星云&#xff08;1.35元/小时&#xff09; &#xff0…...

Linux:简单指令(二)

文章目录 man ~~echocatcp指令which ~~mvless时间相关的指令find 要么对内容要么对属性操作 决定路径开始定位文件&#xff0c;也可以相对路径 家目录/ man ~~ 1查询具体命令 我们可以man man 可以看man 的描述 我们可以man 数字 ~~ 可以从上到下查询 2查询仿命令 3查询具体接口…...

代码随想录算法训练营day7(字符串)

华子目录 反转字符串中的单词思路 右旋字符串思路 反转字符串中的单词 https://leetcode.cn/problems/reverse-words-in-a-string/description/ 思路 先将字符串s按照空格切分为列表s_list&#xff08;使用s.split()&#xff09;再进行反转操作再将列表拼接为字符串&#xff…...

Android studio—socketIO库的emit与return的使用

文章目录 一、Socket.IO库简单使用说明1. 后端 Flask Flask-SocketIO2. Android 客户端集成 Socket.IO3. 布局文件注意事项 二、接受服务器消息的二种方法1. 客户端接收通过 emit 发送的消息功能使用场景后端代码&#xff08;Flask-SocketIO&#xff09;客户端代码&#xff08…...

【Drools+springboot3规则匹配】

文章目录 一、 业务场景概述二、整体技术架构三、Drools概述1. Drools 简介2. Drools Rete 算法与flink-cep的区别?2.1 Rete 算法概述2.2 Flink CEP 概述四、代码实现4.1 导入依赖4.2 从kafka消费数据4.3 核心类,触发匹配操作并将匹配数据写入mysql4.4 Drools 管理4.5 相关的…...

MAC-如果是分页查询,怎么分批次in;基于多线程的分页查询工具类

如果是分页查询,in怎么分批 在处理分页查询时,如果 IN 子句中的参数数量过大(例如超过数据库限制,如 MySQL 的 max_allowed_packet 或性能瓶颈),可以通过 ​​分批查询​​ 和 ​​结果合并​​ 的方式解决。以下是具体实现步骤: ​​1. 核心思路​​ 将大的 IN 列表拆…...