Re: OCCI connect vs. sqlplus

From: joel garry <>
Date: Thu, 30 Apr 2009 14:52:12 -0700 (PDT)
Message-ID: <>

On Mar 26, 10:51 pm, 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 have no idea, but try uppercase. If the OCCI is passing along quoting, Oracle won't change it to uppercase, which it does for most unquoted situations like your sqlplus login. Can't remember for the "oradev" part, but also may need the part (though I think not since it is getting past that for the ora-1017, but one never knows what's been played with and you may simply be getting somewhere different that resolves).


-- is bogus.
Yay Greg!
Received on Thu Apr 30 2009 - 16:52:12 CDT

Original text of this message