前几天编写一个存储过程,需要访问远程数据库的字段,于是建立一个dbLink并建了同义词:
CREATE PUBLIC DATABASE LINK orcl@dbc CONNECT TO orcl IDENTIFIED BY orcl USING 'orcl'; CREATE SYNONYM mtb FOR mytable@orcl@dbc;
前几天编写一个存储过程,需要访问远程数据库的字段,于是建立一个dbLink并建了同义词:
CREATE PUBLIC DATABASE LINK orcl@dbc CONNECT TO orcl IDENTIFIED BY orcl USING 'orcl'; CREATE SYNONYM mtb FOR mytable@orcl@dbc;