论坛首页 入门技术论坛

初学 : ROR 连接oracle 9i 的问题

浏览 1630 次
该帖已经被评为新手帖
作者 正文
   发表时间:2008-08-01  
初学:
ror 连接oracle9i时报错“


+++++++++++++++++++++++++++++++
D:\railsdoc\mybook>ruby script\server
=> Booting WEBrick...
d:/ruby/lib/ruby/gems/1.8/gems/activerecord-2.1.0/lib/active_record/connection_adapters/abstract/connection_specification.rb:232:in `establish_connection': P
ase install the oracle adapter: `gem install activerecord-oracle-adapter` (no such file to load -- active_record/connection_adapters/oracle_adapter) (Runtime
ror)
        from d:/ruby/lib/ruby/gems/1.8/gems/activerecord-2.1.0/lib/active_record/connection_adapters/abstract/connection_specification.rb:216:in `establish_c
nection'
        from d:/ruby/lib/ruby/gems/1.8/gems/activerecord-2.1.0/lib/active_record/connection_adapters/abstract/connection_specification.rb:209:in `establish_c
nection'
        from d:/ruby/lib/ruby/gems/1.8/gems/rails-2.1.0/lib/initializer.rb:332:in `initialize_database'
        from d:/ruby/lib/ruby/gems/1.8/gems/rails-2.1.0/lib/initializer.rb:120:in `process'
        from d:/ruby/lib/ruby/gems/1.8/gems/rails-2.1.0/lib/initializer.rb:93:in `send'
        from d:/ruby/lib/ruby/gems/1.8/gems/rails-2.1.0/lib/initializer.rb:93:in `run'
        from D:/railsdoc/mybook/config/environment.rb:13
        from d:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require'
         ... 10 levels...
        from d:/ruby/lib/ruby/gems/1.8/gems/rails-2.1.0/lib/commands/server.rb:39
        from d:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require'
        from d:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require'
        from script/server:3
+++++++++++++++++++++++++++++++


这个是database.yml,DB is on remote site
+++++++++++++++++++++++++++++++
development:
    adapter: oracle
    database: orcl
    username: adf
    password: adf
+++++++++++++++++++++++++++++++



D:\railsdoc\mybook>ruby -v
ruby 1.8.6 (2007-09-24 patchlevel 111) [i386-mswin32]

D:\railsdoc\mybook>rails -v
Rails 2.1.0

安装了 ruby-oci8-1.0.2-mswin32.rb and ruby-oci8-1.0.2.gem
   发表时间:2008-08-04  
要装OCI8
0 请登录后投票
论坛首页 入门技术版

跳转论坛:
Global site tag (gtag.js) - Google Analytics