Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> oci connect_string & c

oci connect_string & c

From: Jesse Waters <jcwaters_at_wfubmc.edu>
Date: Wed, 9 Oct 2002 12:36:51 -0400
Message-ID: <ao1lur$1bu0$1@f1n1.spenet.wfu.edu>


How do programmatically set the right connect_string using OCI? I see that to set the username and password that I use OCIAttrSet but I don't know the correct way to set the database to which I will connect.

As an example when I login to sqlplus I must use: sqlplus> username/password_at_connect_string to get in. The connect_string points me to the right database. I know I must do this in my c code as well I just do not know how. Any takers?

Thankx,
Jesse. Received on Wed Oct 09 2002 - 11:36:51 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US