How to connect Oracle using OCILIB with hostname and port number configured.
It by default takes localhost as hostname.
I also checked in the OCI_ConnectionCreate function, but it doesn’t asks for hostname and port number:
cn = OCI_ConnectionCreate("db", "usr", "pwd", OCI_SESSION_DEFAULT);
As my requirement is to connect the oracle server which resides in different server, and my application runs in different server.
question answered in the original topic on OCILIB forum on SF.NET
Link to topic