<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>DBAToolZ &#187; oracle instant client</title>
	<atom:link href="http://www.dbatoolz.com/t/tag/oracle-instant-client/feed" rel="self" type="application/rss+xml" />
	<link>http://www.dbatoolz.com</link>
	<description>Lightweight Oracle DBA Tools</description>
	<lastBuildDate>Tue, 16 Feb 2010 01:17:35 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Installing Oracle instantclient basic and instantclient sqlplus on win32</title>
		<link>http://www.dbatoolz.com/t/installing-oracle-instantclient-basic-and-instantclient-sqlplus-on-win32.html</link>
		<comments>http://www.dbatoolz.com/t/installing-oracle-instantclient-basic-and-instantclient-sqlplus-on-win32.html#comments</comments>
		<pubDate>Thu, 27 Aug 2009 00:17:28 +0000</pubDate>
		<dc:creator>MVE</dc:creator>
				<category><![CDATA[Operations]]></category>
		<category><![CDATA[instantclient basic]]></category>
		<category><![CDATA[instantclient sqlplus]]></category>
		<category><![CDATA[oracle instant client]]></category>
		<category><![CDATA[win32]]></category>

		<guid isPermaLink="false">http://www.dbatoolz.com/?p=412</guid>
		<description><![CDATA[Sometimes basic things like installing the latest Oracle instantclient on the PCs of all of your developers can take considerable time.  I typically setup a dedicated DBA Portal website wherever I work and then write up instructions for repetitive things like these.  It&#8217;s all about &#8212; do it once and forget it.  [...]


No related posts.]]></description>
			<content:encoded><![CDATA[<p>Sometimes basic things like installing the latest Oracle instantclient on the PCs of all of your developers can take considerable time.  I typically setup a dedicated DBA Portal website wherever I work and then write up instructions for repetitive things like these.  It&#8217;s all about &#8212; <strong>do it once and forget it</strong>.  Here&#8217;s the copy of the writeup I did to install the latest 11g Oracle instantclient basic and instantclient sqlplus on win32:</p>
<p><strong>Go to Instant Client Downloads for Microsoft Windows (32-bit) download page:</strong></p>
<p><a href="http://www.oracle.com/technology/software/tech/oci/instantclient/htdocs/winsoft.html">http://www.oracle.com/technology/software/tech/oci/instantclient/htdocs/winsoft.html</a></p>
<p><strong>Download basic-win32 and sqlplus-win32 files to your PC:</strong></p>
<p>instantclient-basic-win32-11.1.0.7.0.zip<br />
instantclient-sqlplus-win32-11.1.0.7.0.zip</p>
<p><strong>Create a C:\oracle directory on your C drive (if you don&#8217;t already have one)</strong></p>
<p>move both files into C:\oracle</p>
<p><img src="http://content.screencast.com/users/ttlj_vitaliy/folders/Jing/media/50627808-ad38-45e6-beda-43239de4a7ec/2009-08-26_1552.png" alt="" /></p>
<p><strong>Unzip both files</strong></p>
<p>1) first unzip instantclient-basic-win32-11.1.0.7.0.zip<br />
2) then unzip instantclient-sqlplus-win32-11.1.0.7.0.zip</p>
<p>to unzip right click on file<br />
point to WinZip<br />
Click Extract to here &#8230;</p>
<p>End result should be a new folder called instantclient_11_1 in your C:\oracle:</p>
<p><img src="http://content.screencast.com/users/ttlj_vitaliy/folders/Jing/media/3567cc8e-3e5a-46c3-ba95-7c53d0cab3e1/2009-08-26_1556.png" alt="" /></p>
<p><strong>Setup your system %PATH% and %TNS_ADMIN% variables</strong></p>
<p>In Windows explorer LEFT pane, right click on &#8220;My Computer&#8221; icon and click &#8220;Properties&#8221;<br />
Click &#8220;Advanced&#8221; tab<br />
Click Environment variables button:</p>
<p><img src="http://content.screencast.com/users/ttlj_vitaliy/folders/Jing/media/37bd27da-ee0d-4ec5-a7df-a30e2247e695/2009-08-26_1559.png" alt="" /></p>
<p>In the &#8220;System Variables&#8221; panel select &#8220;Path&#8221; variable and click &#8220;Edit&#8221; button:</p>
<p><img src="http://content.screencast.com/users/ttlj_vitaliy/folders/Jing/media/df7ce56e-48fe-46bc-9b4a-d91f68691394/2009-08-26_1601.png" alt="" /></p>
<p>In the &#8220;Variable Value&#8221; field paste the following:<br />
  C:\oracle\instantclient_11_1<br />
BEFORE all other path values that point to your OLD Oracle clients, then click &#8220;Ok&#8221;</p>
<p><img src="http://content.screencast.com/users/ttlj_vitaliy/folders/Jing/media/c703c0db-b57f-444b-8c00-f3f908e6f684/2009-08-26_1603.png" alt="" /></p>
<p>Now find a variable called TNS_ADMIN &#8212; it could be in either panel (System / User),<br />
if you have no such variable, create it in the User panel by clicking &#8220;New&#8221;:<br />
   Variable Name: TNS_ADMIN<br />
   Variable Value: C:\oracle\instantclient_11_1<br />
Click Ok<br />
<img src="http://content.screencast.com/users/ttlj_vitaliy/folders/Jing/media/720bfaed-2c63-424b-bee3-6847a34145e4/2009-08-26_1606.png" alt="" /></p>
<p>Now click &#8220;Ok&#8221; on the Environment Variables screen<br />
and click &#8220;Ok&#8221; on the System Properties window to close it</p>
<p><strong>Setup tnsnames.ora file</strong></p>
<p>If you have an existing Oracle client copy tnsnames.ora file from there and place it to:</p>
<p>   C:\oracle\instantclient_11_1</p>
<p>If you don&#8217;t have an existing Oracle client create a new tnsnames.ora file, for example:</p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">- - - - - - - - - - - - - - - - - - - - - - - 
XRACQ_MYSERVICE_TAF =
  (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = vip-qarac1)(PORT = 1521))
    (ADDRESS = (PROTOCOL = TCP)(HOST = vip-qarac2)(PORT = 1521))
    (ADDRESS = (PROTOCOL = TCP)(HOST = vip-qarac4)(PORT = 1521))
    (ADDRESS = (PROTOCOL = TCP)(HOST = vip-qarac3)(PORT = 1521))
    (LOAD_BALANCE = yes)
    (CONNECT_DATA =
      (SERVER = DEDICATED)
      (SERVICE_NAME = XRACQ_MYSERVICE_TAF.domain.com)
      (FAILOVER_MODE =
        (TYPE = SELECT)
        (METHOD = BASIC)
        (RETRIES = 180)
        (DELAY = 5)
      )
    )
  )</pre></div></div>

