aix上proc编译报错:PCC-F-02104, Unable to connect to Oracle

环境: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 可以登录,编译却报错??

为什么以前编译正常,现在突然不行了,难道是哪个设置有变化??

问题先记下来,待后面排查

 

 

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值