获取和安装企业版许可证

Nuodb的企业版需要许可证。 有关Nuodb版本的更多信息,请参阅 关于NOODB版本.

如果安装了有效的非过期企业版许可证(请参阅 安装企业版许可证),然后启用企业版提供的功能。 否则,可用的功能是根据社区版本提供的功能。

Nuodb的社区版将用户限制为一个存储管理器(SM)和三个事务引擎(TE),而企业版本没有限制。 每当用户请求要启动的NOODB数据库进程(SM或TE)时,就会强制与社区许可证相关联的限制。

获取企业版许可证

要获取启用企业版的部署所需的许可证文件,客户应联系其Nuodb支持代表。

NOODB许可证文件的内容具有以下形式:

-----BEGIN LICENSE-----
<base64-encoded data>
-----END LICENSE-----
重要的是,许可证文件未以任何方式修改,以便诺福德可以验证许可证(这包括在文件中更改空格,如果文件复制到编辑器,则可能在Windows上无意中发生的更改空格像记事本)。

检查Nuodb许可证文件

可以使用以下命令打印在许可证文件中编码的人为可读信息:

nuocmd --show-json check license --license-file /tmp/nuodb.lic
{
  "expires": "2119-08-16T20:00:30.720739",
  "holder": "Test Customer",
  "type": "ENTERPRISE"
}

建议在安装许可证之前在安装许可证之前执行此命令,以确保许可证在将其安装到域之前具有正确的属性。

检查有效许可证

可以使用以下命令检查域或域的有效许可或特定Nuodb管理进程(AP):

nuocmd --show-json get effective-license
{
  "decodedLicense": {
    "type": "COMMUNITY"
  },
  "effectiveForDomain": false
}

The decodedLicense field contains the same information that would be found by running nuocmd check license, and the effectiveForDomain field indicates whether the license is stored in the domain state, which makes it available to all APs. In previous versions of NuoDB, the only way to install a license was by storing it in $NUODB_CFGDIR/nuodb.lic, which meant it had to be installed on all NuoDB Admin servers manually. In the example above, nuocmd get effective-license is run against a server that has no $NUODB_CFGDIR/nuodb.lic file and has no license installed in the domain state (indicated by "effectiveForDomain": false), so the default license of type of COMMUNITY is in effect for the AP.

安装企业版许可证

检查了许可证文件中编码的属性是否正确,许可证可以使用以下命令将许可证安装到域中:

nuocmd set license --license-file /tmp/nuodb.lic

这会导致许可证传播到域中的所有AP。

确认许可证级别

To confirm that your NuoDB domain has the correct license, use the nuocmd get effective-license command:

nuocmd --show-json get effective-license
{
  "decodedLicense": {
    "expires": "2119-08-16T20:00:30.720739",
    "holder": "Test Customer",
    "type": "ENTERPRISE"
  },
  "effectiveForDomain": true,
  "encodedLicense": "-----BEGIN LICENSE----- ... -----END LICENSE-----\n"
}

The output above shows that the license type is ENTERPRISE, which imposes no limits on the user. The effectiveForDomain field is true to indicate that the license is stored in the domain state and available to all APs.

The original way of installing a license by creating file $NUODB_CFGDIR/nuodb.lic still works but it is our recommendation to use the new method. 新方法优先于原始方式。

For more information on NuoDB Command (nuocmd) and other command line tools, see 命令行工具.