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
The common ConnectParams parameters that can be set in a connection string are
646
+
listed in the table below:
647
+
648
+
.. list-table-with-summary:: Common ConnectParams Parameters
649
+
:header-rows: 1
650
+
:class: wy-table-responsive
651
+
:align: center
652
+
:widths: 10 10 10
653
+
:name: _common_parameters
654
+
:summary: The first column displays the name of the connect string parameter name. The second column displays the Python parameter name. The third column displays the type of the parameter.
655
+
656
+
* - Connect String Parameter Name
657
+
- Python Parameter Name
658
+
- Type
659
+
* - EXPIRE_TIME
660
+
- :attr:`~ConnectParams.expire_time`
661
+
- integer
662
+
* - HTTPS_PROXY
663
+
- :attr:`~ConnectParams.https_proxy`
664
+
- string
665
+
* - HTTPS_PROXY_PORT
666
+
- :attr:`~ConnectParams.https_proxy_port`
667
+
- integer
668
+
* - POOL_BOUNDARY
669
+
- :attr:`~ConnectParams.pool_boundary`
670
+
- string
671
+
* - POOL_CONNECTION_CLASS
672
+
- :attr:`~ConnectParams.cclass`
673
+
- string
674
+
* - POOL_PURITY
675
+
- :attr:`~ConnectParams.purity`
676
+
- oracledb.Purity
677
+
* - RETRY_COUNT
678
+
- :attr:`~ConnectParams.retry_count`
679
+
- integer
680
+
* - RETRY_DELAY
681
+
- :attr:`~ConnectParams.retry_delay`
682
+
- integer
683
+
* - SDU
684
+
- :attr:`~ConnectParams.sdu`
685
+
- integer
686
+
* - SSL_SERVER_DN_MATCH
687
+
- :attr:`~ConnectParams.ssl_server_dn_match`
688
+
- boolean
689
+
* - SSL_SERVER_CERT_DN
690
+
- :attr:`~ConnectParams.ssl_server_cert_dn`
691
+
- string
692
+
* - TRANSPORT_CONNECT_TIMEOUT
693
+
- :attr:`~ConnectParams.tcp_connect_timeout`
694
+
- integer
695
+
* - WALLET_LOCATION
696
+
- :attr:`~ConnectParams.wallet_location`
697
+
- string
698
+
699
+
Also, you can specify additional parameters of the :ref:`ConnectParams object
700
+
<connparam>` directly in an :ref:`Easy Connect string <easyconnect>`. This can
701
+
be done by using the question mark symbol (?) to indicate the start of the
702
+
parameter-value pairs and the ampersand symbol (&) to delimit each
703
+
parameter-value pair. Addiitionally, you must define each parameter name with
:summary: The first column displays the name of the connect string parameter name. The second column displays the Python parameter name. The third column displays the type of the parameter.
724
+
725
+
* - Connect String Parameter Name
726
+
- Python Parameter Name
727
+
- Type
728
+
* - PYO.CCLASS
729
+
- :attr:`ConnectParams.cclass`
730
+
- string
731
+
* - PYO.CONNECTION_ID_PREFIX
732
+
- :attr:`ConnectParams.connection_id_prefix`
733
+
- string
734
+
* - PYO.DISABLE_OOB
735
+
- :attr:`ConnectParams.disable_oob`
736
+
- boolean
737
+
* - PYO.DRIVER_NAME
738
+
- :attr:`~ConnectParams.driver_name`
739
+
- string
740
+
* - PYO.EDITION
741
+
- :attr:`~ConnectParams.edition`
742
+
- string
743
+
* - PYO.EVENTS
744
+
- :attr:`~ConnectParams.events`
745
+
- boolean
746
+
* - PYO.EXPIRE_TIME
747
+
- :attr:`~ConnectParams.expire_time`
748
+
- integer
749
+
* - PYO.EXTERNALAUTH
750
+
- :attr:`~ConnectParams.externalauth`
751
+
- boolean
752
+
* - PYO.HTTPS_PROXY
753
+
- :attr:`~ConnectParams.https_proxy`
754
+
- string
755
+
* - PYO.HTTPS_PROXY_PORT
756
+
- :attr:`~ConnectParams.https_proxy_port`
757
+
- integer
758
+
* - PYO.MACHINE
759
+
- :attr:`~ConnectParams.machine`
760
+
- string
761
+
* - PYO.MODE
762
+
- :attr:`~ConnectParams.mode`
763
+
- oracledb.AuthMode
764
+
* - PYO.OSUSER
765
+
- :attr:`~ConnectParams.osuser`
766
+
- string
767
+
* - PYO.POOL_BOUNDARY
768
+
- :attr:`~ConnectParams.pool_boundary`
769
+
- string
770
+
* - PYO.PROGRAM
771
+
- :attr:`~ConnectParams.program`
772
+
- string
773
+
* - PYO.PURITY
774
+
- :attr:`~ConnectParams.purity`
775
+
- oracledb.Purity
776
+
* - PYO.RETRY_COUNT
777
+
- :attr:`~ConnectParams.retry_count`
778
+
- integer
779
+
* - PYO.RETRY_DELAY
780
+
- :attr:`~ConnectParams.retry_delay`
781
+
- integer
782
+
* - PYO.SDU
783
+
- :attr:`~ConnectParams.sdu`
784
+
- integer
785
+
* - PYO.SSL_SERVER_CERT_DN
786
+
- :attr:`~ConnectParams.ssl_server_cert_dn`
787
+
- string
788
+
* - PYO.SSL_SERVER_DN_MATCH
789
+
- :attr:`~ConnectParams.ssl_server_dn_match`
790
+
- boolean
791
+
* - PYO.STMTCACHESIZE
792
+
- :attr:`~ConnectParams.stmtcachesize`
793
+
- integer
794
+
* - PYO.TCP_CONNECT_TIMEOUT
795
+
- :attr:`~ConnectParams.tcp_connect_timeout`
796
+
- integer
797
+
* - PYO.TERMINAL
798
+
- :attr:`~ConnectParams.terminal`
799
+
- string
800
+
* - PYO.USE_TCP_FAST_OPEN
801
+
- :attr:`~ConnectParams.use_tcp_fast_open`
802
+
- boolean
803
+
* - PYO.WALLET_LOCATION
804
+
- :attr:`~ConnectParams.wallet_location`
805
+
- string
806
+
807
+
If a common or additional parameter is specified multiple times in a connect
808
+
string, then the last value of that parameter is considered as the value. For
809
+
example, if the ``sdu`` parameter is specified multiple times in the connect
810
+
string like this "sdu=5&sdu=10&pyo.sdu=15&sdu=20", then the value 20 is
811
+
considered as the value of the this parameter.
812
+
813
+
Note that the Connect String parameter names for the common and additional
814
+
parameters are not case-sensitive. The boolean values may use one of the
815
+
strings "on" or "off", "true" or "false", or "yes" or "no". The enumerated
816
+
values use the enumerated name and are converted to uppercase before they are
817
+
looked up in the enumeration. For example,
818
+
:data:`oracledb.AuthMode.SYSDBA <oracledb.AUTH_MODE_SYSDBA>` would be
819
+
specified as SYSDBA.
820
+
629
821
.. _connectionhook:
630
822
631
823
Connection Hook Functions
@@ -1594,6 +1786,175 @@ Thin mode is that values in any ``dsn`` parameter override values passed as
1594
1786
individual parameters, which themselves override values set in the ``params``
1595
1787
object. Similar precedence rules also apply to other values.
1596
1788
1789
+
.. _definepoolparams:
1790
+
1791
+
Defining PoolParams Parameters in a Connection String
Note that these parameters can only be added in Easy Connect strings and not in
1814
+
:ref:`Connect Descriptors <conndescriptor>`.
1815
+
1816
+
The PoolParams parameters that can be set in a connection string with the
1817
+
prefix "pyo."" are listed in the table below:
1818
+
1819
+
.. list-table-with-summary::
1820
+
:header-rows: 1
1821
+
:class: wy-table-responsive
1822
+
:align: center
1823
+
:widths: 10 10 10
1824
+
:summary: The first column displays the connect string parameter name. The second column displays the Python parameter name. The third column displays the type of the parameter.
1825
+
1826
+
* - Connect String Parameter Name
1827
+
- Python Parameter Name
1828
+
- Type
1829
+
* - PYO.CCLASS
1830
+
- :attr:`ConnectParams.cclass`
1831
+
- string
1832
+
* - PYO.CONNECTION_ID_PREFIX
1833
+
- :attr:`ConnectParams.connection_id_prefix`
1834
+
- string
1835
+
* - PYO.DISABLE_OOB
1836
+
- :attr:`ConnectParams.disable_oob`
1837
+
- boolean
1838
+
* - PYO.DRIVER_NAME
1839
+
- :attr:`ConnectParams.driver_name`
1840
+
- string
1841
+
* - PYO.EDITION
1842
+
- :attr:`ConnectParams.edition`
1843
+
- string
1844
+
* - PYO.EVENTS
1845
+
- :attr:`ConnectParams.events`
1846
+
- boolean
1847
+
* - PYO.EXPIRE_TIME
1848
+
- :attr:`ConnectParams.expire_time`
1849
+
- integer
1850
+
* - PYO.EXTERNALAUTH
1851
+
- :attr:`ConnectParams.externalauth`
1852
+
- boolean
1853
+
* - PYO.GETMODE
1854
+
- :attr:`PoolParams.getmode`
1855
+
- oracledb.PoolGetMode
1856
+
* - PYO.HOMOGENEOUS
1857
+
- :attr:`PoolParams.homogeneous`
1858
+
- boolean
1859
+
* - PYO.HTTPS_PROXY
1860
+
- :attr:`ConnectParams.https_proxy`
1861
+
- string
1862
+
* - PYO.HTTPS_PROXY_PORT
1863
+
- :attr:`ConnectParams.https_proxy_port`
1864
+
- integer
1865
+
* - PYO.INCREMENT
1866
+
- :attr:`PoolParams.increment`
1867
+
- integer
1868
+
* - PYO.MACHINE
1869
+
- :attr:`ConnectParams.machine`
1870
+
- string
1871
+
* - PYO.MAX
1872
+
- :attr:`PoolParams.max`
1873
+
- integer
1874
+
* - PYO.MAX_LIFETIME_SESSION
1875
+
- :attr:`PoolParams.max_lifetime_session`
1876
+
- integer
1877
+
* - PYO.MAX_SESSIONS_PER_SHARD
1878
+
- :attr:`PoolParams.max_sessions_per_shard`
1879
+
- integer
1880
+
* - PYO.MIN
1881
+
- :attr:`PoolParams.min`
1882
+
- integer
1883
+
* - PYO.MODE
1884
+
- :attr:`ConnectParams.mode`
1885
+
- oracledb.AuthMode
1886
+
* - PYO.OSUSER
1887
+
- :attr:`ConnectParams.osuser`
1888
+
- string
1889
+
* - PYO_PING_INTERVAL
1890
+
- :attr:`PoolParams.ping_interval`
1891
+
- integer
1892
+
* - PYO.PING_TIMEOUT
1893
+
- :attr:`PoolParams.ping_timeout`
1894
+
- integer
1895
+
* - PYO.POOL_BOUNDARY
1896
+
- :attr:`ConnectParams.pool_boundary`
1897
+
- string
1898
+
* - PYO.PROGRAM
1899
+
- :attr:`ConnectParams.program`
1900
+
- string
1901
+
* - PYO.PURITY
1902
+
- :attr:`ConnectParams.purity`
1903
+
- oracledb.Purity
1904
+
* - PYO.RETRY_COUNT
1905
+
- :attr:`ConnectParams.retry_count`
1906
+
- integer
1907
+
* - PYO.RETRY_DELAY
1908
+
- :attr:`ConnectParams.retry_delay`
1909
+
- integer
1910
+
* - PYO.SDU
1911
+
- :attr:`ConnectParams.sdu`
1912
+
- integer
1913
+
* - PYO.SODA_METADATA_CACHE
1914
+
- :attr:`PoolParams.soda_metadata_cache`
1915
+
- boolean
1916
+
* - PYO.SSL_SERVER_CERT_DN
1917
+
- :attr:`ConnectParams.ssl_server_cert_dn`
1918
+
- string
1919
+
* - PYO.SSL_SERVER_DN_MATCH
1920
+
- :attr:`ConnectParams.ssl_server_dn_match`
1921
+
- boolean
1922
+
* - PYO.STMTCACHESIZE
1923
+
- :attr:`ConnectParams.stmtcachesize`
1924
+
- integer
1925
+
* - PYO.TCP_CONNECT_TIMEOUT
1926
+
- :attr:`ConnectParams.tcp_connect_timeout`
1927
+
- integer
1928
+
* - PYO.TERMINAL
1929
+
- :attr:`ConnectParams.terminal`
1930
+
- string
1931
+
* - PYO.TIMEOUT
1932
+
- :attr:`PoolParams.timeout`
1933
+
- integer
1934
+
* - PYO.USE_TCP_FAST_OPEN
1935
+
- :attr:`ConnectParams.use_tcp_fast_open`
1936
+
- boolean
1937
+
* - PYO.WAIT_TIMEOUT
1938
+
- :attr:`PoolParams.wait_timeout`
1939
+
- integer
1940
+
* - PYO.WALLET_LOCATION
1941
+
- :attr:`ConnectParams.wallet_location`
1942
+
- string
1943
+
1944
+
If a common or additional parameter is specified multiple times in a connect
1945
+
string, then the last value of that parameter is considered as the value. For
1946
+
example, if the ``sdu`` parameter is specified multiple times in the connect
1947
+
string like this "sdu=5&sdu=10&pyo.sdu=15&sdu=20", then the value 20 is
1948
+
considered as the value of the this parameter.
1949
+
1950
+
Note that the Connect String parameter names for the common and additional
1951
+
parameters are not case-sensitive. The boolean values may use one of the
1952
+
strings "on" or "off", "true" or "false", or "yes" or "no". The enumerated
1953
+
values use the enumerated name and are converted to uppercase before they are
1954
+
looked up in the enumeration. For example,
1955
+
:data:`oracledb.AuthMode.SYSDBA <oracledb.AUTH_MODE_SYSDBA>` would be
0 commit comments