暂无图片
达梦数据库8.0主备安装部署
最近更新:2022-09-28 22:09:00

适用范围

达梦数据库8.0主备安装部署

问题概述

问题原因

解决方案

  主库IP: 192.168.44.102   dmprimary
备库IP: 192.168.44.101   dmstandby

1.安装软件:

  mount -o loop /root/dm8_20220901_x86_rh6_64_ent_8.6.1.120.iso  /dmdb

1.1.创建用户、组

  groupadd -g 12349 dinstall
useradd -u 12345 -g dinstall -m -d /home/dmdba -s /bin/bash dmdba

3.初始化用户密码。

  passwd dmdba

  su - dmdba
mkdir -p /opt/dmdbms/data/DAMENG5237/backup /opt/dmdbms/data    /opt/dmdbms/data/DAMENG5237/arch /opt/dmdbms/data/DAMENG5237/log /opt/dmdbms/product
mkdir -p /opt/dmdbms/tmp
chown -R dmdba:dinstall /opt/dmdbms/tmp
chmod -R 777 /opt/dmdbms/tmp
chown -R dmdba:dinstall /opt/dmdbms



vi /etc/profile
DM_INSTALL_TMPDIR=/opt/dmdbms/tmp
export DM_INSTALL_TMPDIR

1.2.软件安装

  [root@dmstandby dmdb]# ./DMInstall.bin  -i
Please select the installer's language (E/e:English C/c:Chinese) [E/e]:E
Whether to input the path of Key File? (Y/y:Yes N/n:No) [Y/y]:n
Whether to Set The TimeZone? (Y/y:Yes N/n:No) [Y/y]:y
TimeZone:
Please Select the TimeZone [21]:21
Installation Type:
1 Typical
2 Server
3 Client
4 Custom
Please Input the number of the Installation Type [1 Typical]:4
...
Please Input the number of the Installation Type [1 2 3 4 5]:
Require Space: 1573M
Please Input the install path [/opt/dmdbms/product]:
Available Space:31G
Please Confirm the install path(/opt/dmdbms/product)? (Y/y:Yes N/n:No) [Y/y]:y
Pre-Installation Summary
Installation Location: /opt/dmdbms/product
Require Space: 1573M
Available Space: 31G
Version Information: 
Expire Date: 
Installation Type: Custom
Confirm to Install? (Y/y:Yes N/n:No):y
2022-09-26 19:10:33 
[INFO] Installing DM DBMS...
。。
[INFO] Installed DM DBMS completely.
End

2.主库设置 2.1.创建主库

  su - dmdba
[dmdba@dmstandby ~]$ cd /opt/dmdbms/product/bin
[dmdba@dmstandby bin]$ /opt/dmdbms/product/bin/dminit path=/opt/dmdbms/data PAGE_SIZE=32 EXTENT_SIZE=32 CASE_SENSITIVE=y CHARSET=1 DB_NAME=DAMENG5237 INSTANCE_NAME=DBSERVER5237 PORT_NUM=5237 SYSDBA_PWD=DAMENG.5237

2.2.注册服务

......