I''m having a problem getting Rails to connect to my Oracle database.
I have Ruby/Rails installed on a SunOS (sun0) and my Oracle database
(mydb) is installed on another SunOS (sun1). sun1 has the Oracle
instant client on it, and I can run a simple ruby script to execute
queries just fine:
#!/usr/local/bin/ruby
require ''oci8''
conn = OCI8.new(''user'', ''pass'',
''//sun0:3333/mydb'')
conn.exec(''select count(*) from t_mytest'') do |row|
puts row
end
This runs with no problem. Now comes my Rails issues. I''ve setup a
simple Rails project and in my database.yml file, I swear I''ve tried
every configuration I can, but the ''rake migrate'' command
still won''t
work. Here''s what my database.yml file looks like:
development:
adapter: oci
username: user
password: pass
database: //sun0:3333/mydb
development:
adapter: oci
username: user
password: pass
database: //sun0:3333/mydb
development:
adapter: oci
username: user
password: pass
database: //sun0:3333/mydb
I''ve seen some folks saying the ''database'' line in
database.yml isn''t
read, and I''ve tried it also with the host line in there. But alas,
it still doesn''t work. Any ideas?
reacher
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---