Tutorial on installing DAMO database on Centos7

Tutorial on installing DAMO database on Centos7

1. Preparation

After installing the Linux operating system, Linux 7 is selected here:

[root@slave1 software]# cat /etc/redhat-release
CentOS Linux release 7.6.1810 (Core)

Disable firewall and Selinux:

[root@slave1 software]# systemctl stop firewalld
[root@slave1 software]# systemctl disable firewalld
[root@slave1 software]# vi /etc/selinux/config
[root@slave1 software]# cat /etc/selinux/config
# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
# enforcing - SELinux security policy is enforced.
# permissive - SELinux prints warnings instead of enforcing.
# disabled - No SELinux policy is loaded.
SELINUX=disabled
# SELINUXTYPE= can take one of three values:
# targeted - Targeted processes are protected,
# minimum - Modification of targeted policy. Only selected processes are protected.
# mls - Multi Level Security protection.
SELINUXTYPE=targeted

Create a DM user:

[root@slave1 software]# groupadd dinstall
[root@slave1 software]# useradd -g dinstall -m -d /home/dmdba -s /bin/bash dmdba
[root@slave1 software]# passwd dmdba
Changing password for user dmdba.
New password: 
BAD PASSWORD: The password is shorter than 8 characters
Retype new password: 
passwd: all authentication tokens updated successfully.
[root@slave1 software]#

Create a directory: The space for storing dm database files needs to be planned and mounted in advance. I put it in the /dm directory:

[root@slave1 software]# mkdir -p /dm/dmdbms
[root@slave1 software]# mkdir -p /dm/dmarch
[root@slave1 software]# mkdir -p /dm/dmbak
[root@slave1 software]# chown -R dmdba:dinstall /dm/
[root@slave1 software]# chmod -R 775 /dm/

Configure system limits and add the following to the /etc/security/limits.conf file:

[root@slave1 software]# vim /etc/security/limits.conf
dmdba soft nofile 65536
dmdba hard nofile 65536

Configure environment variables: Add the following content to the ~/.bash_profile of the dmdba user:

export DM_HOME="/dm/dmdbms"
export LD_LIBRARY_PATH="/dm/dmdbms/bin:$LD_LIBRARY_PATH"
export PATH="/dm/dmdbms/bin:$PATH"

Note that the DM_HOME and LD_LIBRARY_PATH variables are automatically added when the DM software is installed. Here you only need to add PATH.

2 Installing the DM database

Copy the installation file: Upload the DM ISO to the Linux system and mount it:

[root@slave1 software]# mount dm7 development version (rh7-64) 20190917.iso /mnt/
mount: /dev/loop0 is write-protected, mounting read-only
[root@slave1 software]# cd /mnt/
[root@slave1 mnt]# ls
DMInstall.bin DM_Install_en.pdf DM_Install_zh.pdf release_en.txt release_zh.txt

Copy the installation file to the /dm directory and modify the installation file permissions:

[root@slave1 mnt]# pwd
/mnt
[root@slave1 mnt]# cp ./DMInstall.bin /dm/
[root@slave1 mnt]# cd /dm
[root@slave1 dm]# ll
total 573076
drwxrwxr-x 2 dmdba dinstall 6 Dec 9 23:08 dmarch
drwxrwxr-x 2 dmdba dinstall 6 Dec 9 23:08 dmbak
drwxrwxr-x 2 dmdba dinstall 6 Dec 9 23:08 dmdbms
-r-xr-xr-x 1 root root 586828259 Dec 9 23:14 DMInstall.bin
[root@slave1 dm]# chown dmdba:dinstall DMInstall.bin
[root@slave1 dm]# ll
total 573076
drwxrwxr-x 2 dmdba dinstall 6 Dec 9 23:08 dmarch
drwxrwxr-x 2 dmdba dinstall 6 Dec 9 23:08 dmbak
drwxrwxr-x 2 dmdba dinstall 6 Dec 9 23:08 dmdbms
-r-xr-xr-x 1 dmdba dinstall 586828259 Dec 9 23:14 DMInstall.bin

