建立数据库连接
CREATE DATABASE LINK DBaseLinkName CONNECT TO UserName IDENTIFIED BY Password USING 'NetServiceName';
DBaseLinkName 是建立的数据连接名称
UserName 是可以连接到的用户名
Password 是可以连接到的用户的密码
NetServiceName 是可以连接的数据库网络服务名或是数据库名
查询建立数据连接的表事例
Select * From TableName@ DBaseLinkName;
CREATE DATABASE LINK DBaseLinkName CONNECT TO UserName IDENTIFIED BY Password USING 'NetServiceName';
DBaseLinkName 是建立的数据连接名称
UserName 是可以连接到的用户名
Password 是可以连接到的用户的密码
NetServiceName 是可以连接的数据库网络服务名或是数据库名
查询建立数据连接的表事例
Select * From TableName@ DBaseLinkName;