Troubleshooting Jdbc Issues
1) JDBC TCPS Connection Fails with java.sql.SQLRecoverableException: IO Error: Connection reset by peer, Authentication lapse 0 ms. (Doc ID 2961999.1)
--> (SERVER=DEDICATED)
(DESCRIPTION=(ADDRESS=(PROTOCOL=TCPS)(HOST=<HOST>)(PORT=<PORT>))(CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=<SERVICE NAME>)))
2) BTM JDBC Connections Are Being Closed With the Following Message in the Logs: java.sql.SQLRecoverableException: Closed Connection (Doc ID 1462656.1)
-- > (ENABLE=broken)
jdbc:oracle:thin:@(DESCRIPTION=(ENABLE=broken)(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=<HOSTNAME1>.<DOMAIN_NAME>)(PORT=1521))(ADDRESS= (PROTOCOL=TCP)(HOST=<HOSTNAME2>.<DOMAIN_NAME>)(PORT=1521))(LOAD_BALANCE=on)(FAILOVER=on))(CONNECT_DATA=(SERVER=dedicated)(SERVICE_NAME=<SERVICE_NAME>.<DOMAIN_NAME>)(FAILOVER_MODE=(TYPE=session)(METHOD=basic)(RETRIES=10)(DELAY=3))))
3) Tracing
How to Trace the JDBC Driver (Doc ID 338433.1)
https://abdul-hafeez-kalsekar-tuning.blogspot.com/2025/02/how-to-trace-jdbc-driver-doc-id-3384331.html
How to Trace the Network Packets Exchanged Between JDBC and the RDBMS (Doc ID 1050942.1)
https://abdul-hafeez-kalsekar-tuning.blogspot.com/2025/02/how-to-trace-network-packets-exchanged.html
sqlnet level 16 tracing : How To Enable Client-Side SQL*NET Trace? (Doc ID 1681696.1)
Cleint side :
trace_unique_client=On
trace_level_client= 16
trace_file_client=client
trace_directory_client= directory_path
trace_timestamp_client =on
trace_unique_client=on
trace_filelen_client=10000
trace_fileno_client=10
diag_adr_enabled=off
server side :
trace_level_server= 16
trace_file_server=server
trace_directory_server= directory_path
trace_timestamp_server =on
trace_filelen_cserver=10000
trace_fileno_server=10
diag_adr_enabled=off
4) Not Able Connect Database From Weblogic Instance - Reporting "Oracle Error: ORA-12650 and ORA-12599" Errors (Doc ID 2595055.1)
In order to get the connection on the application you will need to add the next properties to the jdbc connection:
props.setProperty(OracleConnection.CONNECTION_PROPERTY_THIN_NET_ENCRYPTION_LEVEL, "REQUIRED");
props.setProperty(OracleConnection.CONNECTION_PROPERTY_THIN_NET_ENCRYPTION_TYPES, "( AES256 )");
props.setProperty(OracleConnection.CONNECTION_PROPERTY_THIN_NET_CHECKSUM_LEVEL, "REQUIRED");
props.setProperty(OracleConnection.CONNECTION_PROPERTY_THIN_NET_CHECKSUM_TYPES, "( SHA1 )");
Comments
Post a Comment