Rails offen lost connection to oracle database
- by qichunren
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?