获取" ORA-06413:连接未打开。"在我的rails应用程序中

时间:2017-05-18 12:16:37

标签: ruby-on-rails

我已经设置了一个新的rails应用程序(Ruby 2.4.0和Rails 5.0.2)。当我在启动rails服务器后启动应用程序时,它会生成错误" ORA-06413:连接未打开" 。我使用ruby-oci8(2.2.3)和activerecord-oracle_enhanced-adapter(1.7.9)和oracle客户端(10.1.0)。我还在.bash_profile中设置了ORACLE_HOME,LD_LIBRARY_PATH,TNS_ADMIN环境变量。我正在低于错误快照;

ORA-06413:连接未打开。

Rails.root:/ home / akhand / work_space / test_app 应用程序跟踪|框架跟踪|完整跟踪

oci8.c:654:在oci8lib_240.so中 ruby-oci8(2.2.3)lib / oci8 / oci8.rb:142:class UsersComponent extends PureComponent { render() { return (<div> <form action="submit" onSubmit={handleSubmit(this.submitForm)}> <Field type="text" name="mobile" hintText="Enter mobile number*" component={reduxPhoneNumber} validate={required} disabled={isSubmitting} fullWidth autoFocus onChange={this.onChange.bind(this)} /> </form> </div>) } } 新&#39; activerecord-oracle_enhanced-adapter(1.7.9)lib / active_record / connection_adapters / oracle_enhanced / oci_connection.rb:346:在initialize' activerecord-oracle_enhanced-adapter (1.7.9) lib/active_record/connection_adapters/oracle_enhanced/oci_connection.rb:346:in初始化&#39; activerecord-oracle_enhanced-adapter(1.7.9)lib / active_record / connection_adapters / oracle_enhanced / oci_connection.rb:24:in new_connection' activerecord-oracle_enhanced-adapter (1.7.9) lib/active_record/connection_adapters/oracle_enhanced/oci_connection.rb:405:in初始化&#39; activerecord-oracle_enhanced-adapter(1.7.9)lib / active_record / connection_adapters / oracle_enhanced / connection.rb:8:in new' activerecord-oracle_enhanced-adapter (1.7.9) lib/active_record/connection_adapters/oracle_enhanced/oci_connection.rb:24:in create&#39; activerecord-oracle_enhanced-adapter(1.7.9)lib / active_record / connection_adapters / oracle_enhanced_adapter.rb:169:in new' activerecord-oracle_enhanced-adapter (1.7.9) lib/active_record/connection_adapters/oracle_enhanced/connection.rb:8:in new_connection&#39; activerecord(5.0.2)lib / active_record / connection_adapters / abstract / connection_pool.rb:773:in oracle_enhanced_connection' activerecord (5.0.2) lib/active_record/connection_adapters/abstract/connection_pool.rb:729:in try_to_checkout_new_connection&#39;

我的database.yml的内容如下;

开发DB

checkout_new_connection'
activerecord (5.0.2) lib/active_record/connection_adapters/abstract/connection_pool.rb:752:in

测试数据库

development:
  adapter: oracle_enhanced
  username: test
  password: secret
  database: test_dev:9102/testdb

Prod DB

test:
  adapter: sqlite3
  database: db/<%=RAILS_ENV%>.sqlite3
  timeout: 5000

我尝试了一些我在谷歌搜索中找到的解决方案,但没有一个能为我工作。任何帮助将不胜感激 。如果需要任何其他信息,请与我们联系。

![Rails_Error] [1]

0 个答案:

没有答案