Bo's Oracle Station

查看: 2254|回复: 2

ORA-02063: preceding line from DBLINK1

[复制链接]

7

主题

20

帖子

117

积分

注册会员

Rank: 2

积分
117
发表于 2017-8-8 20:58:42 | 显示全部楼层 |阅读模式
SQL> create database link dblink1
  2  connect to hr identified by hr
  3  using 'rcat';

Database link created.

SQL> select salary from employees@dblink1 where employee_id=100;
select salary from employees@dblink1 where employee_id=100
                             *
ERROR at line 1:
ORA-01017: invalid username/password; logon denied
ORA-02063: preceding line from DBLINK1


SQL> select salary from employees@dblink1 where employee_id=100;
select salary from employees@dblink1 where employee_id=100
                             *
ERROR at line 1:
ORA-01017: invalid username/password; logon denied
ORA-02063: preceding line from DBLINK1


SQL> conn hr/oracle_4U
Connected.
SQL> select salary from employees@dblink1 where employee_id=100;
select salary from employees@dblink1 where employee_id=100
                             *
ERROR at line 1:
ORA-01017: invalid username/password; logon denied
ORA-02063: preceding line from DBLINK1


SQL> conn hr/hr      
ERROR:
ORA-01017: invalid username/password; logon denied


Warning: You are no longer connected to ORACLE.
SQL> conn hr/oracle_4U
Connected.
SQL> select salary from employees@dblink1 where employee_id=100;
select salary from employees@dblink1 where employee_id=100
                             *
ERROR at line 1:
ORA-01017: invalid username/password; logon denied
ORA-02063: preceding line from DBLINK1


SQL>

老师 这个报错是什么原因呢
回复

使用道具 举报

7

主题

20

帖子

117

积分

注册会员

Rank: 2

积分
117
 楼主| 发表于 2017-8-8 20:59:10 | 显示全部楼层

SQL> create database link dblink1
  2  connect to hr identified by hr
  3  using 'rcat'; 这个句 有问题吗
回复 支持 反对

使用道具 举报

1005

主题

1469

帖子

1万

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
12012
发表于 2017-8-9 15:08:35 | 显示全部楼层
hongguanglin 发表于 2017-8-8 20:59
SQL> create database link dblink1
  2  connect to hr identified by hr
  3  using 'rcat'; 这个句  ...

SQL> create database link dblink1
  2  connect to hr identified by hr
  3  using 'rcat';



这个是远程库的密码,远程库是这个密码吗(hr/hr)?
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|手机版|Bo's Oracle Station   

GMT+8, 2024-3-29 00:23 , Processed in 0.039576 second(s), 24 queries .

快速回复 返回顶部 返回列表