diff --git a/lib/active_record/connection_adapters/oracle_enhanced_adapter.rb b/lib/active_record/connection_adapters/oracle_enhanced_adapter.rb
index <HASH>..<HASH> 100644
--- a/lib/active_record/connection_adapters/oracle_enhanced_adapter.rb
+++ b/lib/active_record/connection_adapters/oracle_enhanced_adapter.rb
@@ -672,7 +672,7 @@ module ActiveRecord
           case @connection.error_code(exception)
           when 1
             RecordNotUnique.new(message)
-          when 942, 955, 1418
+          when 900, 904, 942, 955, 1418, 17008
             ActiveRecord::StatementInvalid.new(message)
           when 1400
             ActiveRecord::NotNullViolation.new(message)
Add these errors to be recognized as `ActiveRecord::StatementInvalid`

ORA-<I> "invalid SQL statement"
ORA-<I> "invalid identifier"
ORA-<I> "Closed Connection"

ORA-<I> is likely reported only with JRuby and JDBC driver.