This topic describes license commands that you can use to register a license for or view the license of a cluster. You can specify the -h or --help option in a command to query the help information of its subcommands. You can also specify the -v or --verbose option to query the execution details of a command that returns an error.
Note
The commands mentioned in this topic apply only to a standalone OceanBase cluster deployed by using OceanBase Deployer (obd). The installation package for the standalone edition is named oceanbase-standalone. If you use these commands for other editions, errors occur.
obd license load
You can run this command to register a license for the specified cluster.
obd license load <deploy_name> -f <license.key>
#example
obd license load test -f OceanBase.lic
The deploy name parameter specifies the name of the deployed cluster. You can consider it as an alias for the configuration file. The -f or --file option specifies the path where the license file is stored.
obd license show
You can run this command to query the license of the specified cluster.
obd license show <deploy_name>
#example
obd license show test
The deploy name parameter specifies the name of the deployed cluster. You can consider it as an alias for the configuration file.
If no license is registered for the cluster, the output is as follows. For more information about the fields in the output, see the description of the DBA_OB_LICENSE view in the documentation of OceanBase Database Standalone Edition.
+---------------------------------------------------------------------------------------------------------------------------------------------------------------+
| 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 |
+------------+------------+--------------+--------------+--------------+---------------------+---------------------+---------------------+-----------+----------+