[DM8] DM-DM DBLINK DPI method

Preface

For DBLINK between DM and DM, among the three methods, the DPI method is the most convenient to configure . The ODBC method requires installing the ODBC package and configuring the ODBC data source. The dmmal method requires setting the MAL_INI database parameters, configuring the dmmal.ini file and restarting Database services.

DPI type dblink, Dameng database software comes with its own DPI library after installation , and dblink can be created directly in the database without any other configuration operations.

create grammar

--方式1 IP:端口 create link "链接名" connect 'DPI' with "用户名" identified by "密码" using 'IP:端口'; 

-方式2 使用dm_svc.conf中服务名 create link "链接名" connect 'DPI' with "用户名" identified by "密码" using '服务名';

environmental information

operating system

Centos 8

Dameng version

DM8 x64

Dameng version

DM8 x64

Source DM

12.68.1.1

Destination DM

12.68.1.2

createdblink

create public link "dmlink" connect 'DPI' with "SYSDBA" identified by "SYSDBA" using '12.68.1.2:5236';

Verify dblink connectivity

Destination query

SELECT A.*,ROWID FROM A;

Source query

SELECT A.*,ROWID FROM A@dmlink;

Create table statement

CREATE TABLE A(A INT); 
INSERT INTO A SELECT '1' FROM DUAL; 
COMMIT;

Guess you like

Origin blog.csdn.net/qq_39194322/article/details/132758932
dm