|
Re: Can We Connect to remote ORACLE database ? [message #117083 is a reply to message #116564] |
Sun, 24 April 2005 16:47 |
Michael Hartley
Messages: 110 Registered: December 2004 Location: West Yorkshire, United Ki...
|
Senior Member |
|
|
Hi,
Yes is the answer to your question.
Technically you achieve this, after creating the OCI environment and creating the handles, you the issue the OCIserverAttach function with the TNS names of your database, set the username and password attributes of the OCIsession handle and issues OCISessionBegin to allocate the session and server handles to the service context handle.
The TNS names of your database is in your $ORACLE_HOME/network/admin/tnsnames.ora file, if you don't have an entry you will need to create it.
Read the manuals at http://technet.oracle.com
Kind regards,
Michael Hartley, http://www.openfieldsolutions.co.uk
|
|
|