|
在18c的文档里面. oracle不建议使用scan在eazyconnect中.
因为不能设置延迟和失败重试.建议使用tnsnames.ora
应该就是这个原因.
https://docs.oracle.com/en/datab ... E-BD06-54FED5CF5712
Oracle Database 18c database clients use SCAN to connect to the database.
Oracle recommends against using the easy connect method with SCAN because the easy connect method
does not have the ability to specify timeouts and retries for connection establishment.
Instead, applications must use an Oracle Net connect descriptor with the following format:
(DESCRIPTION =
(CONNECT_TIMEOUT=90) (RETRY_COUNT=20)(RETRY_DELAY=3) (TRANSPORT_CONNECT_TIMEOUT=3)
( ADDRESS = (PROTOCOL = TCP)(HOST=scan)(PORT=1521))
(CONNECT_DATA=(SERVICE_NAME=service_name)))
|
|