@@ -436,6 +436,8 @@ Oracledb Methods
436
436
437
437
This method can only be used in python-oracledb Thin mode.
438
438
439
+ When connecting to Oracle Autonomous Database, use Python 3.11, or later.
440
+
439
441
.. versionadded :: 2.0.0
440
442
441
443
Some values, such as the database host name, can be specified as
@@ -1026,7 +1028,8 @@ Oracledb Methods
1026
1028
.. versionchanged :: 2.5.0
1027
1029
1028
1030
The ``program ``, ``machine ``, ``terminal ``, ``osuser ``, and
1029
- ``driver_name `` parameters were added.
1031
+ ``driver_name `` parameters were added. Support for ``edition `` and
1032
+ ``appcontext `` was added to python-oracledb Thin mode.
1030
1033
1031
1034
.. versionchanged :: 2.3.0
1032
1035
@@ -1378,8 +1381,7 @@ Oracledb Methods
1378
1381
The ``appcontext `` parameter is expected to be a list of 3-tuples that
1379
1382
identifies the application context used by the connection. This parameter
1380
1383
should contain namespace, name, and value and each entry in the tuple
1381
- should be a string. This value is only used in the python-oracledb Thick
1382
- mode and is ignored in the Thin mode.
1384
+ should be a string.
1383
1385
1384
1386
The ``shardingkey `` parameter and ``supershardingkey `` parameters, if
1385
1387
specified, are expected to be a sequence of values which identifies the
@@ -1544,6 +1546,8 @@ Oracledb Methods
1544
1546
1545
1547
This method can only be used in python-oracledb Thin mode.
1546
1548
1549
+ When connecting to Oracle Autonomous Database, use Python 3.11, or later.
1550
+
1547
1551
.. versionadded :: 2.0.0
1548
1552
1549
1553
Some values, such as the database host name, can be specified as
@@ -2301,8 +2305,7 @@ Oracledb Methods
2301
2305
The ``appcontext `` parameter is expected to be a list of 3-tuples that
2302
2306
identifies the application context used by the connection. This parameter
2303
2307
should contain namespace, name, and value and each entry in the tuple
2304
- should be a string. This value is only used inthe python-oracledb Thick
2305
- mode.
2308
+ should be a string.
2306
2309
2307
2310
The ``shardingkey `` parameter and ``supershardingkey `` parameters, if
2308
2311
specified, are expected to be a sequence of values which identifies the
@@ -2411,7 +2414,8 @@ Oracledb Methods
2411
2414
.. versionchanged :: 2.5.0
2412
2415
2413
2416
The ``program ``, ``machine ``, ``terminal ``, ``osuser ``, and
2414
- ``driver_name `` parameters were added.
2417
+ ``driver_name `` parameters were added. Support for ``edition `` and
2418
+ ``appcontext `` was added to python-oracledb Thin mode.
2415
2419
2416
2420
.. versionchanged :: 2.3.0
2417
2421
@@ -2872,8 +2876,8 @@ definition.
2872
2876
python-oracledb Thin mode, and for standalone connections in the Thick
2873
2877
mode.
2874
2878
2875
- This constant deprecates the ``DEFAULT_AUTH `` constant that was used in
2876
- cx_Oracle 8.3.
2879
+ This constant deprecates the ``DEFAULT_AUTH `` constant that was used in
2880
+ cx_Oracle 8.3, and was the default `` mode `` value .
2877
2881
2878
2882
.. data :: AUTH_MODE_PRELIM
2879
2883
@@ -2888,8 +2892,8 @@ definition.
2888
2892
This constant can only be used in the python-oracledb Thick mode for
2889
2893
standalone connections.
2890
2894
2891
- This constant deprecates the ``PRELIM_AUTH `` constant that was used in
2892
- cx_Oracle 8.3.
2895
+ This constant deprecates the ``PRELIM_AUTH `` constant that was used in
2896
+ cx_Oracle 8.3.
2893
2897
2894
2898
.. data :: AUTH_MODE_SYSASM
2895
2899
@@ -2904,8 +2908,8 @@ definition.
2904
2908
python-oracledb Thin mode, and for standalone connections in the Thick
2905
2909
mode.
2906
2910
2907
- This constant deprecates the ``SYSASM `` constant that was used in
2908
- cx_Oracle 8.3.
2911
+ This constant deprecates the ``SYSASM `` constant that was used in
2912
+ cx_Oracle 8.3.
2909
2913
2910
2914
.. data :: AUTH_MODE_SYSBKP
2911
2915
@@ -2920,8 +2924,8 @@ definition.
2920
2924
python-oracledb Thin mode, and for standalone connections in the Thick
2921
2925
mode.
2922
2926
2923
- This constant deprecates the ``SYSBKP `` constant that was used in
2924
- cx_Oracle 8.3.
2927
+ This constant deprecates the ``SYSBKP `` constant that was used in
2928
+ cx_Oracle 8.3.
2925
2929
2926
2930
.. data :: AUTH_MODE_SYSDBA
2927
2931
@@ -2936,8 +2940,8 @@ definition.
2936
2940
python-oracledb Thin mode, and for standalone connections in the Thick
2937
2941
mode.
2938
2942
2939
- This constant deprecates the ``SYSDBA `` constant that was used in
2940
- cx_Oracle 8.3.
2943
+ This constant deprecates the ``SYSDBA `` constant that was used in
2944
+ cx_Oracle 8.3.
2941
2945
2942
2946
.. data :: AUTH_MODE_SYSDGD
2943
2947
@@ -2952,8 +2956,8 @@ definition.
2952
2956
python-oracledb Thin mode, and for standalone connections in the Thick
2953
2957
mode.
2954
2958
2955
- This constant deprecates the ``SYSDGD `` constant that was used in
2956
- cx_Oracle 8.3.
2959
+ This constant deprecates the ``SYSDGD `` constant that was used in
2960
+ cx_Oracle 8.3.
2957
2961
2958
2962
.. data :: AUTH_MODE_SYSKMT
2959
2963
@@ -2968,8 +2972,8 @@ definition.
2968
2972
python-oracledb Thin mode, and for standalone connections in the Thick
2969
2973
mode.
2970
2974
2971
- This constant deprecates the ``SYSKMT `` constant that was used in
2972
- cx_Oracle 8.3.
2975
+ This constant deprecates the ``SYSKMT `` constant that was used in
2976
+ cx_Oracle 8.3.
2973
2977
2974
2978
.. data :: AUTH_MODE_SYSOPER
2975
2979
@@ -2984,8 +2988,8 @@ definition.
2984
2988
python-oracledb Thin mode, and for standalone connections in the Thick
2985
2989
mode.
2986
2990
2987
- This constant deprecates the ``SYSOPER `` constant that was used in
2988
- cx_Oracle 8.3.
2991
+ This constant deprecates the ``SYSOPER `` constant that was used in
2992
+ cx_Oracle 8.3.
2989
2993
2990
2994
.. data :: AUTH_MODE_SYSRAC
2991
2995
@@ -3000,8 +3004,8 @@ definition.
3000
3004
python-oracledb Thin mode, and for standalone connections in the Thick
3001
3005
mode.
3002
3006
3003
- This constant deprecates the ``SYSRAC `` constant that was used in
3004
- cx_Oracle 8.3.
3007
+ This constant deprecates the ``SYSRAC `` constant that was used in
3008
+ cx_Oracle 8.3.
3005
3009
3006
3010
.. _pipeline-operation-types :
3007
3011
@@ -3243,82 +3247,88 @@ Connection Pool Get Modes
3243
3247
-------------------------
3244
3248
3245
3249
These constants belong to the enumeration called ``PoolGetMode ``. They are
3246
- possible values for the ``getmode `` parameter of
3247
- :meth: `oracledb.create_pool() ` and :meth: `oracledb.create_pool_async() `. They
3248
- have deprecated the Session Pool mode constants that were used in cx_Oracle
3249
- 8.3. The constants are extensions to the DB API definition.
3250
+ possible values for the ``getmode `` parameters of
3251
+ :meth: `oracledb.create_pool() `, :meth: `oracledb.create_pool_async() `,
3252
+ :meth: `PoolParams.set() `, and for related attributes. They have deprecated the
3253
+ Session Pool mode constants that were used in cx_Oracle 8.3. The constants are
3254
+ extensions to the DB API definition
3250
3255
3251
3256
.. versionchanged :: 2.3.0
3252
3257
3253
- The integer constants for the connection pool get modes were replaced
3254
- with the enumeration ``PoolGetMode ``.
3258
+ The integer constants for the connection pool creation, reconfiguration,
3259
+ and acquisition ``getmode `` parameters were replaced with the enumeration
3260
+ ``PoolGetMode ``.
3255
3261
3256
3262
.. data :: POOL_GETMODE_FORCEGET
3257
3263
3258
- This constant is used to specify that a new connection will be returned if
3259
- there are no free sessions available in the pool.
3264
+ This constant is used to specify that a new connection should be created
3265
+ and returned by :meth: `ConnectionPool.acquire() ` if there are no free
3266
+ connections available in the pool and the pool is already at its maximum
3267
+ size.
3268
+
3269
+ When a connection acquired in this mode is eventually released back to the
3270
+ pool, it will be dropped and not added to the pool if the pool is still at
3271
+ its maximum size.
3260
3272
3261
3273
This enumerated value can also be identified by
3262
3274
``oracledb.PoolGetMode.FORCEGET ``.
3263
3275
3264
- .. note ::
3265
-
3266
- This constant deprecates the ``SPOOL_ATTRVAL_FORCEGET `` constant that
3267
- was used in cx_Oracle 8.3.
3276
+ This constant deprecates the ``SPOOL_ATTRVAL_FORCEGET `` constant that was
3277
+ used in cx_Oracle 8.3.
3268
3278
3269
3279
3270
3280
.. data :: POOL_GETMODE_NOWAIT
3271
3281
3272
- This constant is used to specify that an exception should be raised if
3273
- there are no free sessions available in the pool.
3282
+ This constant is used to specify that an exception should be raised by
3283
+ :meth: `ConnectionPool.acquire() ` when all currently created connections are
3284
+ already in use and so :meth: `~ConnectionPool.acquire() ` cannot immediately
3285
+ return a connection. Note the exception may occur even if the pool is
3286
+ smaller than its maximum size.
3274
3287
3275
3288
This enumerated value can also be identified by
3276
3289
``oracledb.PoolGetMode.NOWAIT ``.
3277
3290
3278
- .. note ::
3279
-
3280
- This constant deprecates the ``SPOOL_ATTRVAL_NOWAIT `` constant that was
3281
- used in cx_Oracle 8.3.
3291
+ This constant deprecates the ``SPOOL_ATTRVAL_NOWAIT `` constant that was
3292
+ used in cx_Oracle 8.3, and was the default ``getmode `` value.
3282
3293
3283
3294
3284
3295
.. data :: POOL_GETMODE_WAIT
3285
3296
3286
- This constant is used to specify that the caller should wait until a
3287
- session is available if there are no free sessions available in the pool.
3288
- This is the default value.
3297
+ This constant is used to specify that :meth: ` ConnectionPool.acquire() `
3298
+ should wait until a connection is available if there are currently no free
3299
+ connections available in the pool. This is the default value.
3289
3300
3290
3301
This enumerated value can also be identified by
3291
3302
``oracledb.PoolGetMode.WAIT ``.
3292
3303
3293
- .. note ::
3294
-
3295
- This constant deprecates the ``SPOOL_ATTRVAL_WAIT `` constant that was
3296
- used in cx_Oracle 8.3.
3304
+ This constant deprecates the ``SPOOL_ATTRVAL_WAIT `` constant that was
3305
+ used in cx_Oracle 8.3.
3297
3306
3298
3307
3299
3308
.. data :: POOL_GETMODE_TIMEDWAIT
3300
3309
3301
- This constant is used to specify that the caller should wait for a period
3302
- of time (defined by the ``wait_timeout `` parameter) for a session to become
3303
- available before returning with an error.
3310
+ This constant is used to specify that :meth: `ConnectionPool.acquire() `
3311
+ should wait for a period of time (defined by the ``wait_timeout ``
3312
+ parameter) for a connection to become available before returning with an
3313
+ error.
3304
3314
3305
3315
This enumerated value can also be identified by
3306
3316
``oracledb.PoolGetMode.TIMEDWAIT ``.
3307
3317
3308
- .. note ::
3309
-
3310
- This constant deprecates the ``SPOOL_ATTRVAL_TIMEDWAIT `` constant that
3311
- was used in cx_Oracle 8.3.
3318
+ This constant deprecates the ``SPOOL_ATTRVAL_TIMEDWAIT `` constant that was
3319
+ used in cx_Oracle 8.3.
3312
3320
3313
3321
.. _drcppurityconsts :
3314
3322
3315
3323
Connection Pool Purity Constants
3316
3324
--------------------------------
3317
3325
3318
3326
These constants belong to the enumeration called ``Purity ``. They are possible
3319
- values for the ``purity `` parameter of :meth: `connect() ` used for :ref: `drcp `.
3320
- They have deprecated the Session Pool purity constants that were used in
3321
- cx_Oracle 8.3. The constants are extensions to the DB API definition.
3327
+ values for the :ref: `drcp ` ``purity `` parameter of
3328
+ :meth: `oracledb.create_pool() `, :meth: `ConnectionPool.acquire() `, and
3329
+ :meth: `oracledb.connect() `. They have deprecated the Session Pool purity
3330
+ constants that were used in cx_Oracle 8.3. The constants are extensions to the
3331
+ DB API definition.
3322
3332
3323
3333
.. versionchanged :: 2.3.0
3324
3334
@@ -3334,10 +3344,8 @@ cx_Oracle 8.3. The constants are extensions to the DB API definition.
3334
3344
This enumerated value can also be identified by
3335
3345
``oracledb.Purity.DEFAULT ``.
3336
3346
3337
- .. note ::
3338
-
3339
- This constant deprecates the ``ATTR_PURITY_DEFAULT `` constant that was
3340
- used in cx_Oracle 8.3.
3347
+ This constant deprecates the ``ATTR_PURITY_DEFAULT `` constant that was used
3348
+ in cx_Oracle 8.3, and was the default ``purity `` value.
3341
3349
3342
3350
.. data :: PURITY_NEW
3343
3351
@@ -3346,10 +3354,8 @@ cx_Oracle 8.3. The constants are extensions to the DB API definition.
3346
3354
3347
3355
This enumerated value can also be identified by ``oracledb.Purity.NEW ``.
3348
3356
3349
- .. note ::
3350
-
3351
- This constant deprecates the ``ATTR_PURITY_NEW `` constant that was used
3352
- in cx_Oracle 8.3.
3357
+ This constant deprecates the ``ATTR_PURITY_NEW `` constant that was used in
3358
+ cx_Oracle 8.3.
3353
3359
3354
3360
3355
3361
.. data :: PURITY_SELF
@@ -3359,10 +3365,8 @@ cx_Oracle 8.3. The constants are extensions to the DB API definition.
3359
3365
3360
3366
This enumerated value can also be identified by ``oracledb.Purity.SELF ``.
3361
3367
3362
- .. note ::
3363
-
3364
- This constant deprecates the ``ATTR_PURITY_SELF `` constant that was
3365
- used in cx_Oracle 8.3.
3368
+ This constant deprecates the ``ATTR_PURITY_SELF `` constant that was used in
3369
+ cx_Oracle 8.3.
3366
3370
3367
3371
Subscription Grouping Classes
3368
3372
-----------------------------
0 commit comments