<?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 version 1.1.1 released</title>
	<atom:link href="http://blog.rayapps.com/2008/06/28/activerecord-oracle-enhanced-adapter-version-111-released/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.rayapps.com/2008/06/28/activerecord-oracle-enhanced-adapter-version-111-released/</link>
	<description>About Ruby, Oracle, Mac and others</description>
	<lastBuildDate>Thu, 11 Mar 2010 18:56:53 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Peter Jones</title>
		<link>http://blog.rayapps.com/2008/06/28/activerecord-oracle-enhanced-adapter-version-111-released/#comment-387</link>
		<dc:creator>Peter Jones</dc:creator>
		<pubDate>Mon, 15 Dec 2008 09:40:22 +0000</pubDate>
		<guid isPermaLink="false">http://rayapps.wordpress.com/?p=30#comment-387</guid>
		<description>Whoops! I missed the point about loading oci8 - seems OK now - at least the server starts.
Thanks

Peter</description>
		<content:encoded><![CDATA[<p>Whoops! I missed the point about loading oci8 &#8211; seems OK now &#8211; at least the server starts.<br />
Thanks</p>
<p>Peter</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Raimonds Simanovskis</title>
		<link>http://blog.rayapps.com/2008/06/28/activerecord-oracle-enhanced-adapter-version-111-released/#comment-383</link>
		<dc:creator>Raimonds Simanovskis</dc:creator>
		<pubDate>Wed, 10 Dec 2008 17:13:11 +0000</pubDate>
		<guid isPermaLink="false">http://rayapps.wordpress.com/?p=30#comment-383</guid>
		<description>@Peter

It&#039;s quite hard to tell what exactly is problem in your case.

Please verify that
1. Oracle Instant Client is installed correctly.
Can you connect to database using sqlnet?

2. ruby-oci8 1.0.3 is installed correctly.
Try something like:

ruby -r oci8 -e &quot;OCI8.new(&#039;user&#039;, &#039;password&#039;,&#039;database&#039;).exec(&#039;select * from dual&#039;) do &#124;r&#124; puts r.join(&#039;,&#039;); end&quot;

to verify that ruby-oci8 is working

3. activerecord-oracle_enhanced-adapter is installed correctly
Try
gem list activerecord-oracle_enhanced-adapter
to verify that it is installed.

Btw if you have further issues please use http://groups.google.com/group/oracle-enhanced discussion group - it will be more appropriate than long comments here :)</description>
		<content:encoded><![CDATA[<p>@Peter</p>
<p>It&#8217;s quite hard to tell what exactly is problem in your case.</p>
<p>Please verify that<br />
1. Oracle Instant Client is installed correctly.<br />
Can you connect to database using sqlnet?</p>
<p>2. ruby-oci8 1.0.3 is installed correctly.<br />
Try something like:</p>
<p>ruby -r oci8 -e &#8220;OCI8.new(&#8216;user&#8217;, &#8216;password&#8217;,'database&#8217;).exec(&#8217;select * from dual&#8217;) do |r| puts r.join(&#8216;,&#8217;); end&#8221;</p>
<p>to verify that ruby-oci8 is working</p>
<p>3. activerecord-oracle_enhanced-adapter is installed correctly<br />
Try<br />
gem list activerecord-oracle_enhanced-adapter<br />
to verify that it is installed.</p>
<p>Btw if you have further issues please use <a href="http://groups.google.com/group/oracle-enhanced" rel="nofollow">http://groups.google.com/group/oracle-enhanced</a> discussion group &#8211; it will be more appropriate than long comments here :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Peter Jones</title>
		<link>http://blog.rayapps.com/2008/06/28/activerecord-oracle-enhanced-adapter-version-111-released/#comment-382</link>
		<dc:creator>Peter Jones</dc:creator>
		<pubDate>Wed, 10 Dec 2008 14:27:22 +0000</pubDate>
		<guid isPermaLink="false">http://rayapps.wordpress.com/?p=30#comment-382</guid>
		<description>I have been having a problem similar to the one below in connecting to Oracle with the enhanced  oracle adapter. This is taken from a similar post elsewhere. Do you have any ideas?

/usr/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/dependencies.
rb:275:in `load_missing_constant&#039;: uninitialized constant
ActiveRecord::Connecti
onAdapters::OracleEnhancedAdapter (NameError)
        from
/usr/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/
dependencies.rb:467:in `const_missing&#039;
        from
/home/scheng/rails/ServerMonitoringSystem/config/initializers/oracl
e_enhanced.rb:1
        from
/usr/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/
dependencies.rb:502:in `load&#039;
        from
/usr/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/
dependencies.rb:502:in `load&#039;
        from
/usr/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/
dependencies.rb:354:in `new_constants_in&#039;
        from
/usr/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/
dependencies.rb:502:in `load&#039;
        from
/usr/lib/ruby/gems/1.8/gems/rails-2.1.0/lib/initializer.rb:475:in `
load_application_initializers&#039;
        from
/usr/lib/ruby/gems/1.8/gems/rails-2.1.0/lib/initializer.rb:474:in `
each&#039;
         ... 7 levels...
        from
/usr/lib/ruby/gems/1.8/gems/rails-2.1.0/lib/commands/runner.rb:39
        from
/usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_
original_require&#039;
        from
/usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:27:in `requ
ire&#039; 

----
Peter</description>
		<content:encoded><![CDATA[<p>I have been having a problem similar to the one below in connecting to Oracle with the enhanced  oracle adapter. This is taken from a similar post elsewhere. Do you have any ideas?</p>
<p>/usr/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/dependencies.<br />
rb:275:in `load_missing_constant&#8217;: uninitialized constant<br />
ActiveRecord::Connecti<br />
onAdapters::OracleEnhancedAdapter (NameError)<br />
        from<br />
/usr/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/<br />
dependencies.rb:467:in `const_missing&#8217;<br />
        from<br />
/home/scheng/rails/ServerMonitoringSystem/config/initializers/oracl<br />
e_enhanced.rb:1<br />
        from<br />
/usr/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/<br />
dependencies.rb:502:in `load&#8217;<br />
        from<br />
/usr/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/<br />
dependencies.rb:502:in `load&#8217;<br />
        from<br />
/usr/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/<br />
dependencies.rb:354:in `new_constants_in&#8217;<br />
        from<br />
/usr/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/<br />
dependencies.rb:502:in `load&#8217;<br />
        from<br />
/usr/lib/ruby/gems/1.8/gems/rails-2.1.0/lib/initializer.rb:475:in `<br />
load_application_initializers&#8217;<br />
        from<br />
/usr/lib/ruby/gems/1.8/gems/rails-2.1.0/lib/initializer.rb:474:in `<br />
each&#8217;<br />
         &#8230; 7 levels&#8230;<br />
        from<br />
/usr/lib/ruby/gems/1.8/gems/rails-2.1.0/lib/commands/runner.rb:39<br />
        from<br />
/usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_<br />
original_require&#8217;<br />
        from<br />
/usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:27:in `requ<br />
ire&#8217; </p>
<p>&#8212;-<br />
Peter</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sandi Metz</title>
		<link>http://blog.rayapps.com/2008/06/28/activerecord-oracle-enhanced-adapter-version-111-released/#comment-312</link>
		<dc:creator>Sandi Metz</dc:creator>
		<pubDate>Mon, 28 Jul 2008 01:25:13 +0000</pubDate>
		<guid isPermaLink="false">http://rayapps.wordpress.com/?p=30#comment-312</guid>
		<description>Raimonds,

Thanks.  You rock.</description>
		<content:encoded><![CDATA[<p>Raimonds,</p>
<p>Thanks.  You rock.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Raimonds Simanovskis</title>
		<link>http://blog.rayapps.com/2008/06/28/activerecord-oracle-enhanced-adapter-version-111-released/#comment-311</link>
		<dc:creator>Raimonds Simanovskis</dc:creator>
		<pubDate>Sun, 27 Jul 2008 19:12:53 +0000</pubDate>
		<guid isPermaLink="false">http://rayapps.wordpress.com/?p=30#comment-311</guid>
		<description>This fix for partial_updates is now included in Oracle enhanced adapter version 1.1.5.</description>
		<content:encoded><![CDATA[<p>This fix for partial_updates is now included in Oracle enhanced adapter version 1.1.5.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Raimonds Simanovskis</title>
		<link>http://blog.rayapps.com/2008/06/28/activerecord-oracle-enhanced-adapter-version-111-released/#comment-310</link>
		<dc:creator>Raimonds Simanovskis</dc:creator>
		<pubDate>Thu, 24 Jul 2008 09:55:01 +0000</pubDate>
		<guid isPermaLink="false">http://rayapps.wordpress.com/?p=30#comment-310</guid>
		<description>Sandi, thank you very much :)

Tried this change on our projects and it seems that it has solved the issue and now everything works with partial_updates enabled.

I will include this change in the next release of Oracle enhanced adapter.</description>
		<content:encoded><![CDATA[<p>Sandi, thank you very much :)</p>
<p>Tried this change on our projects and it seems that it has solved the issue and now everything works with partial_updates enabled.</p>
<p>I will include this change in the next release of Oracle enhanced adapter.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sandi Metz</title>
		<link>http://blog.rayapps.com/2008/06/28/activerecord-oracle-enhanced-adapter-version-111-released/#comment-309</link>
		<dc:creator>Sandi Metz</dc:creator>
		<pubDate>Wed, 23 Jul 2008 23:00:53 +0000</pubDate>
		<guid isPermaLink="false">http://rayapps.wordpress.com/?p=30#comment-309</guid>
		<description>I was getting 
ORA-22920 row containing the LOB value is not locked
and
ORA-22990: LOB locators cannot span transactions
under rails 2.1, and setting partial_updates = false didn&#039;t fix them all.

I finally  had to actually debug it.
I made two changes to the &#039;write_lobs&#039; method, adding &#039;FOR UPDATE&#039; to the select and running the &#039;select_one&#039; and &#039;write&#039; statements in an &#039;uncached&#039; block. 

See http://blog.potatocanyon.com/2008/07/rails-21-and-oracle_23.html for the gory details.

I now have partial_updates = true and all of my tests run without error.

Raimonds, any chance of getting these changes in the advanced adapter?  Is there something I can do to help?</description>
		<content:encoded><![CDATA[<p>I was getting<br />
ORA-22920 row containing the LOB value is not locked<br />
and<br />
ORA-22990: LOB locators cannot span transactions<br />
under rails 2.1, and setting partial_updates = false didn&#8217;t fix them all.</p>
<p>I finally  had to actually debug it.<br />
I made two changes to the &#8216;write_lobs&#8217; method, adding &#8216;FOR UPDATE&#8217; to the select and running the &#8217;select_one&#8217; and &#8216;write&#8217; statements in an &#8216;uncached&#8217; block. </p>
<p>See <a href="http://blog.potatocanyon.com/2008/07/rails-21-and-oracle_23.html" rel="nofollow">http://blog.potatocanyon.com/2008/07/rails-21-and-oracle_23.html</a> for the gory details.</p>
<p>I now have partial_updates = true and all of my tests run without error.</p>
<p>Raimonds, any chance of getting these changes in the advanced adapter?  Is there something I can do to help?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Guilherme</title>
		<link>http://blog.rayapps.com/2008/06/28/activerecord-oracle-enhanced-adapter-version-111-released/#comment-308</link>
		<dc:creator>Guilherme</dc:creator>
		<pubDate>Tue, 22 Jul 2008 21:41:41 +0000</pubDate>
		<guid isPermaLink="false">http://rayapps.wordpress.com/?p=30#comment-308</guid>
		<description>Ah! I&#039;d tried 
CGI::Session::ActiveRecordStore::Session.partial_updates = false
before with no success.

But with 
ActiveRecord::Base.partial_updates = false 
it works! Thanks!</description>
		<content:encoded><![CDATA[<p>Ah! I&#8217;d tried<br />
CGI::Session::ActiveRecordStore::Session.partial_updates = false<br />
before with no success.</p>
<p>But with<br />
ActiveRecord::Base.partial_updates = false<br />
it works! Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Raimonds Simanovskis</title>
		<link>http://blog.rayapps.com/2008/06/28/activerecord-oracle-enhanced-adapter-version-111-released/#comment-307</link>
		<dc:creator>Raimonds Simanovskis</dc:creator>
		<pubDate>Tue, 22 Jul 2008 19:35:13 +0000</pubDate>
		<guid isPermaLink="false">http://rayapps.wordpress.com/?p=30#comment-307</guid>
		<description>As I wrote in my post this sometimes happens if partial updates are allowed - I could not repeat the problems so far to identify what is causing this. The workaround is to turn partial updates off.
If this is because of session store then do
CGI::Session::ActiveRecordStore::Session.partial_updates = false
If this is because of other ActiveRecord models then do
ActiveRecord::Base.partial_updates = false
or just do
self.partial_updates = false
in the particular model class definition where you have this issue with CLOB columns.</description>
		<content:encoded><![CDATA[<p>As I wrote in my post this sometimes happens if partial updates are allowed &#8211; I could not repeat the problems so far to identify what is causing this. The workaround is to turn partial updates off.<br />
If this is because of session store then do<br />
CGI::Session::ActiveRecordStore::Session.partial_updates = false<br />
If this is because of other ActiveRecord models then do<br />
ActiveRecord::Base.partial_updates = false<br />
or just do<br />
self.partial_updates = false<br />
in the particular model class definition where you have this issue with CLOB columns.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Guilherme</title>
		<link>http://blog.rayapps.com/2008/06/28/activerecord-oracle-enhanced-adapter-version-111-released/#comment-306</link>
		<dc:creator>Guilherme</dc:creator>
		<pubDate>Tue, 22 Jul 2008 18:03:14 +0000</pubDate>
		<guid isPermaLink="false">http://rayapps.wordpress.com/?p=30#comment-306</guid>
		<description>I&#039;m having this problem:

OCIError (ORA-22920: row containing the LOB value is not locked):
    lob.c:181:in oci8lib.so
    /usr/local/lib/site_ruby/1.8/oci8.rb:1005:in `write&#039;
    /usr/lib/ruby/gems/1.8/gems/activerecord-oracle_enhanced-adapter-1.1.4/lib/active_record/connection_adapters/oracle_enhanced_adapter.rb:383:in `write_lobs&#039;
    /usr/lib/ruby/gems/1.8/gems/activerecord-oracle_enhanced-adapter-1.1.4/lib/active_record/connection_adapters/oracle_enhanced_adapter.rb:377:in `each&#039;
    /usr/lib/ruby/gems/1.8/gems/activerecord-oracle_enhanced-adapter-1.1.4/lib/active_record/connection_adapters/oracle_enhanced_adapter.rb:377:in `write_lobs&#039;
    /usr/lib/ruby/gems/1.8/gems/activerecord-oracle_enhanced-adapter-1.1.4/lib/active_record/connection_adapters/oracle_enhanced_adapter.rb:65:in `enhanced_write_lobs&#039;</description>
		<content:encoded><![CDATA[<p>I&#8217;m having this problem:</p>
<p>OCIError (ORA-22920: row containing the LOB value is not locked):<br />
    lob.c:181:in oci8lib.so<br />
    /usr/local/lib/site_ruby/1.8/oci8.rb:1005:in `write&#8217;<br />
    /usr/lib/ruby/gems/1.8/gems/activerecord-oracle_enhanced-adapter-1.1.4/lib/active_record/connection_adapters/oracle_enhanced_adapter.rb:383:in `write_lobs&#8217;<br />
    /usr/lib/ruby/gems/1.8/gems/activerecord-oracle_enhanced-adapter-1.1.4/lib/active_record/connection_adapters/oracle_enhanced_adapter.rb:377:in `each&#8217;<br />
    /usr/lib/ruby/gems/1.8/gems/activerecord-oracle_enhanced-adapter-1.1.4/lib/active_record/connection_adapters/oracle_enhanced_adapter.rb:377:in `write_lobs&#8217;<br />
    /usr/lib/ruby/gems/1.8/gems/activerecord-oracle_enhanced-adapter-1.1.4/lib/active_record/connection_adapters/oracle_enhanced_adapter.rb:65:in `enhanced_write_lobs&#8217;</p>
]]></content:encoded>
	</item>
</channel>
</rss>
