建立密码带有特殊字符的dblink

使用的是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
相关文章
相关标签/搜索