This discussion is archived
2 Replies Latest reply: Jun 20, 2012 2:06 PM by 944605 RSS

Using tnsnames.ora with OCI

944605 Newbie
Currently Being Moderated
Hi all,

First, a disclaimer: I am completely new to anything with Oracle or OCI, so if my questions sounds stupid feel free to tell me so but point me in the right direction. Thanks!

Also, basic information:

Language: C
OCI: 11g

I am trying to write a client that connects to an Oracle database and gets some information (obviously). On the OCILogon() step, I need the username, password, and db address. However, our client said there will be a tnsnames.ora file, and that should be enough.
I've searched online and I have not been able to find anything that relates OCILogon() to tnsnames.ora, so here are my questions:

1) Can OCILogon() use tnsnames.ora at all?
2) Is there any other function that I should use instead?

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points