简体   繁体   English

Oracle数据库链接

[英]Oracle database link

I'm currently using Windows Authentication with 2 Oracle servers - SP3DSMP1 & SP3DSMP4. 我目前正在使用Windows身份验证和2台Oracle服务器 - SP3DSMP1和SP3DSMP4。 I created a database link on SMP1 to connect to SMP4 as: 我在SMP1上创建了一个数据库链接以连接到SMP4,如下所示:

SQL> create public database link LINK_SMP4 2 connect to CURRENT_USER 3 using 'SP3DSMP4'; SQL>创建公共数据库链接LINK_SMP4 2使用'SP3DSMP4'连接到CURRENT_USER 3;

Database link created. 数据库链接已创建

However when I try to do a query, I get the error: 但是,当我尝试进行查询时,我收到错误:

ERROR at line 1: ORA-01017: invalid username/password; 第1行的错误:ORA-01017:用户名/密码无效; logon denied 登录被拒绝

Any ideas what might be wrong here? 任何想法在这里可能是错的?

Credentials are not passed over the dblink connection. 凭据不会通过dblink连接传递。

When creating a CURRENT_USER dblink, a trust should be established between the databases. 创建CURRENT_USER dblink时,应在数据库之间建立信任。 This requires setting up an enterprise domain, adding the databases to it, setting an SSL link between the databases and making the link CURRENT_USER enabled. 这需要设置企业域,向其添加数据库,在数据库之间设置SSL链接并启用链接CURRENT_USER

See here: http://download.oracle.com/docs/cd/B12037_01/network.101/b10772/asoeuscf.htm 请参见: http//download.oracle.com/docs/cd/B12037_01/network.101/b10772/asoeuscf.htm

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM