Pool creation timeout #84
-
Hello, could you point me out about pool initializing. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
First, there are some differences between thick mode and thin mode in how pools are initialized. In thin mode, the connections are established in a background thread and failure to create these connections will be reported when the first call to The value of the parameter |
Beta Was this translation helpful? Give feedback.
-
For some reason I thought it would be reported as soon as possible. I was confused because the script run twice long than expected. I thought it is because of UPD: I figured it out - if |
Beta Was this translation helpful? Give feedback.
First, there are some differences between thick mode and thin mode in how pools are initialized. In thin mode, the connections are established in a background thread and failure to create these connections will be reported when the first call to
pool.acquire()
is made. Thick mode, however, currently establishesmin
connections and if any of those fails, the call tooracledb.create_pool()
itself will fail. This may change at some point to use a background thread similarly to thin mode.The value of the parameter
TRANSPORT_CONNECT_TIMEOUT
indicates how long to wait for the initial socket connection to be established with the listener. I'm not sure what log messages you were expecting. Can y…