当前位置:网站首页>Dameng replaces the officially authorized dm.key
Dameng replaces the officially authorized dm.key
2022-08-01 12:04:00 【Handsome ちいさい Treasure】
Dameng replaces the official authorizationdm.key
DM技术交流QQ群:940124259
1. 简单介绍
In the early stage of the database adaptation test, it is inevitable to obtain a trial temporary authorization file through a business relationship applicationdm.key,General trial period3个月,Later, the company launched trials one after anotherkey期限有6个月、12个月.
Once the trial period has expired,The database process will automatically stop,At that time, I had to rush to find a business to continue to apply for a renewal trial,Or have purchased a formal authorization certificate,Requires official removal from cargo CD-ROM mediakey,Formal after uploading to the database serverkeyThe replacement takes effect.
总体来说,Replace Damon officiallydm.key的操作并不复杂,It's extremely simple for those in the industry.But consider the crowd who have never been exposed to the Damon database,I wrote this article specifically,It is easy for anyone to understand and operate,To spread it out to everyone.
注意事项:Like with a normal security versionSECDameng database software,At first use the default built into the softwarekey(Trial license)初始化的库,Next time, take the official security version authorizationdm.keyReplacement is invalid,That is, the database cannot be started.2. 操作指南
2.1 针对Linux操作系统环境
2.1.1 Confirm Damondmservermain process path
View from the command line terminaldmserver进程方法一: ps -ef | grep dmserver方法二: pgrep dmserver | xargs -I FS ls -l /proc/FS/exe | awk '{print $NF}'
输出结果: /home/dmdba/dmdbms/bin/dmserver
This example environment is listeddmserverThe path where the process is located/home/dmdba/dmdbms/bin,and the process isdmdba用户启动的.

| 注意:Position according to your real environmentdmserverThe path and the owner of the process.The second method is listed to deal with some people./dmserver启动的情况,Displays the full path of the process. |
|---|
2.1.2 Upload a CD media licensedmXXXXXX.key文件
建议:If you are not familiar with system operation,Best to use steps1The system user of the process known in the query to copy orFTP上传.
将授权dmXXXXXX.keyThe file is moved to the path found in the previous stepbin下,同时将dmXXXXXX.keyThe file name was renameddm.key.
If you change your name,The operating system prompts that a file with the same name already exists,直接覆盖替换即可.

