码迷,mamicode.com
首页 > 数据库 > 详细

dblink

时间:2018-09-06 14:52:14      阅读:192      评论:0      收藏:0      [点我收藏+]

标签:sele   link   HERE   blink   password   class   pre   table   use   

 1 create public database link <linkname> connect to <user> identified by "<password>"
 2 using (DESCRIPTION =
 3     (ADDRESS_LIST =
 4       (ADDRESS = (PROTOCOL = TCP)(HOST = <IP>)(PORT = 1521))
 5     )
 6     (CONNECT_DATA =
 7       (SERVICE_NAME = <orcl>)))
 8     
 9     
10 SELECT * FROM <user>.<table_name>@<linname>
11 
12 
13 
14 
15 select *  from dba_db_links where db_link=<dblink_name>
16 
17 DROP PUBLIC DATABASE LINK <dblink_name>;

 

dblink

标签:sele   link   HERE   blink   password   class   pre   table   use   

原文地址:https://www.cnblogs.com/sweet22353/p/9597495.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!