达梦数据库配置MPP集群dmmpp.ctl时提示“txt file(../data/EP01/dmmpp.ini) does not exist!”

在Linux虚拟机环境配置MPP集群,在配置dmmpp.ctl时遇到了问题,在执行 ./dmctlcvt t2c …/data/EP01/dmmpp.ini …/data/EP01/dmmpp.ctl
的转换语句时遇到了报错,提示“txt file(…/data/EP01/dmmpp.ini) does not exist!”
文件dmmpp.ini不存在,单该文件是刚刚创建的,因此原因应该出在权限的问题上。
解决方法:
1、进入dmmpp.ini文件所在的路径:cd /opt/dmdbms/data/EP01/
2、ll命令查看文件以及文件所在的用户组。

可以看到dmmpp.ini文件所属的用户和用户组都是root
3、su切换到root用户
4、执行权限命令chown dmdba.dinstall dmmpp.ini ;chmod 766 dmmpp.ini将dmmpp.ini文件所属用户改为dmdba用户组为dinstall,并赋予权限。
在这里插入图片描述
5、切换到dmdba用户
6、再次执行 ./dmctlcvt t2c …/data/EP01/dmmpp.ini …/data/EP01/dmmpp.ctl语句,成功。
在这里插入图片描述

出现这个问题完全是粗心导致的,因此在后面的练习里,应该更加的细心才可以。

The error message "error while loading shared libraries: /athrun/lib/librockchip_mpp.so.1: file too short" typically indicates that the shared library file `librockchip_mpp.so.1` is corrupted or incomplete. This can occur due to various reasons, such as incomplete installation or file corruption. To resolve this issue, you can try the following steps: 1. First, check if the library file exists in the specified path (`/athrun/lib/`). You can use the `ls` command to verify its presence: ``` ls /athrun/lib/librockchip_mpp.so.1 ``` 2. If the file exists, try reinstalling the library by downloading it from a reliable source or reinstalling the package it belongs to. Make sure to download or install the complete and uncorrupted file. 3. If the file doesn't exist or reinstalling doesn't solve the issue, it's possible that there was an error during the installation or an issue with the file itself. In such cases, you may need to contact the software or library provider for further assistance. Additionally, you can also check if there are any dependencies required by the library and make sure they are installed correctly. The `ldd` command can help you identify the dependencies: ``` ldd /athrun/lib/librockchip_mpp.so.1 ``` Make sure all the listed dependencies are present and properly installed on your system. If the issue persists or you need further assistance, please provide more details about your system, the software or package you are working with, and any additional error messages you encounter.
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值