tag:blogger.com,1999:blog-11593374.post8264503580089087576..comments2008-06-04T10:31:52.943+01:00Comments on Andrew Beacock's Blog: How to change your Rails database adapter from OCI...abeacockhttp://www.blogger.com/profile/01039992884679308726noreply@blogger.comBlogger17125tag:blogger.com,1999:blog-11593374.post-32399000363776413852008-04-30T16:47:00.000+01:002008-04-30T16:47:00.000+01:002008-04-30T16:47:00.000+01:00A bit late in the day as Andy's blog is dated June...A bit late in the day as Andy's blog is dated June 2007 but I have just been having the same problem as Dan. <BR/><BR/>My solution is on <A HREF="http://billcomer.blogspot.com/2008/04/using-ruby-oracleadaptor-on-windows-xp.html" REL="nofollow">my Blog</A>Bill Comerhttp://www.blogger.com/profile/05556699120557412622noreply@blogger.comtag:blogger.com,1999:blog-11593374.post-29754560005394290302008-04-15T04:30:00.000+01:002008-04-15T04:30:00.000+01:002008-04-15T04:30:00.000+01:00Hello, guys.It did work. I copied oci.dll, oraocie...Hello, guys.<BR/><BR/>It did work. I copied oci.dll, oraociei11.dll to Windows\System folder. <BR/><BR/>In the previous comment, I've made a mistake. The oracle db was on a remote machine.<BR/><BR/>Thanks.Batturhttp://www.blogger.com/profile/03434866007873677465noreply@blogger.comtag:blogger.com,1999:blog-11593374.post-23928870648141596082008-04-14T15:37:00.000+01:002008-04-14T15:37:00.000+01:002008-04-14T15:37:00.000+01:00Hello, guys.I'm using rails 2.0.2, with Oracle RDB...Hello, guys.<BR/><BR/>I'm using rails 2.0.2, with Oracle RDBMS 11g on Windows XP. <BR/><BR/>I've installed:<BR/><BR/>-ruby-oci8 (used ruby-oci8-1.0.0-mswin32.rb)<BR/>-activerecord-oracle-adapter (downloaded as written in comments)<BR/><BR/>Rails, start fine. But when I see the application environment, web page says:<BR/><BR/>=======================<BR/> OCIError in Rails/infoController#properties<BR/><BR/>ORA-12154: TNS:could not resolve the connect identifier specified<BR/><BR/>RAILS_ROOT: C:/eclipse/workspace/test<BR/>Application Trace | Framework Trace | Full Trace<BR/><BR/>env.c:257:in oci8lib.so<BR/>======================<BR/><BR/>I've installed oracle client 11g, and SQL developer works fine.<BR/>But my rails app doesn't. I couldn't find the solution, anybody helps?Batturhttp://www.blogger.com/profile/03434866007873677465noreply@blogger.comtag:blogger.com,1999:blog-11593374.post-28367207260012835232008-01-15T21:58:00.000Z2008-01-15T21:58:00.000Z2008-01-15T21:58:00.000ZGlad you got it working, always happy to help!Glad you got it working, always happy to help!abeacockhttp://www.blogger.com/profile/01039992884679308726noreply@blogger.comtag:blogger.com,1999:blog-11593374.post-70954887107641037912008-01-15T21:56:00.000Z2008-01-15T21:56:00.000Z2008-01-15T21:56:00.000ZThe environment now works correctly. Thank you fo...The environment now works correctly. Thank you for your help.dannoreply@blogger.comtag:blogger.com,1999:blog-11593374.post-53915214724526502522008-01-15T21:11:00.000Z2008-01-15T21:11:00.000Z2008-01-15T21:11:00.000ZDan,Now that you have the gem installed does it wo...Dan,<BR/><BR/>Now that you have the gem installed does it work or are you still having problems? If you are then please post a detailed log and I'll see if I can be of any use.abeacockhttp://www.blogger.com/profile/01039992884679308726noreply@blogger.comtag:blogger.com,1999:blog-11593374.post-12307632983648391722008-01-15T20:54:00.000Z2008-01-15T20:54:00.000Z2008-01-15T20:54:00.000ZThanks for your help. I have Oracle Enterprise RD...Thanks for your help. I have Oracle Enterprise RDBMS 10.2.0.3 installed on Windows XP. This is what I had to execute to get activerecord-oracle-adapter installed.<BR/><BR/>gem install activerecord-oracle-adapter --source http://gems.r<BR/>ubyonrails.org<BR/>Bulk updating Gem source index for: http://gems.rubyonrails.org<BR/>Successfully installed activerecord-oracle-adapter-1.0.0<BR/><BR/>BTW - my version of rails is 2.02 and gem is 0.9.4Dannoreply@blogger.comtag:blogger.com,1999:blog-11593374.post-19517688759703859672008-01-15T20:17:00.000Z2008-01-15T20:17:00.000Z2008-01-15T20:17:00.000ZDan,Here's some more information on the gem missin...Dan,<BR/><BR/>Here's some more information on the gem missing issue, not sure if any of this helps, it's not a gem I've installed - http://www.ruby-forum.com/topic/135231<BR/><BR/>I'm doing my Rails development on an Ubuntu Linux system so there are going to be quite a number of differences but here are some suggestions:<BR/><BR/>* Have you installed DBI? On Linux it's called 'libdbi-ruby'<BR/><BR/>* Have you correctly installed OCI8? This is what I did on Linux:<BR/>tar zxvf ruby-oci8-1.0.0-rc2.tar.gz<BR/>cd ruby-oci8-1.0.0-rc2<BR/>ruby setup.rb config -- --with-instant-client<BR/>make<BR/>sudo make install<BR/><BR/>* Do you have the Oracle InstantClient drivers/libraries/utilities installed on Windows?<BR/>These are the Linux packages and versions that may or may not help!<BR/>oracle-instantclient-basic_10.1.0.4-2_i386.deb <BR/>oracle-instantclient-devel_10.1.0.4-2_i386.debabeacockhttp://www.blogger.com/profile/01039992884679308726noreply@blogger.comtag:blogger.com,1999:blog-11593374.post-79926761445831816352008-01-15T16:53:00.000Z2008-01-15T16:53:00.000Z2008-01-15T16:53:00.000ZI'm new to Ruby and following instructions from ht...I'm new to Ruby and following instructions from http://www.oracle.com/technology/pub/articles/haefel-oracle-ruby.html<BR/><BR/>When I try to install rails specifying V 1.0.0 I get an error.<BR/>c:\ruby>gem install rails -v 1.0.0 --remote<BR/>Bulk updating Gem source index for: http://gems.rubyforge.org<BR/>Install required dependency activesupport? [Yn] y<BR/>Install required dependency activerecord? [Yn] y<BR/>ERROR: While executing gem ... (Zlib::BufError)<BR/> buffer error<BR/><BR/>When I install the current version of 2.0 version of rails it can't connect to Oracle.<BR/><BR/>gem install activerecord-oracle-adapter displays GemNotFound error.<BR/><BR/>I have installed the OCI8 adapter<BR/>ruby ruby-oci8-1.0.0-mswin32.rb<BR/><BR/> Is there another distribution that I should try. I'm using the one click rubyinstaller, ruby186-26.exe Thank you.Dannoreply@blogger.comtag:blogger.com,1999:blog-11593374.post-22618058839263732322008-01-15T11:51:00.000Z2008-01-15T11:51:00.000Z2008-01-15T11:51:00.000ZDan,Have you got the activerecord-oracle-adapter g...Dan,<BR/><BR/>Have you got the activerecord-oracle-adapter gem installed?<BR/><BR/>The error message from script/generate suggests that you need to install a missing gem:<BR/><BR/> gem install activerecord-oracle-adapter<BR/><BR/>This is not a gem I've installed before as I added Oracle support by installing DBI/Ruby-OCI8.abeacockhttp://www.blogger.com/profile/01039992884679308726noreply@blogger.comtag:blogger.com,1999:blog-11593374.post-1571136160958622072008-01-14T22:22:00.000Z2008-01-14T22:22:00.000Z2008-01-14T22:22:00.000ZHaving a problem connecting to Oracle 10.2.0.3. I...Having a problem connecting to Oracle 10.2.0.3. I can connect using the sample test your connection code. But the ruby scaffold command generates the following error.<BR/>C:\comics_catalog>ruby script/generate scaffold Comic<BR/>c:/ruby/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/connection_a<BR/>dapters/abstract/connection_specification.rb:231:in `establish_connection': Plea<BR/>se install the oracle adapter: `gem install activerecord-oracle-adapter` (no suc<BR/>h file to load -- active_record/connection_adapters/oracle_adapter) (RuntimeErro<BR/>r)<BR/>Here is my database.yml<BR/>development:<BR/> adapter: oracle<BR/> database: LOCAL<BR/> username: ruby<BR/> password: ruby<BR/><BR/>Any clues? TIA, Dandannoreply@blogger.comtag:blogger.com,1999:blog-11593374.post-57474164325858375222008-01-06T19:21:00.000Z2008-01-06T19:21:00.000Z2008-01-06T19:21:00.000ZHolgi, thanks for the tip!Holgi, thanks for the tip!abeacockhttp://www.blogger.com/profile/01039992884679308726noreply@blogger.comtag:blogger.com,1999:blog-11593374.post-25607238354064323582008-01-06T16:38:00.000Z2008-01-06T16:38:00.000Z2008-01-06T16:38:00.000ZHey,when using JRuby with Oracle, I had to use:dev...Hey,<BR/>when using JRuby with Oracle, I had to use:<BR/><BR/>development:<BR/> adapter: oracle<BR/> host: localhost<BR/> database: XE<BR/> username: user<BR/> password: pass<BR/><BR/>HTH (someone :)Holgihttp://www.blogger.com/profile/17449345763657885781noreply@blogger.comtag:blogger.com,1999:blog-11593374.post-8693276609422460732007-11-10T14:29:00.000Z2007-11-10T14:29:00.000Z2007-11-10T14:29:00.000ZNiaz, you HAVE to use Oracle as your adapter if yo...Niaz, you HAVE to use Oracle as your adapter if you want to use the 'hostname/sid' connection method.<BR/><BR/>Apart from the above what do you type from sqlplus to get access? If you post that info I might be able to help further...abeacockhttp://www.blogger.com/profile/01039992884679308726noreply@blogger.comtag:blogger.com,1999:blog-11593374.post-76663901702910921802007-11-09T22:43:00.000Z2007-11-09T22:43:00.000Z2007-11-09T22:43:00.000ZHi,I am using the old way (ocl), but failing to co...Hi,<BR/>I am using the old way (ocl), but failing to connect to my development database. While I can connect to it from command prompt via sqlplus, RoR gives error.<BR/>My entry is:<BR/><BR/>development:<BR/> adapter: oci<BR/> host: ORCL<BR/> username: sac_cfg<BR/> password: myPass<BR/><BR/>If it helps, I have a database named ORCL installed in my local machine (Oracle 10g Enterprise Edition).<BR/>I also tried with my ip address but didn't work:<BR/> host: 10.16.35.164/ORCL<BR/><BR/>Your help would be greatly appreciated.Niazhttp://www.blogger.com/profile/04648228538579265509noreply@blogger.comtag:blogger.com,1999:blog-11593374.post-85437528958634869792007-09-10T23:22:00.000+01:002007-09-10T23:22:00.000+01:002007-09-10T23:22:00.000+01:00No problem Travis, and if you ever have any issues...No problem Travis, and if you ever have any issues with Rails and Oracle, please post a comment on this thread and I'll try my best to help you out!abeacockhttp://www.blogger.com/profile/01039992884679308726noreply@blogger.comtag:blogger.com,1999:blog-11593374.post-86099031600827392212007-09-10T23:03:00.000+01:002007-09-10T23:03:00.000+01:002007-09-10T23:03:00.000+01:00Thank you!!!Thank you!!!travishttp://www.blogger.com/profile/12438674280308521820noreply@blogger.com