環境:aix 5.3,用戶端 oracle client 10.2.0.1 ,由于aix作業系統版本的的緣故,最高隻能安裝oracle 10.2.0.1。連的資料庫伺服器端是 linux oralce 11.2.0.3。
今天 在aix上proc 編譯突然出現“PCC-F-02104, Unable to connect to Oracle”錯誤。
proc char_map=string line=yes parse=none config=/app/proc.cfg include=/app2/include SQLCHECK=semantics USERID=dbuser/pw231db#@dbtest iname=test_db.pc
Pro*C/C++: Release 10.2.0.1.0 - Production on Sun Feb 23 15:39:18 2020
Copyright (c) 1982, 2005, Oracle. All rights reserved.
System default option values taken from: /oracle/product/10.2.0/precomp/admin/pcscfg.cfg
PCC-F-02104, Unable to connect to Oracle
make: The error code from the last command is 1.
之前一直都用得好好的,怎麼突然就不行了。
用同樣的使用者名、密碼,在aix上 用sqlplus 登入正常,如下:
sqlplus dbuser/pw231db#@dbtest
SQL*Plus: Release 10.2.0.1.0 - Production on Wed Feb 23 15:40:42 2020
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
SQL>
左查右搜,找不到原因。最後懷疑是不是密碼是帶有 “#” 号,shell腳本自動忽略了後面一截? 嘗試把密碼中的“#”号替換成 下劃線 “_",重新編譯,真的編譯成功了,有點無語。
為什麼同樣的使用者、密碼sqlplus 可以登入,編譯卻報錯??
為什麼以前編譯正常,現在突然不行了,難道是哪個設定有變化??
問題先記下來,待後面排查