Question

Oracle instantclient_11_1: how to install and set environment variables in Windows XP?

Asked by: epifanio67

Hello Experts,

I have install Oracle 11g on centOS 5. Now,
I am installing Oracle instantclient_11_1 on a separate machine, winXP.
Here are the install procedures: (from Oracle docs):

2. Unzip the packages into a single directory such as "instantclient".

3. Set the library loading path in your environment to the directory in Step 2 ("instantclient"). On many UNIX platforms, LD_LIBRARY_PATH is the appropriate environment variable. On Windows, PATH should be used.

Question 1:
There is no .exe file, how do I run this program?

Question 2:

My PATH variables has the following values:
%SystemRoot%\system32;
%SystemRoot%;
%SystemRoot%\System32\Wbem;
C:\Program Files\Intel\WiFi\bin\;
C:\Program Files\QuickTime\QTSystem\

Do I just need to add ;C:\instantclient_11_1 to the current PATH variable?
is that it?

thx,

This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.

Subscribe now for full access to Experts Exchange and get

Instant Access to this Solution

  • Plus...
  • 30 Day FREE access, no risk, no obligation
  • Collaborate with the world's top tech experts
  • Unlimited access to our exclusive solution database
  • Never be left without tech help again

Subscribe Now

Asked On
2009-08-04 at 15:35:32ID24626508
Topic

Oracle 11.x Database

Participating Experts
2
Points
500
Comments
26

Trusted by hundreds of thousands everyday for fast, accurate and reliable tech support.

  • "The time we save is the biggest benefit of Experts Exchange to Warner Bros. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange." Mike Kapnisakis, Warner Bros.
  • "Our team likes having a resource that is more secure than just using Google and most experts using this service really know their stuff. It's nice to look here first versus using Google." Dayna Sellner, Lockheed Martin
  • "Anytime that I've been stumped with a problem, 9 out of 10 times Experts Exchange has either the accepted solution or an open discussion of the potential solution to the problem." Kenny Red, eBay Inc.

See what Experts Exchange can do for you.

Got a question?

We've got the answer.

Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.

Screenshot of Experts Exchange Knowledgebase

Need individual assistance?

Our experts are ready to help.

If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.

Screenshot of Experts Exchange Knowledgebase

Want to learn from the best?

Read articles from industry experts.

Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.

Screenshot of an Article

Working on a long term project?

Store your work and research.

Save solutions to your questions, answers you’ve discovered through searching plus helpful articles in your personal knowledgebase for easy future access.

Screenshot of Experts Exchange Knowledgebase

Access the answers to your technology questions today.

Subscribe Now

30-day free trial. Register in 60 seconds.

What Makes Experts Exchange Unique?

Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Trusted by the world's most respected brands.

image of each brand's logo

Faithfully serving IT professionals since 1996.

Experts Exchange Logo

Try it out and discover for yourself.

Subscribe Now

30-day free trial. Register in 60 seconds.

