@@ -1924,27 +1924,47 @@ Oracledb Methods
19241924
19251925 See :ref: `initialization ` for more information.
19261926
1927- If the ``lib_dir `` parameter is not None or the empty string,
1928- the specified directory is the only one searched for the Oracle Client
1929- libraries; otherwise, the standard way of locating the Oracle Client
1930- library is used.
1931-
1932- If the ``config_dir `` parameter is not None or the empty string, the
1933- specified directory is used to find Oracle Client library configuration
1934- files. This is equivalent to setting the environment variable ``TNS_ADMIN ``
1935- and overrides any value already set in ``TNS_ADMIN ``. If this parameter is
1936- not set, the standard way of locating Oracle Client library configuration
1937- files is used.
1938-
1939- If the ``error_url `` parameter is not None or the empty string, the
1940- specified value is included in the message of the exception raised when the
1941- Oracle Client library cannot be loaded; otherwise, the :ref: `installation `
1942- URL is included.
1943-
1944- If the ``driver_name `` parameter is not None or the empty string, the
1945- specified value can be found in database views that give information about
1946- connections. For example, it is in the ``CLIENT_DRIVER `` column of
1947- ``V$SESSION_CONNECT_INFO ``. The standard is to set this value to
1927+ The ``lib_dir `` parameter is a string or a bytes object that specifies the
1928+ directory containing Oracle Client libraries. If the ``lib_dir `` parameter
1929+ is set, then the specified directory is the only one searched for the
1930+ Oracle Client libraries; otherwise, the operating system library search
1931+ path is used to locate the Oracle Client library. If you are using Python
1932+ 3.11 and later, then the value specified in this parameter is encoded
1933+ using `locale.getencoding() <https://docs.python.org/3/library/locale.html
1934+ #locale.getencoding> `__. For all other Python versions, the encoding
1935+ "utf-8" is used. If a bytes object is specified in this parameter, then
1936+ this value will be used as is without any encoding.
1937+
1938+ The ``config_dir `` parameter is a string or a bytes object that specifies
1939+ the directory in which the
1940+ :ref: `Optional Oracle Net Configuration <optnetfiles >` and
1941+ :ref: `Optional Oracle Client Configuration <optclientfiles >` files reside.
1942+ If the ``config_dir `` parameter is set, then the specified directory is
1943+ used to find Oracle Client library configuration files. This is
1944+ equivalent to setting the environment variable ``TNS_ADMIN `` and overrides
1945+ any value already set in ``TNS_ADMIN ``. If this parameter is not set, the
1946+ :ref: `Oracle standard <usingconfigfiles >` way of locating Oracle Client
1947+ library configuration files is used. If you are using Python 3.11 and
1948+ later, then the value specified in this parameter is encoded using
1949+ `locale.getencoding() <https://docs.python.org/3/library/locale.html#
1950+ locale.getencoding> `__. For all other Python versions, the encoding
1951+ "utf-8" is used. If a bytes object is specified in this parameter, then
1952+ this value will be used as is without any encoding.
1953+
1954+ The ``error_url `` parameter is a string that specifies the URL which is
1955+ included in the python-oracledb exception message if the Oracle Client
1956+ libraries cannot be loaded. If the ``error_url `` parameter is set, then
1957+ the specified value is included in the message of the exception raised
1958+ when the Oracle Client library cannot be loaded; otherwise, the
1959+ :ref: `installation ` URL is included. This parameter lets your application
1960+ display custom installation instructions.
1961+
1962+ The ``driver_name `` parameter is a string that specifies the driver name
1963+ value. If the ``driver_name `` parameter is set, then the specified value
1964+ can be found in database views that give information about connections.
1965+ For example, it is in the ``CLIENT_DRIVER `` column of
1966+ ``V$SESSION_CONNECT_INFO ``. From Oracle Database 12.2, the name displayed
1967+ can be 30 characters. The standard is to set this value to
19481968 ``"<name> : version>" ``, where <name> is the name of the driver and
19491969 <version> is its version. There should be a single space character before
19501970 and after the colon. If this parameter is not set, then the value specified
0 commit comments