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:
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?
This forum is for discussion of general programming in C, C++ and Fortran, and using Solaris Studio compilers and tools.
Questions about Oracle database programming are more likely to find an answer in an Oracle database programming forum. Start here
Several forums are listed there that deal with different aspects of database programming.