Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> Re: Local Connection WITHOUT SQL net, possible?
You have to set two environment variables, ORACLE_HOME and ORACLE_SID, before running your application. ORACLE_HOME is usually C:\ORANT and ORACLE_SID is ORCL (unless you changed the default SID to another value).
To see if these two variables are set (and if not to set them), do this:
My Computer->Control Panel->System->Environment
The dialog box shows the environment variables that are currently in effect for the whole system and the ones that are set for the logged-on user only. If ORACLE_HOME and ORACLE_SID are not listed there, add them.
After this, you should be able to connect without using @<service_name> in your connect string, i.e. username/password should be enough.
Hope this helps.
Michael Serbanescu
![]() |
![]() |