railsgscaffold失败,但oci脚本和irb数据查询有效。无法弄清楚出了什么问题。railsgscaffoldtablefield1:integerfield2:string....invokeactive_recordC:/Ruby193/lib/ruby/gems/1.9.1/gems/activerecord-oracle_enhanced-adapter-1.4.1/lib/active_record/connection_adapters/oracle_enhanced_oci_connection.rb:7:in`rescuein':ERROR:ActiveRec
感谢您的关注。在一段空闲时间后,我们遇到了卡住的连接问题,我们将不胜感激任何帮助或尝试的事情。我们在jruby1.7.2上的Sinatra应用程序中使用activerecord-oracle_enhanced-adapterv1.4.1和ojdbc6.jar。我的Controller调用一个辅助类方法并返回一个json字符串。辅助类方法只是查询Oracle数据库中的数据。代码如下所示:classAppe puts3 putse.message ensure puts4ActiveRecord::Base.clear_active_connections! puts5
我只使用ActiveRecord对遗留Oracle数据库进行一些开发。我的适配器是activerecord-oracle_enhanced-adapter(https://github.com/rsim/oracle-enhanced)。所以我不想让AR处理主键生成。如何禁用序列生成的主键?classUser然后我得到了错误:stmt.c:230:inoci8lib_191.so:ORA-02289:sequencedoesnotexist(OCIError)当我将代码更改为classUser我得到另一个错误:stmt.c:230:inoci8lib_191.so:ORA-00936: