I copied it to the client (root) directory containing the oci.dll.
No luck. Tried the TNS_ADMIN var and that didn’t work either.
I’m running Windows 7.
As far as I’m aware, when you use instant client, you must create a tns_admin environment variable pointing at the folder that contains your sqlnet.ora and tnsnames.ora files. They can be anywhere on your desktop but for best results, hang them off a network/admin folder beneath the instant client folder itself.
Go to control panel -> System.
On the Advanced tab.
Click the button (or whatever) for Environment variables.
One set allows you to configure vars for your login only, the other does it for everyone. Pick the best one.
Create a new one, name it TNS_ADMIN and set the value to be wherever your files are - say c:\oracle\instantclient10g\network\admin (you may need quotes if there are spaces - but Oracle won’t like spaces anyway - so avoid them!)
OK your way back out.
That should work.
Caveat: I don’t use instant client and neither does anyone here. But in my job, it helps to have at least a slight clue about other Oracle things. Just in case.
Information in this message may be confidential and may be legally privileged. If you have received this message by mistake, please notify the sender immediately, delete it and do not copy it to anyone else.
We have checked this email and its attachments for viruses. But you should still check any attachment before opening it.
We may have to make this message and any reply to it public if asked to under the Freedom of Information Act, Data Protection Act or for litigation. Email messages and attachments sent to or from any Environment Agency address may also be accessed by someone other than the sender or recipient, for business purposes.
If we have sent you information and you wish to use it please read our terms and conditions which you can get by calling us on 08708 506 506. Find out more about the Environment Agency at www.environment-agency.gov.uk