Skip to content

Commit 14ce4da

Browse files
committed
ORA-24496 possible at OCISessionGet
1 parent 63b8ee5 commit 14ce4da

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

src/rwlerror.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
*
1212
* History
1313
*
14+
* bengsig 27-sep-2023 - 24496 also possible with session pool timeout
1415
* bengsig 11-sep-2023 - 24457/24459 are both possible with session pool timeout
1516
* bengsig 6-sep-2023 - sql logging
1617
* bengsig 1-mar-2023 - Optimize snprintf [id]format
@@ -534,6 +535,7 @@ void rwldberror3(rwl_xeqenv *xev, rwl_location * cloc, rwl_sql *sq, text *fname,
534535
case 12541: // TNS:no listener
535536
case 24457: // OCISessionGet() could not find a free session in the specified timeout period
536537
case 24459: // OCISessionGet() timed out waiting for pool to create new connections
538+
case 24496: // OCISessionGet() timed out waiting for a free connection
537539
rwlwait(xev, cloc, 2.0);
538540
/*FALLTHROUGH*/
539541

src/rwlsql.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
*
1212
* History
1313
*
14+
* bengsig 27-sep-2023 - 24496 is possible with session pool timeout
1415
* bengsig 26-sep-2023 - Check OCI_ATTR_PARSE_ERROR_OFFSET at more potential places
1516
* bengsig 22-sep-2023 - ampersand needs thread local sql
1617
* bengsig 21-sep-2023 - $errordetail:on directive
@@ -3364,10 +3365,11 @@ ub4 rwlensuresession2(rwl_xeqenv *xev
33643365
sb4 errcode;
33653366
OCIErrorGet (xev->errhp, 1, 0, &errcode,
33663367
errbuf, sizeof(errbuf), OCI_HTYPE_ERROR);
3367-
if ((24459==errcode || 24457==errcode) && bit(db->flags, RWL_DB_SPTOBREAK))
3368+
if ((24459==errcode || 24457==errcode || 24496==errcode) && bit(db->flags, RWL_DB_SPTOBREAK))
33683369
{
33693370
// 24457: OCISessionGet() could not find a free session in the specified timeout period
33703371
// 24459: OCISessionGet() timed out waiting for pool to create new connections
3372+
// 24496: OCISessionGet() timed out waiting for a free connection
33713373
if (0>rwlfindvarug(xev, RWL_ORAERROR_VAR, &xev->oraerrorvar))
33723374
{
33733375
rwlsevere(xev->rwm, "[rwlensuresession2-oraerrorvar:%d]", xev->oraerrorvar);

0 commit comments

Comments
 (0)