Displaying 20 results from an estimated 20000 matches similar to: "Rails 2.0.1 RC2 - activerecord-oracle-adapter not found"
2009 Sep 14
9
ActiveRecord::StatementInvalid (invalid date) with Oracle
Hello all. I am a novice Ruby on Rails programmer, starting my first
project using a legacy Oracle 10 database. Using ''reverse_scaffold'' I
have created the models/controllers/views for my existing Oracle
tables.
All seems to work well, using /model/index, /model/show for most of my
tables, *except* when one of the tables contains a Oracle ''date''
column, for
2008 Feb 22
2
Connecting to Oracle from Rails 2.0.2
Long afternoon, but finally got it. Hope this spares you some pain:
Installation instructions mainly based on:
http://ruby.about.com/od/enterprise/ss/ruby_oracle.htm
Install Oracle Instant Client:
mkdir C:\oracle
cd c:\oracle
Get the following files from here:
http://www.oracle.com/technology/software/tech/oci/instantclient/htdocs/winsoft.html
and unzip them into the c:\oracle\
unzip
2008 Jun 04
4
Where is the ActiveRecord Oracle Adapter with 2.1?
I tried this, which worked before:
sudo gem install activerecord-oracle-adapter --source http://gems.rubyonrails.org
--no-ri --no-rdoc
But all I get is:
ERROR: could not find activerecord-oracle-adapter locally or in a
repository
Anyone else able to install the Oracle adapter?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
2011 Mar 11
2
Problem with Redmine
I am having a problem getting Redmine to run with Oracle (11.2) backend.
I get this error (below) because Oracle table names are limited to 30
characters. Does anyone around here know of a fix or workaround? I''m
wondering if I can simple change the table name, or if that will break
the application.
When doing a db migrate to an Oracle db this creates the error below.
I''m so
2010 Feb 24
4
"Sequence does not exist" for joined model
Hello all,
I''m in my 5th month on Ruby on Rails and still learning.
I have an application that works fine in sqlite3 and then the boss says
he wants it migrated to Oracle.
Now, I know very little about Oracle, enough to get into trouble.
When I did the migration everything went haywire. Well, I''ve refactored
several problems and now I have another.
I have two models with a
2009 Mar 22
3
undefined method 'define_a_column' for class 'OCI8::Cursor'
Hello. Tired of searching and finding nothing useful.
Moving application to laptop for trip.
Installed:
- Ruby (1.8.6, patchlevel 111)
- Rails (2.2.2)
- Oracle adapter (1.0.0.9250)
- ruby-oci8 (2.0.1)
- Oracle 10g Express Edition
database.yml:
development:
adapter: oracle
etc...
When I start Mongrel (ruby script/server) I get the error above. I''ve
looked everywhere I can think of.
2009 Dec 30
9
Oracle adapter problem? How to fix this?
Hi,
My setup is:
Ruby 1.8.6
Rails 2.3.5
activerecord-oracle-adapter (1.0.0.9250)
I upgraded Rails and the adapter recently and I just went through hell
trying to find a problem while inserting a record in a table.
Rails was giving me this error:
OCIError (ORA-02289: sequence does not exist):
stmt.c:539:in oci8lib.so
c:/ruby/lib/ruby/site_ruby/1.8/oci8.rb:753:in `exec''
2006 Mar 28
4
Problem with ActiveRecord, create, save, and Oracle adapter?
Hi all,
Ruby 1.8.4
Rails 1.1
OCI8 0.1.14
I think I''m hitting an issue with ActiveRecord::Base#save and the Oracle
adapter. Line 158 in the schedules_controller.rb file is simply:
158: if @schedule.save
159: flash[:notice] = ''Schedule was successfully created.''
160: redirect_to :action => ''list''
161: else
162: render :action =>
2006 Apr 06
7
[Fwd: Rails AR/Oracle Unit Test: [4185] failed]
So my automated script caught this issue, though I think my email
headers were bad, so rails-core has put the automated email on hold
pending "moderation".
I''ll fix that issue, and look at the one below as well.
-------- Original Message --------
Subject: Rails AR/Oracle Unit Test: [4185] failed
Date: Thu, 6 Apr 2006 08:32:04 -0700
From: Michael Schoen
2007 Mar 21
2
ORA-03106: fatal two-task communication protocol error
Has anyone encountered this error or know how to correct it?
I couldn''t find any Rails-specific info about this on google.
Here are the circumstances:
/usr/local/bin/ruby --version
ruby 1.8.4 (2005-12-24) [i686-linux]
/usr/local/bin/rails --version
Rails 1.1.6
## Create mcd app
rails mcd -d oracle
cd mcd
## Create oracle tablespace & user
sqlplus ''/ as
2006 Mar 23
11
ActiveRecord: Oracle metadata loading slow on large database
All,
While attempting to use ActiveRecord against a large database, approx.
1700 tables and 4 million rows, I discovered an inefficiency in
oci_adapter.rb. The problem seems to be the SQL being generated to
lazy-load the columns metadata. "def columns(table_name, name = nil)"
method generates the following SQL:
select column_name, data_type, data_default, nullable,
2006 Mar 29
2
AR 1.14 oracle_adater.rb does not work
the error is :
wrong number of arguments (1 for 0)
where :
active_record/connection_adapters/oracle_adapter.rb:53:in
`attributes_with_quotes_pre_oracle''
this method is new, it was an alias in the previous version :
alias :attributes_with_quotes_pre_oci :attributes_with_quotes
#:nodoc:
I replaced the method by the alias of the previous version, and it is
working fine.
This is
2008 Oct 01
8
Mongrel_Cluster unable to access OCI8 library
Hi,
I''m able to run a ROR application in a Red Hat Enterprise Linux 4.4
environment, as long as I start my mongrel_cluster via the command line:
[chris at localhost ~]$ mongrel_cluster_ctl start
I take a look at the two mongrel_rails processes that were just created:
[chris at localhost log]$ ps -ef | grep mongrel
chris 4781 1 5 05:55 ? 00:00:02 /usr/local/bin/ruby
2007 Oct 01
10
Error with Mongrel_cluster
Hi Guys,
I?m getting this error with mongrel_cluster. I am able to start mongrel
through mongrel_rails start but the cluster is not working. Initially
mongrel_rails wouldn?t work but after I added $ORACLE_HOME and
$PD_LIBRARY_PATH variables it worked but mongrel_cluster isn?t working
still. The mongrel log file looks like below.
Any help is appreciated.
Thanks.
-----------begin
2006 Jan 10
5
Oracle 10g Express - generate scaffold gives error
Hello,
I have Oracle XE installed.
I have a table USERS.
When I try to generate a scaffold it gives me this error.
I tried also with Mysql and it worked.
E:\radrails\projects\MPS>ruby script\generate scaffold user
exists app/controllers/
exists app/helpers/
create app/views/user
exists test/functional/
dependency model
exists app/models/
exists
2007 Mar 21
6
ORACLE DESC "table_name" Failure
I am getting "DESC CYCLEMSTR" failed; does it exist?
errors on a table named CYCLEMSTR in Oracle every 3 out of 4 trys to
do a simple find(:all) on the table.
It is a legacy table that only contains 12 rows of join information.
I don''t understand why it works one out of every 4 or 5 times
help please.
trace:
(eval):3:in `describe''
2011 Sep 02
3
problems with oracle xe server connection
i''m working on ubuntu 11.04; i need to create some rails application
with oracle database on local computer.
i installed: ruby 1.9.2, rails 3.1, oracle 10g XE, rubu-oci8 2.0.6,
gem ''activerecord-oracle_enhanced-adapter'', create database user named
''orak'' with password ''orakpass'' through 127.0.0.1:8080/apex, i maked
new application
2006 Aug 10
3
Ruby on Rails with Oracle
Hello everyone,
I am trying to convince my colleagues to convert to Ruby on Rails,
however I am up against the following problem:
Ruby on rails seems to be primarily designed a single database doing a
small number of queries. While trying to process a webpage that does
thousands of sql queries on Oracle, I get the message that I have used
up too many cursors.
In Java, I can use stmt.close()
2010 Apr 27
3
"ORA-12154: TNS:..." error after successful oracle connection
Hi,
After a few days of struggling, I was able to run this command
successfully.
ruby -r oci8 -e "OCI8.new(''xxx_dba'', ''xxx'', ''//xxxx:1521/
xxxxx.xxx.org'').exec(''SELECT 1 from dual'') {|r| puts r.join}"
I got "1.0" as output and I got my prompt back.
So, I went back to the RoR app that I am working on,
2008 Jan 04
2
oracle adapter + activerecord sessions do not work
Anyone know what''s up with the activerecord session store when using
the oracle adapter in Rails 2.0.2 ?
I can set a session variable and can then see it''s actually set using
the debugger, but after the request completes the session is empty
(the @data member is nil). The session_id is staying the same and the
updated_at field is being updated but nothing I put in a session