background

A certain project needs to realize the localization of all the basic software, in which the operating system is designated as Galaxy Kirin and the database uses DM8.

Although the previous article has successfully simulated the domestic Feiteng processor, but the operation efficiency is not high, so the Galaxy Kirin operating system here still runs on the X64 platform. X64 DM8 does not offer unicorn because Unicorn is based on Ubuntu and Ubuntu is based on Debian, so the download here is the Debian version.

To facilitate the installation of the Dameng database, the Galaxy Kirin with UI interface is used here.

The environment

  • Virtualization platform: Hyper-V 10.0
  • Operating system: Galaxy Kirin V4
  • CPU platform: x86-64

download

Download here from the official website, download address: www.dameng.com/list_103.ht…

Download process need to log in, register an account on the line, there is no threshold.

Note that you need to select the CPU platform and operating system. The CPU is x86, because X64 is also derived from x86, so it is sometimes generalized to x86. Other places you’ll see AMD64 or x86-64, which specifically refer to the 64-bit x86 architecture.

To prepare

1. Unpack

The download is a zip file. If you download it directly to your Linux machine, you need to have a decompression software:

sudo apt-get install unzip
sudo unzip dm8_20211021_x86_rh6_64_ent.zip -d dm8
Copy the code

2, mount

There is an ISO image file that needs to be mounted to the system.

If the hyper-V VM platform is used, you can mount the HYPER-V VM using media, DVD Drive, and Insert Disk.

On a Linux machine, you need to use the mount command, which is available online.

3, copy,

The mounted disk contains a file called dminstall.bin, which is an executable file on Linux that DM8 was installed to launch.

Since the file is mounted read-only by default and has no permission to execute the file, you need to copy it and modify the permission before executing it.

Create a directory dm: sudo mkdir /dm

Then copy the installation program to the directory: sudo cp /media/{current login user name}/dameng/ dminstall.bin /dm/ dminstall.bin

Note that the original directory of this file may be different on each machine, so replace it with your own.

Change the file permission to sudo chmod 777 /dm/ dminstall.bin

The installation

To install, run the dminstall.bin program:

./DMInstall.bin
Copy the code

It unzips and launches the interface installer.

Installation with interface is still very cool, according to the default parameters on the line, midway need to pay attention to two points:

  • There will be two times when you need to execute the command, do as required, and wait for the result of the processing.
  • Select install sample database, which needs to be checked by yourself to facilitate testing after installation.

use

Once installed, you can use some administrative tools in the following location: /home/{current login username}/ DMDBMS /tool.

DM service viewer: dmservice.sh

Console tool: Console

Create a database instance: dbca.sh

Database performance monitoring tool: Monitor

Audit analysis tool: Analyzer

Database management tool: Manager

In addition, I have also installed a Windows version of the client on this machine, the download address is still mentioned above. The default port is 5236 and the default account is SYSDBA (password is also the same).

Dameng database is generally close to Oracle, more to explore.

For more architecture knowledge, please pay attention to the wechat public account Firefly architecture. Original content, reproduced please indicate the source.