The installation environment requires the
operating system
Centos7 or the winning Kylin 7 64-bit operating system. This time it is deployed on the vmware 15.5 environment.
1. Check the operating system version and the number of bits:
uname -ra
2. Install the KDE/GNOME desktop environment (if not, only the command line can be used)
Yum grouplist
3. Check the operating system cpu to ensure that the subsequent version of the database:
cat /proc /cpuinfo
4. Check the database dependency package:
rpm -aq|grep glibc
If not, execute yum install glibc -y to install (above 2.3)
5. Check the memory free -m swap partition is more than 1.5 times the physical memory
6. Check the disk space Capacity, according to actual business calculations, df -h
database version
Dameng V8 trial version Linux x64 version.
The connection tools
Xshell, vnc
start to install the operating system parameters
before the installation.
Tuning the
operating system parameters will affect the optimal operation of the database, need to be tuned in advance:
ulimit -a check the maximum number of open files, the default is 1024, need to expand:
vim /etc/security/limits.conf (to take effect after restart)
- soft nofile 102400
- hard nofile 102400
In order not to restart the server, you can use:
ulimit -HSn 102400 to
temporarily expand and
mount the ISO image after restarting
[root@localhost home]# ls
dm8_setup_rh7_64_ent_8.1.0.147_20190328.iso jk
[root@localhost home]# mount- o loop /home/dm8_setup_rh7_64_ent_8.1.0.147_20190328.iso /mnt/
mount: /dev/loop0 is write-protected and will be mounted as read-only
[root@localhost home]# cd /mnt/
[root@localhost mnt]# ls
DMInstall.bin DM_Install_en.pdf DM_Install_zh.pdf release_en.txt release_zh.txt The
installation database program
creates database users, group information, environment variables and other configurations
[root@localhost mnt]# groupadd dinstall
[root@localhost mnt]# useradd -g dinstall dmdba
[root@localhost mnt]# passwd dmdba
Change the password of user dmdba.
New password:
invalid password: password is less than 8 characters
Re-enter the new password:
passwd: All authentication tokens have been successfully updated.
Create the database installation path:
mkdir /dm8
chown -R dmdba:dinstall /dm8
Configure dmdba user environment variables
[root@dmdb mnt]# su-dmdba
last login: June 21 17:39:25 on CST 2020pts/2
[ dmdba@dmdb ~]$ vi .bash_profile
adds at the bottom:
export DM_HOME=/dm8
export PAHT=$PATH:$HOME/.local/bin:$HOME/bin:$DM_HOME/bin:$DM_HOME/tool
update variable
source ~ /.bash_profile
Start to install the database.
Use the command line to install, use the dmdba user to install
[dmdba@dmdb ~]$ cd /mnt
[dmdba@dmdb mnt]$ ./DMInstall.bin
Initialize the database
after the installation is complete, it will automatically open the initialization database or use dmdba to run
[root@localhost tool]# cd /home/dmdba/dmdbms/tool/
[root@localhost tool]# ./dbca.sh
This is to add the database to the operating system service.
Use manager to connect to the database