Oracle跨库复制表结构
1、首先建立远程连接
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)
)
)';
2、复制表结构
Create global temporary table TACK_ALLOCATION on commit delete rows as select * from TACK_ALLOCATION@LINK_SJPS.REGRESS.RDBMS.DEV.US.ORACLE.COM