Oracle跨库复制表结构
Posted 向阳的影子
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了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 [email protected]_SJPS.REGRESS.RDBMS.DEV.US.ORACLE.COM
以上是关于Oracle跨库复制表结构的主要内容,如果未能解决你的问题,请参考以下文章