You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: doc/src/api_manual/oracledb.rst
+17-3Lines changed: 17 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2265,6 +2265,20 @@ Oracledb Methods
2265
2265
This optional property overrides the :attr:`oracledb.machine` property.
2266
2266
2267
2267
.. versionadded:: 6.7
2268
+
* - ``maxLifetimeSession``
2269
+
- Number
2270
+
- Both
2271
+
- .. _createpoolpoolattrsmaxlifetimesession:
2272
+
2273
+
The number of seconds that a pooled connection can exist in a pool after first being created. A value of *0* means there is no limit defined for the connection in a pool and no connections will be terminated. Connections become candidates for termination when they are acquired or released back to the pool, and have existed for longer than ``maxLifetimeSession`` seconds. Connections that are in active use will not be closed.
2274
+
2275
+
In node-oracledb Thick mode, Oracle Client libraries 12.1 or later must be used. Note that when using node-oracledb in Thick mode with Oracle Client libraries prior to 21c, pool shrinkage is only initiated when the pool is accessed. So, pools in fully dormant applications will not shrink until the application is next used.
2276
+
2277
+
The default value is *0*.
2278
+
2279
+
See :ref:`conpoolsizing`.
2280
+
2281
+
.. versionadded:: 6.9
2268
2282
* - ``networkCompression``
2269
2283
- Boolean
2270
2284
- Thin
@@ -2791,11 +2805,11 @@ Oracledb Methods
2791
2805
* - ``authType``
2792
2806
- The authentication type. The value should be the string *configFileBasedAuthentication*, *simpleAuthentication*, or *instancePrincipal*.
2793
2807
2794
-
In Configuration File Based Authentication, the location of the configuration file containing the necessary information must be provided.
2808
+
With Configuration File Based Authentication, the location of the configuration file containing the necessary information must be provided.
2795
2809
2796
-
In Simple Authentication, the configuration parameters can be provided at runtime.
2810
+
With Simple Authentication, the configuration parameters can be provided at runtime.
2797
2811
2798
-
In Instance Principal Authentication, an instance can be authorized to make API calls on OCI services without credentials. The authentication method will only work on compute instances where internal network endpoints are reachable.
2812
+
With Instance Principal Authentication, OCI compute instances can be authorized to access services on Oracle Cloud such as Oracle Autonomous Database. Node.js applications running on such a compute instance are automatically authenticated, eliminating the need to provide database user credentials. This authentication method will only work on compute instances where internal network endpoints are reachable. For more information on OCI compute instances, see `OCI Compute Instances <https://docs.oracle.com/en-us/iaas/compute-cloud-at-customer/topics/compute/compute-instances.htm>`__, `Creating a Compute Instance <https://docs.oracle.com/en-us/iaas/Content/Compute/Tasks/launchinginstance.htm>`__, and `Calling Services from a Compute Instance <https://docs.oracle.com/en-us/iaas/Content/Identity/Tasks/callingservicesfrominstances.htm>`__.
2799
2813
2800
2814
See `OCI SDK Authentication Methods <https://docs.oracle.com/en-us/iaas/Content/API/Concepts/sdk_authentication_methods.htm>`__ for more information.
A ``resetStatistics`` property can also be set to *true*. This zeros the current pool statistics, with the exception of ``queueMax`` which is set to the current queue length. Statistics are also reset when statistics recording is turned on with the ``enableStatistics`` property.
609
633
610
634
Changing ``queueMax``, ``queueTimeout``, or resetting statistics does not affect any currently queued connection requests. If connections are not made available to currently queued requests, those queued requests will timeout based on the ``queueTimeout`` value in effect when they were originally added to the connection pool queue. If pool statistics are enabled, then these failed requests will be counted in :ref:`requestTimeouts <poolstats>` and included in the queue time statistics.
-9195E41E74EF>`__, or user profile `IDLE_TIME <https://www.oracle.com/pls/
@@ -1888,6 +1914,7 @@ function record the following:
1888
1914
:header-rows: 1
1889
1915
:class: wy-table-responsive
1890
1916
:align: center
1917
+
:widths: 10 10 30
1891
1918
:summary: The first column displays the pool statistics attribute. The second column displays the logStatistics() label. The third column displays the description of the attribute.
1892
1919
1893
1920
* - :ref:`Pool Statistics Class <poolstatisticsclass>` Attribute
@@ -1986,6 +2013,9 @@ function record the following:
0 commit comments