Related Solutions

  1. Oracle
    How can i install oracle 6i developer 2000 with oracle 8 database it was give some error a .dll file missing ???
  2. Oracle Universal Installer Error
    Trying to install 9i on my PC: Error: The Java RunTime Environment was not found at C:\DOCUMENT\...\Temp\OraInstall2007….\jre\bin\javaw.exe. Hence, the Oracle Universal Installer cannot be run. Please visit ww.javasoft.com and install JRE version 1.3.1. or higher and try ag...
  3. what;'s wrong of oracle 10g in linux (centOS)
    Dear Sir/Madam I just installed oracle 10g in linux (centOS 5). After I login (oracle) and run dbca and create a database (testdb), then the output of lsnrctl status listener is following [oracle@localhost bin]$ ./lsnrctl status listener LSNRCTL for Linux: Version 10.2.0.1...
  4. How to startup oracle database 11g (test) after linux (…
    Dear Sir/Madam I have installed oracle 11g onto linux (centOS) and it works fine. But everytimes I reboot linux (centOS), I need to start the database (test) manually. Why is this happens? I would like to know how to startup database (test) automatically everytimes I reboot...
  5. Oracle Apps R12 installation on Centos 5.2
    HI I am trying to install Oracle Applications on Centos 5.2.When i try run the Pearl script called adautostg.pl. The Linux bash. enviroment gives me the message Permission Denied.I have upgraded all the packages and kernals and created new user for Oracle installation but s...

Free Tech Articles

  1. WARNING: 5 Reasons why you should NEVER fix a computer for free.
    It is in our nature to love the puzzle. We are obsessed. The lot of us. We love puzzles. We love the challenge. We thrive on finding the answer. We hate disarray. It bothers us deep in our soul. W...
  2. SCCM OSD Basic troubleshooting
    SCCM 2007 OSD is a fantastic way to deploy operating systems, however, like most things SCCM issues can sometimes be difficult to resolve due to the sheer volume of logs to sift through and the dispe...
  3. Migrate Small Business Server 2003 to Exchange 2010 and Windows 2008 R2
    This guide is intended to provide step by step instructions on how to migrate from Small Business Server 2003 to Windows 2008 R2 with Exchange 2010. For this migration to work you will need the fo...
  4. Create a Win7 Gadget
    This article shows you how to create a simple "Gadget" -- a sort of mini-application supported by Windows 7 and Vista. Gadgets can be dropped anywhere on the desktop to provide instant information, ...
  5. Outlook continually prompting for username and password
    There have been a lot of questions recently regarding Outlook prompting for a username and password whilst using Exchange 2007. There are a few reasons why this would happen and I will try to cover t...
  6. Backup Exchange 2010 Information Store using Windows Backup
    There seems to be quite a lot of confusion around the ability to backup Exchange 2010 using the built in Windows Backup feature. This stems from the omission of this feature prior to Exchange 2007 s...

Cloud Class Webinars

  1. Avoiding Bugs in Microsoft Access
    Alison Balter takes and in-depth look at avoiding bugs in Access. In this webinar you will learn about using the immediate window to debug your applications, invoking the debugger, using breakpoints to troubleshoot, stepping through code, setting the next statement to execute, ...
  2. Top 10 Best New Features in Visio 2010
    Scott Helmers gives live demonstrations of the top 10 new features in Visio 2010. This webinar will teach you how to create compelling diagrams by adding shapes to the page with a single click, linking the shapes in a diagram to data in Excel (or SQL Server, or SharePoint), ...
  3. IT Consultant Business Secrets Revealed
    Michael Munger, Experts Exchange tech pro and IT consultant, pulls back the curtain on his very successful businesses and answers question on every IT consultant and business owner should know about. He shares secrets on what he did to solve the 5 most common problems in IT, ...
  4. Disaster Recovery and Business Continuity
    Quest CTO, Mike Billon, gives an overview of the steps involved in building a dunamic disaster recovery plan. Through case studies and an examination of software/hardware tooles for monitoring and testing, you'll gain a better understandin of where you are, where you want ...
  5. Organize Your Visio Diagrams with Containers and Lists
    Scott Helmers uses cross functional flowcharts, wireframe diagrams, data graphic legends and seating charts to teach you: how to ustilize all three new structured diagram components in Visio 2010, the best practices for organizeing shapes in previous version of Visio, how to organize ...
  6. How to Us Objects, Properties, Events and Methods in Microsoft Access
    Alison Dalter gives an in-depbth look at objects, properties, events and methods in Microsoft Access. In this webinar you will learn about using the object browser, referring to objects, working with properties and methods, working with object variables, understanding the ...

Join the Community

Give a Little. Get a Lot.

Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.

Join the Community

Answers

 

by: schwertnerPosted on 2009-08-05 at 04:31:21ID: 25022139

Edit the PATH environment setting and add c:\instantclient_11_1 before any other Oracle directories. For example, on Windows XP, follow Start -> Control Panel -> System -> Advanced -> Environment Variables and edit PATH in the System variables list.

Set desired Oracle globalization language environment variables such as NLS_LANG. If nothing is set, a default local environment will be assumed.

if you experience connection problems to remote Oracle instance a possible cause could be firewalls and antiviruses. Oracle Listener will redirect the initial port 1521, so to have opened 1521 will not be enough.

 

by: sdstuberPosted on 2009-08-05 at 05:25:07ID: 25022537

"Question 1:
There is no .exe file, how do I run this program?"

The client itself is just the libraries needed by OTHER programs so they can connect to Oracle db's.
If you have no other tools, or just want to have sqlplus, it needs to be downloaded separately and put into the client directory.

The sqlplus zip is on the same otn page as the rest of the instant client packages.

 

by: epifanio67Posted on 2009-08-05 at 07:21:11ID: 25023728

ok... thx u experts....

lemme try it...

 

by: epifanio67Posted on 2009-08-05 at 08:02:17ID: 25024216

ok... I set the variable and put the sqlplus files on the same dir.
I changed the directory name to
C:\instantclient

Now, I am not sure what to expect/do?
I have cmd open and I am on C:\instantclient
how do I test connectivity? execute sql commands? etc?

is there a GUI version to create DBs, run scripts, and manage them?

thx.

 

by: sdstuberPosted on 2009-08-05 at 08:08:56ID: 25024295

no GUI,  remember the instant client itself is nothing but libraries to allow OTHER tools to connect.

OTHER tools would include sqlplus (a separate install) or for a GUI SQL Developer (another separate install)  or 3rd party apps (also separate installs)

you will need to have your sqlnet.ora and tnsnames.ora set up,  
or, using sql developer you can connect directly via host and port

 

by: sdstuberPosted on 2009-08-05 at 08:09:30ID: 25024301

 

by: sdstuberPosted on 2009-08-05 at 08:10:50ID: 25024326

for your sqlnet and tnsnames setup,  ask your dba for the information required.

 

by: epifanio67Posted on 2009-08-05 at 08:21:59ID: 25024487

thx so much...

I see... I need to create DBs and run a bunch scripts... do I do this via SQLPlus? or Do I need to install SQL Developer for Win? if I need to install SQL Developer for Win, what is SQLPlus and instant client used for?

thx

sorry for the basic questions... it took me 3 weeks to install Oracle 11g on Linux.... Now I am battling to connect to it...

thx

 

by: sdstuberPosted on 2009-08-05 at 08:29:18ID: 25024579

the client provides the libraries that OTHER tools like sqlplus and SQL Developer need in order to connect.

sqlplus is the standard command line tool for talking to oracle databases.

sql developer is a gui tool for doing development but it can help with administration too

easiest way to set up your connection...

create these directories
C:\instantclient_11_1\NETWORK
C:\instantclient_11_1\NETWORK\ADMIN

inside the admin directory create a file called tnsnames.ora

in that file put the attached snippet and fill in the "your" fields with the appropriate values
you can put the servername or the ip address for the host, I recommend using the name.


then save the file and from command line try this...

sqlplus yourusername/yourpassword@yourdbname





yourdbname=
  (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = yourdatabaseserver)(PORT = 1521))
    (CONNECT_DATA =
      (SERVER = DEDICATED)
      (SERVICE_NAME = yourdbname)
    )
  )
                                              
