Re: OCCI connect vs. sqlplus

From: Laurenz Albe <invite_at_spam.to.invalid>
Date: Fri, 27 Mar 2009 15:10:45 +0100
Message-ID: <1238163067.112770_at_proxy.dienste.wien.at>



Shane wrote:
>>> This works great:
>>>
>>> $ sqlplus smiller/mill_at_oradev
>>>
>>> But connecting to the same db from the same box with this OCCI C++:
>>>
>>> std::string user("smiller");
>>> std::string pswd("mill");
>>> std::string db("oradev");
>>> Environment *env = Environment::createEnvironment();
>>> Connection *conn = env->createConnection(user,pswd,db);
>>>
>>> gives
>>>
>>> ORA-01017: invalid username/password; logon denied
>>>
>>> what stupid thing am I missing?
>>
>> I don't know, it works here.
>>
>> Maybe an Oracle Net Trace can tell more...
>
> Net trace? please enlighten. Tx.

It's in the Net Services Administrator's Guide; if you are running Oracle 10.2, see
http://download-uk.oracle.com/docs/cd/B19306_01/network.102/b14212/troublestng.htm#sthref1709

Yours,
Laurenz Albe Received on Fri Mar 27 2009 - 09:10:45 CDT

Original text of this message