tzzt01

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

使用的是data studio,所以末尾不加分号

create database link link_to_143
  connect to scott identified by "tiger.1"
  using '(DESCRIPTION =
  (ADDRESS_LIST =
  (ADDRESS = (PROTOCOL = TCP)(HOST = xxx.xxx.xxx.143)(PORT = 1521))
  )
  (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = bylw)
  )
)'
xxx.xxx.xxx.143是要连接的数据库ip
我的密码中有. 属于特殊字符,必须加""才能通过。
scott是143数据库的用户名,密码是
tiger.1
bylw是xxx.xxx.xxx.143的SID


用法:
首选备份表:create table t_wfd_process_info20170918 as select * from t_wfd_process_info
然后删除旧表:delete from t_wfd_process_info
之后将xxx.xxx.xxx.xxx表中的数据塞入本数据库的表中:insert into t_wfd_process_info select * from t_wfd_process_info@link_to_143
posted on 2017-09-18 21:46  tzzt01  阅读(3231)  评论(0编辑  收藏  举报