1:
2:
3:
4:
5:
6:
7:
8:

Select allOpen in new window

 

by: epifanio67Posted on 2009-08-05 at 08:38:43ID: 25024682

thx so much...

Now I understand what you mean by libraries that OTHER tools need...
sorry I am a bit slow..
:-)

ok... lemme try...

 

by: sdstuberPosted on 2009-08-05 at 08:42:37ID: 25024730

Note, the 1521 port is the default, but if your listener (on the linux server) is configured for a different port then change the value to match whatever your listener uses.

 

by: epifanio67Posted on 2009-08-05 at 09:42:44ID: 25025335

got it... still trying..
one meeting to attend to..

thx

 

by: epifanio67Posted on 2009-08-05 at 10:46:24ID: 25026062

ok, here is what I did...

I created the NETWORK dir and ADMIN under it.
then, I open notepad and created the tnsnames.ora (see code snippet below)

then,

I open cmd
accessed directory C:\instantclient (I removed _11_1)
then I typed the following command:
sqlplus SYSTEM@DEMO11.1
it asked me for pwd
I typed it and I get these errors

ORA-12154: TNS: protocol adapter error

asked me for username and pwd... tried again and I get SAME error... tried third time and get:

SP2-0157: unable to CONNECT to ORACLE after 3 attempts, exiting SQL*Plus

any ideas? thx

#tnsnames.ora
 
DEMO11.1 = 
 (DESCRIPTION = 
   (ADDRESS = (PROTOCOL=TCP)(HOST=111.111.1.1)(PORT=1521))
   (CONNECT_DATA = 
     (SERVER = DEDICATED)
     (SERVICE_NAME = DEMO11.1)
  )
)

                                              
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:

Select allOpen in new window

 

by: epifanio67Posted on 2009-08-05 at 13:20:19ID: 25027680

ok, I am able to access the Enterprise Mgr on the machine running Oracle 11g.
I access it by launching firefox and typing this address:
https://localhost.localdomain:1158/em

do I have to be logged in to Enterprise Mgr at host to access it via instant client remotely?

I have SQLPlus and Oracle SQL Developer installed; but can't connect to database instance...

I keep getting an IO expection: The Network Adapter could not establish the connection.

I able to ping the host machine...

please help..

 

