哦,有错误,写错了,语法和报错信息如下:
create public database link link_aidms
2 connect to aidms identified by 123321
3 using 'oracle.world';
connect to aidms identified by 123321
*
错误位于第2行:
ORA-00988: 缺少或无效口令
该身份在用别的时候是可以通过的,但不知道现在建立远程数据联接时不行
在线等待
create public database link link_aidms
2 connect to aidms identified by 123321
3 using 'oracle.world';
connect to aidms identified by 123321
*
错误位于第2行:
ORA-00988: 缺少或无效口令
该身份在用别的时候是可以通过的,但不知道现在建立远程数据联接时不行
在线等待
connect to aidms identified by "123321"
using 'oracle.world';
connect to aidms identified by "123321"
using 'oracle.world';
select * from part_code@link_aidms;select * from part_code@link_aidms
*
错误位于第1行:
ORA-02085: 数据库链接LINK_AIDMS.WORLD与ORACLE.WORLD相连结
我的ORACLE.WORLD是在config neteasy 中建立的
这又是为什么呢
重启oracle.
否则名称只能建为ORACLE.
重启oracle.
否则名称只能建为ORACLE.
然后看你的本地服务名是否在服务器的tnsname中存在。
create database link orcl
connect to aidms identified by "123321"
using 'oracle.world'
报连接建立成功
我在用下面的语句做查询:
select * from part_code@orcl
还是报这个错误:
错误位于第1行:
ORA-02085: 数据库链接ORCL.WORLD与ORACLE.WORLD相连结另外,我的ORACLE.WORLD是在config neteasy 中建立的
我查了tnsnames.ora文件,其中有该连接字的说明
你看得tnaname。ora是服务器端的?
我在将我本地的globalname改为false,连接,运行通过
谢谢各位的帮忙
特别感谢jlandzpa(ORA-00600)