当前位置:网站首页>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.
边栏推荐
- 表达式引擎在转转平台的实践
- Promise学习(二)一篇文章带你快速了解Promise中的常用API
- Data frame and remote frame of CAN communication
- [Open class preview]: Research and application of super-resolution technology in the field of video image quality enhancement
- Aeraki Mesh 正式成为 CNCF 沙箱项目
- 迁移学习冻结网络的方法:
- Kaitian aPaaS mobile phone number empty number detection [Kaitian aPaaS battle]
- 如何利用DevExpress控件绘制流程图?看完这篇文章就懂了!
- 博弈论(Depu)与孙子兵法(42/100)
- 【likeshop】回收租凭系统100%开源无加密 商城+回收+租赁
猜你喜欢
随机推荐
Solve vscode input! Unable to quickly generate skeletons (three methods for the new version of vscode to quickly generate skeletons)
安装apex报错
【社区明星评选】第24期 8月更文计划 | 笔耕不辍,拒绝躺平!更多原创激励大礼包,还有华为WATCH FIT手表!
Visualization of lag correlation of two time series data in R language: use the ccf function of the forecast package to draw the cross-correlation function, and analyze the lag correlation according t
深入理解 Istio —— 云原生服务网格进阶实战
Flutter Widget 如何启用和屏蔽点击事件
上周热点回顾(7.25-7.31)
R语言检验时间序列的平稳性:使用tseries包的adf.test函数实现增强的Dickey-Fuller(ADF)检验、检验时序数据是否具有均值回归特性(平稳性)、具有均值回归特性的案例
Kaitian aPaaS mobile phone number empty number detection [Kaitian aPaaS battle]
Audio and Video Technology Development Weekly | 256
redis6 跟着b站尚硅谷学习
R language ggplot2 visualization: use the ggdensity function of the ggpubr package to visualize density plots, use the stat_central_tendency function to add mean vertical lines to the density and cust
小程序插件如何帮助开发者受益?
Promise学习(一)Promise是什么?怎么用?回调地狱怎么解决?
mysql进阶(二十二)MySQL错误之Incorrect string value中文字符输入错误问题分析
How to get the address of WeChat video account (link address of WeChat public account)
Online - GCeasy GC log analysis tools
The four methods of judging JS data type
数字化转型实践:世界级2B数字化营销的方法框架
Istio Meetup China:全栈服务网格 - Aeraki 助你在 Istio 服务网格中管理任何七层流量