一、首先創建遠程鏈接ide
create public database link LINK_SJPS
connect to system identified by manager
using '(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.20)(PORT = 1521))
)
(CONNECT_DATA =
(SERVICE_NAME = GZZL)
)
)';it
二、複製表結構table
Create global temporary table TACK_ALLOCATION on commit delete rows as select * from TACK_ALLOCATION@LINK_SJPS.REGRESS.RDBMS.DEV.US.ORACLE.COMselect