我有两个users : foot和hand, foot用户有表t_dept, hand用户有表t_dept1
步骤:
1. conn scott/tiger as sysdba
2. create database link dblink_foot
connect to foot identified by foot
using 'zorro'; 注:zorro 数据库服务名
3. conn hand/hand
4. insert into t_dept1 select * from t_dept@dblink_foot
执行后报错 --> ORA-02019: 未找到远程数据库的连接说明
请教错在什么地方? Thanks
init.ora文件中的globle_names=false;
重新启动数据库。
在定义数据库连接时用域全名如
create database link dblink_foot.us.oracle.com
connect to foot identified by foot
using 'zorro'; 注:zorro 数insert into t_dept1 select * from t_dept@dblink_foot.us.oracle.com;另,要注意给hand授权...