Execute the ./DMInstall.bin -i program as the dmdba user to start the installation:

[root@slave1 dm]$ pwd
/dm
[root@slave1 dm]$ ./DMInstall.bin -i
Please select the installer's language (E/e:English C/c:Chinese) [E/e]:c

Unzip the installer...

core file size (blocks, -c) 0
data seg size (kbytes, -d) unlimited
scheduling priority (-e) 0
file size (blocks, -f) unlimited
pending signals (-i) 3756
max locked memory (kbytes, -l) 64
max memory size (kbytes, -m) unlimited
open files (-n) 1024
pipe size (512 bytes, -p) 8
POSIX message queues (bytes, -q) 819200
real-time priority (-r) 0
stack size (kbytes, -s) 8192
cpu time (seconds, -t) unlimited
max user processes (-u) 3756
virtual memory (kbytes, -v) unlimited
file locks (-x) unlimited

The number of open files is too small. It is recommended to set it to at least 65536 or more.

Welcome to the DAMO database installation program

Do you want to enter the Key file path? (Y/y: Yes N/n: No) [Y/y]:n

Do you want to set the time zone? (Y/y: Yes N/n: No) [Y/y]: y

Set time zone:

[1]: GTM-12 = West of the International Dateline
[2]: GTM-11 = Samoa Islands
[3]: GTM-10 = Hawaii
[4]: GTM-09 = Alaska
[5]: GTM-08 = Pacific Time (US and Canada)
[6]: GTM-07 = Arizona
[7]: GTM-06 = Central Time (US and Canada)
[8]: GTM-05 = Eastern Time (US and Canada)
[9]: GTM-04 = Atlantic Time (United States and Canada)
[10]: GTM-03 = Brasilia
[11]: GTM-02 = Mid-Atlantic
[12]: GTM-01 = Azores
[13]: GTM = Greenwich Mean Time
[14]: GTM+01=Sarajevo
[15]: GTM+02=Cairo
[16]: GTM+03=Moscow
[17]: GTM+04=Abu Dhabi
[18]: GTM+05=Islamabad
[19]: GTM+06=Dhaka
[20]: GTM+07=Bangkok, Hanoi
[21]: GTM+08 = China Standard Time
[22]: GTM+09=Seoul
[23]: GTM+10=Guam
[24]: GTM+11=Solomon Islands
[25]: GTM+12=Fiji
[26]: GTM+13=Nukualefah
[27]: GTM+14=Kiribati

Please select the time zone[21]:21

Installation Type:

1 Typical Installation
2 Server
3 Client
4 Customization

Please select the installation type numerical sequence [1 Typical Installation]: 1

Required space: 963M

Please select the installation directory [/opt/dmdbms]:/dm/dmdbms

Available space: 8G

Do you confirm the installation path (/dm/dmdbms)? (Y/y: Yes N/n: No) [Y/y]: y

Pre-installation summary

Installation location: /dm/dmdbms
Required space: 963M
Available space: 8G
Version information:
Effective Date:
Installation Type: Typical Installation Confirm installation? (Y/y: Yes N/n: No): y
2019-12-09 23:17:21
[INFO] Installing DAMO database...
2019-12-09 23:17:22
[INFO] Installing base modules...
2019-12-09 23:17:32
[INFO] Installing server modules...
2019-12-09 23:17:33
[INFO] Installing client modules...
2019-12-09 23:17:44
[INFO] Installing driver module...
2019-12-09 23:17:55
[INFO] Installing the manual module...
2019-12-09 23:17:55
[INFO] Installing service module...
2019-12-09 23:17:59
[INFO] Move ant log file.
2019-12-09 23:17:59
[INFO] Completed changing installation directory permissions.
2019-12-09 23:17:59
[INFO] Starting DmAPService service...
2019-12-09 23:18:01
[INFO] Successfully started DmAPService service.
2019-12-09 23:18:01
[INFO] Installation of DAMO database completed.

