<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments on: ActiveRecord Oracle enhanced adapter also on JRuby and Ruby 1.9</title>
	<atom:link href="http://blog.rayapps.com/2009/03/23/activerecord-oracle-enhanced-adapter-also-on-jruby-and-ruby-19/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.rayapps.com/2009/03/23/activerecord-oracle-enhanced-adapter-also-on-jruby-and-ruby-19/</link>
	<description>About Ruby, Oracle, Mac and others</description>
	<lastBuildDate>Wed, 28 Jul 2010 16:18:03 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
	<item>
		<title>By: Raimonds Simanovskis</title>
		<link>http://blog.rayapps.com/2009/03/23/activerecord-oracle-enhanced-adapter-also-on-jruby-and-ruby-19/#comment-1088</link>
		<dc:creator>Raimonds Simanovskis</dc:creator>
		<pubDate>Sun, 17 Jan 2010 21:51:29 +0000</pubDate>
		<guid isPermaLink="false">http://rayapps.wordpress.com/?p=72#comment-1088</guid>
		<description>If xxx is TNS alias defined in tnsnames.ora file then in JRuby you need to set ENV[&#039;TNS_ADMIN&#039;] as directory where tnsnames.ora is located (you can also set TNS_ADMIN as environment variable before starting JRuby).

Otherwise you need to set :host and :port connection options to specify database host name and listener port and then :database should be database name on that host.</description>
		<content:encoded><![CDATA[<p>If xxx is TNS alias defined in tnsnames.ora file then in JRuby you need to set ENV['TNS_ADMIN'] as directory where tnsnames.ora is located (you can also set TNS_ADMIN as environment variable before starting JRuby).</p>
<p>Otherwise you need to set :host and :port connection options to specify database host name and listener port and then :database should be database name on that host.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matt Mitchell</title>
		<link>http://blog.rayapps.com/2009/03/23/activerecord-oracle-enhanced-adapter-also-on-jruby-and-ruby-19/#comment-1083</link>
		<dc:creator>Matt Mitchell</dc:creator>
		<pubDate>Thu, 14 Jan 2010 16:59:20 +0000</pubDate>
		<guid isPermaLink="false">http://rayapps.wordpress.com/?p=72#comment-1083</guid>
		<description>Hi,

I&#039;m trying to get this working with JRuby, and no luck. The error that I get is:

java.sql.SQLException: Io exception: could not resolve the connect identifier &quot;xxx&quot;

Where &quot;xxx&quot; is the value in my :database value. I put the ojdbc14.jar in the jruby/lib dir and pretty sure I have all of the needed gems. The same example code does work in MRI though, using the oci gem. So I know my oracle tnsnames is setup right.

Any ideas?

Thanks for your awesome work!</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>I&#8217;m trying to get this working with JRuby, and no luck. The error that I get is:</p>
<p>java.sql.SQLException: Io exception: could not resolve the connect identifier &#8220;xxx&#8221;</p>
<p>Where &#8220;xxx&#8221; is the value in my :database value. I put the ojdbc14.jar in the jruby/lib dir and pretty sure I have all of the needed gems. The same example code does work in MRI though, using the oci gem. So I know my oracle tnsnames is setup right.</p>
<p>Any ideas?</p>
<p>Thanks for your awesome work!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Raimonds Simanovskis</title>
		<link>http://blog.rayapps.com/2009/03/23/activerecord-oracle-enhanced-adapter-also-on-jruby-and-ruby-19/#comment-923</link>
		<dc:creator>Raimonds Simanovskis</dc:creator>
		<pubDate>Tue, 06 Oct 2009 07:03:53 +0000</pubDate>
		<guid isPermaLink="false">http://rayapps.wordpress.com/?p=72#comment-923</guid>
		<description>This post is about activerecord-oracle_enhanced-adapter and not activerecord-oracle-adapter. Original activerecord-oracle-adapter is not anymore maintained and should not be used.</description>
		<content:encoded><![CDATA[<p>This post is about activerecord-oracle_enhanced-adapter and not activerecord-oracle-adapter. Original activerecord-oracle-adapter is not anymore maintained and should not be used.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mark J. Reed</title>
		<link>http://blog.rayapps.com/2009/03/23/activerecord-oracle-enhanced-adapter-also-on-jruby-and-ruby-19/#comment-921</link>
		<dc:creator>Mark J. Reed</dc:creator>
		<pubDate>Mon, 05 Oct 2009 21:17:48 +0000</pubDate>
		<guid isPermaLink="false">http://rayapps.wordpress.com/?p=72#comment-921</guid>
		<description>(Forgot to check the &quot;notify&quot; box)</description>
		<content:encoded><![CDATA[<p>(Forgot to check the &#8220;notify&#8221; box)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mark J. Reed</title>
		<link>http://blog.rayapps.com/2009/03/23/activerecord-oracle-enhanced-adapter-also-on-jruby-and-ruby-19/#comment-920</link>
		<dc:creator>Mark J. Reed</dc:creator>
		<pubDate>Mon, 05 Oct 2009 21:16:51 +0000</pubDate>
		<guid isPermaLink="false">http://rayapps.wordpress.com/?p=72#comment-920</guid>
		<description>As far as I can tell, the activerecord-oracle-adapter is still using oci8 1.x API; when run against oci8 2.x, it breaks with an error about the undefined method &#039;define_a_column&#039; in OCI8::Cursor.  But ruby-oci8 1.x doesn&#039;t support Ruby 1.9.  So how did you get the adapter to work with Ruby 1.9.1?</description>
		<content:encoded><![CDATA[<p>As far as I can tell, the activerecord-oracle-adapter is still using oci8 1.x API; when run against oci8 2.x, it breaks with an error about the undefined method &#8216;define_a_column&#8217; in OCI8::Cursor.  But ruby-oci8 1.x doesn&#8217;t support Ruby 1.9.  So how did you get the adapter to work with Ruby 1.9.1?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Raimonds Simanovskis</title>
		<link>http://blog.rayapps.com/2009/03/23/activerecord-oracle-enhanced-adapter-also-on-jruby-and-ruby-19/#comment-846</link>
		<dc:creator>Raimonds Simanovskis</dc:creator>
		<pubDate>Mon, 21 Sep 2009 12:42:54 +0000</pubDate>
		<guid isPermaLink="false">http://rayapps.wordpress.com/?p=72#comment-846</guid>
		<description>You can specify list of columns you want to select using :select option for find method.

But I would not recommend to use ROWID for updates when using ActiveRecord - the main idea of ActiveRecord is that always you have designated primary key column and the main benefit of ActiveRecord is that you do not need to write standard SQL statements. If ActiveRecord is not suiting your needs then probably you shouldn&#039;t use it and stick with ruby-oci8 to write plain SQL statements.</description>
		<content:encoded><![CDATA[<p>You can specify list of columns you want to select using :select option for find method.</p>
<p>But I would not recommend to use ROWID for updates when using ActiveRecord &#8211; the main idea of ActiveRecord is that always you have designated primary key column and the main benefit of ActiveRecord is that you do not need to write standard SQL statements. If ActiveRecord is not suiting your needs then probably you shouldn&#8217;t use it and stick with ruby-oci8 to write plain SQL statements.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: rainblue</title>
		<link>http://blog.rayapps.com/2009/03/23/activerecord-oracle-enhanced-adapter-also-on-jruby-and-ruby-19/#comment-843</link>
		<dc:creator>rainblue</dc:creator>
		<pubDate>Mon, 21 Sep 2009 08:01:40 +0000</pubDate>
		<guid isPermaLink="false">http://rayapps.wordpress.com/?p=72#comment-843</guid>
		<description>How can I get ROWID with this adapter?
with OCI, I knew that I get Oracle ROWID. 
but How can I do that with enhanced_adapter?
( Actually I want to get ROWID and to update with that ROWID )

plz give me a clue!! 
Thanks.</description>
		<content:encoded><![CDATA[<p>How can I get ROWID with this adapter?<br />
with OCI, I knew that I get Oracle ROWID.<br />
but How can I do that with enhanced_adapter?<br />
( Actually I want to get ROWID and to update with that ROWID )</p>
<p>plz give me a clue!!<br />
Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Marcus Baguley</title>
		<link>http://blog.rayapps.com/2009/03/23/activerecord-oracle-enhanced-adapter-also-on-jruby-and-ruby-19/#comment-552</link>
		<dc:creator>Marcus Baguley</dc:creator>
		<pubDate>Mon, 27 Jul 2009 02:18:58 +0000</pubDate>
		<guid isPermaLink="false">http://rayapps.wordpress.com/?p=72#comment-552</guid>
		<description>I had a similar issue when i tried my war file on WINDOWS
The problem seems that ENV[&quot;PATH&quot;] is nil for windows and the value is found in ENV[&quot;Path&quot;]. So at the top of environment.rb I added ...
ENV[&quot;PATH&quot;] &#124;&#124;= ENV[&quot;Path&quot;]</description>
		<content:encoded><![CDATA[<p>I had a similar issue when i tried my war file on WINDOWS<br />
The problem seems that ENV["PATH"] is nil for windows and the value is found in ENV["Path"]. So at the top of environment.rb I added &#8230;<br />
ENV["PATH"] ||= ENV["Path"]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: bloonsterific</title>
		<link>http://blog.rayapps.com/2009/03/23/activerecord-oracle-enhanced-adapter-also-on-jruby-and-ruby-19/#comment-543</link>
		<dc:creator>bloonsterific</dc:creator>
		<pubDate>Fri, 10 Jul 2009 12:36:06 +0000</pubDate>
		<guid isPermaLink="false">http://rayapps.wordpress.com/?p=72#comment-543</guid>
		<description>Just wanted to tell you all know how much I appreciate your postings guys.
Found you though &lt;a href=&quot;http://google.com&quot; rel=&quot;nofollow&quot;&gt;google&lt;/a&gt;!</description>
		<content:encoded><![CDATA[<p>Just wanted to tell you all know how much I appreciate your postings guys.<br />
Found you though <a href="http://google.com" rel="nofollow">google</a>!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Raimonds Simanovskis</title>
		<link>http://blog.rayapps.com/2009/03/23/activerecord-oracle-enhanced-adapter-also-on-jruby-and-ruby-19/#comment-519</link>
		<dc:creator>Raimonds Simanovskis</dc:creator>
		<pubDate>Thu, 28 May 2009 20:53:01 +0000</pubDate>
		<guid isPermaLink="false">http://rayapps.wordpress.com/?p=72#comment-519</guid>
		<description>Adapter tries to find and load ojdbc.jar file in the following way (see file oracle_enhanced_jdbc_connection.rb in gem directory):

require &quot;java&quot;
require &quot;jruby&quot;
java.lang.Thread.currentThread.setContextClassLoader(JRuby.runtime.jruby_class_loader)

ojdbc_jar = &quot;ojdbc14.jar&quot;
if ojdbc_jar_path = ENV[&quot;PATH&quot;].split(/[:;]/).find{&#124;d&#124; File.exists (File.join(d,ojdbc_jar))}
  require File.join(ojdbc_jar_path,ojdbc_jar)
end

java.sql.DriverManager.registerDriver Java::oracle.jdbc.driver.OracleDriver.new


Try these command in JRuby irb and try to identify when and why this load exception is raised.</description>
		<content:encoded><![CDATA[<p>Adapter tries to find and load ojdbc.jar file in the following way (see file oracle_enhanced_jdbc_connection.rb in gem directory):</p>
<p>require &#8220;java&#8221;<br />
require &#8220;jruby&#8221;<br />
java.lang.Thread.currentThread.setContextClassLoader(JRuby.runtime.jruby_class_loader)</p>
<p>ojdbc_jar = &#8220;ojdbc14.jar&#8221;<br />
if ojdbc_jar_path = ENV["PATH"].split(/[:;]/).find{|d| File.exists (File.join(d,ojdbc_jar))}<br />
  require File.join(ojdbc_jar_path,ojdbc_jar)<br />
end</p>
<p>java.sql.DriverManager.registerDriver Java::oracle.jdbc.driver.OracleDriver.new</p>
<p>Try these command in JRuby irb and try to identify when and why this load exception is raised.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