<p><strong>Test 11g client by running sqlplus</strong></p>
<p>Open a new CMD window by going to Start->Run<br />
In the Run Window type in: cmd and press &#8220;Ok&#8221;:</p>
<p><img src="http://content.screencast.com/users/ttlj_vitaliy/folders/Jing/media/010a0a12-8717-46a4-aa9e-d03bdcaf4af0/2009-08-26_1612.png" alt="" /></p>
<p>in the CMD window prompt type in:</p>
<p>   sqlplus user/pass@TNS_ALIAS</p>
<p>where:</p>
<p>   user:      is the database username given to you by the DBA<br />
   pass:      is the database password given to you by the DBA<br />
   TNS_ALIAS: The alias you setup in the tnsnames.ora file</p>
<p>example:</p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">   C:\&gt;sqlplus xxx/xxxxxxxx@XRACQ_MYSERVICE_TAF
&nbsp;
   SQL*Plus: Release 11.1.0.7.0 - Production on Wed Aug 26 16:24:23 2009
&nbsp;
   Copyright (c) 1982, 2008, Oracle.  All rights reserved.
&nbsp;
&nbsp;
   Connected to:
   Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production
   With the Partitioning, Real Application Clusters, OLAP, Data Mining
   and Real Application Testing options
&nbsp;
   SQL&gt;</pre></div></div>

<p><strong>If you get the ORA-12705 error while running sqlplus test:</strong></p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">C:\&gt;sqlplus xxxxxx/xxxxxxxx@xxxxxxxxxxx
&nbsp;
SQL*Plus: Release 11.1.0.7.0 - Production on Wed Aug 26 16:58:33 2009
&nbsp;
Copyright (c) 1982, 2008, Oracle.  All rights reserved.
&nbsp;
ERROR:
ORA-12705: Cannot access NLS data files or invalid environment specified
&nbsp;
Enter user-name:</pre></div></div>

<p><strong>Here&#8217;s the solution:</strong></p>
<p>To fix the &#8220;ORA-12705: Cannot access NLS data files or invalid environment specified&#8221; error, go to your registry editor (run regedit from Start->Run) and then:</p>
<p>- Navigate to Windows Registry in \HKEY_LOCAL_MACHINE\SOFTWARE\ORACLE<br />
- Remove the NLS_LANG from there (select it and delete)</p>
<p>Re-run the sqlplus test to make sure it works (you will need to open a new CMD window for the registry changes to take place).</p>
<p>End.</p>


<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://www.dbatoolz.com/t/installing-oracle-instantclient-basic-and-instantclient-sqlplus-on-win32.html/feed</wfw:commentRss>
		<slash:comments>75</slash:comments>
		</item>
	</channel>
</rss>
