简体   繁体   English

使用occi在C ++中连接到Oracle 10g时出现ora 24960错误

[英]ora 24960 error came when connecting to oracle 10g in c++ using occi

Hi i tried to connect oracle 10g in c++ using occi, the environment was created successfully, but when trying to create a connection 嗨,我尝试使用occi在C ++中连接oracle 10g,成功创建了环境,但是在尝试创建连接时

ora 24960 came and it said that the attribute OCI_ATTR_USERNAME is greater than the maximum allowable length of 255 ora 24960来了,它说属性OCI_ATTR_USERNAME大于最大允许长度255

I am very new to c++ and occi so please help me in that issue 我是C ++和OCCI的新手,因此请在该问题上帮助我

Thanks in advance 提前致谢

"Are you using Instant Client by chance? I believe there are some issues when using Instant Client due to the oraocci10d.lib not being shipped as part of the Instant Client package. I just checked my 11g Instant Client directory and the oraocci11d.lib file is not included so I think it is missing from 10g as well." “您是不是偶然使用Instant Client?我相信,由于oraocci10d.lib没有作为Instant Client软件包的一部分提供,因此使用Instant Client时会遇到一些问题。我刚刚检查了11g Instant Client目录和oraocci11d.lib文件不包括在内,所以我认为10g也缺少它。”

Quoted from here: Oracle forum 从这里引用: Oracle论坛

If above doesn't help, could you please post some code that reproduces this error on your system? 如果上述方法没有帮助,请您发布一些可在系统上重现此错误的代码吗? What are your connections setting (tnsnames.ora)? 您的连接设置是什么(tnsnames.ora)?

Kind regards 亲切的问候

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM