Skip to Main Content

Oracle Database Discussions

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Error : ORA 24960 - OCI_ATTR_USERNAME is greater than the maximum allowable

535947Sep 26 2006 — edited Sep 26 2006
I have a problem with creating a connection to a Oracle 10g Database. I installed Oracle Client 10g.
I have a C++ program an work with the Microsoft Visual C++ .NET 2005.
My problem refers to the following code:



string user = "xx";
string passwd = "ww";
string db = "qq";


Environment *env;
Connection *con;
Statement *stmt;


env = Environment::createEnvironment(Environment::DEFAULT);
con = env->createConnection(user, passwd, db);



ERROR DESCRIPTION:

Error number: 24960


ORA-24960: the attribute OCI_ATTR_USERNAME is greater than the maximum allowable length of 255


OCIAttrGet with OCI_ATTR_USERNAME = -2


New Oracle C++ Call Interface (OCCI) libraries are available for Microsoft Visual C++ .NET 2005 ??

Thanks!!
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 24 2006
Added on Sep 26 2006
2 comments
3,624 views