A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://python-oracledb.readthedocs.io/en/latest/api_manual/pool_params.html below:

Website Navigation


PoolParams Objects — python-oracledb 3.4.0b1 documentation

6. API: PoolParams Objects 6.1. PoolParams Class
class oracledb.PoolParams(*, min: int | None = None, max: int | None = None, increment: int | None = None, connectiontype: Type[Connection] | None = None, getmode: PoolGetMode | None = None, homogeneous: bool | None = None, timeout: int | None = None, wait_timeout: int | None = None, max_lifetime_session: int | None = None, session_callback: Callable | None = None, max_sessions_per_shard: int | None = None, soda_metadata_cache: bool | None = None, ping_interval: int | None = None, ping_timeout: int | None = None, user: str | None = None, proxy_user: str | None = None, password: str | None = None, newpassword: str | None = None, wallet_password: str | None = None, access_token: str | tuple | Callable | None = None, host: str | None = None, port: int | None = None, protocol: str | None = None, https_proxy: str | None = None, https_proxy_port: int | None = None, service_name: str | None = None, instance_name: str | None = None, sid: str | None = None, server_type: str | None = None, cclass: str | None = None, purity: Purity | None = None, expire_time: int | None = None, retry_count: int | None = None, retry_delay: int | None = None, tcp_connect_timeout: float | None = None, ssl_server_dn_match: bool | None = None, ssl_server_cert_dn: str | None = None, wallet_location: str | None = None, events: bool | None = None, externalauth: bool | None = None, mode: AuthMode | None = None, disable_oob: bool | None = None, stmtcachesize: int | None = None, edition: str | None = None, tag: str | None = None, matchanytag: bool | None = None, config_dir: str | None = None, appcontext: list | None = None, shardingkey: list | None = None, supershardingkey: list | None = None, debug_jdwp: str | None = None, connection_id_prefix: str | None = None, ssl_context: Any | None = None, sdu: int | None = None, pool_boundary: str | None = None, use_tcp_fast_open: bool | None = None, ssl_version: TLSVersion | None = None, program: str | None = None, machine: str | None = None, terminal: str | None = None, osuser: str | None = None, driver_name: str | None = None, use_sni: bool | None = None, thick_mode_dsn_passthrough: bool | None = None, extra_auth_params: dict | None = None, pool_name: str | None = None, handle: int | None = None)

All parameters are optional. A brief description of each parameter follows:

The PoolParams class is a subclass of the ConnectParams Class. In addition to the parameters and attributes of the ConnectParams class, the PoolParams class also contains new parameters and attributes.

See Using the PoolParams Builder Class for more information.

Changed in version 3.2.0: The pool_name parameter was added.

Changed in version 3.0.0: The use_sni, instance_name, thick_mode_dsn_passthrough, extra_auth_params, and instance_name parameters were added.

Changed in version 2.5.0: The program, machine, terminal, osuser, and driver_name parameters were added. Support for edition and appcontext was added to python-oracledb Thin mode.

Changed in version 2.3.0: The default value of the retry_delay parameter was changed from 0 seconds to 1 second. The default value of the tcp_connect_timeout parameter was changed from 60.0 seconds to 20.0 seconds. The ping_timeout and ssl_version parameters were added.

Changed in version 2.1.0: The pool_boundary and use_tcp_fast_open parameters were added.

Changed in version 2.0.0: The ssl_context and sdu parameters were added.

Changed in version 1.4.0: The connection_id_prefix parameter was added.

6.2. PoolParams Methods
PoolParams.copy() PoolParams

Creates a copy of the parameters and returns it.

PoolParams.get_connect_string() str

Returns the connection string associated with the instance.

PoolParams.parse_connect_string(connect_string: str) None

Parses the connect string into its components and stores the parameters.

The connect string parameter can be an Easy Connect string, name-value pairs, or a simple alias which is looked up in tnsnames.ora. Parameters that are found in the connect string override any currently stored values.

PoolParams.set(*, min: int | None = None, max: int | None = None, increment: int | None = None, connectiontype: Type[Connection] | None = None, getmode: PoolGetMode | None = None, homogeneous: bool | None = None, timeout: int | None = None, wait_timeout: int | None = None, max_lifetime_session: int | None = None, session_callback: Callable | None = None, max_sessions_per_shard: int | None = None, soda_metadata_cache: bool | None = None, ping_interval: int | None = None, ping_timeout: int | None = None, user: str | None = None, proxy_user: str | None = None, password: str | None = None, newpassword: str | None = None, wallet_password: str | None = None, access_token: str | tuple | Callable | None = None, host: str | None = None, port: int | None = None, protocol: str | None = None, https_proxy: str | None = None, https_proxy_port: int | None = None, service_name: str | None = None, instance_name: str | None = None, sid: str | None = None, server_type: str | None = None, cclass: str | None = None, purity: Purity | None = None, expire_time: int | None = None, retry_count: int | None = None, retry_delay: int | None = None, tcp_connect_timeout: float | None = None, ssl_server_dn_match: bool | None = None, ssl_server_cert_dn: str | None = None, wallet_location: str | None = None, events: bool | None = None, externalauth: bool | None = None, mode: AuthMode | None = None, disable_oob: bool | None = None, stmtcachesize: int | None = None, edition: str | None = None, tag: str | None = None, matchanytag: bool | None = None, config_dir: str | None = None, appcontext: list | None = None, shardingkey: list | None = None, supershardingkey: list | None = None, debug_jdwp: str | None = None, connection_id_prefix: str | None = None, ssl_context: Any | None = None, sdu: int | None = None, pool_boundary: str | None = None, use_tcp_fast_open: bool | None = None, ssl_version: TLSVersion | None = None, program: str | None = None, machine: str | None = None, terminal: str | None = None, osuser: str | None = None, driver_name: str | None = None, use_sni: bool | None = None, thick_mode_dsn_passthrough: bool | None = None, extra_auth_params: dict | None = None, pool_name: str | None = None, handle: int | None = None)

