views:

71

answers:

0

I sometimes got this error from my log/production.log file:

#<ActiveRecord::StatementInvalid: OCIError: ORA-03114: not connected to ORACLE: select decode(table_name,upper(table_name),lower(table_name),table_name) name from all_tables where owner = sys_context('userenv','session_user')>,

How to solve this? How to rescue this and reconnect to oracle database?

My rails version is 2.0.2,and use oracle_enhanced adapter.