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
<Defaults.thick_mode_dsn_passthrough>` to *False*. Alternatively use
926
931
:meth:`ConnectParams.parse_connect_string()`, see :ref:`usingconnparams`.
927
932
928
-
Note: In Thick mode, when :attr:`defaults.thick_mode_dsn_passthrough` is
929
-
*True*, it is the Oracle Client libraries that access the configuration
930
-
provider when python-oracledb connection or pool creation methods are
931
-
invoked. Any python-oracledb parameter section will be ignored. Any Oracle
932
-
Client Interface parameter section should be *removed* from the configuration
933
-
because its values may be different to those that python-oracledb assumes, and
934
-
will cause undefined behavior.
933
+
Note: In Thick mode, when :attr:`oracledb.defaults.thick_mode_dsn_passthrough
934
+
<Defaults.thick_mode_dsn_passthrough>` is *True*, it is the Oracle Client
935
+
libraries that access the configuration provider when python-oracledb
936
+
connection or pool creation methods are invoked. Any python-oracledb parameter
937
+
section will be ignored. Any Oracle Client Interface parameter section should
938
+
be *removed* from the configuration because its values may be different to
939
+
those that python-oracledb assumes, and will cause undefined behavior.
935
940
936
941
**Precedence of Attributes**
937
942
@@ -1036,11 +1041,20 @@ The elements of the ``dsn`` parameter are detailed in the table below.
1036
1041
* - Parameter
1037
1042
- Description
1038
1043
* - ``config-file``
1039
-
- Indicates that the centralized configuration provider is a file in your local system.
1044
+
- Indicates that the centralized configuration provider is a file in your
1045
+
local system.
1040
1046
* - <file-name>
1041
-
- The file path and name of the JSON file that contains the configuration information. For relative paths, python-oracledb will use the connection or pool creation ``config_dir`` parameter, or :attr:`defaults.config_dir` value, to create an absolute path.
1047
+
- The file path and name of the JSON file that contains the configuration
1048
+
information. For relative paths, python-oracledb will use the
1049
+
connection or pool creation ``config_dir`` parameter, or
1050
+
:attr:`oracledb.defaults.config_dir <Defaults.config_dir>` value, to
1051
+
create an absolute path.
1042
1052
* - ``key``
1043
-
- The connection key name used to identify a specific configuration. If this parameter is specified, the file is assumed to contain multiple configurations that are indexed by the key value. If not specified, the file is assumed to contain a single configuration. See the example further below.
1053
+
- The connection key name used to identify a specific configuration. If
1054
+
this parameter is specified, the file is assumed to contain multiple
1055
+
configurations that are indexed by the key value. If not specified, the
1056
+
file is assumed to contain a single configuration. See the example
1057
+
further below.
1044
1058
1045
1059
**File Configuration Provider Examples**
1046
1060
@@ -1696,9 +1710,9 @@ hook function is expected to construct valid connection details, which
1696
1710
python-oracledb will use to complete the connection or pool creation.
1697
1711
1698
1712
You can also make use of a protocol hook function in python-oracledb Thick mode
1699
-
connection calls by setting :attr:`defaults.thick_mode_dsn_passthrough` to
1700
-
*False*. Alternatively use:meth:`ConnectParams.parse_connect_string()`, see
1701
-
:ref:`usingconnparams`.
1713
+
connection calls by setting :attr:`oracledb.defaults.thick_mode_dsn_passthrough
1714
+
<Defaults.thick_mode_dsn_passthrough>` to *False*. Alternatively use
1715
+
:meth:`ConnectParams.parse_connect_string()`, see :ref:`usingconnparams`.
1702
1716
1703
1717
For example, the following hook function handles connection strings prefixed
1704
1718
with the ``tcp://`` protocol. When :func:`oracledb.connect()` is called, the
@@ -1932,9 +1946,10 @@ connect with an LDAP URL. For example:
0 commit comments