From e3cdf7b2934420f6fdcd51ae45659246bf68068e Mon Sep 17 00:00:00 2001
From: Giuseppe Lo Presti <giuseppe.lopresti@cern.ch>
Date: Fri, 6 Mar 2020 09:32:23 +0100
Subject: [PATCH] [DB layer] added two more Oracle error codes

The added codes appeared in production (with the CASTOR Nameserver)
during a network incident with the Oracle Clusterware.
---
 rdbms/wrapper/OcciStmt.cpp | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/rdbms/wrapper/OcciStmt.cpp b/rdbms/wrapper/OcciStmt.cpp
index 84ee44bc48..fffe303fd1 100644
--- a/rdbms/wrapper/OcciStmt.cpp
+++ b/rdbms/wrapper/OcciStmt.cpp
@@ -319,11 +319,13 @@ bool OcciStmt::connShouldBeClosed(const oracle::occi::SQLException &ex) {
 
   switch(ex.getErrorCode()) {
   case    28:
+  case   492:
   case  1003:
   case  1008:
   case  1012:
   case  1033:
   case  1089:
+  case  2051:
   case  2392:
   case  2396:
   case  2399:
-- 
GitLab