All parameters are optional. A brief description of each parameter follows:

Changed in version 3.2.0: The pool_name parameter was added.

Changed in version 3.0.0: The use_sni, thick_mode_dsn_passthrough, extra_auth_params and instance_name parameters were added.

Changed in version 2.5.0: The program, machine, terminal, osuser, and driver_name parameters were added. Support for edition and appcontext was added to python-oracledb Thin mode.

Changed in version 2.3.0: The ping_timeout and ssl_version parameters were added.

Changed in version 2.1.0: The pool_boundary and use_tcp_fast_open parameters were added.

6.3. PoolParams Attributes

All properties are read only.

property PoolParams.connectiontype: Type[Connection]

The class of the connection that should be returned during calls to pool.acquire(). It must be oracledb.Connection or a subclass of oracledb.Connection.

This attribute is supported in both python-oracledb Thin and Thick modes.

property PoolParams.getmode: PoolGetMode

How pool.acquire() will behave. One of the constants oracledb.POOL_GETMODE_WAIT, oracledb.POOL_GETMODE_NOWAIT, oracledb.POOL_GETMODE_FORCEGET, or oracledb.POOL_GETMODE_TIMEDWAIT.

This attribute is supported in both python-oracledb Thin and Thick modes.

property PoolParams.homogeneous: bool

A boolean indicating whether the connections in the pool are homogeneous (same user) or heterogeneous (multiple users).

This attribute is only supported in python-oracledb Thick mode. The python-oracledb Thin mode supports only homogeneous modes.

property PoolParams.increment: int

The number of connections that should be added to the pool whenever the pool needs to grow.

This attribute is supported in both python-oracledb Thin and Thick modes.

property PoolParams.min: int

The minimum number of connections the pool should contain.

This attribute is supported in both python-oracledb Thin and Thick modes.

property PoolParams.max: int

The maximum number of connections the pool should contain.

This attribute is supported in both python-oracledb Thin and Thick modes.

property PoolParams.max_lifetime_session: int

The length of time (in seconds) that connections can remain in the pool. If it is 0 then connections may remain in the pool indefinitely.

Connections become candidates for termination when they are acquired or released back to the pool, and have existed for longer than max_lifetime_session seconds. Connections that are in active use will not be closed. In python-oracledb Thick mode, Oracle Client libraries 12.1 or later must be used and, prior to Oracle Client 21, cleanup only occurs when the pool is accessed.

property PoolParams.max_sessions_per_shard: int

The maximum number of connections that may be associated with a particular shard.

This attribute is only supported in python-oracledb Thick mode.

property PoolParams.ping_interval: int

The length of time (in seconds) after which an unused connection in the pool will be a candidate for pinging when pool.acquire() is called. If the ping to the database indicates the connection is not alive a replacement connection will be returned by pool.acquire(). If ping_interval is a negative value the ping functionality will be disabled.

This attribute is supported in both python-oracledb Thin and Thick modes.

property PoolParams.ping_timeout: int

The maximum length of time (in milliseconds) to wait for a connection in the pool to respond to an internal ping to the database before being discarded and replaced during a call to acquire().

This attribute is supported in both python-oracledb Thin and Thick modes.

Added in version 2.3.0.

property PoolParams.session_callback: Callable

A callable that is invoked when a connection is returned from the pool for the first time, or when the connection tag differs from the one requested.

This attribute is supported in both python-oracledb Thin and Thick modes.

property PoolParams.soda_metadata_cache: bool

A boolean indicating whether or not the SODA metadata cache should be enabled.

This attribute is only supported in python-oracledb Thick mode.

property PoolParams.timeout: int

The length of time (in seconds) that a connection may remain idle in the pool before it is terminated. If it is 0 then connections are never terminated.

This applies only when the pool has more than min connections open, allowing it to shrink to the specified minimum size. The default value is 0 seconds. A value of 0 means that there is no maximum time.

This attribute is supported in both python-oracledb Thin and Thick modes.

property PoolParams.wait_timeout: int

The length of time (in milliseconds) that a caller should wait when acquiring a connection from the pool with getmode set to oracledb.POOL_GETMODE_TIMEDWAIT.

This attribute is supported in both python-oracledb Thin and Thick modes.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4