# Installing DM8 on CentOS 7.9
CentOS Linux release 7.9.2009 (Core)
dm8_20251208_x86_CentOS7_64.zip
- Create a YUM repository.
| mkdir /etc/yum.repos.d/bak |
| mv /etc/yum.repos.d/*.repo /etc/yum.repos.d/bak |
| |
| cat >/etc/yum.repos.d/media.repo <<EOF |
| [InstallMedia] |
| name=CentOS 7 |
| baseurl=http://192.168.3.112/assets/tmp/mnt |
| gpgcheck=0 |
| enabled=1 |
| EOF |
| |
| yum clean all && yum makecache |
- Install packages.
- Adjust the system settings
| cat >>/etc/security/limits.d/99-dm8-limits.conf <<EOF |
| dmdba soft nofile 65536 |
| dmdba hard nofile 65536 |
| EOF |
- Downlaod and unpack DM8 software.
| mkdir /soft |
| wget https://meno.lostyu.qzz.io/tmp/dm8_20251208_x86_CentOS7_64.zip -P /soft |
| unzip /soft/dm8_20251208_x86_CentOS7_64.zip -d /soft |
| mount -t iso9660 -o loop /soft/dm8_20251208_x86_CentOS7_64.iso /mnt |
- Create DM8 user and directory.
| groupadd -g 1000 dinstall |
| useradd -u 1000 -g dinstall -m -d /home/dmdba -s /bin/bash dmdba |
| echo 'password' | passwd --stdin dmdba |
| mkdir /dm8 |
| chown -R dmdba:dinstall /dm8 |
- Install DM8 software.
| |
| ~]$ /mnt/DMInstall.bin -i |
| ... |
| Pre-Installation Summary |
| Installation Location: /dm8 |
| Require Space: 1809M |
| Available Space: 39G |
| Version Information: |
| Expire Date: |
| Installation Type: Typical |
| Confirm to Install? (Y/y:Yes N/n:No):y |
| ... |
| |
| |
| ~] |
| Move /dm8/bin/dm_svc.conf to /etc |
| Create the DmAPService service |
| Created symlink from /etc/systemd/system/multi-user.target.wants/DmAPService.service to /usr/lib/systemd/system/DmAPService.service. |
| Finished to create the service (DmAPService) |
| Start the DmAPService service |
- Set DM8 environment variables.
| ~]$ cat >>/home/dmdba/.bash_profile <<"EOF" |
| export PATH=$PATH:$DM_HOME/bin:$DM_HOME/tool |
| EOF |
| |
| ~]$ source /home/dmdba/.bash_profile |
- Create DM8 instance.
| |
| ~]$ dminit help |
| ~]$ dminit path=/dm8/data db_name=DMDB instance_name=PROD port_num=5237 sysdba_pwd=P@ssword123 sysauditor_pwd=P@ssword123 log_size=256 |
| initdb V8 |
| db version: 0x7000d |
| file dm.key not found, use default license! |
| License will expire on 2026-11-13 |
| Normal of FAST |
| Normal of DEFAULT |
| Normal of RECYCLE |
| Normal of KEEP |
| Normal of ROLL |
| |
| log file path: /dm8/data/DMDB/DMDB01.log |
| |
| |
| log file path: /dm8/data/DMDB/DMDB02.log |
| |
| write to dir [/dm8/data/DMDB]. |
| create dm database success. 2026-01-13 13:07:52 |
| |
| |
| ~] |
| ~] |
| Created symlink from /etc/systemd/system/multi-user.target.wants/DmServicePROD.service to /usr/lib/systemd/system/DmServicePROD.service. |
| Finished to create the service (DmServicePROD) |
- Start DM8 instance.
| ~]$ DmServicePROD start |
| Starting DmServicePROD: [ OK ] |
| |
| ~]$ disql sysdba/'"P@ssword123"':5237 |
| |
| Server[LOCALHOST:5237]:mode is normal, state is open |
| login used time : 3.106(ms) |
| disql V8 |
| |
| SQL> select name,status$ from v$instance; |
| |
| LINEID NAME STATUS$ |
| ---------- ---- ------- |
| 1 PROD OPEN |
| |
| used time: 2.008(ms). Execute id is 65201. |