Dameng database introduction


foreword

In recent years, due to various reasons, there has been a wave of localization in China, and various technologies are constantly being localized. Of course, databases are indispensable. Although there are many domestic databases, there are very few of them that are really favored, and Dameng database is one of them. As a technician, how can we let go of the research on it, let us study it together, make complaints together, and promote its rapid growth.


1. Positioning of Dameng database

Let's take a look at its self-introduction (the original words on the official website):

1. A new generation of large-scale general-purpose relational database that fully supports SQL standards and mainstream programming language interfaces/development frameworks. Row-column integrated storage technology meets HTAP hybrid application scenarios while taking into account OLAP and OLTP.
2. Integrating the advantages of distributed, elastic computing and cloud computing, large-scale improvements have been made in terms of flexibility, ease of use, reliability, and high security. The diversified architecture fully meets the needs of different scenarios and supports ultra-large-scale concurrency Transaction processing and transaction-analysis hybrid business processing, dynamic allocation of computing resources, to achieve more refined resource utilization and lower cost investment. A database can meet various needs of users, allowing users to focus more on business development.
3. Support automatic failover, support transaction-level read-write load separation, support adjustable read-write allocation ratio, and nearly linear performance improvement in business scenarios with more reads and fewer writes.
4. It has transaction-analysis mixed business processing capabilities to meet users' needs for HTAP application scenarios; it has two key features, change cache and advanced log, and bridges the gap between row storage and column storage.
5. A number of details are optimized to enhance the ease of use, bringing users 359 product details to polish, optimize the details to enhance the ease of use. A new centralized operation and maintenance management tool - DEM; the management tool integrates the new SQL Assistant 2.0, operating environment prompts and accidental deletion protection; the database management system with high security level reaches the national security level 4, EAL4+ level, and meets GB/T 20273, GB/T 18336; enhance and improve multiple security; support multiple cloud computing infrastructure environments, and support multiple hardware platforms.

The official website has said so much, the summary is as follows:

  1. Compatible with SQL
  2. high security
  3. Both a row database and a column database
  4. easy migration
  5. Convenient operation and maintenance

These are a bit empty to say, so let us explore their internals later, after all, the official website is made for better sales.

2. What tools does Dameng have?

Dameng desktop tools provide a lot, and the functions are good. Let’s take a look together. Of course, if you want to use these tools, you must install the local version of Dameng (not all tools). The simple installation is not introduced here, the installation of the desktop version can be solved directly in the next step.

1. Dameng Management Tool

insert image description here
insert image description here
The functions here are relatively complete, ranging from schemas to users to roles to table spaces to stored procedures, etc., which will be explained in detail in the following chapters.

2. Dameng data migration tool

insert image description here
insert image description here
I have to say that this is a very useful tool. If you want to migrate from mysql or Oracle to Dameng, this tool is indispensable, which will greatly improve your efficiency. It will be introduced in detail in the following chapters.

3. Dameng database configuration assistant

insert image description here
insert image description here
As can be seen from the picture, this is a tool for database initialization, registration and deletion. If you are transferring from mysql to Dameng, it is recommended to understand its mode first, and then operate it. It is quite different from mysql; but if you are transferring from Oracle to Dameng, the concept is similar, but there are still some differences , but it does not affect its use. It will be introduced in detail in later chapters.

4. Other tools

Of course, Dameng not only has these three tools, only the most commonly used tools are shown here, but also some auxiliary tools, as follows: Of course,
insert image description here
other tools will be introduced in detail later.

3. Tools under Linux

After all, it is a database, not only a graphical interface tool, but also a command line operation tool, otherwise it cannot be operated in some special environments.

1. Database initialization tool

In the server command line environment (such as: Linux / Ubuntu / CentOS / Redhat, etc.), after you have installed the database, you will see many tools in the bin directory, including a dminit, which is the database initialization tool, as shown below :
insert image description here
Such as common operation commands:

./dminit PATH=dm/data INSTANCE_NAME=DBSERVER CASE_SENSITIVE=0 CHARSET=1 PORT_NUM=5236 SYSDBA_PWD=XXXXXXXX EXTENT_SIZE=32

After the execution is completed, the database is initialized. It has the same function as the "Dameng Database Configuration Assistant" mentioned above. The functions of these parameters will be introduced in detail later.

2. Database Migration Tool

In the server command line environment (such as: Linux / Ubuntu / CentOS / Redhat, etc.), after you have installed the database, you can find the DTS migration tool in the tool directory. This tool can be configured and migrated data through the command line. As shown in the figure
insert image description here
insert image description here
below, the following chapters will explain in detail how to use this tool, how to view its migration log, and issues such as incompatible SQL during the migration process.

3. Other tools

The above only introduces its commonly used tools, and there are many tools in its installation directory, which can help us improve efficiency in the actual production process. For details, please refer to the subsequent chapters.

4. Other connection tools

Maybe you will ask, are there many third-party tools like Oracle/MySQL, and they are easy to use. This is also possible, but after all, it is a database software produced in China. At present, no third party has produced such a high-performance tool for it. However, there are also available ones, here I recommend one for everyone: Dbeaver

This tool can connect to the Dameng database through configuration, but the tool does not provide many functions, but the graphical interface is more suitable for us to check problems intuitively.


Summarize

Although the Dameng database is not an easy-to-use database, it is a localized database after all, and will receive strong support from the Chinese people in the future. I hope it can continue to improve and make continuous progress. Let's witness its growth together.

Guess you like

Origin blog.csdn.net/yezhijing/article/details/131269757