GaussDB T数据库重装报错Error: Database has been installed already
【摘要】 发现有一些环境变量设置,检查install.py文件发现有逻辑表示如果发现有设置相关变量,直接报错,所有把/home/omm/.bashrc中的变量设置去掉即可。
问题描述
再进行GaussDB T数据库重装时报错:Database has been installed already.
[root@pr7 omm]# cd /opt/software/GaussDB_100_1.0.1-DATABASE-REDHAT-64bit[root@pr7 GaussDB_100_1.0.1-DATABASE-REDHAT-64bit]# python install.py -U omm:dbgrp -R /opt/gaussdb/app -D /opt/gaussdb/data -C LSNR_ADDR=127.0.0.1,192.168.1.187 -C LSNR_PORT=1888 -C DATA_BUFFER_SIZE=200M -C SHARED_POOL_SIZE=100M -C TEMP_BUFFER_SIZE=100M Checking runner. Checking parameters. End check parameters. Checking user. End check user. Checking old install. Error: Database has been installed already. Please refer to install log "/home/omm/zengineinstall.log" for more detailed information.
专家解答
检查安装日志:/home/omm/zengineinstall.log
[omm@pr7 ~]$ cat zengineinstall.log [2019-12-30 03:41:16] Begin init... [2019-12-30 03:41:16] Installer runs on python version : 2.7.5 [2019-12-30 03:41:16] End init [2019-12-30 03:41:16] Using run file as : /opt/software/GaussDB_100_1.0.1-DATABASE-REDHAT-64bit/GaussDB_100_1.0.1-RUN-REDHAT-64bit.tar.gz [2019-12-30 03:41:16] Checking runner. [2019-12-30 03:41:16] Check runner user id and group id is : 0, 0 [2019-12-30 03:41:16] End check runner is root [2019-12-30 03:41:16] Checking parameters. [2019-12-30 03:41:16] Program path is separated with data path! [2019-12-30 03:41:16] Using omm:dbgrp to install database [2019-12-30 03:41:16] Using install program path : /opt/gaussdb/app [2019-12-30 03:41:16] Using option : all [2019-12-30 03:41:16] Using install data path : /opt/gaussdb/data [2019-12-30 03:41:16] Using set config parameters : ['LSNR_ADDR=127.0.0.1,192.168.1.187', 'LSNR_PORT=1888', 'DATA_BUFFER_SIZE=200M', 'SHARED_POOL_SIZE=100M', 'TEMP_BUFFER_SIZE=100M'] [2019-12-30 03:41:16] End check parameters. [2019-12-30 03:41:16] Checking user. [2019-12-30 03:41:16] Check user cmd: id -g omm | grep -q -w 0 [2019-12-30 03:41:16] Check user cmd: id -gn omm [2019-12-30 03:41:16] End check user. [2019-12-30 03:41:16] Checking old install. [2019-12-30 03:41:16] Using user profile : /home/omm/.bashrc [2019-12-30 03:41:16] Error: Database has been installed already.
发现在读取/home/omm/.bashrc文件后立即报错,查看文件内容:
[omm@pr7 ~]$ cat /home/omm/.bashrc # .bashrc # Source global definitions if [ -f /etc/bashrc ]; then . /etc/bashrc fi # Uncomment the following line if you don't like systemctl's auto-paging feature: # export SYSTEMD_PAGER= # User specific aliases and functions export GSDB_HOME="/opt/gaussdb/app" export PATH="/opt/gaussdb/app/bin":$PATH export LD_LIBRARY_PATH="/opt/gaussdb/app/lib":"/opt/gaussdb/app/add-ons":$LD_LIBRARY_PATH export GSDB_DATA="/opt/gaussdb/data"
发现有一些环境变量设置,检查install.py文件发现有逻辑表示如果发现有设置相关变量,直接报错:
if isFind: logExit("Database has been installed already.")
所有把/home/omm/.bashrc中的变量设置去掉即可。
转自墨天轮
【版权声明】本文为华为云社区用户转载文章,如果您发现本社区中有涉嫌抄袭的内容,欢迎发送邮件进行举报,并提供相关证据,一经查实,本社区将立刻删除涉嫌侵权内容,举报邮箱:
cloudbbs@huaweicloud.com
- 点赞
- 收藏
- 关注作者
评论(0)