How to connect with your Oracle database without installing Oracle Client?
Did you ever get frustrated when you want to connect with your oracle database, but you have to install everything from oracle client software cd and waste for hundreds megs only to get connect with your database?
Now, those day were past.
After trial and error, I found more simple way to get TOAD, TORA (3rd party software for manage your database).
These explanation, only a sample to get work with 3rd party software like TOAD,SQLplus,TORA in order to connect with oracle database, I was run it on Windows XP Pro service pack 3, with TOAD ver 9.0.1.8, edit my environment with notepad, and a cup of tea ?
In summary, you could get sqlplus command line and your TOAD run flawlessly without have to install oracle clients (*huraaa*).
- Download from oracle website for instant client software (http://www.oracle.com/technology/software/tech/oci/instantclient/index.html)
if you use end user windows, simply drive your click into http://www.oracle.com/technology/software/tech/oci/instantclient/htdocs/winsoft.html
- Choose for latest suitable version for your own. On my version, I have to use Version 10.2.0.4, cause latest version (Version 11.1.0.6.0) not work for OCI.dll issue that not support for Version 11.1.0.6.0.
- After ACCEPT the license agreement above, Download instant client package –basic (35Mb on 10.2.0.4 and 44Mb on Version 11.1.0.6.0),
- Download instant Client Package – SQL*Plus – size only 800Kb on 10.2.0.4 and 11.1.0.6.0
- You can download another package if you want, but only those above were mandatory
- Create new folder on your main hard drive, I choose to create: “c:\oracle\instantclient”
- Then, extract your all package into c:\oracle\instantclient
- after finished, from your desktop computer, access environment file, Start > My Computer > right Click > choose PROPERTIES
- From GENERAL tab, choose ADVANCED tab
- Click on ENVIRONMENT VARIABLES button on bottom region (startup and recovery)
- On top region, click new variables, and create variable Name: TNS_ADMIN with value C:\oracle\instantclient
- On bottom region, find PATH variable, and click EDIT
- Add your location path into your last words after enter “;” (without quotes) value
- Create new variable with NLS_LANG (find out more on NLS_LANG on http://www.dba-oracle.com/t_nls_lang.htm ) enter your selected language, I enter AMERICAN_AMERICA.WE8MSWIN1252 for my value (you can enter your value within this http://www.oracle.com/technology/tech/globalization/htdocs/nls_lang%20faq.htm#_Toc110410557 option)
- Restart your system
- Install your TOAD or TORA, or if you like, you can use native sqlplus from oracle.
- Create new file TNSNAMES.ora with your editor, or you can have it from your DBA man.
- Place the TNSNAMES.ora on “C:\oracle\instantclient”
- Run TOAD or TORA
- Enter your username, password and connection string from TNS files, you see TOAD now can read all the necessary information to connect with your database.
- You are connected to your database without have to install oracle client anymore:-)
Questions
Help, my connection not work, an error come out with message: ORA-12705: Cannot Access NLS data files or invalid environment specified.
Anwers:
This error show because you have NLS_LANG variable with wrong or not complete value, review your value base on http://www.oracle.com/technology/tech/globalization/htdocs/nls_lang%20faq.htm#_Toc110410557
Help, I have error when connect with my TOAD, error “OCI version 11.1.0.1.0 is not supported” come out.
Answers:
This because your TOAD isn’t compatible with your instant client, download and install previous version from oracle instant client page http://www.oracle.com/technology/software/tech/oci/instantclient/htdocs/winsoft.html
I need to run SQLDR80.exe aka. Sql loader, can I have this on my machine without have to install the oracle client too?
Answers:
Interesting question, till now I still have no idea, any open idea that could solve this issue?
It worked perfectly with following additions
1) i had to add ORACLE_HOME also other than TNS_ADMIN in System Environment Variables
2) IUSR and IIS_USRS must have read/execute permission on c:\oracle\instantclient folder…
Satish Asnani said this on 12 November, 2014 at 1:02 pm |
This is the perfect web site for anybody who really wants to find out
about this topic. You understand so much its almost hard to argue with
you (not that I actually will need to…HaHa).
You definitely put a new spin on a subject which has been written about for a long
time. Excellent stuff, just great!
windows 7 loader by daz v2.2.1 said this on 16 June, 2014 at 2:23 am |
kind of web site I like !! thks dude –
Vince said this on 19 February, 2014 at 8:54 pm |
Can I install server and client at same pc? I’ve istalled server on a different PC and client (other pc) like this page and I run TOAD then say this message: “ORA-12541: TNS:no listener” I can’t undertand it..
Juan T. Suyo Choque said this on 10 September, 2013 at 8:10 pm |
I tried to connect using the steps as you have mentioned. The blog and idea is so useful. However I am not being able to connect using toad. I was wondering to know if we need to put all the content of SQL * client to the instantclient folder or inside the folder instantclient_10_2. Please suggest
Rajan Maharjan said this on 26 August, 2013 at 2:12 pm |
Very nice tips! I have followed and it works fine!!! Thank you very much!!!
Zakariya said this on 22 August, 2013 at 9:34 am |
Excellent it worked..Thanks 🙂
N Prabhu said this on 21 August, 2013 at 2:06 pm |
Splendid! Worked very fine. I wasn’t aware of this instant client possibility. That makes life so much easier.
Keep up the solicitous spirit!
Vinicius said this on 28 October, 2010 at 12:23 am |
i have install xe client but, when i connect it said ‘tnsname connect time occurred’ please help me haow to connect .
Indra said this on 6 September, 2010 at 8:38 pm |
Thanks…It works
Vaibhav said this on 28 July, 2010 at 2:17 pm |
What an untimate blog…..It works for me….Thanks dude
Vaibhav said this on 28 July, 2010 at 2:16 pm |
with username/password for user type synonym i can’t view any tables
how can resolve it?
houssam said this on 3 May, 2010 at 6:34 pm |
If you are planning to use tora with the already installed version on your desktop, delete oci.dll that cam installed in the TORA installation directory. I has “missing error description” error and it drove me nuts. After reading carefully on TORA installation directory, if you download the ready to use installation package (unzip it and use it), you need to remove oci.dll if you want to use oracle installed on your deskotp
Kuntal said this on 23 March, 2010 at 3:06 am |
I have the error in TORA:
Unable to connect to the database. ORA-29523216 missing error description
Gilberto said this on 27 November, 2009 at 2:45 am |
sorry Gilbert..
i cant assure what will be the source of your error..
please use google.com to find the answer or simply contact TORA developers.
celemotan said this on 1 December, 2009 at 11:48 am |
There’s a solution which does not require permanent changes to your Environment Variables. I put them in a batch script (.BAT) and launch Toad from within that context with the variables set. Then I launch Toad from the bootstrapper. Copy script below into a text file and rename as ‘RunTOAD_10g.bat’.
@echo off
rem
rem Bootstrapper to set environment variables
rem For use with TOAD via Oracle Instant Client
rem
rem Written by: Alan Hall 23-09-2009
rem
set TNS_ADMIN=C:\Oracle\instantclient_10_2
set NLS_LANG=AMERICAN_AMERICA.WE8MSWIN1252
set PATH=%PATH%;C:\Oracle\product\11.1.0\client_1\bin;C:\Oracle\instantclient_10_2
cd “C:\Program Files\Quest Software\Toad for Oracle FREEWARE”
start toad.exe
exit
Alan Hall said this on 23 September, 2009 at 7:50 pm |
Great instructions!! Thank you very much
Douche said this on 9 July, 2009 at 10:57 pm |
Hi,
I’m followed all the steps, and I got “ORA-06401: NETCMN: invalid driver designator”
I’m using TORA 2.0.0 and instantclient 11.1.0.7
Any clue? Many thanks in advance!
ja said this on 26 June, 2009 at 6:49 pm |
Thank a lot.This has helped me in configuring Toad with Oracle in my laptop
Sreenath said this on 13 June, 2009 at 9:34 pm |
For TOra 2 it appears I need the Instant client but I need the full client for other app SQLloader, etc…
With these steps can I have both installed?
Alan said this on 10 June, 2009 at 11:47 am |
that’s my second question too bro..
i still not know how to make sqlloader work upon this environment 🙂
if you have some trick of something please do share through this page 🙂
celemotan said this on 10 June, 2009 at 8:07 pm |
Great.. How good this blog… good dude.. cheers
Kathir said this on 3 June, 2009 at 4:05 pm |
Hi, I have done this, This is working fine for me. Thanks for the blog.
Thanks,
Venu
venu said this on 28 May, 2009 at 2:07 pm |
I got the following error:
OCI version 0.2089866642.2010999756.1228.45810828 is not supported
Any idea?
It seems because of the version, but i verify it to my best and everything seems ok.
Ajit said this on 23 May, 2009 at 12:40 am |
Hi Raj..
please check step #17 with your DBA..
i think the problem might be on tnsnames.ora that consist of several connections to your oracle instances.
so please check if the connection string were right or not.
hope it will help.
celemotan said this on 3 February, 2009 at 5:54 pm |
Hi
I have followed the same steps above but i am facing an error while trying to login to DB though TOAD.
Error:
ORA-12154 : TNS : Could not resolve the connect identifier specified.
Raj said this on 28 January, 2009 at 11:13 pm |
maksudnya ODBC kemana mbak maya?
TOADnya yang dimaksud bisa connect ODBC?
TOAD sayangnya hanya bisa ke oracle.
celemotan said this on 27 January, 2009 at 12:58 pm |
Kl dipake untuk koneksi ODBC, harusnya juga bisa kan?
mbak maya said this on 27 January, 2009 at 12:22 pm |
Very nice tip! It worked just as you told it would =) Thanks
Rebellis said this on 14 January, 2009 at 10:19 pm |