Oracle之DB Link入门

drop database link dblink2;
--由于双方的版本不一致造成的,我们需要对用双引号将密码引起来,否则密码会被自动转化为大写:
create database link dblink2
   connect to aaa identified by "aaa"  --用户名和密码
   using '(DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)
(HOST = db11gx64.geoway.net )(PORT = 1521)) ) (CONNECT_DATA = (SERVICE_NAME = dB11G)))';--数据库地址和端口,名称

select * from tbgs_unit@dblink2

你可能感兴趣的:(oracle)