Displaying 20 results from an estimated 400 matches similar to: "Oracle OCI8, or "am I going crazy?""
2006 Mar 28
2
Rails Oracle connection
I''m using the following configuration in the database.yml to connect to
Oracle,
however I could not connect while the settings seems to be correct:
development_oracle:
adapter: oci
host: 127.0.0.1:8080/XE
username: rubydb
password: rubyrails
What is wrong here?
Can anyonbe help me?
--
Posted via http://www.ruby-forum.com/.
2006 Feb 20
2
Oracle & Ruby on Rails
I''ve a remote database create using Oracle. This database use schemas.
I tried to connect to it using Ruby On Rails,with this file Database.yml
:
development:
adapter: oci
host: liber
database: ENERGIA
username: user
password: pass
test:
adapter: oci
host: liber
database: ENERGIA
username: user
password: pass
production:
adapter: oci
host: liber
database:
2006 Apr 28
3
NoMemoryError Oracle
Hello,
I''m trying to run rails on a Solaris 10 box with Ruby/OCI8, but I''m
getting the following errors when trying to start up.
# script/server
=> Booting WEBrick...
/usr/local/lib/ruby/gems/1.8/gems/rails-1.1.2/lib/commands/servers/
webrick.rb:49:in `[]='': failed to allocate memory (NoMemoryError)
from /usr/local/lib/ruby/gems/1.8/gems/rails-1.1.2/lib/
2006 Mar 06
5
Oracle XMLType data
Howdy folks,
Has anyone had any luck getting Oracle''s XMLType to play nicely with
Rails? According to the docs, it''s just a wrapper around CLOB.
However the ruby-oci8 driver throws an exception about user defined
types if you try to query a table with an XMLType column.
Any pointers would be appreciated.
Thanks,
-wilig
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
2006 Apr 20
4
oci8 mac os x intel
Is rails + oci8 + mac os x intel a winning combination? It appears
that oci8 might be a issue.
2006 Apr 03
11
Legacy database Oracle
I am new to RoR, but totally sold to the concepts, so I have decided to
use RoR to develop a web client to our Oracle-based software that our
customers today use with a Windows client. At first we will develope
simple things like registering to receive email newsletters, and
registering/updating your name, address and telephone etc. Eventually we
hope to do a more full-bodied web-side client.
2006 May 16
4
Oracle and MySql simultaneously from rails app
I searched this site on Oracle && MySql, nothing came up, so perhaps
this is a new topic for this forum.
I''d like to access two databases from the same application
simultaneously (well, more precisely, in rapid succession, calling one
first and then the other, as any "joins" will be done in the application
code).
One database is in MySql, the other is Oracle.
2005 Jul 23
11
Validation without ActiveRecord
Hello, I followed the instructions at
http://wiki.rubyonrails.com/rails/show/HowToUseValidationsWithoutExtendingActiveRecord
But now I''m having trouble trying to create my form view. Here''s a
brief rundown of what I''ve done:
- Created a class called SearchRequest that extends ValidatingBase and
saved it in a file called search_request.rb and put it in my models
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,
2005 Dec 28
2
OCI/ODBC on Windows
I have been trying to connect to an Oracle database on a windows
machine. I succesfully ran a test program using ODBC to connect to
Oracle, but I am out of luck on doing this with rails.
I am unable to install the OCI Adapter on Windows and am trying to
figure it out. Meanwhile, if anyone could provide me with some pointers
or references, I would be grateful. I am finding it a bit difficult in
2006 Jan 25
4
Cannot :order when using :offset and :limit in find
Hello all.
I am using the Paginate_with_ajax code as described on the wiki but I am
running into the following problem. The following code will work fine
and retrieved unsorted records in a hunky dory fashion:
@componentlogs = Componentlog.find(:all,
:conditions => [ "cl_compname like ?", @criteria ],
:offset => offset,
:limit => items_per_page )
However if I try and add an
2010 Dec 15
3
ORA-12514: TNS:listener d oes not currently know of service requested in connect descriptor (OCIEr
Hi I am a new to ROR and learning this framework from various tutorials.
I have my new application and had the rails generate scaffold get going
but after this when I first ran the rake db:migrate I got this ERROR!
ORA-12514:
TNS:listener d
oes not currently know of service requested in connect descriptor
(OCIError)
I''m using database which is on a server and have used the tnsnames.ora
2007 Dec 09
1
package "growth" ... where is it ?
I would like to install the package "growth" as it contains the function
"corgram" and some other presumably useful stuff for time series analysis.
I can see it is in R standard library list:
http://hosho.ees.hokudai.ac.jp/~kubo/Rdoc/doc/html/packages.html<http://hosho.ees.hokudai.ac.jp/%7Ekubo/Rdoc/doc/html/packages.html>
2004 Aug 11
2
possible suppression for output ?
Hi,
Whenever i sync certain files in ( like /etc/tnsnames.ora ) from our
hostA to hostB, rsync always print out
/etc/
it prints out the files modified.
it does that for every directory name in the path of files i update...
Is there a way to suppress that output, since it is not modifying that
directory ?
Thanks
Daniel Bourque
Unix Systems Administrator
BTS Platform Services
Learjet Inc.
2011 Nov 19
11
Installing Oracle
This is pretty ugly.
I''m using puppet to install Oracle, ie an exec{} wrapped around:
/u01/oracle_extract/linux.x64_11gR2_database/database/runInstaller
-silent -responseFile /etc/oracle_response.rsp
The problem is that the damn installer backgrounds itself and returns
control to the shell. I tried putting the above command in a script,
followed by a wait command, but that
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
2012 Dec 19
0
Oracle listner with port forwarding issue
> bundle exec rails s
=> Booting WEBrick
=> Rails 3.1.5 application starting in development on http://0.0.0.0:3000
=> Call with -d to detach
=> Ctrl-C to shutdown server
Warning: NLS_LANG is not set. fallback to US-ASCII.
[2012-12-19 12:17:10] INFO WEBrick 1.3.1
[2012-12-19 12:17:10] INFO ruby 1.9.3 (2012-10-12) [x86_64-linux]
[2012-12-19 12:17:10] INFO WEBrick::HTTPServer#start:
2007 May 15
1
link_to_remote with :confirm...need syntax help
What is the syntax to use :confirm with link_to_remote? This doesn''t
work, I''ve tried a few permutations, with no success:
<%= link_to_remote( "X",
:update => ''address_list'',
:url => { :controller => ''addresses'', :action =>
''destroy'', :id => address },
2007 Oct 23
3
Ruby on Rails and Oracle
Hello, I''m having a trouble when I try to connect RoR and Oracle.
I believe that it has something to do with database.yml, this is how my
database.yml looks:
development:
adapter: oci
database: 127.0.0.1:1521/XE
username: system
password: y1984nip0359
host: 127.0.0.1
And this is the Error that i get:
-> http://127.0.0.1:3000/blog
OCIError in BlogController#index