Skip to content

Commit 94c1573

Browse files
Fix wait mode.
1 parent 3c0974e commit 94c1573

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

samples/tutorial/Python-and-Oracle-Database-The-New-Wave-of-Scripting.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -637,7 +637,7 @@ <h4>2.2 Connection pool experiments</h4>
637637
</p>
638638

639639
<p>Try changing <code>getmode</code> to
640-
<code>oracledb.POOL_GETMODE_WAIT</code>. When <code>numberOfThreads</code>
640+
<code>oracledb.POOL_GETMODE_NOWAIT</code>. When <code>numberOfThreads</code>
641641
exceeds the maximum size of the pool, the <code>acquire()</code> call will now
642642
generate an error such as "<em>ORA-24459: OCISessionGet() timed out waiting for pool to create new connections</em>". </p>
643643

@@ -2726,7 +2726,7 @@ <h2><a name="resources">Resources</a></h2>
27262726

27272727
<hr/>
27282728
<h2>License</h2>
2729-
<p>Copyright &copy; 2017, 2023, Oracle and/or its affiliates. </p>
2729+
<p>Copyright &copy; 2017, 2025, Oracle and/or its affiliates. </p>
27302730

27312731
<p>This software is dual-licensed to you under the Universal Permissive License
27322732
(UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl and Apache License

samples/tutorial/solutions/connect_pool2.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# -----------------------------------------------------------------------------
44

55
# -----------------------------------------------------------------------------
6-
# Copyright (c) 2017, 2023, Oracle and/or its affiliates.
6+
# Copyright (c) 2017, 2025, Oracle and/or its affiliates.
77
#
88
# This software is dual-licensed to you under the Universal Permissive License
99
# (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl and Apache License
@@ -38,7 +38,7 @@
3838
min=2,
3939
max=5,
4040
increment=1,
41-
getmode=oracledb.POOL_GETMODE_WAIT,
41+
getmode=oracledb.POOL_GETMODE_NOWAIT,
4242
cclass="PYTHONDEMO",
4343
purity=oracledb.PURITY_SELF,
4444
) # try PURITY_NEW

0 commit comments

Comments
 (0)