在麒麟V10下部署达梦数据库DM8
用户名:root
密码:Yunbee123
[root@localhost ~]# uname -a
Linux localhost.localdomain 4.19.90-24.4.v2101.ky10.x86_64 #1 SMP Mon May 24 12:14:55 CST 2021 x86_64 x86_64 x86_64 GNU/Linux
[root@localhost etc]# cat /etc/kylin-release
Kylin Linux Advanced Server release V10 (Sword)
[root@localhost etc]# cat /proc/version
Linux version 4.19.90-24.4.v2101.ky10.x86_64 (KYLINSOFT@localhost.localdomain) (gcc version 7.3.0 (GCC)) #1 SMP Mon May 24 12:14:55 CST 2021
[root@localhost etc]# ldd --version
ldd (GNU libc) 2.28
Copyright (C) 2018 自由软件基金会。
这是一个自由软件;请见源代码的授权条款。本软件不含任何没有担保;甚至不保证适销性
或者适合某些特殊目的。
由 Roland McGrath 和 Ulrich Drepper 编写。
[root@localhost opt]# arch
[root@localhost opt]# lscpu
[root@localhost opt]# free -m
[root@localhost opt]# df -TH
[root@localhost ~]# cd /opt
[root@localhost opt]# ll
总用量 949460
rw-r--r-- 1 root root 972244992 6月 21 10:27 dm8_20231109_x86_kylin10_64.iso
[root@localhost opt]# mkdir /mnt/dm
[root@localhost opt]# mount dm8_20231109_x86_kylin10_64.iso /mnt/dm
mount: /mnt/dm: WARNING: source write-protected, mounted read-only.
[root@localhost opt]# cd /mnt/dm
[root@localhost dm]# ll
总用量 949396
-r-xr-xr-x 1 root root 2588819 11月 9 2023 'DM8 Install.pdf'
-r-xr-xr-x 1 root root 969591871 11月 9 2023 DMInstall.bin
[root@localhost dm]# groupadd dinstall
[root@localhost dm]# useradd -d /home/dmdba -g dinstall -m dmdba -s /bin/bash
[root@localhost dm]# id dmdba
用户id=1000(dmdba) 组id=1000(dinstall) 组=1000(dinstall)
passwd dmdba
输入密码:Dameng123
[root@localhost dm]# mkdir -p /dm8
[root@localhost dm]# chown dmdba:dinstall -R /dm8
[root@localhost dm]# ls -ld /dm8
drwxr-xr-x 2 dmdba dinstall 6 9月 8 10:28 /dm8
[root@localhost ~]# xhost +
[root@localhost dmdba]# echo $DISPLAY :1.0
[root@localhost ~]# su - dmdba
[root@localhost ~]$ echo $DISPLAY
[root@localhost ~]$ export DISPLAY=:1.0
如果放在其它地方,请输入其它文件所在路径
[dmdba@localhost ~]$ cd /mnt/dm
看到DMInstall.bin为绿色,代表可执行,白色则代表需要增加执行权限(chmod +x DMInstall.bin)
[dmdba@localhost dm]$ ll
总用量 949396
-r-xr-xr-x 1 root root 2588819 11月 9 2023 'DM8 Install.pdf'
-r-xr-xr-x 1 root root 969591871 11月 9 2023 DMInstall.bin
./DMInstall.bin
点浏览找到Key文件,点击“下一步”
密码:Dameng123
注意:密码可以不设,默认密码为:SYSDBA
/*手工建示例库:
[dmdba@localhost ~]$ cd /dm8/samples/instance_script
/
[root@localhost ~]# su - dmdba
上一次登录: 日 9月 8 12:18:38 CST 2024 pts/4 上
[dmdba@localhost ~]$ cd /dm8/bin
[dmdba@localhost bin]$ ./disql sysdba/Dameng123
服务器[LOCALHOST:5236]:处于普通打开状态
登录使用时间 : 5.640(ms)
disql V8
SQL>
[dmdba@localhost dm8]$ systemctl list-unit-files --type=service |grep -i Dmservice
DmServiceDMSERVER.service enabled
[dmdba@localhost dm8]$ netstat -antpl |grep 5236
(Not all processes could be identified, non-owned process info
will not be shown, you would have to be root to see it all.)
tcp6 0 0 :::5236 :::* LISTEN 10098/dmserver
tcp6 0 0 ::1:38652 ::1:5236 ESTABLISHED 10258/./disql
tcp6 0 0 ::1:5236 ::1:38652 ESTABLISHED 10098/dmserver
#######################不用操作############################
[dmdba@localhost ~]$ cd /dm8/bin
[dmdba@localhost bin]$ ./DmServiceDMSERVER stop
Stopping DmServiceDMSERVER: [ OK ]
[dmdba@localhost ~]$ cd /dm8/tool
[dmdba@localhost tool]$ ll
总用量 1440
-rwxr-xr-x 1 dmdba dinstall 1017 8月 30 11:22 analyzer
-rwxr-xr-x 1 dmdba dinstall 282440 8月 30 11:22 analyzer.bmp
drwxr-xr-x 3 dmdba dinstall 70 8月 30 11:22 configuration
-rwxr-xr-x 1 dmdba dinstall 1027 8月 30 11:22 console
-rwxr-xr-x 1 dmdba dinstall 282440 8月 30 11:22 console.bmp
-rwxr-xr-x 1 dmdba dinstall 771 8月 30 11:22 dbca.sh
[dmdba@localhost tool]$ ./dbca.sh
[dmdba@localhost ~]$ cd /dm8
[dmdba@localhost dm]$ rm -rf data
文章
阅读量
获赞