| 注意:Make the user who started the process have at least readable permissions on the authorization file -r--r--r--. |
|---|
2.1.3 Overload formal authorization information into the library
Available through Damon's management tool ordisqlThe command line window executes the stored procedure,Let it load the authorization nowkey文件生效.call sp_load_lic_info();
| 注意:In fact, it is also possible not to execute the above stored procedure,让dmserverThe process itself automatically loads and takes effect(As for how long it will take effect,I don't remember,大概半小时). In addition to executing stored procedures,You can also restart the service process of Dameng database to take effect,Do not use this method for production libraries,Because there will be short-term downtime. Depends on your environment,Restart the corresponding Dameng instance service,可以systemctl restart DmServiceXXXX,可以/bin/DmServiceXXXX restart, I do not recommend restarting the service in this way,Encounter a cluster environment,You will not start and stop the normal operation of the cluster,May cause cluster failure. |
|---|
2.1.4 核查license信息
执行查询SQL,The product serial number can be obtained,产品期限、Supported cluster types、Authorized Customer Name.
If using official authorizationkey并生效后,The product expiration date queried is empty,That is, a permanent license.
About the cluster types supported by this license can be passedcluster_typeThe field return result is known,There are four characters in total,使用1Indicates support for the corresponding cluster feature,第1个字符表示DM DATAWATCH数据守护集群 , 第2个字符表示 MPP大规模并行集群, 第3个字符表示DMRWC读写分离集群,第4个字符表示 DSCData sharing storage cluster,When all four characters are 0时,Indicates common stand-alone functions only.
例如:0010 表示第3字符为1Indicates that the read-write separation cluster is supported.
select series_no, expired_date, cluster_type, authorized_customer from v$license;

或者 Log in directly to the management tool,Click the connection root node in the object navigation bar on the left Look at the status bar at the bottom corner,The authorization period and authorization unit information can be found out.

2.2 针对Windows操作系统环境
2.2.1 确认dmservermain process path
打开任务管理器,找到dmserverprocess and open the path where it is located,即dmserver父目录bin.
或者
进入服务管理窗口(开始–>菜单–>运行–>services.msc 换车),Look for the specified Damon service nameDmServiceXXXX,右键属性打开,可查看到bin的完整路径.

或者 通过powershell查看得知.
2.2.2 Upload a CD media licensedmXXXXXX.key文件
建议:If you are not familiar with system operation,Best to use steps1The location of the process known from the query,Make an upload copy orFTP上传.
将授权dmXXXXXX.keyThe file is moved to the path found in the previous stepbin下,同时将dmXXXXXX.keyThe file name was renameddm.key.
If you change your name,The operating system prompts that a file with the same name already exists,直接覆盖替换即可.
2.2.3 Overload formal authorization information into the library
Available through Damon's management tool ordisqlThe command line window executes the stored procedure,Let it load the authorization nowkey文件生效.call sp_load_lic_info();
| 注意:In fact, it is also possible not to execute the above stored procedure,让dmserverThe process itself automatically loads and takes effect(As for how long it will take effect,I don't remember,大概半小时). In addition to executing stored procedures,You can also restart the service process of Dameng database to take effect,Do not use this method for production libraries,Because there will be short-term downtime. Depends on your environment,in the Service Management window,Manually restart the selected Dameng instance service,I do not recommend restarting the service in this way,Encounter a cluster environment,You will not start and stop the normal operation of the cluster,May cause cluster failure. |
|---|
2.2.4 核查license信息
此处省略,请参照2.1.4Section content reading comprehension.
边栏推荐
- redis6 跟着b站尚硅谷学习
- 【随心笔记】假期快过去了,都干了点什么
- R language ggplot2 visualization: use ggpubr package ggscatter function visualization scatterplot, use xscale wasn't entirely specified X axis measurement adjustment function, set the X coordinate for
- Stone Technology builds hard-core brand power and continues to expand the global market
- Promise学习(二)一篇文章带你快速了解Promise中的常用API
- 【讲座分享】“营收“看金融
- 在线GC日志分析工具——GCeasy
- MarkDown公式指导手册
- Promise to learn several key questions (3) the Promise - state change, execution sequence and mechanism, multitasking series, abnormal penetration, interrupt the chain of Promise
- 小程序插件如何帮助开发者受益?
猜你喜欢

安装apex报错

redis6 跟着b站尚硅谷学习

Data frame and remote frame of CAN communication

数字化转型实践:世界级2B数字化营销的方法框架
![[Open class preview]: Research and application of super-resolution technology in the field of video image quality enhancement](/img/fc/cd859efa69fa7b45f173de74c04858.png)
[Open class preview]: Research and application of super-resolution technology in the field of video image quality enhancement

在线GC日志分析工具——GCeasy

蔚来又一新品牌披露:产品价格低于20万

收藏|机械工程师面试常问问题

【倒计时5天】探索音画质量提升背后的秘密,千元大礼等你来拿

Promise to learn several key questions (3) the Promise - state change, execution sequence and mechanism, multitasking series, abnormal penetration, interrupt the chain of Promise
随机推荐
Promise learning (1) What is Promise?how to use?How to solve callback hell?
MarkDown公式指导手册
JS 中的 undefined 和 null 的区别
pandas connects to the oracle database and pulls the data in the table into the dataframe, filters all the data from the current time (sysdate) to one hour ago (filters the range data of one hour)
Promise学习(三)Promise的几个关键性问题 -- 状态改变、执行顺序与机制、多任务串联、异常穿透、中断promise链
CloudCompare&PCL ICP配准(点到面)
.NET性能优化-使用SourceGenerator-Logger记录日志
Envoy 源码流程图
[5 days countdown] to explore the secret behind the great quality promotion, gift waiting for you to take of $one thousand
如何获取微信视频号的地址(微信公众号的链接地址)
Data frame and remote frame of CAN communication
C#/VB.NET 将PPT或PPTX转换为图像
R语言ggplot2可视化:使用ggpubr包的ggdensity函数可视化密度图、使用stat_central_tendency函数在密度中添加均值竖线并自定义线条类型
冰冰学习笔记:gcc、gdb等工具的使用
R语言检验时间序列的平稳性:使用tseries包的adf.test函数实现增强的Dickey-Fuller(ADF)检验、检验时序数据是否具有均值回归特性(平稳性)、具有均值回归特性的案例
SCHEMA解惑
语音聊天app源码——语音聊天派对
(ES6以上以及TS) Map对象转数组
【Unity3D插件】AVPro Video插件分享《视频播放插件》
R语言ggplot2可视化:使用ggpubr包的geom_exec函数执行geom_*函数(没有任何参数需要放置在aes中)