Installation completed

3 Create a database instance

[root@slave1 bin]$ pwd
/dm/dmdbms/bin
[root@slave1 bin]$ ./dminit PATH=/dm/dmdbms/data DB_NAME=dmdba INSTANCE_NAME=DMDBA CTL_PATH=/dm/dmdbms/data/dmdba/dm.ctl CASE_SENSITIVE=N CHARSET=1
initdb V7.6.0.197-Build(2019.09.12-112648)ENT 
db version: 0x7000a
file dm.key not found, use default license!
License will expire on 2020-09-12
 
 log file path: /dm/dmdbms/data/dmdba/dmdba01.log
 
 
 log file path: /dm/dmdbms/data/dmdba/dmdba02.log
 
write to dir [/dm/dmdbms/data/dmdba].
create dm database success. 2019-12-09 23:25:17

4 Registration database service

The registered shell script dm_service_installer.sh is in the DM_HOME/script/root directory and needs to be executed by the root user.

[root@slave1 bin]# cd /dm/dmdbms/script/root
[root@slave1 root]# ./dm_service_installer.sh -t dmserver -i /dm/dmdbms/data/dmdba/dm.ini -p dmdba
Created symlink from /etc/systemd/system/multi-user.target.wants/DmServicedmdba.service to /usr/lib/systemd/system/DmServicedmdba.service.

Create service (DmServicedmdba) completed

5 Start the database

[root@slave1 root]# systemctl enable DmServicedmdba.service
[root@slave1 root]# systemctl start DmServicedmdba

6 Client Connection

The following screen appears, indicating that the installation is successful and can be used normally.

Summarize

The above is the tutorial on how to install the DAMO database on Centos7 introduced by the editor. I hope it will be helpful to everyone. If you have any questions, please leave me a message and the editor will reply to you in time. I would also like to thank everyone for their support of the 123WORDPRESS.COM website!
If you find this article helpful, please feel free to reprint it and please indicate the source. Thank you!

You may also be interested in:
  • VMWare virtual machine Centos7 installation of Oracle database tutorial diagram
  • How to install and uninstall Mongodb database in Centos7
  • Linux learning third Centos7 installation mysql5.7.16 database
  • CentOS7 MySQL database installation and configuration
  • Install MySQL database on centOS7
  • Detailed tutorial on how to install mysql database using yum under Centos7 (enhanced version)

<<:  Several ways to add timestamps in MySQL tables

>>:  Let's talk in detail about how the NodeJS process exits

Recommend

Correct use of MySQL partition tables

Overview of MySQL Partitioned Tables We often enc...

Implementation of Docker to build private warehouse (registry and Harbor)

As more and more Docker images are used, there ne...

Docker learning method steps to build ActiveMQ message service

Preface ActiveMQ is the most popular and powerful...

Briefly describe the difference between MySQL and Oracle

1. Oracle is a large database while MySQL is a sm...

Analyze how uniapp dynamically obtains the interface domain name

background The interface domain name is not hard-...

Some points on using standard HTML codes in web page creation

<br />The most common mistake made by many w...

Real-time refresh of long connection on Vue+WebSocket page

Recently, the Vue project needs to refresh the da...

Solution to ERROR 1054 (42S22) when changing password in MySQL 5.7

I have newly installed MySQL 5.7. When I log in, ...

Solutions to the problem of table nesting and border merging

【question】 When the outer table and the inner tab...

JavaScript canvas Tetris game

Tetris is a very classic little game, and I also ...

Solution to slow network request in docker container

Several problems were discovered during the use o...

Overview of time configuration under Linux system

1. Time types are divided into: 1. Network time (...

Three ways to achieve text flashing effect in CSS3 Example code

1. Change the transparency to achieve the gradual...

Perfect solution to Google Chrome autofill problem

In Google Chrome, after successful login, Google ...