查看oceanbase的license信息

root@lnob bin\]# obclient -h192.168.207.28 -P2881 -uroot@sys -pxxxxxx. -A -Doceanbase Welcome to the OceanBase. Commands end with ; or \\g. Your OceanBase connection id is 3221600926 Server version: OceanBase 4.2.5.4 (r104030022025070212-37927c3517f028002a34b40302f78cce88afdbd9) (Built Jul 2 2025 12:21:09) 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(root@sys)\[oceanbase\]\> show tables like '%LICENSE%'; +---------------------------------+ \| Tables_in_oceanbase (%LICENSE%) \| +---------------------------------+ \| DBA_OB_LICENSE \| \| __all_license \| +---------------------------------+ 2 rows in set (0.006 sec) obclient(root@sys)\[oceanbase\]\> SELECT \* FROM oceanbase.__all_license; +------------+------------+--------------+--------------+--------------+----------------------------+----------------------------+----------------------------+-----------+----------+----------+----------------------------+----------------------------+ \| LICENSE_ID \| END_USER \| LICENSE_CODE \| LICENSE_TYPE \| PRODUCT_TYPE \| ISSUANCE_DATE \| ACTIVATION_TIME \| EXPIRED_TIME \| OPTIONS \| CORE_NUM \| NODE_NUM \| LTS_TIME \| CLUSTER_ULID \| +------------+------------+--------------+--------------+--------------+----------------------------+----------------------------+----------------------------+-----------+----------+----------+----------------------------+----------------------------+ \| Trial ID \| Trial User \| Trial Code \| Trial \| SE \| 2025-07-22 14:43:30.772011 \| 2025-07-22 14:43:30.772011 \| 2026-01-18 14:43:30.772011 \| Unlimited \| 9999 \| 1 \| 2025-08-11 10:47:52.015326 \| 06C31QW1AKJAFWM2CR6R9QQZR8 \| +------------+------------+--------------+--------------+--------------+----------------------------+----------------------------+----------------------------+-----------+----------+----------+----------------------------+----------------------------+ 1 row in set (0.002 sec) obclient(root@sys)\[oceanbase\]\> SELECT \* FROM DBA_OB_LICENSE; +------------+------------+--------------+--------------+--------------+---------------------+---------------------+---------------------+-----------+----------+----------------------------+ \| END_USER \| LICENSE_ID \| LICENSE_CODE \| LICENSE_TYPE \| PRODUCT_TYPE \| ISSUANCE_DATE \| ACTIVATION_TIME \| EXPIRED_TIME \| OPTIONS \| NODE_NUM \| CLUSTER_ULID \| +------------+------------+--------------+--------------+--------------+---------------------+---------------------+---------------------+-----------+----------+----------------------------+ \| Trial User \| Trial ID \| Trial Code \| Trial \| SE \| 2025-07-22 14:43:30 \| 2025-07-22 14:43:30 \| 2026-01-18 14:43:30 \| Unlimited \| 1 \| 06C31QW1AKJAFWM2CR6R9QQZR8 \| +------------+------------+--------------+--------------+--------------+---------------------+---------------------+---------------------+-----------+----------+----------------------------+ 1 row in set (0.001 sec) [https://www.oceanbase.com/docs/common-oceanbase-database-standalone-1000000003577290](https://www.oceanbase.com/docs/common-oceanbase-database-standalone-1000000003577290 "https://www.oceanbase.com/docs/common-oceanbase-database-standalone-1000000003577290") ### 加载 License 获取 License 文件之后,您可以通过 `ALTER SYSTEM LOAD LICENSE` 语句加载 License。 1. 使用 sys 租户登录数据库。 obclient -hxxx.xxx.xxx.xxx -P2881 -uroot -p****** -Doceanbase -A 2. 查看 License 信息。 您可以查询 `DBA_OB_LICENSE` 查看当前 License 详细内容。 obclient> select * from DBA_OB_LICENSE; 3. 加载 license。 obclient> ALTER SYSTEM LOAD LICENSE ; ##### 说明 `license_file_path`必填项,代表 License 文件的路径。 示例如下。 obclient(root@(none))[oceanbase]> alter system load license "/data/OceanBase.lic"; Query OK, 0 rows affected (0.012 sec) 4. 查看 license 信息。 obclient> select * from DBA_OB_LICENSE;

相关推荐
OceanBase数据库官方博客5 天前
解析 OceanBase 生态工具链 —— OAT / obd / OCP / obshell
数据库·oceanbase·分布式数据库
福大大架构师每日一题9 天前
RAGFlow v0.24.0 发布!全新「内存系统 + 多沙箱引擎 + OceanBase 支持」惊艳登场,功能全面革新!
oceanbase·ragflow
云和恩墨16 天前
云和恩墨zCloud V6.0、zData X V3与OceanBase V4完成兼容互认证,解锁数据管理新可能
oceanbase·兼容认证·zcloud·zdatax
OceanBase数据库官方博客18 天前
从分库分表到原生分布式:高德基于 OceanBase 的数据底座演进之路
数据库·oceanbase·分布式数据库
MoMoSQL66619 天前
2026年1月国产数据库大事记:国开行2822万采购Gbase,浙商银行930万采购GoldenDB,墨天轮发布“2025年度数据库”……
数据库·阿里云·tidb·oceanbase·gaussdb
OceanBase数据库官方博客25 天前
OceanBase场景解码系列三|OB Cloud 如何稳定支撑中企出海实现数 10 倍的高速增长?
数据库·oceanbase·分布式数据库
码海踏浪25 天前
从简单到专业在OceanBase中查看SQL是否走索引
数据库·sql·oceanbase
OceanBase数据库官方博客1 个月前
DeepK 自动程序修复框架论文——OceanBase 校企联合研究
数据库·oceanbase·分布式数据库
OceanBase数据库官方博客1 个月前
高德刘振飞:从自研 OceanBase,回望数据库技术范式变迁
数据库·oceanbase·分布式数据库·高德
MMMMMMMMMMemory1 个月前
社区版oceanbase报警XA事务悬挂
数据库·oceanbase