oracle11g数据库连接到19c数据库
dblink已经建立,但是查询的时候报错ora-01017 无效的用户密码 ora-02063紧接着line起自
解决办法:
1、19c的账号锁住了,解锁
SQL> alter user system account unlock
2、修改用户密码
SQL> alter user 用户 identified by 密码;
3、修改密码长期有效
ALTER PROFILE DEFAULT LIMIT PASSWORD_LIFE_TIME UNLIMITED;
再建立dblink就可以了
create database link ORA19C
connect to 账户 IDENTIFIED BY "密码"
using ' (DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = ip)(PORT = 端口))
(CONNECT_DATA =
(SERVICE_NAME = oracle19c)
)
)';