环境: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 可以登录,编译却报错??
为什么以前编译正常,现在突然不行了,难道是哪个设置有变化??
问题先记下来,待后面排查