<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Perl: Connecting to an Oracle database WITHOUT having an installed client</title>
	<atom:link href="http://usestrict.net/2009/01/10/perl-connecting-to-an-oracle-database-without-having-an-installed-client/feed/" rel="self" type="application/rss+xml" />
	<link>http://usestrict.net/2009/01/10/perl-connecting-to-an-oracle-database-without-having-an-installed-client/</link>
	<description>Vinny&#039;s Technical Corner</description>
	<lastBuildDate>Wed, 18 Aug 2010 13:09:29 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=abc</generator>
	<item>
		<title>By: Vinny</title>
		<link>http://usestrict.net/2009/01/10/perl-connecting-to-an-oracle-database-without-having-an-installed-client/comment-page-1/#comment-826</link>
		<dc:creator>Vinny</dc:creator>
		<pubDate>Fri, 18 Sep 2009 12:38:35 +0000</pubDate>
		<guid isPermaLink="false">http://usestrict.net/?p=154#comment-826</guid>
		<description>Hi Jon,

I checked all my systems and only the instantclient has &lt;strong&gt;libociei.so&lt;/strong&gt;. Thanks for bringing that up, since I did all my testing on regular clients (non-instant). I&#039;ll add the note to the main post.

Vinny</description>
		<content:encoded><![CDATA[<p>Hi Jon,</p>
<p>I checked all my systems and only the instantclient has <strong>libociei.so</strong>. Thanks for bringing that up, since I did all my testing on regular clients (non-instant). I&#8217;ll add the note to the main post.</p>
<p>Vinny</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jonathon Robinson</title>
		<link>http://usestrict.net/2009/01/10/perl-connecting-to-an-oracle-database-without-having-an-installed-client/comment-page-1/#comment-818</link>
		<dc:creator>Jonathon Robinson</dc:creator>
		<pubDate>Thu, 17 Sep 2009 20:31:37 +0000</pubDate>
		<guid isPermaLink="false">http://usestrict.net/?p=154#comment-818</guid>
		<description>In articulating my problems in my above post, I realised what the real issue was (trying to get an Oracle DB connection without requiring ORACLE_HOME to be set).  I found the following article:
http://download.oracle.com/docs/cd/B12037_01/appdev.101/b10779/oci01int.htm#423364

Note, the solution posted here is missing a critical so file.  I got mine to work by setting my LD_LIBRARY_PATH to my $ORACLE_HOME/instantclient and changing the pp to include an additional module:
	pp -z 9 -v 3 -p -d -o MyDB.par \
	-X DBD::Proxy \
	-X DBD::DBM \
	-X DBD::File \
	-X DBD::NullP \
	-X DBD::Gofer \
	-X DBD::Sponge \
	-X DBD::ExampleP \
	-X DBD::mysql \
	-X DBD::Gofer::Policy::rush \
	-X DBD::Gofer::Policy::classic \
	-X DBD::Gofer::Policy::Base \
	-X DBD::Gofer::Policy::pedantic \
	-X DBD::Gofer::Transport::pipeone \
	-X DBD::Gofer::Transport::Base \
	-X DBD::Gofer::Transport::stream \
	-X DBD::Gofer::Transport::null \
	-X DBD::mysql::GetInfo \
	-X DBD::Chart \
	-X DBD::Chart::Plot \
	-M MyDB \
	-M PerlIO \
	-l libclntsh.so.10.1 \
	-l libnnz10.so \
	-l libociei.so \
	dummy.pl

Cheers,
~ Jon</description>
		<content:encoded><![CDATA[<p>In articulating my problems in my above post, I realised what the real issue was (trying to get an Oracle DB connection without requiring ORACLE_HOME to be set).  I found the following article:<br />
<a href="http://download.oracle.com/docs/cd/B12037_01/appdev.101/b10779/oci01int.htm#423364" rel="nofollow">http://download.oracle.com/docs/cd/B12037_01/appdev.101/b10779/oci01int.htm#423364</a></p>
<p>Note, the solution posted here is missing a critical so file.  I got mine to work by setting my LD_LIBRARY_PATH to my $ORACLE_HOME/instantclient and changing the pp to include an additional module:<br />
	pp -z 9 -v 3 -p -d -o MyDB.par \<br />
	-X DBD::Proxy \<br />
	-X DBD::DBM \<br />
	-X DBD::File \<br />
	-X DBD::NullP \<br />
	-X DBD::Gofer \<br />
	-X DBD::Sponge \<br />
	-X DBD::ExampleP \<br />
	-X DBD::mysql \<br />
	-X DBD::Gofer::Policy::rush \<br />
	-X DBD::Gofer::Policy::classic \<br />
	-X DBD::Gofer::Policy::Base \<br />
	-X DBD::Gofer::Policy::pedantic \<br />
	-X DBD::Gofer::Transport::pipeone \<br />
	-X DBD::Gofer::Transport::Base \<br />
	-X DBD::Gofer::Transport::stream \<br />
	-X DBD::Gofer::Transport::null \<br />
	-X DBD::mysql::GetInfo \<br />
	-X DBD::Chart \<br />
	-X DBD::Chart::Plot \<br />
	-M MyDB \<br />
	-M PerlIO \<br />
	-l libclntsh.so.10.1 \<br />
	-l libnnz10.so \<br />
	-l libociei.so \<br />
	dummy.pl</p>
<p>Cheers,<br />
~ Jon</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jonathon Robinson</title>
		<link>http://usestrict.net/2009/01/10/perl-connecting-to-an-oracle-database-without-having-an-installed-client/comment-page-1/#comment-817</link>
		<dc:creator>Jonathon Robinson</dc:creator>
		<pubDate>Thu, 17 Sep 2009 20:13:02 +0000</pubDate>
		<guid isPermaLink="false">http://usestrict.net/?p=154#comment-817</guid>
		<description>Hey Vinny,

I&#039;ve been struggling with this issue for days.  How did you get around setting the ORACLE_HOME system variable on the client machine?

With your instructions above I receive the following error on a client machine (Oracle not installed):
DBI connect(&#039;host=;port=1521;sid=test&#039;,&#039;test&#039;,...) failed: ERROR OCIEnvNlsCreate. Check ORACLE_HOME (Linux) env var  or PATH (Windows) and or NLS settings, permissions, etc. at DbConnect.pm line 103

As you might guess, line 103 contains the DBI-&gt;connect call.


Now, I&#039;ve verified that the files are indeed extracted to $ENV{&#039;PAR_TEMP&#039;}.  When ORACLE_HOME is unset I get the above error message.  I&#039;ve attempted to set ORACLE_HOME to $ENV{&#039;PAR_TEMP&#039;} but this doesn&#039;t do the trick.  I&#039;ve even gone as far as copying the files from $ENV{&#039;PAR_TEMP&#039;} to $ENV{&#039;PAR_TEMP&#039;}/lib (which is where Oracle expects to find the .so files).  This also hasn&#039;t worked.

So to reiterate my question.  How have you solved the problem with setting the ORACLE_HOME environment variable?

Thanks,
~ Jon</description>
		<content:encoded><![CDATA[<p>Hey Vinny,</p>
<p>I&#8217;ve been struggling with this issue for days.  How did you get around setting the ORACLE_HOME system variable on the client machine?</p>
<p>With your instructions above I receive the following error on a client machine (Oracle not installed):<br />
DBI connect(&#8216;host=;port=1521;sid=test&#8217;,'test&#8217;,&#8230;) failed: ERROR OCIEnvNlsCreate. Check ORACLE_HOME (Linux) env var  or PATH (Windows) and or NLS settings, permissions, etc. at DbConnect.pm line 103</p>
<p>As you might guess, line 103 contains the DBI-&gt;connect call.</p>
<p>Now, I&#8217;ve verified that the files are indeed extracted to $ENV{&#8216;PAR_TEMP&#8217;}.  When ORACLE_HOME is unset I get the above error message.  I&#8217;ve attempted to set ORACLE_HOME to $ENV{&#8216;PAR_TEMP&#8217;} but this doesn&#8217;t do the trick.  I&#8217;ve even gone as far as copying the files from $ENV{&#8216;PAR_TEMP&#8217;} to $ENV{&#8216;PAR_TEMP&#8217;}/lib (which is where Oracle expects to find the .so files).  This also hasn&#8217;t worked.</p>
<p>So to reiterate my question.  How have you solved the problem with setting the ORACLE_HOME environment variable?</p>
<p>Thanks,<br />
~ Jon</p>
]]></content:encoded>
	</item>
</channel>
</rss>
