Commit 088bae1b authored by Giuseppe Lo Presti's avatar Giuseppe Lo Presti
Browse files

Added a new error code to the list of errors that trigger automatic reconnection

parent b28d4054
......@@ -392,7 +392,8 @@ void castor::db::ora::OraCnvSvc::handleException(std::exception& e) throw() {
errcode == 32102 || errcode == 3135 || errcode == 12170 ||
errcode == 12541 || errcode == 1012 || errcode == 1003 ||
errcode == 12571 || errcode == 1033 || errcode == 1089 ||
errcode == 12537 || (errcode >= 25401 && errcode <= 25409)) {
errcode == 24338 || errcode == 12537 ||
(errcode >= 25401 && errcode <= 25409)) {
// here we lost the connection due to an Oracle restart or network glitch
// and this is the current list of errors acknowledged as a lost connection.
// Notes:
......
......@@ -51,7 +51,7 @@ Cns_oracle_error(char *func,
sqlca->sqlcode == -32102 || sqlca->sqlcode == -3135 ||
sqlca->sqlcode == -12170 || sqlca->sqlcode == -12541 ||
sqlca->sqlcode == -1012 || sqlca->sqlcode == -1003 ||
sqlca->sqlcode == -12571 ||
sqlca->sqlcode == -12571 || sqlca->sqlcode == -24338 ||
(sqlca->sqlcode <= -25401 && sqlca->sqlcode >= -25409) ||
sqlca->sqlcode == -1033 || sqlca->sqlcode == -1089) {
if (dbfd->connected == 1) {
......
......@@ -49,7 +49,7 @@ Cupv_oracle_error(char *func,
sqlca->sqlcode == -32102 || sqlca->sqlcode == -3135 ||
sqlca->sqlcode == -12170 || sqlca->sqlcode == -12541 ||
sqlca->sqlcode == -1012 || sqlca->sqlcode == -1003 ||
sqlca->sqlcode == -12571 ||
sqlca->sqlcode == -12571 || sqlca->sqlcode == -24338 ||
(sqlca->sqlcode <= -25401 && sqlca->sqlcode >= -25409) ||
sqlca->sqlcode == -1033 || sqlca->sqlcode == -1089) {
if (dbfd->connected == 1) {
......
......@@ -49,7 +49,7 @@ vmgr_oracle_error(char *func,
sqlca->sqlcode == -32102 || sqlca->sqlcode == -3135 ||
sqlca->sqlcode == -12170 || sqlca->sqlcode == -12541 ||
sqlca->sqlcode == -1012 || sqlca->sqlcode == -1003 ||
sqlca->sqlcode == -12571 ||
sqlca->sqlcode == -12571 || sqlca->sqlcode == -24338 ||
(sqlca->sqlcode <= -25401 && sqlca->sqlcode >= -25409) ||
sqlca->sqlcode == -1033 || sqlca->sqlcode == -1089) {
if (dbfd->connected == 1) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment