简体   繁体   中英

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

ora 24960 came and it said that the attribute OCI_ATTR_USERNAME is greater than the maximum allowable length of 255

I am very new to c++ and occi so please help me in that issue

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."

Quoted from here: Oracle forum

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)?

Kind regards

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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