Oracle创建dblink语句,dblink查询语句

1.创建dblink

create database link 创建的dblink名字
connect to 需要访问的用户 identified by "密码"
using '(DESCRIPTION =(ADDRESS_LIST =(ADDRESS =(PROTOCOL = TCP)(HOST = 需要访问的数据库IP地址)(PORT = 1521)))(CONNECT_DATA =(SERVICE_NAME = 服务名)))';

2.dblink查询

select * from table_name@dblink_name;

你可能感兴趣的:(Oracle,oracle,数据库,tcp/ip)