Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Installing Oracle Instant Client

I can't seem to figure out how to install the Oracle client on Windows Server 2008.

I downloaded x64 version (the first file on the list) here. There are installation instructions on the bottom of that page:

Step 2 ("instantclient")

Which executable should I run?

like image 505
Madam Zu Zu Avatar asked Apr 27 '11 19:04

Madam Zu Zu


People also ask

How do you install Oracle Instant client?

Go to the Oracle Database Instant Client website. In the Get Oracle Instant Client section, select Downloads. On the Oracle Instant Client Downloads page, select Instant Client for Microsoft Windows (x64). Choose Instant Client Package - Basic for your version of Oracle Database.

How do I install Instant client on Windows 10?

Log on to the application server as an administrator. Download the 64-bit Instant Client Basic Package, SQL*Plus Package, and the Tools Package. For example: instantclient-basic-windows.


1 Answers

The instantclient works only by defining the folder in the windows PATH environment variable. But you can "install" manually to create some keys in the Windows registry. How?

1) Download instantclient (http://www.oracle.com/technetwork/topics/winsoft-085727.html)

2) Unzip the ZIP file (eg c:\oracle\instantclient).

3) Include the above path in the PATH. Set PATH in Windows

4) Create the registry key:

  • Windows 32bit: [HKEY_LOCAL_MACHINE\SOFTWARE\ORACLE]
  • Windows 64bit: [HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\ORACLE]

5) In the above registry key, create a sub-key starts with "KEY_" followed by the name of the installation you want:

  • Windows 32bit: [HKEY_LOCAL_MACHINE\SOFTWARE\ORACLE\KEY_INSTANTCLIENT]
  • Windows 64bit: [HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\ORACLE\KEY_INSTANTCLIENT]

6) Now create at least three string values ​​in the above key:

  • NLS_LANG = BRAZILIAN PORTUGUESE_BRAZIL.WE8MSWIN1252 (complete list here: http://docs.oracle.com/cd/B19306_01/install.102/b14317/gblsupp.htm)
  • ORACLE_HOME = c:\oracle\instantclient (the same folder in PATH)
  • ORACLE_HOME_NAME = MY_INSTANTCLIENT (choose any name)

registry keys for Oracle Home

For those who use Quest SQL Navigator or Quest Toad for Oracle will see that it works. Displays the message "Home is valid.":

Displays the message "Home is valid." in Quest Toad (or SQL Navigator)

The registry keys are now displayed for selecting the oracle client:

selecting the oracle client in Quest SQL Navigator

like image 185
Sergio Cabral Avatar answered Sep 24 '22 06:09

Sergio Cabral