Oracle dblink操作

创建

1
2
3
4
-- 语法
-- create <public> database link <dblink_name> connect to <user> identified by <user_pwd> using <dblink>

create database link db_test connect to scott identified by tiger using '(DESCRIPTION=(ADDRESS_LIST =(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.1)(PORT = 1521)))(CONNECT_DATA=(SERVER = DEDICATED)(SERVICE_NAME = orcl)))';

删除

1
drop <public> database link db_test
  • 本文作者: forever杨
  • 本文链接: https://blog.yl-online.top/posts/5bb4128a.html
  • 版权声明: 本博客所有文章除特别声明外,均采用 BY-NC-SA 许可协议。如果文章内容对你有用,请记录到你的笔记中。本博客站点随时会停止服务,请不要收藏、转载!