注册
达梦DM8基于麒麟系统数据库实例创建
培训园地/ 文章详情 /

达梦DM8基于麒麟系统数据库实例创建

冥净 2023/06/05 2650 0 0

1.配置DM8 安装环境

1.1新建用户和组

[root@localhost]groupadd dinstall
[root@localhost]useradd -g dinstall dmdba
[root@localhost]passwd dmdba
image.png

1.2创建数据库软件安装目录

[root@localhost]mkdir -p /dm8
[root@localhost]chown dmdba:dinstall -R /dm8
[root@localhost]ls -ld /dm8
image.png

1.3挂载 iso 文件

[root@localhost]mount -o loop /dm8/dm8_20220525_x86_rh6_64.iso /mnt
image.png

1.4设置 DM 安装的临时目录

[root@localhost opt]# mkdir -p /opt/tmp
[root@localhost opt]# chmod 777 -R /opt/tmp
[dmdba@localhost ~]$ vi .bash_profile
export DM_INSTALL_TMPDIR=/opt/tmp
[dmdba@localhost ~]$ source .bash_profile
image.png

image.png

1.5安装DM8

[root@localhost ~]# echo $DISPLAY
:0.0
[root@localhost ~]# xhost +
access control disabled, clients can connect from any host

image.png
[dmdba@localhost ~]$ export DISPLAY=:0.0
[dmdba@localhost ~]$ xhost +
image.png
[dmdba@localhost ~]$ cd /mnt
[dmdba@localhost mnt]$ ./DMInstall.bin
image.png
image.pngimage.pngimage.pngimage.pngimage.pngimage.pngimage.pngimage.png
[root@localhost ~]# /dm8/script/root/root_installer.sh
image.pngimage.png

2、数据库实例创建

2.1 创建数据库实例

[dmdba@localhost ~]$ cd /dm8/tool/
[dmdba@localhost tool]$ ./dbca.sh
image.png
image.pngimage.pngimage.pngimage.pngimage.pngimage.pngimage.pngimage.pngimage.png
[root@localhost ~]# mv /dm8/bin/DmServiceDMSERVER.service /usr/lib/systemd/system/DmServiceDMSERVER.service
[root@localhost ~]# systemctl enable DmServiceDMSERVER.service
[root@localhost ~]# systemctl start DmServiceDMSERVER.service

image.png
image.png

评论
后发表回复

作者

文章

阅读量

获赞

扫一扫
联系客服