首批通过分布式安全可靠测评,为关键业务系统打造
License 命令组
更新时间:2025-08-29 19:57:50
本文介绍 License 命令组,使用命令可以注册或查看集群中的许可证信息。您可以在每个层级中使用 -h/--help 选项查看子命令的帮助信息。同样的,当命令执行报错时,您亦可使用 -v/--verbose 查看命令的详细执行过程。
说明
本文介绍的命令仅支持对通过 obd 部署的单机版 OceanBase 集群生效(即,使用的 OceanBase 数据库安装包名为 oceanbase-standalone),其他版本使用该命令会报错。
obd license load
使用该命令可为指定集群注册许可证。
obd license load <deploy_name> -f <license.key>
#example
obd license load test -f OceanBase.lic
参数 deploy name 为部署名,可以理解为配置文件的别名;-f/--file 用于指定许可证文件的路径。
obd license show
使用该命令可以查看指定集群的许可证信息。
obd license show <deploy_name>
#example
obd license show test
参数 deploy name 为部署名,可以理解为配置文件的别名。
未注册 License 时的输出如下,各个字段的详细介绍可参见单机版 OceanBase 数据库文档中 DBA_OB_LICENSE 视图介绍。
+---------------------------------------------------------------------------------------------------------------------------------------------------------------+
| license |
+------------+------------+--------------+--------------+--------------+---------------------+---------------------+---------------------+-----------+----------+
| end_user | license_id | license_code | license_type | product_type | issuance_date | activation_time | expired_time | options | node_num |
+------------+------------+--------------+--------------+--------------+---------------------+---------------------+---------------------+-----------+----------+
| Trial User | Trial ID | Trial Code | Trial | SE | 2025-04-01 10:04:11 | 2025-04-01 10:04:11 | 2025-09-28 10:04:11 | Unlimited | 1 |
+------------+------------+--------------+--------------+--------------+---------------------+---------------------+---------------------+-----------+----------+