dblink

时间:2023-03-08 16:27:27
dblink
drop database link "STANDARD";
drop database link "CSPS"
--创建dblink
create database link STANDARD
  connect to OSIBANK identified by osibank
  using '(DESCRIPTION =
                            (ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=192.168.1.6)(PORT=1521)))
                            (CONNECT_DATA=(SERVICE_NAME=debug
                            ))
             )';
create database link CSPS
  connect to OSIBANK identified by osibank
  using '(DESCRIPTION =
                            (ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=192.168.1.6)(PORT=1521)))
                            (CONNECT_DATA=(SERVICE_NAME=debug
                            ))
             )';