Oracle 9i DBLINK連線11G 錯誤ora-01017,ora-02063的解決方案
今天客戶要在9i 環境建立dblink 讀取11g 資料 ,在建立後檢驗dblink是否有效時;
報錯 【 ORA-01017: invalid username/password; logon denied;ORA-02063: 緊接著line(源於DB_XX)】
分析原因:Oracle 11g 開始使用者的密碼才區分大小寫;
測試:11g前密碼是否會自動轉換大寫?
11g 區分大小寫
[oracle@xcd ~]$ sqlplus BACKUP2014/BACKUP2014
SQL*Plus: Release 11.2.0.3.0 Production on Tue Sep 23 17:30:50 2014
Copyright (c) 1982, 2011, Oracle. All rights reserved.
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
SQL>
SQL*Plus: Release 11.2.0.3.0 Production on Tue Sep 23 17:30:50 2014
Copyright (c) 1982, 2011, Oracle. All rights reserved.
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
SQL>
9i 資料庫 建立dblink
Connected to Oracle9i Enterprise Edition Release 9.2.0.1.0
Connected as haikuo@192.168.0.31/orapp
SQL> create database link db_test connect to backup2014 identified by backup2014 using '(DESCRIPTION =(ADDRESS_LIST =(ADDRESS = (PROTOCOL = TCP)(HOST = 10.0.1.1 )(PORT = 1521)))(CONNECT_DATA =(SERVER = DEDICATED)(SERVICE_NAME = sinodb)))';
Database link created
校驗dblink:
SQL> SELECT usename FROM user_users@db_test;
USERNAME
------------------
Connected as haikuo@192.168.0.31/orapp
SQL> create database link db_test connect to backup2014 identified by backup2014 using '(DESCRIPTION =(ADDRESS_LIST =(ADDRESS = (PROTOCOL = TCP)(HOST = 10.0.1.1 )(PORT = 1521)))(CONNECT_DATA =(SERVER = DEDICATED)(SERVICE_NAME = sinodb)))';
Database link created
校驗dblink:
SQL> SELECT usename FROM user_users@db_test;
USERNAME
------------------
BACKUP2014
解決方案 將小寫密碼加雙引號如下例子..
SQL> create database link db_sinotest_link connect to "sinotest_link" identified by "maohaiqing" using '(DESCRIPTION =(ADDRESS_LIST =(ADDRESS = (PROTOCOL = TCP)(HOST = 10.0.1.2)(PORT = 1521)))(CONNECT_DATA =(SERVER = DEDICATED)(SERVICE_NAME = testdb)))';
校驗dblink:
SQL> SELECT usename FROM user_users@db_sinotest_link;
解決方案 將小寫密碼加雙引號如下例子..
SQL> create database link db_sinotest_link connect to "sinotest_link" identified by "maohaiqing" using '(DESCRIPTION =(ADDRESS_LIST =(ADDRESS = (PROTOCOL = TCP)(HOST = 10.0.1.2)(PORT = 1521)))(CONNECT_DATA =(SERVER = DEDICATED)(SERVICE_NAME = testdb)))';
Database link created
校驗dblink:
SQL> SELECT usename FROM user_users@db_sinotest_link;
USERNAME
------------------
SINOTEST_LINK
SQL>
提示:
11g可以透過引數sec_case_sensitive_logon或dba_users.password_versions欄位查詢 密碼大小寫是否敏感;
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/28602568/viewspace-1278993/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- Oracle建立dblink報錯:ORA-01017、ORA-02063解決Oracle
- 連線oracle錯誤解決辦法Oracle
- MySQL連線錯誤(10048)的解決方案MySql
- linux oracle 建立informix dblink 錯誤解決LinuxOracleORM
- Oracle 資料庫連線錯誤解決方法Oracle資料庫
- 寬頻連線錯誤678 寬頻連線錯誤691錯誤的解決辦法
- ORA-02063錯誤解決一例
- navicat連線MySQL8.0.11報2059錯誤的解決方案MySql
- perl連線Oracle錯誤Oracle
- 寬頻連線錯誤691解決方法
- 解決連線Oracle 11g報ORA-01034和ORA-27101的錯誤Oracle
- sql中呼叫dblink引發ORA-01017錯誤SQL
- ORA-01017/ORA-02063DbLink建立錯誤問題分析及解決3D
- VPN連線800錯誤的解決辦法(轉)
- Oracle 低版本客戶端連線 18c 報ORA-28040 和 ORA-01017 錯誤的解決方法Oracle客戶端
- Win7撥號連線時出現錯誤711的解決方案Win7
- 錯誤720寬頻連線解決辦法 寬頻連線錯誤程式碼720怎麼解決
- oracle 9i下ORA-01555錯誤的解決方法Oracle
- 寬頻連線錯誤解決方法總彙
- Mysql出現連線錯誤解決辦法MySql
- 資料庫連線錯誤的原因及解決方法資料庫
- 寬頻連線錯誤678怎麼辦? 寬頻連線錯誤678故障解決辦法
- ORACLE 建立DBLINK 自動加域名解決方案Oracle
- 關於navicat連線oracle 報 ORA-12737 set CHS16GBK錯誤的解決方案Oracle
- Troubleshooting: SQL Server連線錯誤解決方法列表SQLServer
- 連線MySQL出現2013錯誤解決MySql
- Oracle 11g下TNS連線報錯ora-12532故障解決Oracle
- latex 錯誤以及解決方案
- 配置Oracle DBlink連線MySQL庫OracleMySql
- 在ORACLE 11G DG遇到的錯誤:ORA-01017,ORA-16047Oracle
- Win7寬頻連線錯誤678如何解決?Win7系統寬頻連線錯誤678的解決方法Win7
- Percona Toolkit工具連線MySQL 8報錯的解決方案MySql
- SSH 連線慢的解決方案詳解
- ORACLE11g DataGuard手工建立錯誤的解決方案(一)Oracle
- ORACLE11g DataGuard手工建立錯誤的解決方案(二)Oracle
- 寬頻連線錯誤解決方法大集合
- 寬頻連線錯誤769原因與解決辦法
- 【常見的SQL Server連線失敗錯誤以及解決方法】SQLServer