create database link DB_EHR

connect to HDC_EHR

identified by HDC_EHR

using '192.168.20.138/orcl';

create or replace synonym XT_GYDM
for XT_GYDM@DB_EHR;

//手动输入DBLINK名,密码,数据库地址,需要同义词的表

create database link &dblink_ehr_name
connect to &PRO_EHR IDENTIFIED BY &PRO_PASSWD
using '&db_ehr_url';

create or replace synonym EHR_XT_YLFWJG
for PRO_EHR.XT_YLFWJG@&dblink_ehr_name;