<?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>-= n8v =- &#187; Oracle</title>
	<atom:link href="http://n8v.enteuxis.org/tags/oracle/feed/" rel="self" type="application/rss+xml" />
	<link>http://n8v.enteuxis.org</link>
	<description>Just another WordPress weblog</description>
	<lastBuildDate>Tue, 27 Sep 2011 00:52:53 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2-beta2-18055</generator>
		<item>
		<title>Compiling DBD::Oracle for Red Hat Linux with the Oracle Instant Client</title>
		<link>http://n8v.enteuxis.org/2008/07/compiling-dbd-oracle-for-linux-with-the-oracle-instant-client/</link>
		<comments>http://n8v.enteuxis.org/2008/07/compiling-dbd-oracle-for-linux-with-the-oracle-instant-client/#comments</comments>
		<pubDate>Wed, 30 Jul 2008 20:59:54 +0000</pubDate>
		<dc:creator>nathan</dc:creator>
				<category><![CDATA[Figuring IT Out]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Oracle]]></category>
		<category><![CDATA[Perl]]></category>

		<guid isPermaLink="false">http://n8v.enteuxis.org.ti.sabren.com/?p=8</guid>
		<description><![CDATA[From my work intrablog, Tuesday, April 29th, 2008. I tested today and the same patch is necessary. It&#8217;s annoying how much harder this is than the MySQL driver&#8230; Download these RPMs from Oracle&#8217;s Instant Client for Linux page:Instant Client Package &#8211; Basic: All files required to run OCI, OCCI, and JDBC-OCI applications Instant Client Package [...]]]></description>
			<content:encoded><![CDATA[<p>From my work intrablog, Tuesday, April 29th, 2008.  I tested today and the same patch is necessary.</p>

<p>It&#8217;s annoying how much harder this is than the MySQL driver&#8230;</p>

<ol>
    <li>Download these RPMs from Oracle&#8217;s <a href="http://www.oracle.com/technology/software/tech/oci/instantclient/htdocs/linuxsoft.html">Instant Client for Linux</a> page:<strong>Instant Client Package &#8211; Basic</strong>: All files required to run OCI, OCCI, and JDBC-OCI applications
<strong>Instant Client Package &#8211; SDK</strong>: Additional header files and an example makefile for developing Oracle applications with Instant Client
[just for future fun] <strong>Instant Client Package &#8211; ODBC</strong>: Additional libraries for enabling ODBC applications</li>
    <li>Installify them,


<div class="wp_syntax"><div class="code"><pre class="bash">$ <span class="kw2">sudo</span> rpm <span class="re5">-ivh</span> oracle-instantclient-<span class="sy0">*</span>.rpm</pre></div></div>



</li>
    <li>Get DBD::Oracle
<pre>sudo cpan</pre>
<pre>cpan&gt; look DBD::Oracle</pre>
</li>
    <li>Look at <var>README.linux.txt</var></li>
    <li>Set up the environment
<pre>export ORACLE_HOME=/usr/lib/oracle/11.1.0.1/client/lib
export LD_LIBRARY_PATH=$ORACLE_HOME
export LIBPATH=$ORACLE_HOME

export ORACLE_DSN="DBI:Oracle:<samp>host=myhost;sid=MYINSTANCE</samp>"  # remember to quote the ;
export ORACLE_USERID=myusername/<samp>mypassword</samp></pre>
</li>
    <li>I had to patch the Makefile.PL (sent changes to the maintainer) to find the header files with a longer &#8220;client_version_full&#8221;:


<div class="wp_syntax"><div class="code"><pre class="diff"># diff -u Makefile.PL Makefile.PL.dist
<span class="re3">--- Makefile.PL 2008-07-31 10:53:00.253634000 -0800</span>
<span class="re4">+++ Makefile.PL.dist    2008-07-31 10:51:49.327631000 -0800</span>
<span class="re6">@@ -1538,7 +1538,7 @@</span>
     if <span class="br0">&#40;</span>!$client_version_full<span class="br0">&#41;</span> <span class="br0">&#123;</span>
        print &quot;I'm having trouble finding your Oracle version number... trying harder\n&quot;
            unless $force_version;
<span class="re7">-       if <span class="br0">&#40;</span> $OH =~ m!<span class="br0">&#91;</span>^\d\.<span class="br0">&#93;</span><span class="br0">&#40;</span><span class="br0">&#40;</span>?:<span class="nu0">8</span>|<span class="nu0">9</span>|1\d<span class="br0">&#41;</span>\.\d+\.\d+&lt;strong&gt;<span class="br0">&#40;</span>\.\d+<span class="br0">&#41;</span>?&lt;/strong&gt;<span class="br0">&#41;</span>! <span class="br0">&#41;</span> <span class="br0">&#123;</span> #decode it from $OH if possible</span>
<span class="re8">+       if <span class="br0">&#40;</span> $OH =~ m!<span class="br0">&#91;</span>^\d\.<span class="br0">&#93;</span><span class="br0">&#40;</span><span class="br0">&#40;</span>?:<span class="nu0">8</span>|<span class="nu0">9</span>|1\d<span class="br0">&#41;</span>\.\d+\.\d+<span class="br0">&#41;</span>! <span class="br0">&#41;</span> <span class="br0">&#123;</span> #decode it from $OH if possible</span>
            $client_version_full = $1;
        <span class="br0">&#125;</span>
        elsif <span class="br0">&#40;</span> &quot;$OH/&quot; =~ m!\D<span class="br0">&#40;</span><span class="nu0">8</span>|<span class="nu0">9</span>|<span class="nu0">10</span><span class="br0">&#41;</span><span class="br0">&#40;</span>\d<span class="br0">&#41;</span><span class="br0">&#40;</span>\d?<span class="br0">&#41;</span>\D!<span class="br0">&#41;</span> <span class="br0">&#123;</span> # scary but handy</pre></div></div>



</li>
    <li>Install normally:
<pre>perl Makefile.PL
make
make test # a few minor failures
make install</pre>
</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://n8v.enteuxis.org/2008/07/compiling-dbd-oracle-for-linux-with-the-oracle-instant-client/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

