Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> Re: OCI question: how connect to remote Oracle Server
If writing a client application use the OCILogin() function, where the
last parameter is the database name ( conf. in the TNS file ).
If writing a server application, oracle allows you to split up the handles in OCIServer (function OCIServerAttach for the connection) and and OCISession (for the user authorisation).
So, your "oci_attr_connectstr" goes into the OCILogon or the OCIServerAttach.
Markus
leirace_at_my-deja.com wrote:
>
> HI all
> I use OCI 8.0 in my project.
> when create a session, I use OCI_ATTR_USERNAME and OCI_ATTR_PASSWORD
> for authentication. But I can't find a attributes like
> "OCI_ATTR_CONNECTSTR", SO, I don't now how connect to a remote Oracle8.
>
> leirace
>
> Sent via Deja.com http://www.deja.com/
> Share what you know. Learn what you don't.
Received on Tue Sep 07 1999 - 05:37:48 CDT
![]() |
![]() |