暂无图片
分享
包忠鑫
2020-05-08
dblink连接提示密码错误
暂无图片 5M

我在11rac上创建了的dblink,创建的时候使用的是本地的tnsnames,但是我通过dblink去查询的时候,提示密码错误。请问大佬这是怎么回事呢
创建语句:
image.png
创建成功:
image.png

查询报错:
image.png

通过TNS连接数据库测试:
image.png
tnsname内容:
image.png

收藏
分享
9条回答
默认
最新
Gavin Chan

去掉123456两边的单引号试试,,,为什么又是单引号又是双引号?

暂无图片 评论
暂无图片 有用 0
包忠鑫

还是不行
image.png

暂无图片 评论
暂无图片 有用 0
zouxiang

11gR2 Database Link: ORA-01017 & ORA-02063 When Using Lower Case Identifiers (Doc ID 1677916.1)

暂无图片 评论
暂无图片 有用 0
zyt

创建dblink有问题吧
image.png

暂无图片 评论
暂无图片 有用 0
包忠鑫

system也不行
image.png

暂无图片 评论
暂无图片 有用 0
zouxiang

SOLUTION
Either:

  1. Create the link with no quotes around the username/password so that the credentials are interpreted in uppercase.

SQL> create database link TARGET_DB CONNECT TO IDENTIFIED BY USING ‘TARGET_DB’;

Alternatively:

  1. If it is your convention or if creating the dblinks are scripted, you could create the link using quoted identifiers AND in uppercase:

SQL> create database link OTARGET_DB CONNECT TO “” IDENTIFIED BY “” USING ‘TARGET_DB’;

It is not possible to use quoted userid/password identifiers in the creation of a link. You will not be able to successfully select across that link.

暂无图片 评论
暂无图片 有用 0
Gavin Chan

system不要引号

暂无图片 评论
暂无图片 有用 0
包忠鑫

解决了,谢谢大佬

暂无图片 评论
暂无图片 有用 0
包忠鑫
问题已关闭: 问题已经得到解决
暂无图片 评论
暂无图片 有用 0
回答交流
提交
问题信息
请登录之后查看
邀请回答
暂无人订阅该标签,敬请期待~~
暂无图片墨值悬赏