您的位置:首页 > 运维架构 > Linux

LINUX下的达梦DM8安装

2020-08-12 15:32 274 查看

LINUX下的达梦DM8安装

环境需求

操作系统
本实验使用centos7(也可以使用Windows(简体中文服务器版sp2以上)/Linux(glibc2.3以上,内核2.6,已安装KDE/GNOME桌面环境)

规划路径及安装用户

[root@localhost ~]# mkdir /dm8
[root@localhost ~]# groupadd dinstall
[root@localhost ~]# useradd -g dinstall dmdba
[root@localhost ~]# passwd dmdba
更改用户dmdba 的密码。
新的密码:
重新输入新的密码:
passwd:所有的身份验证令牌已经成功更新。
root@localhost ~]# chown dmdba:dinstall -R /dm8
[root@localhost ~]# su - dmdba
[dmdba@localhost ~]$vi .bash_profile

[dmdba@localhost ~]$ source .bash_profile
[dmdba@localhost ~]$ echo $DM_HOME
/dm8

设置文件最大打开数

重启服务器生效:
[root@localhost ~]# vi /etc/security/limits.conf
dmdba soft nofile 4096
dmdba hard nofile 65536
临时生效:
[root@localhost ~]# ulimit -n 65536

数据库安装

[root@localhost home]# mount -o loop /home/dm8_setup.iso /mnt
mount: /dev/loop0 is write-protected, mounting read-only
[root@localhost home]#su - dmdba
[dmdba@localhost ~]$ cd /mnt/
[dmdba@localhost mnt]# ./DMInstall.bin
./DMInstall.bin
Extract install files…
若提示Failed to Initialize the GUI, if the current windows does not support the GUI, please enter into the directory of “DMInstall.bin” and use “./DMInstall.bin -i” to run command line installation.
[root@localhost mnt]# xhost +
若提示xhost: unable to open display “”
[root@localhost mnt]# vi /etc/profile
export DISPLAY=:0.0
[root@localhost mnt]# source /etc/profile
[dmdba@localhost mnt]# ./DMInstall.bin




如果安装没有选择key,也可以进行安装
替换key放到目录$DM_HOME/bin,并且重启数据库实例,生效#dmdba环境变量配置





[root@localhost ~]# /dm8/script/root/root_installer.sh

[root@localhost mnt]# /dm8/script/root/root_installer.sh
cd /dm8/tool
[dmdba@localhost tool]$ ./dmservice.sh

如在选择安装组件时选中服务器组件,DM安装过程结束时,将会提示是否初始化数据库,如下图所示。若用户未安装服务器组件,安装完成后,点击“完成”将直接退出,点击“取消”将完成安装,关闭对话框。

到这里达梦DM8安装完毕。

内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: