From e7b85a010282ce7f9dd6d14c1fcfec45b2a64d77 Mon Sep 17 00:00:00 2001 From: abskmj Date: Mon, 28 Oct 2019 12:17:04 +0530 Subject: [PATCH] Fix Oracle error codes --- lib/dialects/oracle/utils.js | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/lib/dialects/oracle/utils.js b/lib/dialects/oracle/utils.js index 1849629808..e29c3a1b1f 100644 --- a/lib/dialects/oracle/utils.js +++ b/lib/dialects/oracle/utils.js @@ -47,21 +47,21 @@ function isConnectionError(err) { 'ORA-03113', // end-of-file on communication channel 'ORA-03135', // connection lost contact 'ORA-12514', // listener does not currently know of service requested in connect descriptor - 'ORA-22', // invalid session ID; access denied - 'ORA-28', // your session has been killed - 'ORA-31', // your session has been marked for kill - 'ORA-45', // your session has been terminated with no replay - 'ORA-378', // buffer pools cannot be created as specified - 'ORA-602', // internal programming exception - 'ORA-603', // ORACLE server session terminated by fatal error - 'ORA-609', // could not attach to incoming connection - 'ORA-1012', // not logged on - 'ORA-1041', // internal error. hostdef extension doesn't exist - 'ORA-1043', // user side memory corruption - 'ORA-1089', // immediate shutdown or close in progress - 'ORA-1092', // ORACLE instance terminated. Disconnection forced - 'ORA-2396', // exceeded maximum idle time, please connect again - 'ORA-3122', // attempt to close ORACLE-side window on user side + 'ORA-00022', // invalid session ID; access denied + 'ORA-00028', // your session has been killed + 'ORA-00031', // your session has been marked for kill + 'ORA-00045', // your session has been terminated with no replay + 'ORA-00378', // buffer pools cannot be created as specified + 'ORA-00602', // internal programming exception + 'ORA-00603', // ORACLE server session terminated by fatal error + 'ORA-00609', // could not attach to incoming connection + 'ORA-01012', // not logged on + 'ORA-01041', // internal error. hostdef extension doesn't exist + 'ORA-01043', // user side memory corruption + 'ORA-01089', // immediate shutdown or close in progress + 'ORA-01092', // ORACLE instance terminated. Disconnection forced + 'ORA-02396', // exceeded maximum idle time, please connect again + 'ORA-03122', // attempt to close ORACLE-side window on user side 'ORA-12153', // TNS'not connected 'ORA-12537', // TNS'connection closed 'ORA-12547', // TNS'lost contact