by: sdstuberPosted on 2009-08-05 at 13:22:14ID: 25027705

what is your ping output? from client machine to host machine

what is the content of your listener.ora on the host machine?

 

by: epifanio67Posted on 2009-08-05 at 13:33:47ID: 25027829

thx so much..

See snippet

#ping output
 
Pinging 192.168.x.x with 32 bytes of data:
Reply from 192.168.x.x: bytes=32 time=2ms TTL=64
Reply from 192.168.x.x: bytes=32 time<1ms TTL=64
Reply from 192.168.x.x: bytes=32 time<1ms TTL=64
Reply from 192.168.x.x: bytes=32 time<1ms TTL=64
 
Ping statistics for 192.168.x.x:
    Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
    Minimum = 0ms, Maximum = 2ms, Average = 0ms
 
# listener.ora
LISTENER =
  (DESCRIPTION_LIST =
    (DESCRIPTION =
      (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
      (ADDRESS = (PROTOCOL = TCP)(HOST = localhost.localdomain)(PORT = 1521))
    )
  )
                                              
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:

Select allOpen in new window

 

by: epifanio67Posted on 2009-08-05 at 13:37:26ID: 25027858

also there is another listener.ora
under ORACLE_HOME/network/admin/samples

is that the one you want to see?

 

by: sdstuberPosted on 2009-08-05 at 14:00:16ID: 25028040

I'm assuming you've obfuscated your values and those aren't literals.


the host ip and the ping ip should be the same
or, use the same localhost.localdomain

 

by: epifanio67Posted on 2009-08-05 at 14:15:52ID: 25028180

thx...

yeah.. I am still not sure if it is a big deal or not to provide IP addresses or not..

you mean change the listener.ora host from:
localhost.localdomain
to
192.168.x.x
?

if yes, do I have to do the same for tnsnames.ora?
thx

 

by: epifanio67Posted on 2009-08-05 at 15:06:45ID: 25028549

thx sdstuber...

well, I changed both the listener.ora and the tnsnames.ora from localhost.localdomain to IP address; but I get this error:

[oracle@localhost bin]$ ./emctl start dbconsole
OC4J Configuration issue. /opt/oracle/product/11.1.0/db_1/oc4j/j2ee/OC4J_DBConsole_localhost.localdomain_DEMO11.1 not found

                                              
1:
2:

Select allOpen in new window

 

by: epifanio67Posted on 2009-08-05 at 15:38:37ID: 25028720

I put everything back to localhost.localdomain...
everything is working again...
I confirmed localhost = pinging IP...

any other possible ideas?

thx

 

by: epifanio67Posted on 2009-08-05 at 15:48:39ID: 25028784

do I have to do anything on the server side to be able to connect to it remotely? not Oracle Enterprise Mgr; but the server where it resides?

or do I have to add any configuration settings at Oracle Enterprise Mgr to be able to connect?

thx,

 

by: sdstuberPosted on 2009-08-05 at 21:55:00ID: 25030217

OEM - no

server side - do you have a firewall blocking port 1521?

 

by: epifanio67Posted on 2009-08-06 at 07:53:08ID: 25034093

thx...

no firewall at all..
I disabled SELinux

 

by: epifanio67Posted on 2009-08-06 at 15:22:48ID: 31611684

thx u so much

 

by: sdstuberPosted on 2009-08-06 at 20:33:57ID: 25039838

glad you got it working!

20120131-EE-VQP-002

3 Ways to Join

30-Day Free Trial

The Experts

98% positive feedback on 31,087 answers since March 2000. angeliii is a Microsoft Most Valuable Professional for his work with MS SQL Server & Develoment.

He has also proven his knowledge of Visual Basic Programming, PHP Scripting and Oracle Databases.

The Experts

97% positive feedback on 10,752 answers since July 2000. lrmoore has more than 18 years experience in the networking industry.

The six-time Mircosoft MVPs specialties include firewalls, virtual private networking, and network management.

Testimonials

"...and excellent source for support... Kind of like having your very own IT dept." Electriciansnet

Testimonials

"I was apprehensive at signing up at first. However... it has already made my life as an IT administrator much easier." JaCrews

Testimonials

"WOW! You guys have great, active, and knowledgeable people on here." moore50

Business Clients

Business Clients

In the Press

"If you’ve got a question... Experts Exchange can supply an answer.”

In the Press

"...an invaluable aid for both IT professionals and those who require tech support."

In the Press

"where IT professionals provide quick answers on just about any topic"

Business Account Plans

Loading Advertisement...