使用dblink出現ORA-01017

來源:互聯網
上載者:User

本地的Oracle資料庫是版本是10g的,遠端資料庫版本版本是11g,在本地建資料庫連接後執行測試查詢語句竟然出錯,使用者名稱/密碼明明是對的。

SQL> create database link DBLINK_TEST
connect to test identified by test
using '10.10.15.25_11';
資料庫連結已建立。

SQL> select count(*) from remote_big_tab@DBLINK_TEST;

select count(*) from remote_big_tab@DBLINK_TEST
*
第 1 行出現錯誤:
ORA-01017: invalid username/password; logon denied

ORA-02063: 緊接著 line (起自 DBLINK_TEST)

通過PL/SQL developer查看資料庫連接的定義,原來使用者名稱/密碼被改為大寫了,於是換了中方法建,可以了。

SQL> drop database link DBLINK_TEST;
資料庫連結已刪除。
SQL> create database link DBLINK_TEST
connect to "test" identified by "test"
using '10.10.15.25_11';
資料庫連結已建立。
SQL> select count(*) from remote_big_tab@DBLINK_TEST;
COUNT(*)
----------
1155648

更多詳情見請繼續閱讀下一頁的精彩內容:

ORA-01172、ORA-01151錯誤處理

ORA-00600 [2662]錯誤解決

ORA-01078 和 LRM-00109 報錯解決方案

ORA-00471 處理方法筆記

ORA-00314,redolog 損壞,或丟失處理方法

ORA-00257 歸檔日誌過大導致無法儲存的解決辦法

相關文章

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.